                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:30:38,020 - INFO - taking picture
MAIN: 2025-03-31 06:30:38,021 - INFO - we take 1 photos in this while loop
MAIN: 2025-03-31 06:30:38,021 - INFO - /home/pi/Desktop/images/31032025/06/30/image_31032025_06_30_37_30888.jpg
MAIN: 2025-03-31 06:30:38,021 - INFO - duration: 0.8018680719997064
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:31:07,955 - INFO - taking picture
MAIN: 2025-03-31 06:31:07,956 - INFO - we take 2 photos in this while loop
MAIN: 2025-03-31 06:31:07,956 - INFO - /home/pi/Desktop/images/31032025/06/30/image_31032025_06_31_07_30042.jpg
MAIN: 2025-03-31 06:31:07,956 - INFO - duration: 0.694412812000337
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:31:37,470 - INFO - taking picture
MAIN: 2025-03-31 06:31:37,471 - INFO - we take 3 photos in this while loop
MAIN: 2025-03-31 06:31:37,471 - INFO - /home/pi/Desktop/images/31032025/06/31/image_31032025_06_31_37_29511.jpg
MAIN: 2025-03-31 06:31:37,471 - INFO - duration: 0.6973485939997772
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:32:07,819 - INFO - taking picture
MAIN: 2025-03-31 06:32:07,820 - INFO - we take 4 photos in this while loop
MAIN: 2025-03-31 06:32:07,820 - INFO - /home/pi/Desktop/images/31032025/06/31/image_31032025_06_32_07_30369.jpg
MAIN: 2025-03-31 06:32:07,820 - INFO - duration: 0.6774108330000672
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:32:37,498 - INFO - taking picture
MAIN: 2025-03-31 06:32:37,499 - INFO - we take 5 photos in this while loop
MAIN: 2025-03-31 06:32:37,499 - INFO - /home/pi/Desktop/images/31032025/06/32/image_31032025_06_32_37_29715.jpg
MAIN: 2025-03-31 06:32:37,499 - INFO - duration: 0.6402758849999373
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:33:07,629 - INFO - taking picture
MAIN: 2025-03-31 06:33:07,630 - INFO - we take 6 photos in this while loop
MAIN: 2025-03-31 06:33:07,630 - INFO - /home/pi/Desktop/images/31032025/06/32/image_31032025_06_33_07_30099.jpg
MAIN: 2025-03-31 06:33:07,630 - INFO - duration: 0.6718365619999531
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:33:37,165 - INFO - taking picture
MAIN: 2025-03-31 06:33:37,165 - INFO - we take 7 photos in this while loop
MAIN: 2025-03-31 06:33:37,165 - INFO - /home/pi/Desktop/images/31032025/06/33/image_31032025_06_33_36_29516.jpg
MAIN: 2025-03-31 06:33:37,166 - INFO - duration: 0.6901342700002715
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:34:07,191 - INFO - taking picture
MAIN: 2025-03-31 06:34:07,192 - INFO - we take 8 photos in this while loop
MAIN: 2025-03-31 06:34:07,192 - INFO - /home/pi/Desktop/images/31032025/06/33/image_31032025_06_34_06_30032.jpg
MAIN: 2025-03-31 06:34:07,192 - INFO - duration: 0.6836439579992657
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:34:38,170 - INFO - taking picture
MAIN: 2025-03-31 06:34:38,171 - INFO - we take 9 photos in this while loop
MAIN: 2025-03-31 06:34:38,171 - INFO - /home/pi/Desktop/images/31032025/06/34/image_31032025_06_34_37_30967.jpg
MAIN: 2025-03-31 06:34:38,171 - INFO - duration: 0.6960360939992825
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:35:07,136 - INFO - taking picture
MAIN: 2025-03-31 06:35:07,137 - INFO - we take 10 photos in this while loop
MAIN: 2025-03-31 06:35:07,137 - INFO - /home/pi/Desktop/images/31032025/06/34/image_31032025_06_35_06_28998.jpg
MAIN: 2025-03-31 06:35:07,137 - INFO - duration: 0.6636581769998884
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:35:38,041 - INFO - taking picture
MAIN: 2025-03-31 06:35:38,042 - INFO - we take 11 photos in this while loop
MAIN: 2025-03-31 06:35:38,042 - INFO - /home/pi/Desktop/images/31032025/06/35/image_31032025_06_35_37_30900.jpg
MAIN: 2025-03-31 06:35:38,042 - INFO - duration: 0.6674215619996176
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:36:08,076 - INFO - taking picture
MAIN: 2025-03-31 06:36:08,077 - INFO - we take 12 photos in this while loop
MAIN: 2025-03-31 06:36:08,077 - INFO - /home/pi/Desktop/images/31032025/06/35/image_31032025_06_36_07_30012.jpg
MAIN: 2025-03-31 06:36:08,077 - INFO - duration: 0.6901133849996768
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:36:37,742 - INFO - taking picture
MAIN: 2025-03-31 06:36:37,742 - INFO - we take 13 photos in this while loop
MAIN: 2025-03-31 06:36:37,743 - INFO - /home/pi/Desktop/images/31032025/06/36/image_31032025_06_36_37_29667.jpg
MAIN: 2025-03-31 06:36:37,743 - INFO - duration: 0.6882786980004312
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:37:07,721 - INFO - taking picture
MAIN: 2025-03-31 06:37:07,722 - INFO - we take 14 photos in this while loop
MAIN: 2025-03-31 06:37:07,722 - INFO - /home/pi/Desktop/images/31032025/06/36/image_31032025_06_37_07_29983.jpg
MAIN: 2025-03-31 06:37:07,722 - INFO - duration: 0.6847907809997196
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:37:37,242 - INFO - taking picture
MAIN: 2025-03-31 06:37:37,242 - INFO - we take 15 photos in this while loop
MAIN: 2025-03-31 06:37:37,242 - INFO - /home/pi/Desktop/images/31032025/06/37/image_31032025_06_37_36_29516.jpg
MAIN: 2025-03-31 06:37:37,243 - INFO - duration: 0.6879030210002384
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:38:08,290 - INFO - taking picture
MAIN: 2025-03-31 06:38:08,291 - INFO - we take 16 photos in this while loop
MAIN: 2025-03-31 06:38:08,291 - INFO - /home/pi/Desktop/images/31032025/06/37/image_31032025_06_38_07_31050.jpg
MAIN: 2025-03-31 06:38:08,291 - INFO - duration: 0.6858012500006225
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:38:37,708 - INFO - taking picture
MAIN: 2025-03-31 06:38:37,708 - INFO - we take 17 photos in this while loop
MAIN: 2025-03-31 06:38:37,709 - INFO - /home/pi/Desktop/images/31032025/06/38/image_31032025_06_38_37_29470.jpg
MAIN: 2025-03-31 06:38:37,709 - INFO - duration: 0.6329816139996183
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:39:07,871 - INFO - taking picture
MAIN: 2025-03-31 06:39:07,871 - INFO - we take 18 photos in this while loop
MAIN: 2025-03-31 06:39:07,871 - INFO - /home/pi/Desktop/images/31032025/06/38/image_31032025_06_39_07_30108.jpg
MAIN: 2025-03-31 06:39:07,871 - INFO - duration: 0.6872756769998887
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:39:37,521 - INFO - taking picture
MAIN: 2025-03-31 06:39:37,522 - INFO - we take 19 photos in this while loop
MAIN: 2025-03-31 06:39:37,522 - INFO - /home/pi/Desktop/images/31032025/06/39/image_31032025_06_39_37_29652.jpg
MAIN: 2025-03-31 06:39:37,522 - INFO - duration: 0.6860608330007381
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:40:07,561 - INFO - taking picture
MAIN: 2025-03-31 06:40:07,562 - INFO - we take 20 photos in this while loop
MAIN: 2025-03-31 06:40:07,562 - INFO - /home/pi/Desktop/images/31032025/06/39/image_31032025_06_40_07_30050.jpg
MAIN: 2025-03-31 06:40:07,562 - INFO - duration: 0.6754224999995131
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:40:37,169 - INFO - taking picture
MAIN: 2025-03-31 06:40:37,170 - INFO - we take 21 photos in this while loop
MAIN: 2025-03-31 06:40:37,170 - INFO - /home/pi/Desktop/images/31032025/06/40/image_31032025_06_40_36_29616.jpg
MAIN: 2025-03-31 06:40:37,170 - INFO - duration: 0.666479999999865
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:41:07,167 - INFO - taking picture
MAIN: 2025-03-31 06:41:07,167 - INFO - we take 22 photos in this while loop
MAIN: 2025-03-31 06:41:07,168 - INFO - /home/pi/Desktop/images/31032025/06/40/image_31032025_06_41_06_29963.jpg
MAIN: 2025-03-31 06:41:07,168 - INFO - duration: 0.7005259369998384
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:41:38,117 - INFO - taking picture
MAIN: 2025-03-31 06:41:38,118 - INFO - we take 23 photos in this while loop
MAIN: 2025-03-31 06:41:38,118 - INFO - /home/pi/Desktop/images/31032025/06/41/image_31032025_06_41_37_31016.jpg
MAIN: 2025-03-31 06:41:38,118 - INFO - duration: 0.6345221880001191
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:42:08,140 - INFO - taking picture
MAIN: 2025-03-31 06:42:08,141 - INFO - we take 24 photos in this while loop
MAIN: 2025-03-31 06:42:08,141 - INFO - /home/pi/Desktop/images/31032025/06/41/image_31032025_06_42_07_29988.jpg
MAIN: 2025-03-31 06:42:08,141 - INFO - duration: 0.6688699999995151
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:42:37,853 - INFO - taking picture
MAIN: 2025-03-31 06:42:37,853 - INFO - we take 25 photos in this while loop
MAIN: 2025-03-31 06:42:37,854 - INFO - /home/pi/Desktop/images/31032025/06/42/image_31032025_06_42_37_29692.jpg
MAIN: 2025-03-31 06:42:37,854 - INFO - duration: 0.689381771000626
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:43:07,810 - INFO - taking picture
MAIN: 2025-03-31 06:43:07,811 - INFO - we take 26 photos in this while loop
MAIN: 2025-03-31 06:43:07,811 - INFO - /home/pi/Desktop/images/31032025/06/42/image_31032025_06_43_07_29954.jpg
MAIN: 2025-03-31 06:43:07,811 - INFO - duration: 0.6927784380004596
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:43:37,465 - INFO - taking picture
MAIN: 2025-03-31 06:43:37,465 - INFO - we take 27 photos in this while loop
MAIN: 2025-03-31 06:43:37,466 - INFO - /home/pi/Desktop/images/31032025/06/43/image_31032025_06_43_37_29648.jpg
MAIN: 2025-03-31 06:43:37,466 - INFO - duration: 0.698451926999951
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:44:07,720 - INFO - taking picture
MAIN: 2025-03-31 06:44:07,721 - INFO - we take 28 photos in this while loop
MAIN: 2025-03-31 06:44:07,721 - INFO - /home/pi/Desktop/images/31032025/06/43/image_31032025_06_44_07_30280.jpg
MAIN: 2025-03-31 06:44:07,721 - INFO - duration: 0.6734850519997053
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:44:37,325 - INFO - taking picture
MAIN: 2025-03-31 06:44:37,326 - INFO - we take 29 photos in this while loop
MAIN: 2025-03-31 06:44:37,326 - INFO - /home/pi/Desktop/images/31032025/06/44/image_31032025_06_44_36_29584.jpg
MAIN: 2025-03-31 06:44:37,326 - INFO - duration: 0.6936317179997786
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:45:07,703 - INFO - taking picture
MAIN: 2025-03-31 06:45:07,704 - INFO - we take 30 photos in this while loop
MAIN: 2025-03-31 06:45:07,704 - INFO - /home/pi/Desktop/images/31032025/06/44/image_31032025_06_45_07_30376.jpg
MAIN: 2025-03-31 06:45:07,704 - INFO - duration: 0.6951901040001758
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:45:37,421 - INFO - taking picture
MAIN: 2025-03-31 06:45:37,422 - INFO - we take 31 photos in this while loop
MAIN: 2025-03-31 06:45:37,422 - INFO - /home/pi/Desktop/images/31032025/06/45/image_31032025_06_45_37_29744.jpg
MAIN: 2025-03-31 06:45:37,422 - INFO - duration: 0.6689129689993933
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:46:07,407 - INFO - taking picture
MAIN: 2025-03-31 06:46:07,407 - INFO - we take 32 photos in this while loop
MAIN: 2025-03-31 06:46:07,407 - INFO - /home/pi/Desktop/images/31032025/06/45/image_31032025_06_46_07_29964.jpg
MAIN: 2025-03-31 06:46:07,408 - INFO - duration: 0.6904093749999447
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:46:37,012 - INFO - taking picture
MAIN: 2025-03-31 06:46:37,012 - INFO - we take 33 photos in this while loop
MAIN: 2025-03-31 06:46:37,012 - INFO - /home/pi/Desktop/images/31032025/06/46/image_31032025_06_46_36_29618.jpg
MAIN: 2025-03-31 06:46:37,013 - INFO - duration: 0.6771641140003339
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:47:08,028 - INFO - taking picture
MAIN: 2025-03-31 06:47:08,029 - INFO - we take 34 photos in this while loop
MAIN: 2025-03-31 06:47:08,029 - INFO - /home/pi/Desktop/images/31032025/06/46/image_31032025_06_47_07_31026.jpg
MAIN: 2025-03-31 06:47:08,029 - INFO - duration: 0.6665727599993261
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:47:37,616 - INFO - taking picture
MAIN: 2025-03-31 06:47:37,616 - INFO - we take 35 photos in this while loop
MAIN: 2025-03-31 06:47:37,617 - INFO - /home/pi/Desktop/images/31032025/06/47/image_31032025_06_47_37_29613.jpg
MAIN: 2025-03-31 06:47:37,617 - INFO - duration: 0.6412083850009367
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:48:07,650 - INFO - taking picture
MAIN: 2025-03-31 06:48:07,650 - INFO - we take 36 photos in this while loop
MAIN: 2025-03-31 06:48:07,650 - INFO - /home/pi/Desktop/images/31032025/06/47/image_31032025_06_48_07_29981.jpg
MAIN: 2025-03-31 06:48:07,651 - INFO - duration: 0.6932422909994784
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:48:37,352 - INFO - taking picture
MAIN: 2025-03-31 06:48:37,353 - INFO - we take 37 photos in this while loop
MAIN: 2025-03-31 06:48:37,353 - INFO - /home/pi/Desktop/images/31032025/06/48/image_31032025_06_48_36_29700.jpg
MAIN: 2025-03-31 06:48:37,353 - INFO - duration: 0.6950489060000109
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:49:07,332 - INFO - taking picture
MAIN: 2025-03-31 06:49:07,332 - INFO - we take 38 photos in this while loop
MAIN: 2025-03-31 06:49:07,333 - INFO - /home/pi/Desktop/images/31032025/06/48/image_31032025_06_49_06_29980.jpg
MAIN: 2025-03-31 06:49:07,333 - INFO - duration: 0.6947073960000125
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:49:38,229 - INFO - taking picture
MAIN: 2025-03-31 06:49:38,229 - INFO - we take 39 photos in this while loop
MAIN: 2025-03-31 06:49:38,230 - INFO - /home/pi/Desktop/images/31032025/06/49/image_31032025_06_49_37_30958.jpg
MAIN: 2025-03-31 06:49:38,230 - INFO - duration: 0.6328419790006592
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:50:07,231 - INFO - taking picture
MAIN: 2025-03-31 06:50:07,231 - INFO - we take 40 photos in this while loop
MAIN: 2025-03-31 06:50:07,232 - INFO - /home/pi/Desktop/images/31032025/06/49/image_31032025_06_50_06_28945.jpg
MAIN: 2025-03-31 06:50:07,232 - INFO - duration: 0.6891560940002819
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:50:38,044 - INFO - taking picture
MAIN: 2025-03-31 06:50:38,045 - INFO - we take 41 photos in this while loop
MAIN: 2025-03-31 06:50:38,045 - INFO - /home/pi/Desktop/images/31032025/06/50/image_31032025_06_50_37_30826.jpg
MAIN: 2025-03-31 06:50:38,045 - INFO - duration: 0.6757741140008875
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:51:07,997 - INFO - taking picture
MAIN: 2025-03-31 06:51:07,997 - INFO - we take 42 photos in this while loop
MAIN: 2025-03-31 06:51:07,997 - INFO - /home/pi/Desktop/images/31032025/06/50/image_31032025_06_51_07_29946.jpg
MAIN: 2025-03-31 06:51:07,997 - INFO - duration: 0.6812963020001916
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:51:37,569 - INFO - taking picture
MAIN: 2025-03-31 06:51:37,569 - INFO - we take 43 photos in this while loop
MAIN: 2025-03-31 06:51:37,570 - INFO - /home/pi/Desktop/images/31032025/06/51/image_31032025_06_51_37_29565.jpg
MAIN: 2025-03-31 06:51:37,570 - INFO - duration: 0.6883657289999974
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:52:08,025 - INFO - taking picture
MAIN: 2025-03-31 06:52:08,026 - INFO - we take 44 photos in this while loop
MAIN: 2025-03-31 06:52:08,026 - INFO - /home/pi/Desktop/images/31032025/06/51/image_31032025_06_52_07_30449.jpg
MAIN: 2025-03-31 06:52:08,026 - INFO - duration: 0.6951302079996822
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:52:37,822 - INFO - taking picture
MAIN: 2025-03-31 06:52:37,823 - INFO - we take 45 photos in this while loop
MAIN: 2025-03-31 06:52:37,823 - INFO - /home/pi/Desktop/images/31032025/06/52/image_31032025_06_52_37_29798.jpg
MAIN: 2025-03-31 06:52:37,823 - INFO - duration: 0.69389572900036
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:53:08,193 - INFO - taking picture
MAIN: 2025-03-31 06:53:08,193 - INFO - we take 46 photos in this while loop
MAIN: 2025-03-31 06:53:08,193 - INFO - /home/pi/Desktop/images/31032025/06/52/image_31032025_06_53_07_30381.jpg
MAIN: 2025-03-31 06:53:08,193 - INFO - duration: 0.6821538540007168
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:53:37,933 - INFO - taking picture
MAIN: 2025-03-31 06:53:37,934 - INFO - we take 47 photos in this while loop
MAIN: 2025-03-31 06:53:37,934 - INFO - /home/pi/Desktop/images/31032025/06/53/image_31032025_06_53_37_29741.jpg
MAIN: 2025-03-31 06:53:37,934 - INFO - duration: 0.680826927000453
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:54:07,911 - INFO - taking picture
MAIN: 2025-03-31 06:54:07,912 - INFO - we take 48 photos in this while loop
MAIN: 2025-03-31 06:54:07,912 - INFO - /home/pi/Desktop/images/31032025/06/53/image_31032025_06_54_07_29972.jpg
MAIN: 2025-03-31 06:54:07,912 - INFO - duration: 0.6868046349991346
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:54:37,530 - INFO - taking picture
MAIN: 2025-03-31 06:54:37,530 - INFO - we take 49 photos in this while loop
MAIN: 2025-03-31 06:54:37,530 - INFO - /home/pi/Desktop/images/31032025/06/54/image_31032025_06_54_37_29614.jpg
MAIN: 2025-03-31 06:54:37,531 - INFO - duration: 0.6909278639996046
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:55:07,734 - INFO - taking picture
MAIN: 2025-03-31 06:55:07,735 - INFO - we take 50 photos in this while loop
MAIN: 2025-03-31 06:55:07,735 - INFO - /home/pi/Desktop/images/31032025/06/54/image_31032025_06_55_07_30226.jpg
MAIN: 2025-03-31 06:55:07,735 - INFO - duration: 0.6692280730003404
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:55:37,432 - INFO - taking picture
MAIN: 2025-03-31 06:55:37,433 - INFO - we take 51 photos in this while loop
MAIN: 2025-03-31 06:55:37,433 - INFO - /home/pi/Desktop/images/31032025/06/55/image_31032025_06_55_37_29678.jpg
MAIN: 2025-03-31 06:55:37,433 - INFO - duration: 0.6884317709991592
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:56:07,436 - INFO - taking picture
MAIN: 2025-03-31 06:56:07,436 - INFO - we take 52 photos in this while loop
MAIN: 2025-03-31 06:56:07,436 - INFO - /home/pi/Desktop/images/31032025/06/55/image_31032025_06_56_07_30023.jpg
MAIN: 2025-03-31 06:56:07,436 - INFO - duration: 0.6682742709999729
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:56:38,247 - INFO - taking picture
MAIN: 2025-03-31 06:56:38,247 - INFO - we take 53 photos in this while loop
MAIN: 2025-03-31 06:56:38,247 - INFO - /home/pi/Desktop/images/31032025/06/56/image_31032025_06_56_37_30787.jpg
MAIN: 2025-03-31 06:56:38,248 - INFO - duration: 0.6922527599999739
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:57:08,167 - INFO - taking picture
MAIN: 2025-03-31 06:57:08,167 - INFO - we take 54 photos in this while loop
MAIN: 2025-03-31 06:57:08,168 - INFO - /home/pi/Desktop/images/31032025/06/56/image_31032025_06_57_07_29922.jpg
MAIN: 2025-03-31 06:57:08,168 - INFO - duration: 0.6894963539998571
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:57:37,840 - INFO - taking picture
MAIN: 2025-03-31 06:57:37,841 - INFO - we take 55 photos in this while loop
MAIN: 2025-03-31 06:57:37,841 - INFO - /home/pi/Desktop/images/31032025/06/57/image_31032025_06_57_37_29661.jpg
MAIN: 2025-03-31 06:57:37,841 - INFO - duration: 0.7013269270009914
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:58:08,140 - INFO - taking picture
MAIN: 2025-03-31 06:58:08,140 - INFO - we take 56 photos in this while loop
MAIN: 2025-03-31 06:58:08,140 - INFO - /home/pi/Desktop/images/31032025/06/57/image_31032025_06_58_07_30306.jpg
MAIN: 2025-03-31 06:58:08,141 - INFO - duration: 0.6948110930006806
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:58:37,825 - INFO - taking picture
MAIN: 2025-03-31 06:58:37,826 - INFO - we take 57 photos in this while loop
MAIN: 2025-03-31 06:58:37,826 - INFO - /home/pi/Desktop/images/31032025/06/58/image_31032025_06_58_37_29681.jpg
MAIN: 2025-03-31 06:58:37,826 - INFO - duration: 0.6994156250002561
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Will output and maybe also write in take_pic/pic_log.txt
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:59:07,735 - INFO - taking picture
MAIN: 2025-03-31 06:59:07,736 - INFO - we take 58 photos in this while loop
MAIN: 2025-03-31 06:59:07,736 - INFO - /home/pi/Desktop/images/31032025/06/58/image_31032025_06_59_07_29912.jpg
MAIN: 2025-03-31 06:59:07,736 - INFO - duration: 0.697068802001013
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 06:59:37,645 - INFO - taking picture
MAIN: 2025-03-31 06:59:37,645 - INFO - we take 59 photos in this while loop
MAIN: 2025-03-31 06:59:37,646 - INFO - /home/pi/Desktop/images/31032025/06/59/image_31032025_06_59_37_29964.jpg
MAIN: 2025-03-31 06:59:37,646 - INFO - duration: 0.6424028120000003
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:00:07,046 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:00:08,149 - INFO - taking picture
MAIN: 2025-03-31 07:00:08,149 - INFO - we take 60 photos in this while loop
MAIN: 2025-03-31 07:00:08,150 - INFO - /home/pi/Desktop/images/31032025/06/59/image_31032025_07_00_07_30453.jpg
MAIN: 2025-03-31 07:00:08,150 - INFO - duration: 0.6932025520000025
MAIN: 2025-03-31 07:00:08,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/00'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:00:37,889 - INFO - taking picture
MAIN: 2025-03-31 07:00:37,889 - INFO - we take 61 photos in this while loop
MAIN: 2025-03-31 07:00:37,890 - INFO - /home/pi/Desktop/images/31032025/07/00/image_31032025_07_00_37_29739.jpg
MAIN: 2025-03-31 07:00:37,890 - INFO - duration: 0.693949219001297
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:01:06,393 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:01:08,105 - INFO - taking picture
MAIN: 2025-03-31 07:01:08,106 - INFO - we take 62 photos in this while loop
MAIN: 2025-03-31 07:01:08,106 - INFO - /home/pi/Desktop/images/31032025/07/00/image_31032025_07_01_07_30213.jpg
MAIN: 2025-03-31 07:01:08,106 - INFO - duration: 0.6971444270002394
MAIN: 2025-03-31 07:01:08,107 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/01'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:01:37,762 - INFO - taking picture
MAIN: 2025-03-31 07:01:37,763 - INFO - we take 63 photos in this while loop
MAIN: 2025-03-31 07:01:37,763 - INFO - /home/pi/Desktop/images/31032025/07/01/image_31032025_07_01_37_29665.jpg
MAIN: 2025-03-31 07:01:37,763 - INFO - duration: 0.6886748960005207
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:02:05,871 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:02:07,847 - INFO - taking picture
MAIN: 2025-03-31 07:02:07,847 - INFO - we take 64 photos in this while loop
MAIN: 2025-03-31 07:02:07,847 - INFO - /home/pi/Desktop/images/31032025/07/01/image_31032025_07_02_07_30085.jpg
MAIN: 2025-03-31 07:02:07,848 - INFO - duration: 0.6874792700000398
MAIN: 2025-03-31 07:02:07,848 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/02'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:02:37,461 - INFO - taking picture
MAIN: 2025-03-31 07:02:37,461 - INFO - we take 65 photos in this while loop
MAIN: 2025-03-31 07:02:37,462 - INFO - /home/pi/Desktop/images/31032025/07/02/image_31032025_07_02_37_29647.jpg
MAIN: 2025-03-31 07:02:37,462 - INFO - duration: 0.6544216660004167
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:03:05,703 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:03:07,525 - INFO - taking picture
MAIN: 2025-03-31 07:03:07,525 - INFO - we take 66 photos in this while loop
MAIN: 2025-03-31 07:03:07,525 - INFO - /home/pi/Desktop/images/31032025/07/02/image_31032025_07_03_07_30040.jpg
MAIN: 2025-03-31 07:03:07,526 - INFO - duration: 0.6780533330002072
MAIN: 2025-03-31 07:03:07,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/03'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:03:37,131 - INFO - taking picture
MAIN: 2025-03-31 07:03:37,132 - INFO - we take 67 photos in this while loop
MAIN: 2025-03-31 07:03:37,132 - INFO - /home/pi/Desktop/images/31032025/07/03/image_31032025_07_03_36_29596.jpg
MAIN: 2025-03-31 07:03:37,132 - INFO - duration: 0.6885613020003802
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:04:06,167 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:04:07,062 - INFO - taking picture
MAIN: 2025-03-31 07:04:07,063 - INFO - we take 68 photos in this while loop
MAIN: 2025-03-31 07:04:07,063 - INFO - /home/pi/Desktop/images/31032025/07/03/image_31032025_07_04_06_29985.jpg
MAIN: 2025-03-31 07:04:07,063 - INFO - duration: 0.6334358849999262
MAIN: 2025-03-31 07:04:07,064 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:04:38,088 - INFO - taking picture
MAIN: 2025-03-31 07:04:38,088 - INFO - we take 69 photos in this while loop
MAIN: 2025-03-31 07:04:38,089 - INFO - /home/pi/Desktop/images/31032025/07/04/image_31032025_07_04_37_30963.jpg
MAIN: 2025-03-31 07:04:38,089 - INFO - duration: 0.6953236459994514
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:05:06,679 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:05:08,156 - INFO - taking picture
MAIN: 2025-03-31 07:05:08,157 - INFO - we take 70 photos in this while loop
MAIN: 2025-03-31 07:05:08,157 - INFO - /home/pi/Desktop/images/31032025/07/04/image_31032025_07_05_07_30101.jpg
MAIN: 2025-03-31 07:05:08,157 - INFO - duration: 0.6628152080011205
MAIN: 2025-03-31 07:05:08,158 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:05:37,685 - INFO - taking picture
MAIN: 2025-03-31 07:05:37,686 - INFO - we take 71 photos in this while loop
MAIN: 2025-03-31 07:05:37,686 - INFO - /home/pi/Desktop/images/31032025/07/05/image_31032025_07_05_37_29547.jpg
MAIN: 2025-03-31 07:05:37,686 - INFO - duration: 0.6442974999990838
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:06:06,815 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:06:07,861 - INFO - taking picture
MAIN: 2025-03-31 07:06:07,861 - INFO - we take 72 photos in this while loop
MAIN: 2025-03-31 07:06:07,861 - INFO - /home/pi/Desktop/images/31032025/07/05/image_31032025_07_06_07_30185.jpg
MAIN: 2025-03-31 07:06:07,862 - INFO - duration: 0.634101562000069
MAIN: 2025-03-31 07:06:07,862 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/06'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:06:37,602 - INFO - taking picture
MAIN: 2025-03-31 07:06:37,603 - INFO - we take 73 photos in this while loop
MAIN: 2025-03-31 07:06:37,603 - INFO - /home/pi/Desktop/images/31032025/07/06/image_31032025_07_06_37_29677.jpg
MAIN: 2025-03-31 07:06:37,603 - INFO - duration: 0.6986079170001176
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:07:06,409 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:07:07,546 - INFO - taking picture
MAIN: 2025-03-31 07:07:07,547 - INFO - we take 74 photos in this while loop
MAIN: 2025-03-31 07:07:07,547 - INFO - /home/pi/Desktop/images/31032025/07/06/image_31032025_07_07_07_29970.jpg
MAIN: 2025-03-31 07:07:07,547 - INFO - duration: 0.6724217190003401
MAIN: 2025-03-31 07:07:07,548 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:07:37,134 - INFO - taking picture
MAIN: 2025-03-31 07:07:37,134 - INFO - we take 75 photos in this while loop
MAIN: 2025-03-31 07:07:37,134 - INFO - /home/pi/Desktop/images/31032025/07/07/image_31032025_07_07_36_29587.jpg
MAIN: 2025-03-31 07:07:37,135 - INFO - duration: 0.6724425520005752
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:08:06,628 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:08:07,251 - INFO - taking picture
MAIN: 2025-03-31 07:08:07,251 - INFO - we take 76 photos in this while loop
MAIN: 2025-03-31 07:08:07,252 - INFO - /home/pi/Desktop/images/31032025/07/07/image_31032025_07_08_06_30090.jpg
MAIN: 2025-03-31 07:08:07,252 - INFO - duration: 0.6990163020000182
MAIN: 2025-03-31 07:08:07,252 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:08:38,007 - INFO - taking picture
MAIN: 2025-03-31 07:08:38,008 - INFO - we take 77 photos in this while loop
MAIN: 2025-03-31 07:08:38,008 - INFO - /home/pi/Desktop/images/31032025/07/08/image_31032025_07_08_37_30785.jpg
MAIN: 2025-03-31 07:08:38,008 - INFO - duration: 0.670124427000701
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:09:05,565 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:09:07,756 - INFO - taking picture
MAIN: 2025-03-31 07:09:07,756 - INFO - we take 78 photos in this while loop
MAIN: 2025-03-31 07:09:07,756 - INFO - /home/pi/Desktop/images/31032025/07/08/image_31032025_07_09_07_29731.jpg
MAIN: 2025-03-31 07:09:07,757 - INFO - duration: 0.6864021350011171
MAIN: 2025-03-31 07:09:07,757 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:09:37,314 - INFO - taking picture
MAIN: 2025-03-31 07:09:37,315 - INFO - we take 79 photos in this while loop
MAIN: 2025-03-31 07:09:37,315 - INFO - /home/pi/Desktop/images/31032025/07/09/image_31032025_07_09_36_29562.jpg
MAIN: 2025-03-31 07:09:37,315 - INFO - duration: 0.6826345830013452
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:10:06,761 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:10:07,667 - INFO - taking picture
MAIN: 2025-03-31 07:10:07,668 - INFO - we take 80 photos in this while loop
MAIN: 2025-03-31 07:10:07,668 - INFO - /home/pi/Desktop/images/31032025/07/09/image_31032025_07_10_07_30357.jpg
MAIN: 2025-03-31 07:10:07,669 - INFO - duration: 0.678078540999195
MAIN: 2025-03-31 07:10:07,669 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:10:37,191 - INFO - taking picture
MAIN: 2025-03-31 07:10:37,191 - INFO - we take 81 photos in this while loop
MAIN: 2025-03-31 07:10:37,191 - INFO - /home/pi/Desktop/images/31032025/07/10/image_31032025_07_10_36_29513.jpg
MAIN: 2025-03-31 07:10:37,191 - INFO - duration: 0.6877150519994757
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:11:05,794 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:11:07,031 - INFO - taking picture
MAIN: 2025-03-31 07:11:07,032 - INFO - we take 82 photos in this while loop
MAIN: 2025-03-31 07:11:07,032 - INFO - /home/pi/Desktop/images/31032025/07/10/image_31032025_07_11_06_29858.jpg
MAIN: 2025-03-31 07:11:07,032 - INFO - duration: 0.6695418740000605
MAIN: 2025-03-31 07:11:07,033 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:11:37,701 - INFO - taking picture
MAIN: 2025-03-31 07:11:37,702 - INFO - we take 83 photos in this while loop
MAIN: 2025-03-31 07:11:37,702 - INFO - /home/pi/Desktop/images/31032025/07/11/image_31032025_07_11_37_30705.jpg
MAIN: 2025-03-31 07:11:37,702 - INFO - duration: 0.6342278129995975
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:12:06,449 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:12:07,985 - INFO - taking picture
MAIN: 2025-03-31 07:12:07,985 - INFO - we take 84 photos in this while loop
MAIN: 2025-03-31 07:12:07,986 - INFO - /home/pi/Desktop/images/31032025/07/11/image_31032025_07_12_07_30246.jpg
MAIN: 2025-03-31 07:12:07,986 - INFO - duration: 0.670777603998431
MAIN: 2025-03-31 07:12:07,986 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:12:37,636 - INFO - taking picture
MAIN: 2025-03-31 07:12:37,636 - INFO - we take 85 photos in this while loop
MAIN: 2025-03-31 07:12:37,637 - INFO - /home/pi/Desktop/images/31032025/07/12/image_31032025_07_12_37_29643.jpg
MAIN: 2025-03-31 07:12:37,637 - INFO - duration: 0.678530832999968
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 07:13:06,480 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:13:07,433 - INFO - taking picture
MAIN: 2025-03-31 07:13:07,433 - INFO - we take 86 photos in this while loop
MAIN: 2025-03-31 07:13:07,433 - INFO - /home/pi/Desktop/images/31032025/07/12/image_31032025_07_13_07_29834.jpg
MAIN: 2025-03-31 07:13:07,434 - INFO - duration: 0.64065432300049
MAIN: 2025-03-31 07:13:07,434 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:13:37,140 - INFO - taking picture
MAIN: 2025-03-31 07:13:37,141 - INFO - we take 87 photos in this while loop
MAIN: 2025-03-31 07:13:37,141 - INFO - /home/pi/Desktop/images/31032025/07/13/image_31032025_07_13_36_29653.jpg
MAIN: 2025-03-31 07:13:37,141 - INFO - duration: 0.6951872390000062
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:14:05,892 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:14:07,599 - INFO - taking picture
MAIN: 2025-03-31 07:14:07,600 - INFO - we take 88 photos in this while loop
MAIN: 2025-03-31 07:14:07,600 - INFO - /home/pi/Desktop/images/31032025/07/13/image_31032025_07_14_07_30465.jpg
MAIN: 2025-03-31 07:14:07,600 - INFO - duration: 0.688384478999069
MAIN: 2025-03-31 07:14:07,601 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:14:37,209 - INFO - taking picture
MAIN: 2025-03-31 07:14:37,209 - INFO - we take 89 photos in this while loop
MAIN: 2025-03-31 07:14:37,209 - INFO - /home/pi/Desktop/images/31032025/07/14/image_31032025_07_14_36_29591.jpg
MAIN: 2025-03-31 07:14:37,210 - INFO - duration: 0.706915000000663
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 07:15:06,407 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:15:07,508 - INFO - taking picture
MAIN: 2025-03-31 07:15:07,508 - INFO - we take 90 photos in this while loop
MAIN: 2025-03-31 07:15:07,509 - INFO - /home/pi/Desktop/images/31032025/07/14/image_31032025_07_15_07_30343.jpg
MAIN: 2025-03-31 07:15:07,509 - INFO - duration: 0.6621379690004687
MAIN: 2025-03-31 07:15:07,509 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:15:37,032 - INFO - taking picture
MAIN: 2025-03-31 07:15:37,033 - INFO - we take 91 photos in this while loop
MAIN: 2025-03-31 07:15:37,033 - INFO - /home/pi/Desktop/images/31032025/07/15/image_31032025_07_15_36_29517.jpg
MAIN: 2025-03-31 07:15:37,033 - INFO - duration: 0.6696342710001773
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:16:06,324 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:16:08,211 - INFO - taking picture
MAIN: 2025-03-31 07:16:08,212 - INFO - we take 92 photos in this while loop
MAIN: 2025-03-31 07:16:08,212 - INFO - /home/pi/Desktop/images/31032025/07/15/image_31032025_07_16_07_31164.jpg
MAIN: 2025-03-31 07:16:08,212 - INFO - duration: 0.6842228130008152
MAIN: 2025-03-31 07:16:08,213 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:16:37,750 - INFO - taking picture
MAIN: 2025-03-31 07:16:37,750 - INFO - we take 93 photos in this while loop
MAIN: 2025-03-31 07:16:37,751 - INFO - /home/pi/Desktop/images/31032025/07/16/image_31032025_07_16_37_29546.jpg
MAIN: 2025-03-31 07:16:37,751 - INFO - duration: 0.6760066150000057
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 07:17:06,237 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:17:07,868 - INFO - taking picture
MAIN: 2025-03-31 07:17:07,869 - INFO - we take 94 photos in this while loop
MAIN: 2025-03-31 07:17:07,869 - INFO - /home/pi/Desktop/images/31032025/07/16/image_31032025_07_17_07_30098.jpg
MAIN: 2025-03-31 07:17:07,869 - INFO - duration: 0.695453438000186
MAIN: 2025-03-31 07:17:07,869 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:17:37,513 - INFO - taking picture
MAIN: 2025-03-31 07:17:37,513 - INFO - we take 95 photos in this while loop
MAIN: 2025-03-31 07:17:37,513 - INFO - /home/pi/Desktop/images/31032025/07/17/image_31032025_07_17_37_29648.jpg
MAIN: 2025-03-31 07:17:37,514 - INFO - duration: 0.691448854000555
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:18:06,637 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:18:07,407 - INFO - taking picture
MAIN: 2025-03-31 07:18:07,408 - INFO - we take 96 photos in this while loop
MAIN: 2025-03-31 07:18:07,408 - INFO - /home/pi/Desktop/images/31032025/07/17/image_31032025_07_18_07_29945.jpg
MAIN: 2025-03-31 07:18:07,408 - INFO - duration: 0.6404075520003971
MAIN: 2025-03-31 07:18:07,408 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:18:37,108 - INFO - taking picture
MAIN: 2025-03-31 07:18:37,108 - INFO - we take 97 photos in this while loop
MAIN: 2025-03-31 07:18:37,108 - INFO - /home/pi/Desktop/images/31032025/07/18/image_31032025_07_18_36_29696.jpg
MAIN: 2025-03-31 07:18:37,109 - INFO - duration: 0.6447203129991976
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:19:06,411 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:19:07,153 - INFO - taking picture
MAIN: 2025-03-31 07:19:07,153 - INFO - we take 98 photos in this while loop
MAIN: 2025-03-31 07:19:07,153 - INFO - /home/pi/Desktop/images/31032025/07/18/image_31032025_07_19_06_30011.jpg
MAIN: 2025-03-31 07:19:07,154 - INFO - duration: 0.6780748430010135
MAIN: 2025-03-31 07:19:07,154 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/19'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:19:38,011 - INFO - taking picture
MAIN: 2025-03-31 07:19:38,012 - INFO - we take 99 photos in this while loop
MAIN: 2025-03-31 07:19:38,012 - INFO - /home/pi/Desktop/images/31032025/07/19/image_31032025_07_19_37_30848.jpg
MAIN: 2025-03-31 07:19:38,012 - INFO - duration: 0.6887609379991773
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:20:06,375 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:20:08,039 - INFO - taking picture
MAIN: 2025-03-31 07:20:08,040 - INFO - we take 100 photos in this while loop
MAIN: 2025-03-31 07:20:08,040 - INFO - /home/pi/Desktop/images/31032025/07/19/image_31032025_07_20_07_30051.jpg
MAIN: 2025-03-31 07:20:08,040 - INFO - duration: 0.6649807810008497
MAIN: 2025-03-31 07:20:08,041 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:20:37,714 - INFO - taking picture
MAIN: 2025-03-31 07:20:37,715 - INFO - we take 101 photos in this while loop
MAIN: 2025-03-31 07:20:37,715 - INFO - /home/pi/Desktop/images/31032025/07/20/image_31032025_07_20_37_29689.jpg
MAIN: 2025-03-31 07:20:37,715 - INFO - duration: 0.6499347910012148
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:21:05,782 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:21:07,755 - INFO - taking picture
MAIN: 2025-03-31 07:21:07,755 - INFO - we take 102 photos in this while loop
MAIN: 2025-03-31 07:21:07,756 - INFO - /home/pi/Desktop/images/31032025/07/20/image_31032025_07_21_07_30004.jpg
MAIN: 2025-03-31 07:21:07,756 - INFO - duration: 0.6860258329998032
MAIN: 2025-03-31 07:21:07,756 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/21'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:21:37,446 - INFO - taking picture
MAIN: 2025-03-31 07:21:37,447 - INFO - we take 103 photos in this while loop
MAIN: 2025-03-31 07:21:37,447 - INFO - /home/pi/Desktop/images/31032025/07/21/image_31032025_07_21_37_29677.jpg
MAIN: 2025-03-31 07:21:37,447 - INFO - duration: 0.6997572399995988
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:22:06,358 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:22:07,497 - INFO - taking picture
MAIN: 2025-03-31 07:22:07,498 - INFO - we take 104 photos in this while loop
MAIN: 2025-03-31 07:22:07,498 - INFO - /home/pi/Desktop/images/31032025/07/21/image_31032025_07_22_07_30087.jpg
MAIN: 2025-03-31 07:22:07,498 - INFO - duration: 0.6626419270014594
MAIN: 2025-03-31 07:22:07,499 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/22'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:22:37,155 - INFO - taking picture
MAIN: 2025-03-31 07:22:37,156 - INFO - we take 105 photos in this while loop
MAIN: 2025-03-31 07:22:37,156 - INFO - /home/pi/Desktop/images/31032025/07/22/image_31032025_07_22_36_29621.jpg
MAIN: 2025-03-31 07:22:37,156 - INFO - duration: 0.6989981770002487
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:23:05,991 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:23:07,185 - INFO - taking picture
MAIN: 2025-03-31 07:23:07,186 - INFO - we take 106 photos in this while loop
MAIN: 2025-03-31 07:23:07,186 - INFO - /home/pi/Desktop/images/31032025/07/22/image_31032025_07_23_06_30065.jpg
MAIN: 2025-03-31 07:23:07,186 - INFO - duration: 0.6626798960005544
MAIN: 2025-03-31 07:23:07,186 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/23'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:23:38,108 - INFO - taking picture
MAIN: 2025-03-31 07:23:38,108 - INFO - we take 107 photos in this while loop
MAIN: 2025-03-31 07:23:38,109 - INFO - /home/pi/Desktop/images/31032025/07/23/image_31032025_07_23_37_30882.jpg
MAIN: 2025-03-31 07:23:38,109 - INFO - duration: 0.7028639589989325
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:24:06,543 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:24:07,097 - INFO - taking picture
MAIN: 2025-03-31 07:24:07,098 - INFO - we take 108 photos in this while loop
MAIN: 2025-03-31 07:24:07,098 - INFO - /home/pi/Desktop/images/31032025/07/23/image_31032025_07_24_06_29047.jpg
MAIN: 2025-03-31 07:24:07,098 - INFO - duration: 0.6442227079987788
MAIN: 2025-03-31 07:24:07,099 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:24:38,023 - INFO - taking picture
MAIN: 2025-03-31 07:24:38,024 - INFO - we take 109 photos in this while loop
MAIN: 2025-03-31 07:24:38,024 - INFO - /home/pi/Desktop/images/31032025/07/24/image_31032025_07_24_37_30897.jpg
MAIN: 2025-03-31 07:24:38,024 - INFO - duration: 0.6724134369997046
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:25:07,001 - INFO - taking picture
MAIN: 2025-03-31 07:25:07,002 - INFO - we take 110 photos in this while loop
MAIN: 2025-03-31 07:25:07,002 - INFO - /home/pi/Desktop/images/31032025/07/24/image_31032025_07_25_06_28979.jpg
MAIN: 2025-03-31 07:25:07,003 - INFO - duration: 0.6709221870005422
MAIN: 2025-03-31 07:25:07,003 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/25'
MAIN: 2025-03-31 07:25:07,131 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:25:37,890 - INFO - taking picture
MAIN: 2025-03-31 07:25:37,891 - INFO - we take 111 photos in this while loop
MAIN: 2025-03-31 07:25:37,891 - INFO - /home/pi/Desktop/images/31032025/07/25/image_31032025_07_25_37_30869.jpg
MAIN: 2025-03-31 07:25:37,891 - INFO - duration: 0.6901559899997665
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:26:06,002 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:26:07,891 - INFO - taking picture
MAIN: 2025-03-31 07:26:07,891 - INFO - we take 112 photos in this while loop
MAIN: 2025-03-31 07:26:07,892 - INFO - /home/pi/Desktop/images/31032025/07/25/image_31032025_07_26_07_30027.jpg
MAIN: 2025-03-31 07:26:07,892 - INFO - duration: 0.6627185409997765
MAIN: 2025-03-31 07:26:07,892 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:26:37,611 - INFO - taking picture
MAIN: 2025-03-31 07:26:37,612 - INFO - we take 113 photos in this while loop
MAIN: 2025-03-31 07:26:37,612 - INFO - /home/pi/Desktop/images/31032025/07/26/image_31032025_07_26_37_29732.jpg
MAIN: 2025-03-31 07:26:37,612 - INFO - duration: 0.6507873440004914
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:27:06,095 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:27:07,763 - INFO - taking picture
MAIN: 2025-03-31 07:27:07,764 - INFO - we take 114 photos in this while loop
MAIN: 2025-03-31 07:27:07,764 - INFO - /home/pi/Desktop/images/31032025/07/26/image_31032025_07_27_07_30115.jpg
MAIN: 2025-03-31 07:27:07,764 - INFO - duration: 0.6873117699997238
MAIN: 2025-03-31 07:27:07,764 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/27'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:27:37,390 - INFO - taking picture
MAIN: 2025-03-31 07:27:37,391 - INFO - we take 115 photos in this while loop
MAIN: 2025-03-31 07:27:37,391 - INFO - /home/pi/Desktop/images/31032025/07/27/image_31032025_07_27_37_29630.jpg
MAIN: 2025-03-31 07:27:37,391 - INFO - duration: 0.6844127610002033
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:28:06,754 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:28:07,387 - INFO - taking picture
MAIN: 2025-03-31 07:28:07,388 - INFO - we take 116 photos in this while loop
MAIN: 2025-03-31 07:28:07,388 - INFO - /home/pi/Desktop/images/31032025/07/27/image_31032025_07_28_07_29986.jpg
MAIN: 2025-03-31 07:28:07,388 - INFO - duration: 0.6954293750004581
MAIN: 2025-03-31 07:28:07,389 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:28:37,104 - INFO - taking picture
MAIN: 2025-03-31 07:28:37,105 - INFO - we take 117 photos in this while loop
MAIN: 2025-03-31 07:28:37,105 - INFO - /home/pi/Desktop/images/31032025/07/28/image_31032025_07_28_36_29714.jpg
MAIN: 2025-03-31 07:28:37,105 - INFO - duration: 0.697712238999884
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:29:05,764 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:29:07,189 - INFO - taking picture
MAIN: 2025-03-31 07:29:07,190 - INFO - we take 118 photos in this while loop
MAIN: 2025-03-31 07:29:07,190 - INFO - /home/pi/Desktop/images/31032025/07/28/image_31032025_07_29_06_30089.jpg
MAIN: 2025-03-31 07:29:07,190 - INFO - duration: 0.6926584370012279
MAIN: 2025-03-31 07:29:07,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:29:38,144 - INFO - taking picture
MAIN: 2025-03-31 07:29:38,145 - INFO - we take 119 photos in this while loop
MAIN: 2025-03-31 07:29:38,145 - INFO - /home/pi/Desktop/images/31032025/07/29/image_31032025_07_29_37_30933.jpg
MAIN: 2025-03-31 07:29:38,145 - INFO - duration: 0.7140804160007974
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:30:06,782 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
MAIN: 2025-03-31 07:30:07,196 - INFO - taking picture
MAIN: 2025-03-31 07:30:07,197 - INFO - we take 120 photos in this while loop
MAIN: 2025-03-31 07:30:07,197 - INFO - /home/pi/Desktop/images/31032025/07/29/image_31032025_07_30_06_29062.jpg
MAIN: 2025-03-31 07:30:07,197 - INFO - duration: 0.7037864579997404
MAIN: 2025-03-31 07:30:07,197 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/30'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:30:38,146 - INFO - taking picture
MAIN: 2025-03-31 07:30:38,146 - INFO - we take 121 photos in this while loop
MAIN: 2025-03-31 07:30:38,147 - INFO - /home/pi/Desktop/images/31032025/07/30/image_31032025_07_30_37_30940.jpg
MAIN: 2025-03-31 07:30:38,147 - INFO - duration: 0.713452342999517
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:31:06,251 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:31:08,247 - INFO - taking picture
MAIN: 2025-03-31 07:31:08,248 - INFO - we take 122 photos in this while loop
MAIN: 2025-03-31 07:31:08,248 - INFO - /home/pi/Desktop/images/31032025/07/30/image_31032025_07_31_07_30119.jpg
MAIN: 2025-03-31 07:31:08,248 - INFO - duration: 0.69563651000135
MAIN: 2025-03-31 07:31:08,249 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/31'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:31:37,963 - INFO - taking picture
MAIN: 2025-03-31 07:31:37,964 - INFO - we take 123 photos in this while loop
MAIN: 2025-03-31 07:31:37,964 - INFO - /home/pi/Desktop/images/31032025/07/31/image_31032025_07_31_37_29719.jpg
MAIN: 2025-03-31 07:31:37,964 - INFO - duration: 0.6922815110010561
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:32:07,030 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:32:08,262 - INFO - taking picture
MAIN: 2025-03-31 07:32:08,263 - INFO - we take 124 photos in this while loop
MAIN: 2025-03-31 07:32:08,263 - INFO - /home/pi/Desktop/images/31032025/07/31/image_31032025_07_32_07_30314.jpg
MAIN: 2025-03-31 07:32:08,263 - INFO - duration: 0.6768026560002909
MAIN: 2025-03-31 07:32:08,263 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/32'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:32:37,925 - INFO - taking picture
MAIN: 2025-03-31 07:32:37,925 - INFO - we take 125 photos in this while loop
MAIN: 2025-03-31 07:32:37,926 - INFO - /home/pi/Desktop/images/31032025/07/32/image_31032025_07_32_37_29660.jpg
MAIN: 2025-03-31 07:32:37,926 - INFO - duration: 0.6788771350002207
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:33:05,762 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:33:07,842 - INFO - taking picture
MAIN: 2025-03-31 07:33:07,843 - INFO - we take 126 photos in this while loop
MAIN: 2025-03-31 07:33:07,843 - INFO - /home/pi/Desktop/images/31032025/07/32/image_31032025_07_33_07_29906.jpg
MAIN: 2025-03-31 07:33:07,843 - INFO - duration: 0.6899503650001861
MAIN: 2025-03-31 07:33:07,844 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/33'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:33:37,544 - INFO - taking picture
MAIN: 2025-03-31 07:33:37,544 - INFO - we take 127 photos in this while loop
MAIN: 2025-03-31 07:33:37,544 - INFO - /home/pi/Desktop/images/31032025/07/33/image_31032025_07_33_37_29712.jpg
MAIN: 2025-03-31 07:33:37,545 - INFO - duration: 0.6786629690013797
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:34:06,233 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:34:08,016 - INFO - taking picture
MAIN: 2025-03-31 07:34:08,017 - INFO - we take 128 photos in this while loop
MAIN: 2025-03-31 07:34:08,017 - INFO - /home/pi/Desktop/images/31032025/07/33/image_31032025_07_34_07_30460.jpg
MAIN: 2025-03-31 07:34:08,017 - INFO - duration: 0.6911906240002281
MAIN: 2025-03-31 07:34:08,018 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:34:37,694 - INFO - taking picture
MAIN: 2025-03-31 07:34:37,694 - INFO - we take 129 photos in this while loop
MAIN: 2025-03-31 07:34:37,695 - INFO - /home/pi/Desktop/images/31032025/07/34/image_31032025_07_34_37_29679.jpg
MAIN: 2025-03-31 07:34:37,695 - INFO - duration: 0.68971380199946
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:35:06,661 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:35:07,783 - INFO - taking picture
MAIN: 2025-03-31 07:35:07,784 - INFO - we take 130 photos in this while loop
MAIN: 2025-03-31 07:35:07,784 - INFO - /home/pi/Desktop/images/31032025/07/34/image_31032025_07_35_07_30096.jpg
MAIN: 2025-03-31 07:35:07,784 - INFO - duration: 0.6826988539996819
MAIN: 2025-03-31 07:35:07,785 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:35:37,467 - INFO - taking picture
MAIN: 2025-03-31 07:35:37,468 - INFO - we take 131 photos in this while loop
MAIN: 2025-03-31 07:35:37,468 - INFO - /home/pi/Desktop/images/31032025/07/35/image_31032025_07_35_37_29692.jpg
MAIN: 2025-03-31 07:35:37,468 - INFO - duration: 0.6741028119995462
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:36:05,873 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:36:07,706 - INFO - taking picture
MAIN: 2025-03-31 07:36:07,706 - INFO - we take 132 photos in this while loop
MAIN: 2025-03-31 07:36:07,707 - INFO - /home/pi/Desktop/images/31032025/07/35/image_31032025_07_36_07_30230.jpg
MAIN: 2025-03-31 07:36:07,707 - INFO - duration: 0.6821577599985176
MAIN: 2025-03-31 07:36:07,707 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:36:37,225 - INFO - taking picture
MAIN: 2025-03-31 07:36:37,226 - INFO - we take 133 photos in this while loop
MAIN: 2025-03-31 07:36:37,226 - INFO - /home/pi/Desktop/images/31032025/07/36/image_31032025_07_36_36_29509.jpg
MAIN: 2025-03-31 07:36:37,226 - INFO - duration: 0.6926580719991762
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 07:37:05,700 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:37:07,197 - INFO - taking picture
MAIN: 2025-03-31 07:37:07,198 - INFO - we take 134 photos in this while loop
MAIN: 2025-03-31 07:37:07,198 - INFO - /home/pi/Desktop/images/31032025/07/36/image_31032025_07_37_06_29967.jpg
MAIN: 2025-03-31 07:37:07,198 - INFO - duration: 0.6971485409994784
MAIN: 2025-03-31 07:37:07,199 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:37:38,148 - INFO - taking picture
MAIN: 2025-03-31 07:37:38,149 - INFO - we take 135 photos in this while loop
MAIN: 2025-03-31 07:37:38,149 - INFO - /home/pi/Desktop/images/31032025/07/37/image_31032025_07_37_37_30934.jpg
MAIN: 2025-03-31 07:37:38,149 - INFO - duration: 0.7131885419985338
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:38:06,169 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:38:08,186 - INFO - taking picture
MAIN: 2025-03-31 07:38:08,187 - INFO - we take 136 photos in this while loop
MAIN: 2025-03-31 07:38:08,187 - INFO - /home/pi/Desktop/images/31032025/07/37/image_31032025_07_38_07_30057.jpg
MAIN: 2025-03-31 07:38:08,187 - INFO - duration: 0.6937851040001988
MAIN: 2025-03-31 07:38:08,187 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:38:37,762 - INFO - taking picture
MAIN: 2025-03-31 07:38:37,766 - INFO - we take 137 photos in this while loop
MAIN: 2025-03-31 07:38:37,766 - INFO - /home/pi/Desktop/images/31032025/07/38/image_31032025_07_38_37_29630.jpg
MAIN: 2025-03-31 07:38:37,767 - INFO - duration: 0.6432840620000206
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:39:06,231 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:39:07,919 - INFO - taking picture
MAIN: 2025-03-31 07:39:07,920 - INFO - we take 138 photos in this while loop
MAIN: 2025-03-31 07:39:07,920 - INFO - /home/pi/Desktop/images/31032025/07/38/image_31032025_07_39_07_30103.jpg
MAIN: 2025-03-31 07:39:07,920 - INFO - duration: 0.6935820309990959
MAIN: 2025-03-31 07:39:07,921 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:39:37,427 - INFO - taking picture
MAIN: 2025-03-31 07:39:37,427 - INFO - we take 139 photos in this while loop
MAIN: 2025-03-31 07:39:37,427 - INFO - /home/pi/Desktop/images/31032025/07/39/image_31032025_07_39_37_29503.jpg
MAIN: 2025-03-31 07:39:37,428 - INFO - duration: 0.6974813019987778
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:40:06,233 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:40:07,597 - INFO - taking picture
MAIN: 2025-03-31 07:40:07,598 - INFO - we take 140 photos in this while loop
MAIN: 2025-03-31 07:40:07,598 - INFO - /home/pi/Desktop/images/31032025/07/39/image_31032025_07_40_07_30189.jpg
MAIN: 2025-03-31 07:40:07,598 - INFO - duration: 0.6782449999991513
MAIN: 2025-03-31 07:40:07,599 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/40'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:40:37,387 - INFO - taking picture
MAIN: 2025-03-31 07:40:37,387 - INFO - we take 141 photos in this while loop
MAIN: 2025-03-31 07:40:37,387 - INFO - /home/pi/Desktop/images/31032025/07/40/image_31032025_07_40_37_29766.jpg
MAIN: 2025-03-31 07:40:37,388 - INFO - duration: 0.7016230720000749
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:41:05,615 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:41:07,580 - INFO - taking picture
MAIN: 2025-03-31 07:41:07,581 - INFO - we take 142 photos in this while loop
MAIN: 2025-03-31 07:41:07,581 - INFO - /home/pi/Desktop/images/31032025/07/40/image_31032025_07_41_07_30206.jpg
MAIN: 2025-03-31 07:41:07,581 - INFO - duration: 0.6888021869999648
MAIN: 2025-03-31 07:41:07,582 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:41:37,146 - INFO - taking picture
MAIN: 2025-03-31 07:41:37,146 - INFO - we take 143 photos in this while loop
MAIN: 2025-03-31 07:41:37,146 - INFO - /home/pi/Desktop/images/31032025/07/41/image_31032025_07_41_36_29558.jpg
MAIN: 2025-03-31 07:41:37,147 - INFO - duration: 0.6959503119996953
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:42:06,291 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:42:07,244 - INFO - taking picture
MAIN: 2025-03-31 07:42:07,244 - INFO - we take 144 photos in this while loop
MAIN: 2025-03-31 07:42:07,245 - INFO - /home/pi/Desktop/images/31032025/07/41/image_31032025_07_42_06_30153.jpg
MAIN: 2025-03-31 07:42:07,245 - INFO - duration: 0.640382239000246
MAIN: 2025-03-31 07:42:07,245 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:42:38,139 - INFO - taking picture
MAIN: 2025-03-31 07:42:38,139 - INFO - we take 145 photos in this while loop
MAIN: 2025-03-31 07:42:38,140 - INFO - /home/pi/Desktop/images/31032025/07/42/image_31032025_07_42_37_30839.jpg
MAIN: 2025-03-31 07:42:38,140 - INFO - duration: 0.6962035940014175
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 07:43:06,009 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:43:08,129 - INFO - taking picture
MAIN: 2025-03-31 07:43:08,130 - INFO - we take 146 photos in this while loop
MAIN: 2025-03-31 07:43:08,130 - INFO - /home/pi/Desktop/images/31032025/07/42/image_31032025_07_43_07_29992.jpg
MAIN: 2025-03-31 07:43:08,130 - INFO - duration: 0.6943033850002394
MAIN: 2025-03-31 07:43:08,130 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:43:37,884 - INFO - taking picture
MAIN: 2025-03-31 07:43:37,885 - INFO - we take 147 photos in this while loop
MAIN: 2025-03-31 07:43:37,885 - INFO - /home/pi/Desktop/images/31032025/07/43/image_31032025_07_43_37_29747.jpg
MAIN: 2025-03-31 07:43:37,886 - INFO - duration: 0.702484531000664
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:44:06,747 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:44:08,282 - INFO - taking picture
MAIN: 2025-03-31 07:44:08,283 - INFO - we take 148 photos in this while loop
MAIN: 2025-03-31 07:44:08,283 - INFO - /home/pi/Desktop/images/31032025/07/43/image_31032025_07_44_07_30400.jpg
MAIN: 2025-03-31 07:44:08,283 - INFO - duration: 0.6993134900003497
MAIN: 2025-03-31 07:44:08,283 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:44:37,761 - INFO - taking picture
MAIN: 2025-03-31 07:44:37,762 - INFO - we take 149 photos in this while loop
MAIN: 2025-03-31 07:44:37,762 - INFO - /home/pi/Desktop/images/31032025/07/44/image_31032025_07_44_37_29536.jpg
MAIN: 2025-03-31 07:44:37,762 - INFO - duration: 0.6416134379996947
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:45:06,197 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:45:07,744 - INFO - taking picture
MAIN: 2025-03-31 07:45:07,745 - INFO - we take 150 photos in this while loop
MAIN: 2025-03-31 07:45:07,745 - INFO - /home/pi/Desktop/images/31032025/07/44/image_31032025_07_45_07_29983.jpg
MAIN: 2025-03-31 07:45:07,745 - INFO - duration: 0.6416842700000416
MAIN: 2025-03-31 07:45:07,746 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:45:37,342 - INFO - taking picture
MAIN: 2025-03-31 07:45:37,343 - INFO - we take 151 photos in this while loop
MAIN: 2025-03-31 07:45:37,343 - INFO - /home/pi/Desktop/images/31032025/07/45/image_31032025_07_45_36_29548.jpg
MAIN: 2025-03-31 07:45:37,343 - INFO - duration: 0.6907135940000444
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 07:46:06,336 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:46:07,583 - INFO - taking picture
MAIN: 2025-03-31 07:46:07,584 - INFO - we take 152 photos in this while loop
MAIN: 2025-03-31 07:46:07,584 - INFO - /home/pi/Desktop/images/31032025/07/45/image_31032025_07_46_07_30255.jpg
MAIN: 2025-03-31 07:46:07,584 - INFO - duration: 0.6764117179991445
MAIN: 2025-03-31 07:46:07,584 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:46:37,162 - INFO - taking picture
MAIN: 2025-03-31 07:46:37,162 - INFO - we take 153 photos in this while loop
MAIN: 2025-03-31 07:46:37,162 - INFO - /home/pi/Desktop/images/31032025/07/46/image_31032025_07_46_36_29564.jpg
MAIN: 2025-03-31 07:46:37,163 - INFO - duration: 0.6902146350003022
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:47:05,856 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:47:08,239 - INFO - taking picture
MAIN: 2025-03-31 07:47:08,240 - INFO - we take 154 photos in this while loop
MAIN: 2025-03-31 07:47:08,240 - INFO - /home/pi/Desktop/images/31032025/07/46/image_31032025_07_47_07_31085.jpg
MAIN: 2025-03-31 07:47:08,240 - INFO - duration: 0.6828476039991074
MAIN: 2025-03-31 07:47:08,241 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:47:37,823 - INFO - taking picture
MAIN: 2025-03-31 07:47:37,824 - INFO - we take 155 photos in this while loop
MAIN: 2025-03-31 07:47:37,824 - INFO - /home/pi/Desktop/images/31032025/07/47/image_31032025_07_47_37_29627.jpg
MAIN: 2025-03-31 07:47:37,824 - INFO - duration: 0.6394724990004761
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:48:06,194 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:48:08,113 - INFO - taking picture
MAIN: 2025-03-31 07:48:08,114 - INFO - we take 156 photos in this while loop
MAIN: 2025-03-31 07:48:08,114 - INFO - /home/pi/Desktop/images/31032025/07/47/image_31032025_07_48_07_30254.jpg
MAIN: 2025-03-31 07:48:08,114 - INFO - duration: 0.674249375000727
MAIN: 2025-03-31 07:48:08,114 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:48:37,658 - INFO - taking picture
MAIN: 2025-03-31 07:48:37,659 - INFO - we take 157 photos in this while loop
MAIN: 2025-03-31 07:48:37,659 - INFO - /home/pi/Desktop/images/31032025/07/48/image_31032025_07_48_37_29549.jpg
MAIN: 2025-03-31 07:48:37,659 - INFO - duration: 0.6696547399988049
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:49:06,398 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:49:07,752 - INFO - taking picture
MAIN: 2025-03-31 07:49:07,753 - INFO - we take 158 photos in this while loop
MAIN: 2025-03-31 07:49:07,753 - INFO - /home/pi/Desktop/images/31032025/07/48/image_31032025_07_49_07_30084.jpg
MAIN: 2025-03-31 07:49:07,753 - INFO - duration: 0.6788141659999383
MAIN: 2025-03-31 07:49:07,754 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:49:37,450 - INFO - taking picture
MAIN: 2025-03-31 07:49:37,451 - INFO - we take 159 photos in this while loop
MAIN: 2025-03-31 07:49:37,451 - INFO - /home/pi/Desktop/images/31032025/07/49/image_31032025_07_49_37_29683.jpg
MAIN: 2025-03-31 07:49:37,451 - INFO - duration: 0.6928400519991555
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:50:06,651 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:50:07,630 - INFO - taking picture
MAIN: 2025-03-31 07:50:07,630 - INFO - we take 160 photos in this while loop
MAIN: 2025-03-31 07:50:07,631 - INFO - /home/pi/Desktop/images/31032025/07/49/image_31032025_07_50_07_30190.jpg
MAIN: 2025-03-31 07:50:07,632 - INFO - duration: 0.6833904680006526
MAIN: 2025-03-31 07:50:07,633 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:50:37,490 - INFO - taking picture
MAIN: 2025-03-31 07:50:37,490 - INFO - we take 161 photos in this while loop
MAIN: 2025-03-31 07:50:37,491 - INFO - /home/pi/Desktop/images/31032025/07/50/image_31032025_07_50_37_29853.jpg
MAIN: 2025-03-31 07:50:37,491 - INFO - duration: 0.6891724469987821
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:51:05,664 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:51:07,507 - INFO - taking picture
MAIN: 2025-03-31 07:51:07,507 - INFO - we take 162 photos in this while loop
MAIN: 2025-03-31 07:51:07,507 - INFO - /home/pi/Desktop/images/31032025/07/50/image_31032025_07_51_07_30071.jpg
MAIN: 2025-03-31 07:51:07,508 - INFO - duration: 0.6343435939998017
MAIN: 2025-03-31 07:51:07,508 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:51:37,018 - INFO - taking picture
MAIN: 2025-03-31 07:51:37,018 - INFO - we take 163 photos in this while loop
MAIN: 2025-03-31 07:51:37,018 - INFO - /home/pi/Desktop/images/31032025/07/51/image_31032025_07_51_36_29509.jpg
MAIN: 2025-03-31 07:51:37,019 - INFO - duration: 0.6361831770009303
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:52:06,212 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:52:07,012 - INFO - taking picture
MAIN: 2025-03-31 07:52:07,013 - INFO - we take 164 photos in this while loop
MAIN: 2025-03-31 07:52:07,013 - INFO - /home/pi/Desktop/images/31032025/07/51/image_31032025_07_52_06_29964.jpg
MAIN: 2025-03-31 07:52:07,013 - INFO - duration: 0.6660763540003245
MAIN: 2025-03-31 07:52:07,013 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:52:38,104 - INFO - taking picture
MAIN: 2025-03-31 07:52:38,105 - INFO - we take 165 photos in this while loop
MAIN: 2025-03-31 07:52:38,105 - INFO - /home/pi/Desktop/images/31032025/07/52/image_31032025_07_52_37_31053.jpg
MAIN: 2025-03-31 07:52:38,105 - INFO - duration: 0.7055108330005169
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:53:05,942 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:53:08,063 - INFO - taking picture
MAIN: 2025-03-31 07:53:08,064 - INFO - we take 166 photos in this while loop
MAIN: 2025-03-31 07:53:08,064 - INFO - /home/pi/Desktop/images/31032025/07/52/image_31032025_07_53_07_29971.jpg
MAIN: 2025-03-31 07:53:08,064 - INFO - duration: 0.6932361449999007
MAIN: 2025-03-31 07:53:08,065 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:53:37,757 - INFO - taking picture
MAIN: 2025-03-31 07:53:37,758 - INFO - we take 167 photos in this while loop
MAIN: 2025-03-31 07:53:37,758 - INFO - /home/pi/Desktop/images/31032025/07/53/image_31032025_07_53_37_29731.jpg
MAIN: 2025-03-31 07:53:37,758 - INFO - duration: 0.6563211980010237
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:54:06,669 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:54:08,121 - INFO - taking picture
MAIN: 2025-03-31 07:54:08,122 - INFO - we take 168 photos in this while loop
MAIN: 2025-03-31 07:54:08,122 - INFO - /home/pi/Desktop/images/31032025/07/53/image_31032025_07_54_07_30336.jpg
MAIN: 2025-03-31 07:54:08,122 - INFO - duration: 0.6835839579998719
MAIN: 2025-03-31 07:54:08,123 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:54:37,968 - INFO - taking picture
MAIN: 2025-03-31 07:54:37,969 - INFO - we take 169 photos in this while loop
MAIN: 2025-03-31 07:54:37,969 - INFO - /home/pi/Desktop/images/31032025/07/54/image_31032025_07_54_37_29823.jpg
MAIN: 2025-03-31 07:54:37,970 - INFO - duration: 0.7078280199984874
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:55:07,002 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:55:08,107 - INFO - taking picture
MAIN: 2025-03-31 07:55:08,107 - INFO - we take 170 photos in this while loop
MAIN: 2025-03-31 07:55:08,107 - INFO - /home/pi/Desktop/images/31032025/07/54/image_31032025_07_55_07_30175.jpg
MAIN: 2025-03-31 07:55:08,108 - INFO - duration: 0.670744269998977
MAIN: 2025-03-31 07:55:08,108 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:55:37,889 - INFO - taking picture
MAIN: 2025-03-31 07:55:37,890 - INFO - we take 171 photos in this while loop
MAIN: 2025-03-31 07:55:37,890 - INFO - /home/pi/Desktop/images/31032025/07/55/image_31032025_07_55_37_29754.jpg
MAIN: 2025-03-31 07:55:37,890 - INFO - duration: 0.6984496349996334
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:56:05,764 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:56:07,889 - INFO - taking picture
MAIN: 2025-03-31 07:56:07,889 - INFO - we take 172 photos in this while loop
MAIN: 2025-03-31 07:56:07,889 - INFO - /home/pi/Desktop/images/31032025/07/55/image_31032025_07_56_07_29999.jpg
MAIN: 2025-03-31 07:56:07,890 - INFO - duration: 0.6983128119991306
MAIN: 2025-03-31 07:56:07,890 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:56:37,578 - INFO - taking picture
MAIN: 2025-03-31 07:56:37,579 - INFO - we take 173 photos in this while loop
MAIN: 2025-03-31 07:56:37,579 - INFO - /home/pi/Desktop/images/31032025/07/56/image_31032025_07_56_37_29726.jpg
MAIN: 2025-03-31 07:56:37,579 - INFO - duration: 0.6618059369993716
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:57:05,712 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:57:07,643 - INFO - taking picture
MAIN: 2025-03-31 07:57:07,644 - INFO - we take 174 photos in this while loop
MAIN: 2025-03-31 07:57:07,644 - INFO - /home/pi/Desktop/images/31032025/07/56/image_31032025_07_57_07_30050.jpg
MAIN: 2025-03-31 07:57:07,644 - INFO - duration: 0.6759436970005481
MAIN: 2025-03-31 07:57:07,644 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:57:37,143 - INFO - taking picture
MAIN: 2025-03-31 07:57:37,143 - INFO - we take 175 photos in this while loop
MAIN: 2025-03-31 07:57:37,144 - INFO - /home/pi/Desktop/images/31032025/07/57/image_31032025_07_57_36_29503.jpg
MAIN: 2025-03-31 07:57:37,144 - INFO - duration: 0.6721146869986114
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 07:58:06,128 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:58:07,040 - INFO - taking picture
MAIN: 2025-03-31 07:58:07,041 - INFO - we take 176 photos in this while loop
MAIN: 2025-03-31 07:58:07,041 - INFO - /home/pi/Desktop/images/31032025/07/57/image_31032025_07_58_06_29890.jpg
MAIN: 2025-03-31 07:58:07,041 - INFO - duration: 0.6795198949985206
MAIN: 2025-03-31 07:58:07,042 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/58'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:58:38,091 - INFO - taking picture
MAIN: 2025-03-31 07:58:38,091 - INFO - we take 177 photos in this while loop
MAIN: 2025-03-31 07:58:38,092 - INFO - /home/pi/Desktop/images/31032025/07/58/image_31032025_07_58_37_31013.jpg
MAIN: 2025-03-31 07:58:38,092 - INFO - duration: 0.7159863020006014
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 07:59:06,139 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:59:08,184 - INFO - taking picture
MAIN: 2025-03-31 07:59:08,184 - INFO - we take 178 photos in this while loop
MAIN: 2025-03-31 07:59:08,184 - INFO - /home/pi/Desktop/images/31032025/07/58/image_31032025_07_59_07_30113.jpg
MAIN: 2025-03-31 07:59:08,185 - INFO - duration: 0.6955637490009394
MAIN: 2025-03-31 07:59:08,185 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/07/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 07:59:37,970 - INFO - taking picture
MAIN: 2025-03-31 07:59:37,971 - INFO - we take 179 photos in this while loop
MAIN: 2025-03-31 07:59:37,971 - INFO - /home/pi/Desktop/images/31032025/07/59/image_31032025_07_59_37_29805.jpg
MAIN: 2025-03-31 07:59:37,971 - INFO - duration: 0.676319844000318
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:00:06,965 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
MAIN: 2025-03-31 08:00:07,090 - INFO - taking picture
MAIN: 2025-03-31 08:00:07,092 - INFO - we take 180 photos in this while loop
MAIN: 2025-03-31 08:00:07,092 - INFO - /home/pi/Desktop/images/31032025/07/59/image_31032025_08_00_06_29047.jpg
MAIN: 2025-03-31 08:00:07,093 - INFO - duration: 0.7510899469998549
MAIN: 2025-03-31 08:00:07,094 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:00:37,933 - INFO - taking picture
MAIN: 2025-03-31 08:00:37,933 - INFO - we take 181 photos in this while loop
MAIN: 2025-03-31 08:00:37,934 - INFO - /home/pi/Desktop/images/31032025/08/00/image_31032025_08_00_37_30924.jpg
MAIN: 2025-03-31 08:00:37,934 - INFO - duration: 0.667923332999635
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:01:06,152 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:01:07,835 - INFO - taking picture
MAIN: 2025-03-31 08:01:07,835 - INFO - we take 182 photos in this while loop
MAIN: 2025-03-31 08:01:07,836 - INFO - /home/pi/Desktop/images/31032025/08/00/image_31032025_08_01_07_29881.jpg
MAIN: 2025-03-31 08:01:07,836 - INFO - duration: 0.6879703119993792
MAIN: 2025-03-31 08:01:07,836 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:01:37,492 - INFO - taking picture
MAIN: 2025-03-31 08:01:37,493 - INFO - we take 183 photos in this while loop
MAIN: 2025-03-31 08:01:37,493 - INFO - /home/pi/Desktop/images/31032025/08/01/image_31032025_08_01_37_29644.jpg
MAIN: 2025-03-31 08:01:37,493 - INFO - duration: 0.7008334889997059
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:02:06,676 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:02:07,408 - INFO - taking picture
MAIN: 2025-03-31 08:02:07,408 - INFO - we take 184 photos in this while loop
MAIN: 2025-03-31 08:02:07,408 - INFO - /home/pi/Desktop/images/31032025/08/01/image_31032025_08_02_07_29968.jpg
MAIN: 2025-03-31 08:02:07,409 - INFO - duration: 0.6476457289991231
MAIN: 2025-03-31 08:02:07,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:02:38,203 - INFO - taking picture
MAIN: 2025-03-31 08:02:38,203 - INFO - we take 185 photos in this while loop
MAIN: 2025-03-31 08:02:38,203 - INFO - /home/pi/Desktop/images/31032025/08/02/image_31032025_08_02_37_30766.jpg
MAIN: 2025-03-31 08:02:38,204 - INFO - duration: 0.675736354000037
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:03:05,555 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:03:08,026 - INFO - taking picture
MAIN: 2025-03-31 08:03:08,027 - INFO - we take 186 photos in this while loop
MAIN: 2025-03-31 08:03:08,027 - INFO - /home/pi/Desktop/images/31032025/08/02/image_31032025_08_03_07_29812.jpg
MAIN: 2025-03-31 08:03:08,027 - INFO - duration: 0.6867776559993217
MAIN: 2025-03-31 08:03:08,028 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:03:37,703 - INFO - taking picture
MAIN: 2025-03-31 08:03:37,704 - INFO - we take 187 photos in this while loop
MAIN: 2025-03-31 08:03:37,704 - INFO - /home/pi/Desktop/images/31032025/08/03/image_31032025_08_03_37_29666.jpg
MAIN: 2025-03-31 08:03:37,704 - INFO - duration: 0.6973028640004486
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:04:06,286 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:04:07,774 - INFO - taking picture
MAIN: 2025-03-31 08:04:07,775 - INFO - we take 188 photos in this while loop
MAIN: 2025-03-31 08:04:07,775 - INFO - /home/pi/Desktop/images/31032025/08/03/image_31032025_08_04_07_30102.jpg
MAIN: 2025-03-31 08:04:07,775 - INFO - duration: 0.6650617180002882
MAIN: 2025-03-31 08:04:07,775 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/04'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:04:37,435 - INFO - taking picture
MAIN: 2025-03-31 08:04:37,435 - INFO - we take 189 photos in this while loop
MAIN: 2025-03-31 08:04:37,435 - INFO - /home/pi/Desktop/images/31032025/08/04/image_31032025_08_04_37_29645.jpg
MAIN: 2025-03-31 08:04:37,436 - INFO - duration: 0.6800486459997046
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:05:06,328 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:05:07,726 - INFO - taking picture
MAIN: 2025-03-31 08:05:07,726 - INFO - we take 190 photos in this while loop
MAIN: 2025-03-31 08:05:07,727 - INFO - /home/pi/Desktop/images/31032025/08/04/image_31032025_08_05_07_30296.jpg
MAIN: 2025-03-31 08:05:07,728 - INFO - duration: 0.6753982290010754
MAIN: 2025-03-31 08:05:07,729 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/05'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:05:37,400 - INFO - taking picture
MAIN: 2025-03-31 08:05:37,401 - INFO - we take 191 photos in this while loop
MAIN: 2025-03-31 08:05:37,401 - INFO - /home/pi/Desktop/images/31032025/08/05/image_31032025_08_05_37_29663.jpg
MAIN: 2025-03-31 08:05:37,401 - INFO - duration: 0.6856808329994237
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:06:06,214 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:06:07,378 - INFO - taking picture
MAIN: 2025-03-31 08:06:07,379 - INFO - we take 192 photos in this while loop
MAIN: 2025-03-31 08:06:07,379 - INFO - /home/pi/Desktop/images/31032025/08/05/image_31032025_08_06_06_29992.jpg
MAIN: 2025-03-31 08:06:07,379 - INFO - duration: 0.6717753649991209
MAIN: 2025-03-31 08:06:07,380 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/06'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:06:38,206 - INFO - taking picture
MAIN: 2025-03-31 08:06:38,207 - INFO - we take 193 photos in this while loop
MAIN: 2025-03-31 08:06:38,207 - INFO - /home/pi/Desktop/images/31032025/08/06/image_31032025_08_06_37_30806.jpg
MAIN: 2025-03-31 08:06:38,207 - INFO - duration: 0.6933298439998907
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:07:06,384 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:07:08,210 - INFO - taking picture
MAIN: 2025-03-31 08:07:08,211 - INFO - we take 194 photos in this while loop
MAIN: 2025-03-31 08:07:08,211 - INFO - /home/pi/Desktop/images/31032025/08/06/image_31032025_08_07_07_30003.jpg
MAIN: 2025-03-31 08:07:08,211 - INFO - duration: 0.6940523959983693
MAIN: 2025-03-31 08:07:08,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:07:37,942 - INFO - taking picture
MAIN: 2025-03-31 08:07:37,943 - INFO - we take 195 photos in this while loop
MAIN: 2025-03-31 08:07:37,943 - INFO - /home/pi/Desktop/images/31032025/08/07/image_31032025_08_07_37_29744.jpg
MAIN: 2025-03-31 08:07:37,943 - INFO - duration: 0.6820526039991819
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:08:05,900 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:08:08,025 - INFO - taking picture
MAIN: 2025-03-31 08:08:08,026 - INFO - we take 196 photos in this while loop
MAIN: 2025-03-31 08:08:08,026 - INFO - /home/pi/Desktop/images/31032025/08/07/image_31032025_08_08_07_30062.jpg
MAIN: 2025-03-31 08:08:08,026 - INFO - duration: 0.7029278640002303
MAIN: 2025-03-31 08:08:08,027 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:08:37,711 - INFO - taking picture
MAIN: 2025-03-31 08:08:37,711 - INFO - we take 197 photos in this while loop
MAIN: 2025-03-31 08:08:37,712 - INFO - /home/pi/Desktop/images/31032025/08/08/image_31032025_08_08_37_29741.jpg
MAIN: 2025-03-31 08:08:37,712 - INFO - duration: 0.6471487500002695
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:09:05,490 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:09:07,636 - INFO - taking picture
MAIN: 2025-03-31 08:09:07,637 - INFO - we take 198 photos in this while loop
MAIN: 2025-03-31 08:09:07,637 - INFO - /home/pi/Desktop/images/31032025/08/08/image_31032025_08_09_07_29897.jpg
MAIN: 2025-03-31 08:09:07,637 - INFO - duration: 0.6754370830003609
MAIN: 2025-03-31 08:09:07,638 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:09:37,280 - INFO - taking picture
MAIN: 2025-03-31 08:09:37,280 - INFO - we take 199 photos in this while loop
MAIN: 2025-03-31 08:09:37,280 - INFO - /home/pi/Desktop/images/31032025/08/09/image_31032025_08_09_36_29637.jpg
MAIN: 2025-03-31 08:09:37,281 - INFO - duration: 0.6814540099985607
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:10:06,869 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:10:07,694 - INFO - taking picture
MAIN: 2025-03-31 08:10:07,695 - INFO - we take 200 photos in this while loop
MAIN: 2025-03-31 08:10:07,695 - INFO - /home/pi/Desktop/images/31032025/08/09/image_31032025_08_10_07_30416.jpg
MAIN: 2025-03-31 08:10:07,695 - INFO - duration: 0.6795367180002359
MAIN: 2025-03-31 08:10:07,696 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:10:37,215 - INFO - taking picture
MAIN: 2025-03-31 08:10:37,215 - INFO - we take 201 photos in this while loop
MAIN: 2025-03-31 08:10:37,215 - INFO - /home/pi/Desktop/images/31032025/08/10/image_31032025_08_10_36_29510.jpg
MAIN: 2025-03-31 08:10:37,216 - INFO - duration: 0.6895495830012806
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:11:06,126 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:11:07,102 - INFO - taking picture
MAIN: 2025-03-31 08:11:07,102 - INFO - we take 202 photos in this while loop
MAIN: 2025-03-31 08:11:07,103 - INFO - /home/pi/Desktop/images/31032025/08/10/image_31032025_08_11_06_29941.jpg
MAIN: 2025-03-31 08:11:07,103 - INFO - duration: 0.6350927080002293
MAIN: 2025-03-31 08:11:07,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:11:37,997 - INFO - taking picture
MAIN: 2025-03-31 08:11:37,998 - INFO - we take 203 photos in this while loop
MAIN: 2025-03-31 08:11:37,998 - INFO - /home/pi/Desktop/images/31032025/08/11/image_31032025_08_11_37_30858.jpg
MAIN: 2025-03-31 08:11:37,998 - INFO - duration: 0.6724127599991334
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:12:06,585 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:12:08,262 - INFO - taking picture
MAIN: 2025-03-31 08:12:08,262 - INFO - we take 204 photos in this while loop
MAIN: 2025-03-31 08:12:08,262 - INFO - /home/pi/Desktop/images/31032025/08/11/image_31032025_08_12_07_30245.jpg
MAIN: 2025-03-31 08:12:08,262 - INFO - duration: 0.6914496350000263
MAIN: 2025-03-31 08:12:08,263 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:12:37,896 - INFO - taking picture
MAIN: 2025-03-31 08:12:37,896 - INFO - we take 205 photos in this while loop
MAIN: 2025-03-31 08:12:37,896 - INFO - /home/pi/Desktop/images/31032025/08/12/image_31032025_08_12_37_29648.jpg
MAIN: 2025-03-31 08:12:37,897 - INFO - duration: 0.6774898429994209
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:13:06,444 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:13:07,952 - INFO - taking picture
MAIN: 2025-03-31 08:13:07,952 - INFO - we take 206 photos in this while loop
MAIN: 2025-03-31 08:13:07,953 - INFO - /home/pi/Desktop/images/31032025/08/12/image_31032025_08_13_07_30045.jpg
MAIN: 2025-03-31 08:13:07,953 - INFO - duration: 0.6884590629997547
MAIN: 2025-03-31 08:13:07,953 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:13:37,779 - INFO - taking picture
MAIN: 2025-03-31 08:13:37,780 - INFO - we take 207 photos in this while loop
MAIN: 2025-03-31 08:13:37,780 - INFO - /home/pi/Desktop/images/31032025/08/13/image_31032025_08_13_37_29842.jpg
MAIN: 2025-03-31 08:13:37,780 - INFO - duration: 0.6728955210001004
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:14:05,863 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:14:07,780 - INFO - taking picture
MAIN: 2025-03-31 08:14:07,781 - INFO - we take 208 photos in this while loop
MAIN: 2025-03-31 08:14:07,781 - INFO - /home/pi/Desktop/images/31032025/08/13/image_31032025_08_14_07_29981.jpg
MAIN: 2025-03-31 08:14:07,781 - INFO - duration: 0.6929171350002434
MAIN: 2025-03-31 08:14:07,782 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/14'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:14:37,613 - INFO - taking picture
MAIN: 2025-03-31 08:14:37,614 - INFO - we take 209 photos in this while loop
MAIN: 2025-03-31 08:14:37,614 - INFO - /home/pi/Desktop/images/31032025/08/14/image_31032025_08_14_37_29812.jpg
MAIN: 2025-03-31 08:14:37,614 - INFO - duration: 0.7134017709995533
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:15:05,832 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:15:07,845 - INFO - taking picture
MAIN: 2025-03-31 08:15:07,846 - INFO - we take 210 photos in this while loop
MAIN: 2025-03-31 08:15:07,846 - INFO - /home/pi/Desktop/images/31032025/08/14/image_31032025_08_15_07_30296.jpg
MAIN: 2025-03-31 08:15:07,846 - INFO - duration: 0.6497327600009157
MAIN: 2025-03-31 08:15:07,847 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:15:37,502 - INFO - taking picture
MAIN: 2025-03-31 08:15:37,503 - INFO - we take 211 photos in this while loop
MAIN: 2025-03-31 08:15:37,503 - INFO - /home/pi/Desktop/images/31032025/08/15/image_31032025_08_15_37_29614.jpg
MAIN: 2025-03-31 08:15:37,503 - INFO - duration: 0.6924887500008481
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:16:06,244 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:16:07,758 - INFO - taking picture
MAIN: 2025-03-31 08:16:07,759 - INFO - we take 212 photos in this while loop
MAIN: 2025-03-31 08:16:07,759 - INFO - /home/pi/Desktop/images/31032025/08/15/image_31032025_08_16_07_30264.jpg
MAIN: 2025-03-31 08:16:07,759 - INFO - duration: 0.6838796350002667
MAIN: 2025-03-31 08:16:07,760 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:16:37,449 - INFO - taking picture
MAIN: 2025-03-31 08:16:37,450 - INFO - we take 213 photos in this while loop
MAIN: 2025-03-31 08:16:37,450 - INFO - /home/pi/Desktop/images/31032025/08/16/image_31032025_08_16_37_29677.jpg
MAIN: 2025-03-31 08:16:37,450 - INFO - duration: 0.6975997910012666
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:17:06,195 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:17:07,396 - INFO - taking picture
MAIN: 2025-03-31 08:17:07,397 - INFO - we take 214 photos in this while loop
MAIN: 2025-03-31 08:17:07,397 - INFO - /home/pi/Desktop/images/31032025/08/16/image_31032025_08_17_06_29970.jpg
MAIN: 2025-03-31 08:17:07,397 - INFO - duration: 0.673949583000649
MAIN: 2025-03-31 08:17:07,398 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:17:38,236 - INFO - taking picture
MAIN: 2025-03-31 08:17:38,237 - INFO - we take 215 photos in this while loop
MAIN: 2025-03-31 08:17:38,237 - INFO - /home/pi/Desktop/images/31032025/08/17/image_31032025_08_17_37_30826.jpg
MAIN: 2025-03-31 08:17:38,237 - INFO - duration: 0.6872615629999927
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:18:07,022 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
MAIN: 2025-03-31 08:18:07,154 - INFO - taking picture
MAIN: 2025-03-31 08:18:07,155 - INFO - we take 216 photos in this while loop
MAIN: 2025-03-31 08:18:07,155 - INFO - /home/pi/Desktop/images/31032025/08/17/image_31032025_08_18_06_28947.jpg
MAIN: 2025-03-31 08:18:07,156 - INFO - duration: 0.6577967190005438
MAIN: 2025-03-31 08:18:07,156 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:18:38,155 - INFO - taking picture
MAIN: 2025-03-31 08:18:38,156 - INFO - we take 217 photos in this while loop
MAIN: 2025-03-31 08:18:38,156 - INFO - /home/pi/Desktop/images/31032025/08/18/image_31032025_08_18_37_30960.jpg
MAIN: 2025-03-31 08:18:38,156 - INFO - duration: 0.6980070829995384
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:19:05,536 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:19:07,949 - INFO - taking picture
MAIN: 2025-03-31 08:19:07,950 - INFO - we take 218 photos in this while loop
MAIN: 2025-03-31 08:19:07,950 - INFO - /home/pi/Desktop/images/31032025/08/18/image_31032025_08_19_07_29800.jpg
MAIN: 2025-03-31 08:19:07,950 - INFO - duration: 0.6917060409996338
MAIN: 2025-03-31 08:19:07,951 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:19:37,546 - INFO - taking picture
MAIN: 2025-03-31 08:19:37,547 - INFO - we take 219 photos in this while loop
MAIN: 2025-03-31 08:19:37,547 - INFO - /home/pi/Desktop/images/31032025/08/19/image_31032025_08_19_37_29597.jpg
MAIN: 2025-03-31 08:19:37,547 - INFO - duration: 0.6911287500006438
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:20:06,610 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:20:07,940 - INFO - taking picture
MAIN: 2025-03-31 08:20:07,941 - INFO - we take 220 photos in this while loop
MAIN: 2025-03-31 08:20:07,942 - INFO - /home/pi/Desktop/images/31032025/08/19/image_31032025_08_20_07_30394.jpg
MAIN: 2025-03-31 08:20:07,942 - INFO - duration: 0.6918532810013858
MAIN: 2025-03-31 08:20:07,942 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=22 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:20:37,650 - INFO - taking picture
MAIN: 2025-03-31 08:20:37,651 - INFO - we take 221 photos in this while loop
MAIN: 2025-03-31 08:20:37,651 - INFO - /home/pi/Desktop/images/31032025/08/20/image_31032025_08_20_37_29751.jpg
MAIN: 2025-03-31 08:20:37,651 - INFO - duration: 0.6496927080006571
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:21:05,991 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=115 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:21:07,821 - INFO - taking picture
MAIN: 2025-03-31 08:21:07,822 - INFO - we take 222 photos in this while loop
MAIN: 2025-03-31 08:21:07,822 - INFO - /home/pi/Desktop/images/31032025/08/20/image_31032025_08_21_07_30147.jpg
MAIN: 2025-03-31 08:21:07,822 - INFO - duration: 0.6731803120001132
MAIN: 2025-03-31 08:21:07,822 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=32 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:21:37,607 - INFO - taking picture
MAIN: 2025-03-31 08:21:37,608 - INFO - we take 223 photos in this while loop
MAIN: 2025-03-31 08:21:37,608 - INFO - /home/pi/Desktop/images/31032025/08/21/image_31032025_08_21_37_29763.jpg
MAIN: 2025-03-31 08:21:37,608 - INFO - duration: 0.6961938019994705
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:22:06,602 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=32 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:22:07,739 - INFO - taking picture
MAIN: 2025-03-31 08:22:07,740 - INFO - we take 224 photos in this while loop
MAIN: 2025-03-31 08:22:07,740 - INFO - /home/pi/Desktop/images/31032025/08/21/image_31032025_08_22_07_30154.jpg
MAIN: 2025-03-31 08:22:07,740 - INFO - duration: 0.6737226039986126
MAIN: 2025-03-31 08:22:07,740 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=100 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:22:37,522 - INFO - taking picture
MAIN: 2025-03-31 08:22:37,522 - INFO - we take 225 photos in this while loop
MAIN: 2025-03-31 08:22:37,522 - INFO - /home/pi/Desktop/images/31032025/08/22/image_31032025_08_22_37_29759.jpg
MAIN: 2025-03-31 08:22:37,523 - INFO - duration: 0.6972229689999949
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:23:05,555 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=100 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:23:07,581 - INFO - taking picture
MAIN: 2025-03-31 08:23:07,582 - INFO - we take 226 photos in this while loop
MAIN: 2025-03-31 08:23:07,582 - INFO - /home/pi/Desktop/images/31032025/08/22/image_31032025_08_23_07_30066.jpg
MAIN: 2025-03-31 08:23:07,582 - INFO - duration: 0.6902881770001841
MAIN: 2025-03-31 08:23:07,583 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=100 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:23:37,210 - INFO - taking picture
MAIN: 2025-03-31 08:23:37,211 - INFO - we take 227 photos in this while loop
MAIN: 2025-03-31 08:23:37,211 - INFO - /home/pi/Desktop/images/31032025/08/23/image_31032025_08_23_36_29616.jpg
MAIN: 2025-03-31 08:23:37,211 - INFO - duration: 0.7029953650016978
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:24:06,240 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:24:07,064 - INFO - taking picture
MAIN: 2025-03-31 08:24:07,064 - INFO - we take 228 photos in this while loop
MAIN: 2025-03-31 08:24:07,064 - INFO - /home/pi/Desktop/images/31032025/08/23/image_31032025_08_24_06_29908.jpg
MAIN: 2025-03-31 08:24:07,065 - INFO - duration: 0.6480523430000176
MAIN: 2025-03-31 08:24:07,065 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/24'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:24:38,106 - INFO - taking picture
MAIN: 2025-03-31 08:24:38,107 - INFO - we take 229 photos in this while loop
MAIN: 2025-03-31 08:24:38,107 - INFO - /home/pi/Desktop/images/31032025/08/24/image_31032025_08_24_37_30978.jpg
MAIN: 2025-03-31 08:24:38,107 - INFO - duration: 0.7128219789992727
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:25:06,522 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:25:08,182 - INFO - taking picture
MAIN: 2025-03-31 08:25:08,183 - INFO - we take 230 photos in this while loop
MAIN: 2025-03-31 08:25:08,183 - INFO - /home/pi/Desktop/images/31032025/08/24/image_31032025_08_25_07_30124.jpg
MAIN: 2025-03-31 08:25:08,184 - INFO - duration: 0.6650095309996686
MAIN: 2025-03-31 08:25:08,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/25'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:25:37,979 - INFO - taking picture
MAIN: 2025-03-31 08:25:37,980 - INFO - we take 231 photos in this while loop
MAIN: 2025-03-31 08:25:37,980 - INFO - /home/pi/Desktop/images/31032025/08/25/image_31032025_08_25_37_29754.jpg
MAIN: 2025-03-31 08:25:37,980 - INFO - duration: 0.7066504169997643
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:26:06,363 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:26:08,261 - INFO - taking picture
MAIN: 2025-03-31 08:26:08,262 - INFO - we take 232 photos in this while loop
MAIN: 2025-03-31 08:26:08,262 - INFO - /home/pi/Desktop/images/31032025/08/25/image_31032025_08_26_07_30294.jpg
MAIN: 2025-03-31 08:26:08,262 - INFO - duration: 0.6935755209997296
MAIN: 2025-03-31 08:26:08,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/26'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:26:37,715 - INFO - taking picture
MAIN: 2025-03-31 08:26:37,716 - INFO - we take 233 photos in this while loop
MAIN: 2025-03-31 08:26:37,716 - INFO - /home/pi/Desktop/images/31032025/08/26/image_31032025_08_26_37_29511.jpg
MAIN: 2025-03-31 08:26:37,716 - INFO - duration: 0.6361061459992925
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:27:06,282 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:27:07,979 - INFO - taking picture
MAIN: 2025-03-31 08:27:07,979 - INFO - we take 234 photos in this while loop
MAIN: 2025-03-31 08:27:07,979 - INFO - /home/pi/Desktop/images/31032025/08/26/image_31032025_08_27_07_30203.jpg
MAIN: 2025-03-31 08:27:07,980 - INFO - duration: 0.6964403120000497
MAIN: 2025-03-31 08:27:07,980 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:27:37,690 - INFO - taking picture
MAIN: 2025-03-31 08:27:37,690 - INFO - we take 235 photos in this while loop
MAIN: 2025-03-31 08:27:37,691 - INFO - /home/pi/Desktop/images/31032025/08/27/image_31032025_08_27_37_29704.jpg
MAIN: 2025-03-31 08:27:37,691 - INFO - duration: 0.7028583329993126
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:28:05,793 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:28:07,797 - INFO - taking picture
MAIN: 2025-03-31 08:28:07,798 - INFO - we take 236 photos in this while loop
MAIN: 2025-03-31 08:28:07,798 - INFO - /home/pi/Desktop/images/31032025/08/27/image_31032025_08_28_07_30112.jpg
MAIN: 2025-03-31 08:28:07,798 - INFO - duration: 0.6980379159995209
MAIN: 2025-03-31 08:28:07,799 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:28:37,628 - INFO - taking picture
MAIN: 2025-03-31 08:28:37,629 - INFO - we take 237 photos in this while loop
MAIN: 2025-03-31 08:28:37,629 - INFO - /home/pi/Desktop/images/31032025/08/28/image_31032025_08_28_37_29819.jpg
MAIN: 2025-03-31 08:28:37,629 - INFO - duration: 0.7087498439996125
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:29:05,761 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:29:07,622 - INFO - taking picture
MAIN: 2025-03-31 08:29:07,623 - INFO - we take 238 photos in this while loop
MAIN: 2025-03-31 08:29:07,623 - INFO - /home/pi/Desktop/images/31032025/08/28/image_31032025_08_29_07_30009.jpg
MAIN: 2025-03-31 08:29:07,623 - INFO - duration: 0.6938329160002468
MAIN: 2025-03-31 08:29:07,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:29:37,242 - INFO - taking picture
MAIN: 2025-03-31 08:29:37,242 - INFO - we take 239 photos in this while loop
MAIN: 2025-03-31 08:29:37,242 - INFO - /home/pi/Desktop/images/31032025/08/29/image_31032025_08_29_36_29636.jpg
MAIN: 2025-03-31 08:29:37,243 - INFO - duration: 0.676613437000924
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:30:06,535 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:30:07,324 - INFO - taking picture
MAIN: 2025-03-31 08:30:07,325 - INFO - we take 240 photos in this while loop
MAIN: 2025-03-31 08:30:07,325 - INFO - /home/pi/Desktop/images/31032025/08/29/image_31032025_08_30_06_30071.jpg
MAIN: 2025-03-31 08:30:07,325 - INFO - duration: 0.687566197999331
MAIN: 2025-03-31 08:30:07,325 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:30:49,324 - INFO - taking picture
MAIN: 2025-03-31 08:30:49,325 - INFO - we take 241 photos in this while loop
MAIN: 2025-03-31 08:30:49,325 - INFO - /home/pi/Desktop/images/31032025/08/30/image_31032025_08_30_48_30942.jpg
MAIN: 2025-03-31 08:30:49,325 - INFO - duration: 0.6546205199992983
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:31:17,177 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:31:19,300 - INFO - taking picture
MAIN: 2025-03-31 08:31:19,300 - INFO - we take 242 photos in this while loop
MAIN: 2025-03-31 08:31:19,301 - INFO - /home/pi/Desktop/images/31032025/08/30/image_31032025_08_31_18_29943.jpg
MAIN: 2025-03-31 08:31:19,301 - INFO - duration: 0.6865732930000377
MAIN: 2025-03-31 08:31:19,301 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:31:48,871 - INFO - taking picture
MAIN: 2025-03-31 08:31:48,872 - INFO - we take 243 photos in this while loop
MAIN: 2025-03-31 08:31:48,872 - INFO - /home/pi/Desktop/images/31032025/08/31/image_31032025_08_31_48_29588.jpg
MAIN: 2025-03-31 08:31:48,872 - INFO - duration: 0.6698906329984311
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:32:06,872 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:32:18,998 - INFO - taking picture
MAIN: 2025-03-31 08:32:18,998 - INFO - we take 244 photos in this while loop
MAIN: 2025-03-31 08:32:18,998 - INFO - /home/pi/Desktop/images/31032025/08/31/image_31032025_08_32_18_30109.jpg
MAIN: 2025-03-31 08:32:18,998 - INFO - duration: 0.6866657949994988
MAIN: 2025-03-31 08:32:18,999 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/32'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:32:48,574 - INFO - taking picture
MAIN: 2025-03-31 08:32:48,575 - INFO - we take 245 photos in this while loop
MAIN: 2025-03-31 08:32:48,575 - INFO - /home/pi/Desktop/images/31032025/08/32/image_31032025_08_32_48_29597.jpg
MAIN: 2025-03-31 08:32:48,575 - INFO - duration: 0.6664948870002263
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:33:06,570 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:33:18,839 - INFO - taking picture
MAIN: 2025-03-31 08:33:18,839 - INFO - we take 246 photos in this while loop
MAIN: 2025-03-31 08:33:18,839 - INFO - /home/pi/Desktop/images/31032025/08/32/image_31032025_08_33_18_30256.jpg
MAIN: 2025-03-31 08:33:18,840 - INFO - duration: 0.6743174570001429
MAIN: 2025-03-31 08:33:18,840 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/33'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:33:48,709 - INFO - taking picture
MAIN: 2025-03-31 08:33:48,709 - INFO - we take 247 photos in this while loop
MAIN: 2025-03-31 08:33:48,709 - INFO - /home/pi/Desktop/images/31032025/08/33/image_31032025_08_33_48_29841.jpg
MAIN: 2025-03-31 08:33:48,710 - INFO - duration: 0.7030806710008619
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:34:06,014 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:34:19,058 - INFO - taking picture
MAIN: 2025-03-31 08:34:19,059 - INFO - we take 248 photos in this while loop
MAIN: 2025-03-31 08:34:19,059 - INFO - /home/pi/Desktop/images/31032025/08/33/image_31032025_08_34_18_30353.jpg
MAIN: 2025-03-31 08:34:19,059 - INFO - duration: 0.6996092709996447
MAIN: 2025-03-31 08:34:19,060 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/34'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:34:48,876 - INFO - taking picture
MAIN: 2025-03-31 08:34:48,877 - INFO - we take 249 photos in this while loop
MAIN: 2025-03-31 08:34:48,877 - INFO - /home/pi/Desktop/images/31032025/08/34/image_31032025_08_34_48_29816.jpg
MAIN: 2025-03-31 08:34:48,877 - INFO - duration: 0.7008233849992394
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:35:06,641 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:35:19,124 - INFO - taking picture
MAIN: 2025-03-31 08:35:19,125 - INFO - we take 250 photos in this while loop
MAIN: 2025-03-31 08:35:19,125 - INFO - /home/pi/Desktop/images/31032025/08/34/image_31032025_08_35_18_30272.jpg
MAIN: 2025-03-31 08:35:19,125 - INFO - duration: 0.676398108000285
MAIN: 2025-03-31 08:35:19,126 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:35:48,807 - INFO - taking picture
MAIN: 2025-03-31 08:35:48,808 - INFO - we take 251 photos in this while loop
MAIN: 2025-03-31 08:35:48,808 - INFO - /home/pi/Desktop/images/31032025/08/35/image_31032025_08_35_48_29672.jpg
MAIN: 2025-03-31 08:35:48,808 - INFO - duration: 0.6863992289981979
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:36:06,423 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:36:18,842 - INFO - taking picture
MAIN: 2025-03-31 08:36:18,843 - INFO - we take 252 photos in this while loop
MAIN: 2025-03-31 08:36:18,843 - INFO - /home/pi/Desktop/images/31032025/08/35/image_31032025_08_36_18_30028.jpg
MAIN: 2025-03-31 08:36:18,843 - INFO - duration: 0.6929001810003683
MAIN: 2025-03-31 08:36:18,843 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/36'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:36:48,579 - INFO - taking picture
MAIN: 2025-03-31 08:36:48,579 - INFO - we take 253 photos in this while loop
MAIN: 2025-03-31 08:36:48,579 - INFO - /home/pi/Desktop/images/31032025/08/36/image_31032025_08_36_48_29737.jpg
MAIN: 2025-03-31 08:36:48,580 - INFO - duration: 0.6917001900001196
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:37:06,140 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:37:18,651 - INFO - taking picture
MAIN: 2025-03-31 08:37:18,652 - INFO - we take 254 photos in this while loop
MAIN: 2025-03-31 08:37:18,652 - INFO - /home/pi/Desktop/images/31032025/08/36/image_31032025_08_37_18_30066.jpg
MAIN: 2025-03-31 08:37:18,652 - INFO - duration: 0.6973103189993708
MAIN: 2025-03-31 08:37:18,652 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:37:48,316 - INFO - taking picture
MAIN: 2025-03-31 08:37:48,317 - INFO - we take 255 photos in this while loop
MAIN: 2025-03-31 08:37:48,317 - INFO - /home/pi/Desktop/images/31032025/08/37/image_31032025_08_37_47_29664.jpg
MAIN: 2025-03-31 08:37:48,317 - INFO - duration: 0.6974934850004502
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:38:07,114 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:38:18,581 - INFO - taking picture
MAIN: 2025-03-31 08:38:18,582 - INFO - we take 256 photos in this while loop
MAIN: 2025-03-31 08:38:18,582 - INFO - /home/pi/Desktop/images/31032025/08/37/image_31032025_08_38_18_30290.jpg
MAIN: 2025-03-31 08:38:18,582 - INFO - duration: 0.6721880019995297
MAIN: 2025-03-31 08:38:18,583 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/38'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:38:48,412 - INFO - taking picture
MAIN: 2025-03-31 08:38:48,412 - INFO - we take 257 photos in this while loop
MAIN: 2025-03-31 08:38:48,412 - INFO - /home/pi/Desktop/images/31032025/08/38/image_31032025_08_38_48_29866.jpg
MAIN: 2025-03-31 08:38:48,413 - INFO - duration: 0.6358202339997661
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:39:06,004 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:39:18,272 - INFO - taking picture
MAIN: 2025-03-31 08:39:18,273 - INFO - we take 258 photos in this while loop
MAIN: 2025-03-31 08:39:18,273 - INFO - /home/pi/Desktop/images/31032025/08/38/image_31032025_08_39_17_29856.jpg
MAIN: 2025-03-31 08:39:18,273 - INFO - duration: 0.6392297500005952
MAIN: 2025-03-31 08:39:18,273 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:39:49,168 - INFO - taking picture
MAIN: 2025-03-31 08:39:49,169 - INFO - we take 259 photos in this while loop
MAIN: 2025-03-31 08:39:49,169 - INFO - /home/pi/Desktop/images/31032025/08/39/image_31032025_08_39_48_30840.jpg
MAIN: 2025-03-31 08:39:49,169 - INFO - duration: 0.6948485350003466
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:40:06,681 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:40:18,205 - INFO - taking picture
MAIN: 2025-03-31 08:40:18,206 - INFO - we take 260 photos in this while loop
MAIN: 2025-03-31 08:40:18,206 - INFO - /home/pi/Desktop/images/31032025/08/39/image_31032025_08_40_17_29041.jpg
MAIN: 2025-03-31 08:40:18,206 - INFO - duration: 0.6900985890006268
MAIN: 2025-03-31 08:40:18,207 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:40:49,084 - INFO - taking picture
MAIN: 2025-03-31 08:40:49,085 - INFO - we take 261 photos in this while loop
MAIN: 2025-03-31 08:40:49,085 - INFO - /home/pi/Desktop/images/31032025/08/40/image_31032025_08_40_48_30877.jpg
MAIN: 2025-03-31 08:40:49,085 - INFO - duration: 0.6918681869992724
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:41:05,834 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:41:19,246 - INFO - taking picture
MAIN: 2025-03-31 08:41:19,247 - INFO - we take 262 photos in this while loop
MAIN: 2025-03-31 08:41:19,247 - INFO - /home/pi/Desktop/images/31032025/08/40/image_31032025_08_41_18_30164.jpg
MAIN: 2025-03-31 08:41:19,247 - INFO - duration: 0.6892858640003396
MAIN: 2025-03-31 08:41:19,247 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/41'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:41:49,005 - INFO - taking picture
MAIN: 2025-03-31 08:41:49,005 - INFO - we take 263 photos in this while loop
MAIN: 2025-03-31 08:41:49,005 - INFO - /home/pi/Desktop/images/31032025/08/41/image_31032025_08_41_48_29780.jpg
MAIN: 2025-03-31 08:41:49,006 - INFO - duration: 0.6671143180010404
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:42:06,429 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:42:18,131 - INFO - taking picture
MAIN: 2025-03-31 08:42:18,132 - INFO - we take 264 photos in this while loop
MAIN: 2025-03-31 08:42:18,132 - INFO - /home/pi/Desktop/images/31032025/08/41/image_31032025_08_42_17_29119.jpg
MAIN: 2025-03-31 08:42:18,132 - INFO - duration: 0.6741596169995319
MAIN: 2025-03-31 08:42:18,133 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/42'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:42:49,024 - INFO - taking picture
MAIN: 2025-03-31 08:42:49,024 - INFO - we take 265 photos in this while loop
MAIN: 2025-03-31 08:42:49,024 - INFO - /home/pi/Desktop/images/31032025/08/42/image_31032025_08_42_48_30878.jpg
MAIN: 2025-03-31 08:42:49,024 - INFO - duration: 0.6884502339999017
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:43:06,376 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:43:18,991 - INFO - taking picture
MAIN: 2025-03-31 08:43:18,991 - INFO - we take 266 photos in this while loop
MAIN: 2025-03-31 08:43:18,992 - INFO - /home/pi/Desktop/images/31032025/08/42/image_31032025_08_43_18_29983.jpg
MAIN: 2025-03-31 08:43:18,992 - INFO - duration: 0.6720403179988352
MAIN: 2025-03-31 08:43:18,992 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/43'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:43:48,655 - INFO - taking picture
MAIN: 2025-03-31 08:43:48,656 - INFO - we take 267 photos in this while loop
MAIN: 2025-03-31 08:43:48,656 - INFO - /home/pi/Desktop/images/31032025/08/43/image_31032025_08_43_48_29641.jpg
MAIN: 2025-03-31 08:43:48,656 - INFO - duration: 0.694421620999492
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:44:06,870 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:44:18,686 - INFO - taking picture
MAIN: 2025-03-31 08:44:18,686 - INFO - we take 268 photos in this while loop
MAIN: 2025-03-31 08:44:18,687 - INFO - /home/pi/Desktop/images/31032025/08/43/image_31032025_08_44_18_30035.jpg
MAIN: 2025-03-31 08:44:18,687 - INFO - duration: 0.6897972900005698
MAIN: 2025-03-31 08:44:18,687 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/44'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:44:48,372 - INFO - taking picture
MAIN: 2025-03-31 08:44:48,372 - INFO - we take 269 photos in this while loop
MAIN: 2025-03-31 08:44:48,373 - INFO - /home/pi/Desktop/images/31032025/08/44/image_31032025_08_44_47_29685.jpg
MAIN: 2025-03-31 08:44:48,373 - INFO - duration: 0.6901415540014568
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:45:05,916 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:45:18,411 - INFO - taking picture
MAIN: 2025-03-31 08:45:18,411 - INFO - we take 270 photos in this while loop
MAIN: 2025-03-31 08:45:18,411 - INFO - /home/pi/Desktop/images/31032025/08/44/image_31032025_08_45_18_30035.jpg
MAIN: 2025-03-31 08:45:18,412 - INFO - duration: 0.6935893120007677
MAIN: 2025-03-31 08:45:18,412 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:45:49,259 - INFO - taking picture
MAIN: 2025-03-31 08:45:49,259 - INFO - we take 271 photos in this while loop
MAIN: 2025-03-31 08:45:49,260 - INFO - /home/pi/Desktop/images/31032025/08/45/image_31032025_08_45_48_30897.jpg
MAIN: 2025-03-31 08:45:49,260 - INFO - duration: 0.6439310570003727
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:46:06,419 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:46:18,243 - INFO - taking picture
MAIN: 2025-03-31 08:46:18,243 - INFO - we take 272 photos in this while loop
MAIN: 2025-03-31 08:46:18,244 - INFO - /home/pi/Desktop/images/31032025/08/45/image_31032025_08_46_17_28917.jpg
MAIN: 2025-03-31 08:46:18,244 - INFO - duration: 0.7104162920004455
MAIN: 2025-03-31 08:46:18,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:46:49,314 - INFO - taking picture
MAIN: 2025-03-31 08:46:49,314 - INFO - we take 273 photos in this while loop
MAIN: 2025-03-31 08:46:49,315 - INFO - /home/pi/Desktop/images/31032025/08/46/image_31032025_08_46_48_31081.jpg
MAIN: 2025-03-31 08:46:49,315 - INFO - duration: 0.69963935800115
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:47:05,968 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:47:18,065 - INFO - taking picture
MAIN: 2025-03-31 08:47:18,066 - INFO - we take 274 photos in this while loop
MAIN: 2025-03-31 08:47:18,066 - INFO - /home/pi/Desktop/images/31032025/08/46/image_31032025_08_47_17_28811.jpg
MAIN: 2025-03-31 08:47:18,066 - INFO - duration: 0.6400643830002082
MAIN: 2025-03-31 08:47:18,067 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:47:49,027 - INFO - taking picture
MAIN: 2025-03-31 08:47:49,027 - INFO - we take 275 photos in this while loop
MAIN: 2025-03-31 08:47:49,028 - INFO - /home/pi/Desktop/images/31032025/08/47/image_31032025_08_47_48_30906.jpg
MAIN: 2025-03-31 08:47:49,028 - INFO - duration: 0.6946300309991784
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:48:06,412 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:48:18,112 - INFO - taking picture
MAIN: 2025-03-31 08:48:18,112 - INFO - we take 276 photos in this while loop
MAIN: 2025-03-31 08:48:18,112 - INFO - /home/pi/Desktop/images/31032025/08/47/image_31032025_08_48_17_29103.jpg
MAIN: 2025-03-31 08:48:18,113 - INFO - duration: 0.6759907019986713
MAIN: 2025-03-31 08:48:18,113 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:48:49,057 - INFO - taking picture
MAIN: 2025-03-31 08:48:49,057 - INFO - we take 277 photos in this while loop
MAIN: 2025-03-31 08:48:49,057 - INFO - /home/pi/Desktop/images/31032025/08/48/image_31032025_08_48_48_30933.jpg
MAIN: 2025-03-31 08:48:49,058 - INFO - duration: 0.6878933490006602
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:49:06,048 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:49:18,901 - INFO - taking picture
MAIN: 2025-03-31 08:49:18,901 - INFO - we take 278 photos in this while loop
MAIN: 2025-03-31 08:49:18,901 - INFO - /home/pi/Desktop/images/31032025/08/48/image_31032025_08_49_18_29833.jpg
MAIN: 2025-03-31 08:49:18,902 - INFO - duration: 0.6980932119986392
MAIN: 2025-03-31 08:49:18,902 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:49:48,619 - INFO - taking picture
MAIN: 2025-03-31 08:49:48,619 - INFO - we take 279 photos in this while loop
MAIN: 2025-03-31 08:49:48,619 - INFO - /home/pi/Desktop/images/31032025/08/49/image_31032025_08_49_48_29710.jpg
MAIN: 2025-03-31 08:49:48,620 - INFO - duration: 0.7053353060000518
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:50:07,558 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:50:18,916 - INFO - taking picture
MAIN: 2025-03-31 08:50:18,917 - INFO - we take 280 photos in this while loop
MAIN: 2025-03-31 08:50:18,917 - INFO - /home/pi/Desktop/images/31032025/08/49/image_31032025_08_50_18_30368.jpg
MAIN: 2025-03-31 08:50:18,917 - INFO - duration: 0.6351969059996918
MAIN: 2025-03-31 08:50:18,918 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:50:48,590 - INFO - taking picture
MAIN: 2025-03-31 08:50:48,590 - INFO - we take 281 photos in this while loop
MAIN: 2025-03-31 08:50:48,590 - INFO - /home/pi/Desktop/images/31032025/08/50/image_31032025_08_50_48_29674.jpg
MAIN: 2025-03-31 08:50:48,591 - INFO - duration: 0.6342277679996187
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:51:05,856 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:51:18,777 - INFO - taking picture
MAIN: 2025-03-31 08:51:18,777 - INFO - we take 282 photos in this while loop
MAIN: 2025-03-31 08:51:18,777 - INFO - /home/pi/Desktop/images/31032025/08/50/image_31032025_08_51_18_30128.jpg
MAIN: 2025-03-31 08:51:18,777 - INFO - duration: 0.6925755030006258
MAIN: 2025-03-31 08:51:18,778 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:51:48,503 - INFO - taking picture
MAIN: 2025-03-31 08:51:48,504 - INFO - we take 283 photos in this while loop
MAIN: 2025-03-31 08:51:48,504 - INFO - /home/pi/Desktop/images/31032025/08/51/image_31032025_08_51_48_29730.jpg
MAIN: 2025-03-31 08:51:48,504 - INFO - duration: 0.6891320260001521
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:52:06,277 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:52:18,540 - INFO - taking picture
MAIN: 2025-03-31 08:52:18,540 - INFO - we take 284 photos in this while loop
MAIN: 2025-03-31 08:52:18,540 - INFO - /home/pi/Desktop/images/31032025/08/51/image_31032025_08_52_18_30032.jpg
MAIN: 2025-03-31 08:52:18,541 - INFO - duration: 0.6926466530003381
MAIN: 2025-03-31 08:52:18,541 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:52:48,253 - INFO - taking picture
MAIN: 2025-03-31 08:52:48,254 - INFO - we take 285 photos in this while loop
MAIN: 2025-03-31 08:52:48,254 - INFO - /home/pi/Desktop/images/31032025/08/52/image_31032025_08_52_47_29730.jpg
MAIN: 2025-03-31 08:52:48,254 - INFO - duration: 0.6757606669998495
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:53:06,122 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:53:18,373 - INFO - taking picture
MAIN: 2025-03-31 08:53:18,374 - INFO - we take 286 photos in this while loop
MAIN: 2025-03-31 08:53:18,374 - INFO - /home/pi/Desktop/images/31032025/08/52/image_31032025_08_53_17_30102.jpg
MAIN: 2025-03-31 08:53:18,374 - INFO - duration: 0.6933216119996359
MAIN: 2025-03-31 08:53:18,374 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:53:49,306 - INFO - taking picture
MAIN: 2025-03-31 08:53:49,306 - INFO - we take 287 photos in this while loop
MAIN: 2025-03-31 08:53:49,306 - INFO - /home/pi/Desktop/images/31032025/08/53/image_31032025_08_53_48_30991.jpg
MAIN: 2025-03-31 08:53:49,307 - INFO - duration: 0.6338396539995301
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:54:06,725 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:54:18,252 - INFO - taking picture
MAIN: 2025-03-31 08:54:18,253 - INFO - we take 288 photos in this while loop
MAIN: 2025-03-31 08:54:18,253 - INFO - /home/pi/Desktop/images/31032025/08/53/image_31032025_08_54_17_28878.jpg
MAIN: 2025-03-31 08:54:18,253 - INFO - duration: 0.7018892909982242
MAIN: 2025-03-31 08:54:18,254 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/54'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:54:49,129 - INFO - taking picture
MAIN: 2025-03-31 08:54:49,130 - INFO - we take 289 photos in this while loop
MAIN: 2025-03-31 08:54:49,130 - INFO - /home/pi/Desktop/images/31032025/08/54/image_31032025_08_54_48_30912.jpg
MAIN: 2025-03-31 08:54:49,130 - INFO - duration: 0.6665563020014815
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:55:07,169 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:55:18,140 - INFO - taking picture
MAIN: 2025-03-31 08:55:18,141 - INFO - we take 290 photos in this while loop
MAIN: 2025-03-31 08:55:18,141 - INFO - /home/pi/Desktop/images/31032025/08/54/image_31032025_08_55_17_29042.jpg
MAIN: 2025-03-31 08:55:18,141 - INFO - duration: 0.6351269400001911
MAIN: 2025-03-31 08:55:18,142 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:55:49,219 - INFO - taking picture
MAIN: 2025-03-31 08:55:49,220 - INFO - we take 291 photos in this while loop
MAIN: 2025-03-31 08:55:49,220 - INFO - /home/pi/Desktop/images/31032025/08/55/image_31032025_08_55_48_31018.jpg
MAIN: 2025-03-31 08:55:49,220 - INFO - duration: 0.6957877290005854
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:56:06,015 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:56:19,365 - INFO - taking picture
MAIN: 2025-03-31 08:56:19,366 - INFO - we take 292 photos in this while loop
MAIN: 2025-03-31 08:56:19,366 - INFO - /home/pi/Desktop/images/31032025/08/55/image_31032025_08_56_18_30165.jpg
MAIN: 2025-03-31 08:56:19,366 - INFO - duration: 0.6764286130000983
MAIN: 2025-03-31 08:56:19,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:56:48,997 - INFO - taking picture
MAIN: 2025-03-31 08:56:48,998 - INFO - we take 293 photos in this while loop
MAIN: 2025-03-31 08:56:48,998 - INFO - /home/pi/Desktop/images/31032025/08/56/image_31032025_08_56_48_29619.jpg
MAIN: 2025-03-31 08:56:48,998 - INFO - duration: 0.6887872349998361
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:57:05,775 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:57:19,086 - INFO - taking picture
MAIN: 2025-03-31 08:57:19,086 - INFO - we take 294 photos in this while loop
MAIN: 2025-03-31 08:57:19,086 - INFO - /home/pi/Desktop/images/31032025/08/56/image_31032025_08_57_18_30078.jpg
MAIN: 2025-03-31 08:57:19,087 - INFO - duration: 0.6991220010004326
MAIN: 2025-03-31 08:57:19,087 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:57:48,870 - INFO - taking picture
MAIN: 2025-03-31 08:57:48,871 - INFO - we take 295 photos in this while loop
MAIN: 2025-03-31 08:57:48,871 - INFO - /home/pi/Desktop/images/31032025/08/57/image_31032025_08_57_48_29777.jpg
MAIN: 2025-03-31 08:57:48,871 - INFO - duration: 0.7063034830007382
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 08:58:06,592 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:58:19,153 - INFO - taking picture
MAIN: 2025-03-31 08:58:19,154 - INFO - we take 296 photos in this while loop
MAIN: 2025-03-31 08:58:19,154 - INFO - /home/pi/Desktop/images/31032025/08/57/image_31032025_08_58_18_30316.jpg
MAIN: 2025-03-31 08:58:19,154 - INFO - duration: 0.6729133120006736
MAIN: 2025-03-31 08:58:19,155 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/58'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:58:48,825 - INFO - taking picture
MAIN: 2025-03-31 08:58:48,825 - INFO - we take 297 photos in this while loop
MAIN: 2025-03-31 08:58:48,826 - INFO - /home/pi/Desktop/images/31032025/08/58/image_31032025_08_58_48_29710.jpg
MAIN: 2025-03-31 08:58:48,826 - INFO - duration: 0.634148137000011
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 08:59:06,057 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:59:18,655 - INFO - taking picture
MAIN: 2025-03-31 08:59:18,655 - INFO - we take 298 photos in this while loop
MAIN: 2025-03-31 08:59:18,655 - INFO - /home/pi/Desktop/images/31032025/08/58/image_31032025_08_59_18_29792.jpg
MAIN: 2025-03-31 08:59:18,656 - INFO - duration: 0.6712379880009394
MAIN: 2025-03-31 08:59:18,656 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/08/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 08:59:48,332 - INFO - taking picture
MAIN: 2025-03-31 08:59:48,332 - INFO - we take 299 photos in this while loop
MAIN: 2025-03-31 08:59:48,333 - INFO - /home/pi/Desktop/images/31032025/08/59/image_31032025_08_59_47_29679.jpg
MAIN: 2025-03-31 08:59:48,333 - INFO - duration: 0.6694829009993555
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:00:07,007 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:00:18,661 - INFO - taking picture
MAIN: 2025-03-31 09:00:18,662 - INFO - we take 300 photos in this while loop
MAIN: 2025-03-31 09:00:18,662 - INFO - /home/pi/Desktop/images/31032025/08/59/image_31032025_09_00_18_30309.jpg
MAIN: 2025-03-31 09:00:18,662 - INFO - duration: 0.6895574940008373
MAIN: 2025-03-31 09:00:18,663 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:00:48,495 - INFO - taking picture
MAIN: 2025-03-31 09:00:48,496 - INFO - we take 301 photos in this while loop
MAIN: 2025-03-31 09:00:48,496 - INFO - /home/pi/Desktop/images/31032025/09/00/image_31032025_09_00_48_29829.jpg
MAIN: 2025-03-31 09:00:48,496 - INFO - duration: 0.6938937570012058
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:01:05,849 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:01:18,366 - INFO - taking picture
MAIN: 2025-03-31 09:01:18,367 - INFO - we take 302 photos in this while loop
MAIN: 2025-03-31 09:01:18,367 - INFO - /home/pi/Desktop/images/31032025/09/00/image_31032025_09_01_17_29894.jpg
MAIN: 2025-03-31 09:01:18,367 - INFO - duration: 0.6699597629994969
MAIN: 2025-03-31 09:01:18,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:01:49,356 - INFO - taking picture
MAIN: 2025-03-31 09:01:49,356 - INFO - we take 303 photos in this while loop
MAIN: 2025-03-31 09:01:49,357 - INFO - /home/pi/Desktop/images/31032025/09/01/image_31032025_09_01_48_30968.jpg
MAIN: 2025-03-31 09:01:49,357 - INFO - duration: 0.6911582590000762
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:02:06,560 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:02:18,376 - INFO - taking picture
MAIN: 2025-03-31 09:02:18,377 - INFO - we take 304 photos in this while loop
MAIN: 2025-03-31 09:02:18,377 - INFO - /home/pi/Desktop/images/31032025/09/01/image_31032025_09_02_17_29022.jpg
MAIN: 2025-03-31 09:02:18,377 - INFO - duration: 0.688827695999862
MAIN: 2025-03-31 09:02:18,377 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:02:48,107 - INFO - taking picture
MAIN: 2025-03-31 09:02:48,107 - INFO - we take 305 photos in this while loop
MAIN: 2025-03-31 09:02:48,107 - INFO - /home/pi/Desktop/images/31032025/09/02/image_31032025_09_02_47_29739.jpg
MAIN: 2025-03-31 09:02:48,108 - INFO - duration: 0.6795872889997554
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:03:06,387 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:03:19,349 - INFO - taking picture
MAIN: 2025-03-31 09:03:19,349 - INFO - we take 306 photos in this while loop
MAIN: 2025-03-31 09:03:19,349 - INFO - /home/pi/Desktop/images/31032025/09/02/image_31032025_09_03_18_31239.jpg
MAIN: 2025-03-31 09:03:19,350 - INFO - duration: 0.681710265998845
MAIN: 2025-03-31 09:03:19,350 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:03:49,062 - INFO - taking picture
MAIN: 2025-03-31 09:03:49,062 - INFO - we take 307 photos in this while loop
MAIN: 2025-03-31 09:03:49,062 - INFO - /home/pi/Desktop/images/31032025/09/03/image_31032025_09_03_48_29703.jpg
MAIN: 2025-03-31 09:03:49,063 - INFO - duration: 0.6911105309991399
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:04:06,841 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:04:18,896 - INFO - taking picture
MAIN: 2025-03-31 09:04:18,896 - INFO - we take 308 photos in this while loop
MAIN: 2025-03-31 09:04:18,897 - INFO - /home/pi/Desktop/images/31032025/09/03/image_31032025_09_04_18_29840.jpg
MAIN: 2025-03-31 09:04:18,897 - INFO - duration: 0.6850248609989649
MAIN: 2025-03-31 09:04:18,897 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:04:48,505 - INFO - taking picture
MAIN: 2025-03-31 09:04:48,505 - INFO - we take 309 photos in this while loop
MAIN: 2025-03-31 09:04:48,505 - INFO - /home/pi/Desktop/images/31032025/09/04/image_31032025_09_04_48_29604.jpg
MAIN: 2025-03-31 09:04:48,506 - INFO - duration: 0.688865407002595
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:05:06,066 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:05:18,672 - INFO - taking picture
MAIN: 2025-03-31 09:05:18,672 - INFO - we take 310 photos in this while loop
MAIN: 2025-03-31 09:05:18,673 - INFO - /home/pi/Desktop/images/31032025/09/04/image_31032025_09_05_18_30158.jpg
MAIN: 2025-03-31 09:05:18,673 - INFO - duration: 0.6979318529993179
MAIN: 2025-03-31 09:05:18,673 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:05:48,442 - INFO - taking picture
MAIN: 2025-03-31 09:05:48,442 - INFO - we take 311 photos in this while loop
MAIN: 2025-03-31 09:05:48,442 - INFO - /home/pi/Desktop/images/31032025/09/05/image_31032025_09_05_48_29804.jpg
MAIN: 2025-03-31 09:05:48,443 - INFO - duration: 0.6630802350009617
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:06:06,307 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)MAIN: 2025-03-31 09:06:18,566 - INFO - taking picture
MAIN: 2025-03-31 09:06:18,566 - INFO - we take 312 photos in this while loop
MAIN: 2025-03-31 09:06:18,567 - INFO - /home/pi/Desktop/images/31032025/09/05/image_31032025_09_06_18_30066.jpg
MAIN: 2025-03-31 09:06:18,567 - INFO - duration: 0.7210478570013947
MAIN: 2025-03-31 09:06:18,567 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:06:48,283 - INFO - taking picture
MAIN: 2025-03-31 09:06:48,284 - INFO - we take 313 photos in this while loop
MAIN: 2025-03-31 09:06:48,284 - INFO - /home/pi/Desktop/images/31032025/09/06/image_31032025_09_06_47_29732.jpg
MAIN: 2025-03-31 09:06:48,284 - INFO - duration: 0.7054444349996629
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 09:07:05,600 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:07:18,294 - INFO - taking picture
MAIN: 2025-03-31 09:07:18,294 - INFO - we take 314 photos in this while loop
MAIN: 2025-03-31 09:07:18,295 - INFO - /home/pi/Desktop/images/31032025/09/06/image_31032025_09_07_17_30021.jpg
MAIN: 2025-03-31 09:07:18,295 - INFO - duration: 0.6947992319983314
MAIN: 2025-03-31 09:07:18,295 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:07:49,291 - INFO - taking picture
MAIN: 2025-03-31 09:07:49,291 - INFO - we take 315 photos in this while loop
MAIN: 2025-03-31 09:07:49,291 - INFO - /home/pi/Desktop/images/31032025/09/07/image_31032025_09_07_48_31002.jpg
MAIN: 2025-03-31 09:07:49,292 - INFO - duration: 0.6894478210015222
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:08:06,477 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:08:18,158 - INFO - taking picture
MAIN: 2025-03-31 09:08:18,159 - INFO - we take 316 photos in this while loop
MAIN: 2025-03-31 09:08:18,159 - INFO - /home/pi/Desktop/images/31032025/09/07/image_31032025_09_08_17_28922.jpg
MAIN: 2025-03-31 09:08:18,159 - INFO - duration: 0.6346348469996883
MAIN: 2025-03-31 09:08:18,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:08:49,114 - INFO - taking picture
MAIN: 2025-03-31 09:08:49,114 - INFO - we take 317 photos in this while loop
MAIN: 2025-03-31 09:08:49,114 - INFO - /home/pi/Desktop/images/31032025/09/08/image_31032025_09_08_48_30899.jpg
MAIN: 2025-03-31 09:08:49,115 - INFO - duration: 0.6904288830010046
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:09:06,247 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:09:18,132 - INFO - taking picture
MAIN: 2025-03-31 09:09:18,133 - INFO - we take 318 photos in this while loop
MAIN: 2025-03-31 09:09:18,133 - INFO - /home/pi/Desktop/images/31032025/09/08/image_31032025_09_09_17_29020.jpg
MAIN: 2025-03-31 09:09:18,133 - INFO - duration: 0.688063969999348
MAIN: 2025-03-31 09:09:18,134 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:09:49,089 - INFO - taking picture
MAIN: 2025-03-31 09:09:49,090 - INFO - we take 319 photos in this while loop
MAIN: 2025-03-31 09:09:49,090 - INFO - /home/pi/Desktop/images/31032025/09/09/image_31032025_09_09_48_30949.jpg
MAIN: 2025-03-31 09:09:49,090 - INFO - duration: 0.6958646719976969
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:10:07,398 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:10:19,241 - INFO - taking picture
MAIN: 2025-03-31 09:10:19,242 - INFO - we take 320 photos in this while loop
MAIN: 2025-03-31 09:10:19,242 - INFO - /home/pi/Desktop/images/31032025/09/09/image_31032025_09_10_18_30210.jpg
MAIN: 2025-03-31 09:10:19,242 - INFO - duration: 0.6374342890012485
MAIN: 2025-03-31 09:10:19,243 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:10:49,012 - INFO - taking picture
MAIN: 2025-03-31 09:10:49,012 - INFO - we take 321 photos in this while loop
MAIN: 2025-03-31 09:10:49,012 - INFO - /home/pi/Desktop/images/31032025/09/10/image_31032025_09_10_48_29771.jpg
MAIN: 2025-03-31 09:10:49,013 - INFO - duration: 0.6361103580020426
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:11:05,816 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:11:19,002 - INFO - taking picture
MAIN: 2025-03-31 09:11:19,003 - INFO - we take 322 photos in this while loop
MAIN: 2025-03-31 09:11:19,003 - INFO - /home/pi/Desktop/images/31032025/09/10/image_31032025_09_11_18_29987.jpg
MAIN: 2025-03-31 09:11:19,003 - INFO - duration: 0.6391117329985718
MAIN: 2025-03-31 09:11:19,004 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:11:48,692 - INFO - taking picture
MAIN: 2025-03-31 09:11:48,693 - INFO - we take 323 photos in this while loop
MAIN: 2025-03-31 09:11:48,693 - INFO - /home/pi/Desktop/images/31032025/09/11/image_31032025_09_11_48_29640.jpg
MAIN: 2025-03-31 09:11:48,693 - INFO - duration: 0.6890298399994208
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:12:06,365 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:12:18,952 - INFO - taking picture
MAIN: 2025-03-31 09:12:18,953 - INFO - we take 324 photos in this while loop
MAIN: 2025-03-31 09:12:18,953 - INFO - /home/pi/Desktop/images/31032025/09/11/image_31032025_09_12_18_30259.jpg
MAIN: 2025-03-31 09:12:18,953 - INFO - duration: 0.6895390820027387
MAIN: 2025-03-31 09:12:18,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:12:48,614 - INFO - taking picture
MAIN: 2025-03-31 09:12:48,615 - INFO - we take 325 photos in this while loop
MAIN: 2025-03-31 09:12:48,615 - INFO - /home/pi/Desktop/images/31032025/09/12/image_31032025_09_12_48_29653.jpg
MAIN: 2025-03-31 09:12:48,615 - INFO - duration: 0.6976340969995363
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:13:06,216 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:13:18,523 - INFO - taking picture
MAIN: 2025-03-31 09:13:18,524 - INFO - we take 326 photos in this while loop
MAIN: 2025-03-31 09:13:18,524 - INFO - /home/pi/Desktop/images/31032025/09/12/image_31032025_09_13_18_29914.jpg
MAIN: 2025-03-31 09:13:18,524 - INFO - duration: 0.6920307899999898
MAIN: 2025-03-31 09:13:18,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:13:48,259 - INFO - taking picture
MAIN: 2025-03-31 09:13:48,259 - INFO - we take 327 photos in this while loop
MAIN: 2025-03-31 09:13:48,259 - INFO - /home/pi/Desktop/images/31032025/09/13/image_31032025_09_13_47_29740.jpg
MAIN: 2025-03-31 09:13:48,260 - INFO - duration: 0.6864128449997224
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:14:06,534 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:14:18,568 - INFO - taking picture
MAIN: 2025-03-31 09:14:18,568 - INFO - we take 328 photos in this while loop
MAIN: 2025-03-31 09:14:18,568 - INFO - /home/pi/Desktop/images/31032025/09/13/image_31032025_09_14_18_30296.jpg
MAIN: 2025-03-31 09:14:18,569 - INFO - duration: 0.6994698339985916
MAIN: 2025-03-31 09:14:18,569 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:14:48,267 - INFO - taking picture
MAIN: 2025-03-31 09:14:48,268 - INFO - we take 329 photos in this while loop
MAIN: 2025-03-31 09:14:48,268 - INFO - /home/pi/Desktop/images/31032025/09/14/image_31032025_09_14_47_29725.jpg
MAIN: 2025-03-31 09:14:48,268 - INFO - duration: 0.6730629939993378
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:15:06,583 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:15:18,468 - INFO - taking picture
MAIN: 2025-03-31 09:15:18,468 - INFO - we take 330 photos in this while loop
MAIN: 2025-03-31 09:15:18,469 - INFO - /home/pi/Desktop/images/31032025/09/14/image_31032025_09_15_18_30237.jpg
MAIN: 2025-03-31 09:15:18,469 - INFO - duration: 0.6367734500017832
MAIN: 2025-03-31 09:15:18,469 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:15:48,191 - INFO - taking picture
MAIN: 2025-03-31 09:15:48,192 - INFO - we take 331 photos in this while loop
MAIN: 2025-03-31 09:15:48,192 - INFO - /home/pi/Desktop/images/31032025/09/15/image_31032025_09_15_47_29724.jpg
MAIN: 2025-03-31 09:15:48,192 - INFO - duration: 0.636161849997734
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:16:06,568 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:16:18,487 - INFO - taking picture
MAIN: 2025-03-31 09:16:18,488 - INFO - we take 332 photos in this while loop
MAIN: 2025-03-31 09:16:18,488 - INFO - /home/pi/Desktop/images/31032025/09/15/image_31032025_09_16_18_30240.jpg
MAIN: 2025-03-31 09:16:18,488 - INFO - duration: 0.6919452160000219
MAIN: 2025-03-31 09:16:18,489 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:16:48,113 - INFO - taking picture
MAIN: 2025-03-31 09:16:48,114 - INFO - we take 333 photos in this while loop
MAIN: 2025-03-31 09:16:48,114 - INFO - /home/pi/Desktop/images/31032025/09/16/image_31032025_09_16_47_29625.jpg
MAIN: 2025-03-31 09:16:48,114 - INFO - duration: 0.6923369480027759
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:17:06,387 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:17:18,261 - INFO - taking picture
MAIN: 2025-03-31 09:17:18,262 - INFO - we take 334 photos in this while loop
MAIN: 2025-03-31 09:17:18,262 - INFO - /home/pi/Desktop/images/31032025/09/16/image_31032025_09_17_17_30144.jpg
MAIN: 2025-03-31 09:17:18,262 - INFO - duration: 0.6959096160026093
MAIN: 2025-03-31 09:17:18,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:17:48,169 - INFO - taking picture
MAIN: 2025-03-31 09:17:48,170 - INFO - we take 335 photos in this while loop
MAIN: 2025-03-31 09:17:48,170 - INFO - /home/pi/Desktop/images/31032025/09/17/image_31032025_09_17_47_29898.jpg
MAIN: 2025-03-31 09:17:48,170 - INFO - duration: 0.7053999359995942
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:18:06,236 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:18:18,203 - INFO - taking picture
MAIN: 2025-03-31 09:18:18,204 - INFO - we take 336 photos in this while loop
MAIN: 2025-03-31 09:18:18,204 - INFO - /home/pi/Desktop/images/31032025/09/17/image_31032025_09_18_17_30052.jpg
MAIN: 2025-03-31 09:18:18,204 - INFO - duration: 0.6866613120000693
MAIN: 2025-03-31 09:18:18,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:18:49,210 - INFO - taking picture
MAIN: 2025-03-31 09:18:49,211 - INFO - we take 337 photos in this while loop
MAIN: 2025-03-31 09:18:49,211 - INFO - /home/pi/Desktop/images/31032025/09/18/image_31032025_09_18_48_31011.jpg
MAIN: 2025-03-31 09:18:49,211 - INFO - duration: 0.6821210650014109
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:19:05,744 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:19:19,387 - INFO - taking picture
MAIN: 2025-03-31 09:19:19,387 - INFO - we take 338 photos in this while loop
MAIN: 2025-03-31 09:19:19,388 - INFO - /home/pi/Desktop/images/31032025/09/18/image_31032025_09_19_18_30152.jpg
MAIN: 2025-03-31 09:19:19,388 - INFO - duration: 0.7068497610016493
MAIN: 2025-03-31 09:19:19,388 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:19:49,053 - INFO - taking picture
MAIN: 2025-03-31 09:19:49,053 - INFO - we take 339 photos in this while loop
MAIN: 2025-03-31 09:19:49,053 - INFO - /home/pi/Desktop/images/31032025/09/19/image_31032025_09_19_48_29693.jpg
MAIN: 2025-03-31 09:19:49,053 - INFO - duration: 0.6793405650023487
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 09:20:07,185 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:20:18,416 - INFO - taking picture
MAIN: 2025-03-31 09:20:18,416 - INFO - we take 340 photos in this while loop
MAIN: 2025-03-31 09:20:18,417 - INFO - /home/pi/Desktop/images/31032025/09/19/image_31032025_09_20_18_29350.jpg
MAIN: 2025-03-31 09:20:18,417 - INFO - duration: 0.6919460370008892
MAIN: 2025-03-31 09:20:18,417 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:20:49,338 - INFO - taking picture
MAIN: 2025-03-31 09:20:49,338 - INFO - we take 341 photos in this while loop
MAIN: 2025-03-31 09:20:49,339 - INFO - /home/pi/Desktop/images/31032025/09/20/image_31032025_09_20_48_30939.jpg
MAIN: 2025-03-31 09:20:49,339 - INFO - duration: 0.6744430329999886
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:21:06,209 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:21:18,121 - INFO - taking picture
MAIN: 2025-03-31 09:21:18,122 - INFO - we take 342 photos in this while loop
MAIN: 2025-03-31 09:21:18,122 - INFO - /home/pi/Desktop/images/31032025/09/20/image_31032025_09_21_17_28789.jpg
MAIN: 2025-03-31 09:21:18,122 - INFO - duration: 0.6682338249993336
MAIN: 2025-03-31 09:21:18,123 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:21:48,987 - INFO - taking picture
MAIN: 2025-03-31 09:21:48,988 - INFO - we take 343 photos in this while loop
MAIN: 2025-03-31 09:21:48,988 - INFO - /home/pi/Desktop/images/31032025/09/21/image_31032025_09_21_48_30866.jpg
MAIN: 2025-03-31 09:21:48,988 - INFO - duration: 0.6674303440013318
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:22:06,854 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:22:19,122 - INFO - taking picture
MAIN: 2025-03-31 09:22:19,123 - INFO - we take 344 photos in this while loop
MAIN: 2025-03-31 09:22:19,123 - INFO - /home/pi/Desktop/images/31032025/09/21/image_31032025_09_22_18_30094.jpg
MAIN: 2025-03-31 09:22:19,123 - INFO - duration: 0.7083329380002397
MAIN: 2025-03-31 09:22:19,124 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/22'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:22:48,927 - INFO - taking picture
MAIN: 2025-03-31 09:22:48,928 - INFO - we take 345 photos in this while loop
MAIN: 2025-03-31 09:22:48,928 - INFO - /home/pi/Desktop/images/31032025/09/22/image_31032025_09_22_48_29877.jpg
MAIN: 2025-03-31 09:22:48,928 - INFO - duration: 0.6365526609988592
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:23:06,653 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:23:18,850 - INFO - taking picture
MAIN: 2025-03-31 09:23:18,851 - INFO - we take 346 photos in this while loop
MAIN: 2025-03-31 09:23:18,851 - INFO - /home/pi/Desktop/images/31032025/09/22/image_31032025_09_23_18_29923.jpg
MAIN: 2025-03-31 09:23:18,851 - INFO - duration: 0.6360829799996282
MAIN: 2025-03-31 09:23:18,852 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:23:48,488 - INFO - taking picture
MAIN: 2025-03-31 09:23:48,489 - INFO - we take 347 photos in this while loop
MAIN: 2025-03-31 09:23:48,489 - INFO - /home/pi/Desktop/images/31032025/09/23/image_31032025_09_23_48_29638.jpg
MAIN: 2025-03-31 09:23:48,489 - INFO - duration: 0.6357018919989059
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:24:05,678 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:24:18,726 - INFO - taking picture
MAIN: 2025-03-31 09:24:18,726 - INFO - we take 348 photos in this while loop
MAIN: 2025-03-31 09:24:18,726 - INFO - /home/pi/Desktop/images/31032025/09/23/image_31032025_09_24_18_30201.jpg
MAIN: 2025-03-31 09:24:18,726 - INFO - duration: 0.6715094879982644
MAIN: 2025-03-31 09:24:18,727 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:24:48,462 - INFO - taking picture
MAIN: 2025-03-31 09:24:48,462 - INFO - we take 349 photos in this while loop
MAIN: 2025-03-31 09:24:48,462 - INFO - /home/pi/Desktop/images/31032025/09/24/image_31032025_09_24_48_29712.jpg
MAIN: 2025-03-31 09:24:48,463 - INFO - duration: 0.6950267239990353
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:25:06,081 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:25:18,511 - INFO - taking picture
MAIN: 2025-03-31 09:25:18,512 - INFO - we take 350 photos in this while loop
MAIN: 2025-03-31 09:25:18,512 - INFO - /home/pi/Desktop/images/31032025/09/24/image_31032025_09_25_18_30048.jpg
MAIN: 2025-03-31 09:25:18,512 - INFO - duration: 0.6956576150005276
MAIN: 2025-03-31 09:25:18,512 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:25:48,190 - INFO - taking picture
MAIN: 2025-03-31 09:25:48,191 - INFO - we take 351 photos in this while loop
MAIN: 2025-03-31 09:25:48,191 - INFO - /home/pi/Desktop/images/31032025/09/25/image_31032025_09_25_47_29702.jpg
MAIN: 2025-03-31 09:25:48,191 - INFO - duration: 0.6718696060015645
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:26:06,521 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:26:18,453 - INFO - taking picture
MAIN: 2025-03-31 09:26:18,453 - INFO - we take 352 photos in this while loop
MAIN: 2025-03-31 09:26:18,453 - INFO - /home/pi/Desktop/images/31032025/09/25/image_31032025_09_26_18_30239.jpg
MAIN: 2025-03-31 09:26:18,454 - INFO - duration: 0.6950683530012611
MAIN: 2025-03-31 09:26:18,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:26:49,373 - INFO - taking picture
MAIN: 2025-03-31 09:26:49,374 - INFO - we take 353 photos in this while loop
MAIN: 2025-03-31 09:26:49,374 - INFO - /home/pi/Desktop/images/31032025/09/26/image_31032025_09_26_48_30922.jpg
MAIN: 2025-03-31 09:26:49,374 - INFO - duration: 0.6934274730010657
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:27:06,188 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:27:18,249 - INFO - taking picture
MAIN: 2025-03-31 09:27:18,250 - INFO - we take 354 photos in this while loop
MAIN: 2025-03-31 09:27:18,250 - INFO - /home/pi/Desktop/images/31032025/09/26/image_31032025_09_27_17_28874.jpg
MAIN: 2025-03-31 09:27:18,250 - INFO - duration: 0.6945450810017064
MAIN: 2025-03-31 09:27:18,250 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:27:49,335 - INFO - taking picture
MAIN: 2025-03-31 09:27:49,335 - INFO - we take 355 photos in this while loop
MAIN: 2025-03-31 09:27:49,335 - INFO - /home/pi/Desktop/images/31032025/09/27/image_31032025_09_27_48_31083.jpg
MAIN: 2025-03-31 09:27:49,335 - INFO - duration: 0.6969043030003377
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:28:06,660 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:28:18,243 - INFO - taking picture
MAIN: 2025-03-31 09:28:18,243 - INFO - we take 356 photos in this while loop
MAIN: 2025-03-31 09:28:18,244 - INFO - /home/pi/Desktop/images/31032025/09/27/image_31032025_09_28_17_28914.jpg
MAIN: 2025-03-31 09:28:18,244 - INFO - duration: 0.6905374330017366
MAIN: 2025-03-31 09:28:18,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:28:49,121 - INFO - taking picture
MAIN: 2025-03-31 09:28:49,122 - INFO - we take 357 photos in this while loop
MAIN: 2025-03-31 09:28:49,122 - INFO - /home/pi/Desktop/images/31032025/09/28/image_31032025_09_28_48_30897.jpg
MAIN: 2025-03-31 09:28:49,122 - INFO - duration: 0.6712057240001741
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:29:05,777 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:29:19,247 - INFO - taking picture
MAIN: 2025-03-31 09:29:19,247 - INFO - we take 358 photos in this while loop
MAIN: 2025-03-31 09:29:19,247 - INFO - /home/pi/Desktop/images/31032025/09/28/image_31032025_09_29_18_30092.jpg
MAIN: 2025-03-31 09:29:19,248 - INFO - duration: 0.7046757690004597
MAIN: 2025-03-31 09:29:19,248 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/29'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:29:48,906 - INFO - taking picture
MAIN: 2025-03-31 09:29:48,907 - INFO - we take 359 photos in this while loop
MAIN: 2025-03-31 09:29:48,907 - INFO - /home/pi/Desktop/images/31032025/09/29/image_31032025_09_29_48_29666.jpg
MAIN: 2025-03-31 09:29:48,907 - INFO - duration: 0.6982041070004925
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:30:06,981 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:30:19,280 - INFO - taking picture
MAIN: 2025-03-31 09:30:19,280 - INFO - we take 360 photos in this while loop
MAIN: 2025-03-31 09:30:19,281 - INFO - /home/pi/Desktop/images/31032025/09/29/image_31032025_09_30_18_30434.jpg
MAIN: 2025-03-31 09:30:19,281 - INFO - duration: 0.6375375659990823
MAIN: 2025-03-31 09:30:19,281 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/30'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:30:48,967 - INFO - taking picture
MAIN: 2025-03-31 09:30:48,968 - INFO - we take 361 photos in this while loop
MAIN: 2025-03-31 09:30:48,968 - INFO - /home/pi/Desktop/images/31032025/09/30/image_31032025_09_30_48_29688.jpg
MAIN: 2025-03-31 09:30:48,968 - INFO - duration: 0.6363655380009732
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:31:05,944 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:31:19,189 - INFO - taking picture
MAIN: 2025-03-31 09:31:19,190 - INFO - we take 362 photos in this while loop
MAIN: 2025-03-31 09:31:19,190 - INFO - /home/pi/Desktop/images/31032025/09/30/image_31032025_09_31_18_30179.jpg
MAIN: 2025-03-31 09:31:19,190 - INFO - duration: 0.6788437559989688
MAIN: 2025-03-31 09:31:19,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/31'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:31:49,045 - INFO - taking picture
MAIN: 2025-03-31 09:31:49,046 - INFO - we take 363 photos in this while loop
MAIN: 2025-03-31 09:31:49,046 - INFO - /home/pi/Desktop/images/31032025/09/31/image_31032025_09_31_48_29838.jpg
MAIN: 2025-03-31 09:31:49,046 - INFO - duration: 0.6957562019997567
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:32:06,917 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:32:19,266 - INFO - taking picture
MAIN: 2025-03-31 09:32:19,267 - INFO - we take 364 photos in this while loop
MAIN: 2025-03-31 09:32:19,267 - INFO - /home/pi/Desktop/images/31032025/09/31/image_31032025_09_32_18_30224.jpg
MAIN: 2025-03-31 09:32:19,267 - INFO - duration: 0.6918149040029675
MAIN: 2025-03-31 09:32:19,267 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:32:48,935 - INFO - taking picture
MAIN: 2025-03-31 09:32:48,936 - INFO - we take 365 photos in this while loop
MAIN: 2025-03-31 09:32:48,936 - INFO - /home/pi/Desktop/images/31032025/09/32/image_31032025_09_32_48_29665.jpg
MAIN: 2025-03-31 09:32:48,936 - INFO - duration: 0.6952634980007133
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 09:33:05,842 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:33:19,146 - INFO - taking picture
MAIN: 2025-03-31 09:33:19,147 - INFO - we take 366 photos in this while loop
MAIN: 2025-03-31 09:33:19,147 - INFO - /home/pi/Desktop/images/31032025/09/32/image_31032025_09_33_18_30207.jpg
MAIN: 2025-03-31 09:33:19,148 - INFO - duration: 0.6987618839993956
MAIN: 2025-03-31 09:33:19,148 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:33:48,846 - INFO - taking picture
MAIN: 2025-03-31 09:33:48,847 - INFO - we take 367 photos in this while loop
MAIN: 2025-03-31 09:33:48,847 - INFO - /home/pi/Desktop/images/31032025/09/33/image_31032025_09_33_48_29725.jpg
MAIN: 2025-03-31 09:33:48,847 - INFO - duration: 0.6731283520020952
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 09:34:06,378 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:34:19,277 - INFO - taking picture
MAIN: 2025-03-31 09:34:19,278 - INFO - we take 368 photos in this while loop
MAIN: 2025-03-31 09:34:19,278 - INFO - /home/pi/Desktop/images/31032025/09/33/image_31032025_09_34_18_30415.jpg
MAIN: 2025-03-31 09:34:19,278 - INFO - duration: 0.6883266299992101
MAIN: 2025-03-31 09:34:19,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:34:48,982 - INFO - taking picture
MAIN: 2025-03-31 09:34:48,983 - INFO - we take 369 photos in this while loop
MAIN: 2025-03-31 09:34:48,983 - INFO - /home/pi/Desktop/images/31032025/09/34/image_31032025_09_34_48_29700.jpg
MAIN: 2025-03-31 09:34:48,983 - INFO - duration: 0.6926368909989833
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:35:06,899 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:35:19,208 - INFO - taking picture
MAIN: 2025-03-31 09:35:19,208 - INFO - we take 370 photos in this while loop
MAIN: 2025-03-31 09:35:19,208 - INFO - /home/pi/Desktop/images/31032025/09/34/image_31032025_09_35_18_30216.jpg
MAIN: 2025-03-31 09:35:19,209 - INFO - duration: 0.7015647549997084
MAIN: 2025-03-31 09:35:19,209 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/35'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:35:49,025 - INFO - taking picture
MAIN: 2025-03-31 09:35:49,026 - INFO - we take 371 photos in this while loop
MAIN: 2025-03-31 09:35:49,026 - INFO - /home/pi/Desktop/images/31032025/09/35/image_31032025_09_35_48_29829.jpg
MAIN: 2025-03-31 09:35:49,026 - INFO - duration: 0.6900043950008694
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:36:06,707 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:36:19,203 - INFO - taking picture
MAIN: 2025-03-31 09:36:19,204 - INFO - we take 372 photos in this while loop
MAIN: 2025-03-31 09:36:19,204 - INFO - /home/pi/Desktop/images/31032025/09/35/image_31032025_09_36_18_30161.jpg
MAIN: 2025-03-31 09:36:19,204 - INFO - duration: 0.7063821529991401
MAIN: 2025-03-31 09:36:19,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:36:48,878 - INFO - taking picture
MAIN: 2025-03-31 09:36:48,879 - INFO - we take 373 photos in this while loop
MAIN: 2025-03-31 09:36:48,879 - INFO - /home/pi/Desktop/images/31032025/09/36/image_31032025_09_36_48_29711.jpg
MAIN: 2025-03-31 09:36:48,879 - INFO - duration: 0.6698359660003916
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:37:06,818 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:37:18,772 - INFO - taking picture
MAIN: 2025-03-31 09:37:18,773 - INFO - we take 374 photos in this while loop
MAIN: 2025-03-31 09:37:18,773 - INFO - /home/pi/Desktop/images/31032025/09/36/image_31032025_09_37_18_29928.jpg
MAIN: 2025-03-31 09:37:18,773 - INFO - duration: 0.6353204039987759
MAIN: 2025-03-31 09:37:18,774 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:37:48,425 - INFO - taking picture
MAIN: 2025-03-31 09:37:48,425 - INFO - we take 375 photos in this while loop
MAIN: 2025-03-31 09:37:48,425 - INFO - /home/pi/Desktop/images/31032025/09/37/image_31032025_09_37_48_29651.jpg
MAIN: 2025-03-31 09:37:48,426 - INFO - duration: 0.6362139470002148
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:38:06,409 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:38:18,511 - INFO - taking picture
MAIN: 2025-03-31 09:38:18,511 - INFO - we take 376 photos in this while loop
MAIN: 2025-03-31 09:38:18,512 - INFO - /home/pi/Desktop/images/31032025/09/37/image_31032025_09_38_18_30051.jpg
MAIN: 2025-03-31 09:38:18,512 - INFO - duration: 0.6708051880013954
MAIN: 2025-03-31 09:38:18,512 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:38:48,219 - INFO - taking picture
MAIN: 2025-03-31 09:38:48,219 - INFO - we take 377 photos in this while loop
MAIN: 2025-03-31 09:38:48,219 - INFO - /home/pi/Desktop/images/31032025/09/38/image_31032025_09_38_47_29686.jpg
MAIN: 2025-03-31 09:38:48,220 - INFO - duration: 0.691623337999772
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:39:06,075 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:39:18,290 - INFO - taking picture
MAIN: 2025-03-31 09:39:18,291 - INFO - we take 378 photos in this while loop
MAIN: 2025-03-31 09:39:18,291 - INFO - /home/pi/Desktop/images/31032025/09/38/image_31032025_09_39_17_30071.jpg
MAIN: 2025-03-31 09:39:18,291 - INFO - duration: 0.6922989209997468
MAIN: 2025-03-31 09:39:18,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:39:49,151 - INFO - taking picture
MAIN: 2025-03-31 09:39:49,152 - INFO - we take 379 photos in this while loop
MAIN: 2025-03-31 09:39:49,152 - INFO - /home/pi/Desktop/images/31032025/09/39/image_31032025_09_39_48_30856.jpg
MAIN: 2025-03-31 09:39:49,152 - INFO - duration: 0.6963914719999593
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 09:40:07,222 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:40:18,377 - INFO - taking picture
MAIN: 2025-03-31 09:40:18,377 - INFO - we take 380 photos in this while loop
MAIN: 2025-03-31 09:40:18,377 - INFO - /home/pi/Desktop/images/31032025/09/39/image_31032025_09_40_17_29224.jpg
MAIN: 2025-03-31 09:40:18,378 - INFO - duration: 0.6968796490000386
MAIN: 2025-03-31 09:40:18,378 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:40:48,135 - INFO - taking picture
MAIN: 2025-03-31 09:40:48,135 - INFO - we take 381 photos in this while loop
MAIN: 2025-03-31 09:40:48,136 - INFO - /home/pi/Desktop/images/31032025/09/40/image_31032025_09_40_47_29757.jpg
MAIN: 2025-03-31 09:40:48,136 - INFO - duration: 0.6979743869997037
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:41:06,424 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:41:18,293 - INFO - taking picture
MAIN: 2025-03-31 09:41:18,294 - INFO - we take 382 photos in this while loop
MAIN: 2025-03-31 09:41:18,294 - INFO - /home/pi/Desktop/images/31032025/09/40/image_31032025_09_41_17_30166.jpg
MAIN: 2025-03-31 09:41:18,294 - INFO - duration: 0.6902233559994784
MAIN: 2025-03-31 09:41:18,294 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:41:49,207 - INFO - taking picture
MAIN: 2025-03-31 09:41:49,208 - INFO - we take 383 photos in this while loop
MAIN: 2025-03-31 09:41:49,208 - INFO - /home/pi/Desktop/images/31032025/09/41/image_31032025_09_41_48_30924.jpg
MAIN: 2025-03-31 09:41:49,208 - INFO - duration: 0.6792234730019118
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:42:06,955 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:42:19,216 - INFO - taking picture
MAIN: 2025-03-31 09:42:19,216 - INFO - we take 384 photos in this while loop
MAIN: 2025-03-31 09:42:19,217 - INFO - /home/pi/Desktop/images/31032025/09/41/image_31032025_09_42_18_30000.jpg
MAIN: 2025-03-31 09:42:19,217 - INFO - duration: 0.6875195440006792
MAIN: 2025-03-31 09:42:19,217 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:42:48,821 - INFO - taking picture
MAIN: 2025-03-31 09:42:48,822 - INFO - we take 385 photos in this while loop
MAIN: 2025-03-31 09:42:48,822 - INFO - /home/pi/Desktop/images/31032025/09/42/image_31032025_09_42_48_29619.jpg
MAIN: 2025-03-31 09:42:48,822 - INFO - duration: 0.6730759079982818
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:43:05,958 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:43:18,952 - INFO - taking picture
MAIN: 2025-03-31 09:43:18,952 - INFO - we take 386 photos in this while loop
MAIN: 2025-03-31 09:43:18,952 - INFO - /home/pi/Desktop/images/31032025/09/42/image_31032025_09_43_18_30109.jpg
MAIN: 2025-03-31 09:43:18,953 - INFO - duration: 0.6938470079985564
MAIN: 2025-03-31 09:43:18,953 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:43:48,738 - INFO - taking picture
MAIN: 2025-03-31 09:43:48,739 - INFO - we take 387 photos in this while loop
MAIN: 2025-03-31 09:43:48,739 - INFO - /home/pi/Desktop/images/31032025/09/43/image_31032025_09_43_48_29783.jpg
MAIN: 2025-03-31 09:43:48,739 - INFO - duration: 0.6969931349995022
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:44:06,398 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:44:19,070 - INFO - taking picture
MAIN: 2025-03-31 09:44:19,070 - INFO - we take 388 photos in this while loop
MAIN: 2025-03-31 09:44:19,071 - INFO - /home/pi/Desktop/images/31032025/09/43/image_31032025_09_44_18_30311.jpg
MAIN: 2025-03-31 09:44:19,071 - INFO - duration: 0.7168476209990331
MAIN: 2025-03-31 09:44:19,071 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:44:48,650 - INFO - taking picture
MAIN: 2025-03-31 09:44:48,651 - INFO - we take 389 photos in this while loop
MAIN: 2025-03-31 09:44:48,651 - INFO - /home/pi/Desktop/images/31032025/09/44/image_31032025_09_44_48_29615.jpg
MAIN: 2025-03-31 09:44:48,651 - INFO - duration: 0.682262439000624
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:45:06,755 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:45:18,601 - INFO - taking picture
MAIN: 2025-03-31 09:45:18,601 - INFO - we take 390 photos in this while loop
MAIN: 2025-03-31 09:45:18,601 - INFO - /home/pi/Desktop/images/31032025/09/44/image_31032025_09_45_18_29923.jpg
MAIN: 2025-03-31 09:45:18,602 - INFO - duration: 0.7087309260023176
MAIN: 2025-03-31 09:45:18,602 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:45:48,342 - INFO - taking picture
MAIN: 2025-03-31 09:45:48,343 - INFO - we take 391 photos in this while loop
MAIN: 2025-03-31 09:45:48,343 - INFO - /home/pi/Desktop/images/31032025/09/45/image_31032025_09_45_47_29746.jpg
MAIN: 2025-03-31 09:45:48,343 - INFO - duration: 0.7038936159988225
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:46:06,798 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:46:18,621 - INFO - taking picture
MAIN: 2025-03-31 09:46:18,621 - INFO - we take 392 photos in this while loop
MAIN: 2025-03-31 09:46:18,622 - INFO - /home/pi/Desktop/images/31032025/09/45/image_31032025_09_46_18_30318.jpg
MAIN: 2025-03-31 09:46:18,622 - INFO - duration: 0.6637101510023058
MAIN: 2025-03-31 09:46:18,622 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:46:48,297 - INFO - taking picture
MAIN: 2025-03-31 09:46:48,297 - INFO - we take 393 photos in this while loop
MAIN: 2025-03-31 09:46:48,297 - INFO - /home/pi/Desktop/images/31032025/09/46/image_31032025_09_46_47_29648.jpg
MAIN: 2025-03-31 09:46:48,298 - INFO - duration: 0.6913123310005176
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 09:47:06,502 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:47:18,376 - INFO - taking picture
MAIN: 2025-03-31 09:47:18,376 - INFO - we take 394 photos in this while loop
MAIN: 2025-03-31 09:47:18,376 - INFO - /home/pi/Desktop/images/31032025/09/46/image_31032025_09_47_17_30074.jpg
MAIN: 2025-03-31 09:47:18,377 - INFO - duration: 0.6958207870011393
MAIN: 2025-03-31 09:47:18,377 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/47'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:47:49,367 - INFO - taking picture
MAIN: 2025-03-31 09:47:49,367 - INFO - we take 395 photos in this while loop
MAIN: 2025-03-31 09:47:49,367 - INFO - /home/pi/Desktop/images/31032025/09/47/image_31032025_09_47_48_30982.jpg
MAIN: 2025-03-31 09:47:49,368 - INFO - duration: 0.7041599689982831
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:48:06,044 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:48:18,097 - INFO - taking picture
MAIN: 2025-03-31 09:48:18,098 - INFO - we take 396 photos in this while loop
MAIN: 2025-03-31 09:48:18,098 - INFO - /home/pi/Desktop/images/31032025/09/47/image_31032025_09_48_17_28763.jpg
MAIN: 2025-03-31 09:48:18,098 - INFO - duration: 0.6706435660016723
MAIN: 2025-03-31 09:48:18,098 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:48:48,878 - INFO - taking picture
MAIN: 2025-03-31 09:48:48,879 - INFO - we take 397 photos in this while loop
MAIN: 2025-03-31 09:48:48,879 - INFO - /home/pi/Desktop/images/31032025/09/48/image_31032025_09_48_48_30747.jpg
MAIN: 2025-03-31 09:48:48,879 - INFO - duration: 0.704524073000357
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:49:06,026 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:49:18,879 - INFO - taking picture
MAIN: 2025-03-31 09:49:18,880 - INFO - we take 398 photos in this while loop
MAIN: 2025-03-31 09:49:18,880 - INFO - /home/pi/Desktop/images/31032025/09/48/image_31032025_09_49_18_30066.jpg
MAIN: 2025-03-31 09:49:18,880 - INFO - duration: 0.6394905630004359
MAIN: 2025-03-31 09:49:18,881 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:49:48,653 - INFO - taking picture
MAIN: 2025-03-31 09:49:48,653 - INFO - we take 399 photos in this while loop
MAIN: 2025-03-31 09:49:48,654 - INFO - /home/pi/Desktop/images/31032025/09/49/image_31032025_09_49_48_29777.jpg
MAIN: 2025-03-31 09:49:48,654 - INFO - duration: 0.6354825109992817
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:50:06,957 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:50:18,683 - INFO - taking picture
MAIN: 2025-03-31 09:50:18,684 - INFO - we take 400 photos in this while loop
MAIN: 2025-03-31 09:50:18,684 - INFO - /home/pi/Desktop/images/31032025/09/49/image_31032025_09_50_18_30022.jpg
MAIN: 2025-03-31 09:50:18,684 - INFO - duration: 0.6435497060010675
MAIN: 2025-03-31 09:50:18,684 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:50:48,327 - INFO - taking picture
MAIN: 2025-03-31 09:50:48,328 - INFO - we take 401 photos in this while loop
MAIN: 2025-03-31 09:50:48,328 - INFO - /home/pi/Desktop/images/31032025/09/50/image_31032025_09_50_47_29641.jpg
MAIN: 2025-03-31 09:50:48,328 - INFO - duration: 0.646248207998724
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:51:06,187 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:51:18,178 - INFO - taking picture
MAIN: 2025-03-31 09:51:18,179 - INFO - we take 402 photos in this while loop
MAIN: 2025-03-31 09:51:18,179 - INFO - /home/pi/Desktop/images/31032025/09/50/image_31032025_09_51_17_29854.jpg
MAIN: 2025-03-31 09:51:18,179 - INFO - duration: 0.6427376520005055
MAIN: 2025-03-31 09:51:18,180 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:51:49,178 - INFO - taking picture
MAIN: 2025-03-31 09:51:49,179 - INFO - we take 403 photos in this while loop
MAIN: 2025-03-31 09:51:49,179 - INFO - /home/pi/Desktop/images/31032025/09/51/image_31032025_09_51_48_30945.jpg
MAIN: 2025-03-31 09:51:49,179 - INFO - duration: 0.6976040750014363
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 09:52:06,839 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:52:19,043 - INFO - taking picture
MAIN: 2025-03-31 09:52:19,043 - INFO - we take 404 photos in this while loop
MAIN: 2025-03-31 09:52:19,043 - INFO - /home/pi/Desktop/images/31032025/09/51/image_31032025_09_52_18_29897.jpg
MAIN: 2025-03-31 09:52:19,044 - INFO - duration: 0.6644102630016278
MAIN: 2025-03-31 09:52:19,044 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:52:48,585 - INFO - taking picture
MAIN: 2025-03-31 09:52:48,586 - INFO - we take 405 photos in this while loop
MAIN: 2025-03-31 09:52:48,586 - INFO - /home/pi/Desktop/images/31032025/09/52/image_31032025_09_52_48_29515.jpg
MAIN: 2025-03-31 09:52:48,586 - INFO - duration: 0.6915331170021091
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:53:05,453 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:53:18,683 - INFO - taking picture
MAIN: 2025-03-31 09:53:18,684 - INFO - we take 406 photos in this while loop
MAIN: 2025-03-31 09:53:18,684 - INFO - /home/pi/Desktop/images/31032025/09/52/image_31032025_09_53_18_30101.jpg
MAIN: 2025-03-31 09:53:18,684 - INFO - duration: 0.6882092260020727
MAIN: 2025-03-31 09:53:18,684 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/53'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:53:48,424 - INFO - taking picture
MAIN: 2025-03-31 09:53:48,425 - INFO - we take 407 photos in this while loop
MAIN: 2025-03-31 09:53:48,425 - INFO - /home/pi/Desktop/images/31032025/09/53/image_31032025_09_53_48_29729.jpg
MAIN: 2025-03-31 09:53:48,425 - INFO - duration: 0.6994431339990115
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:54:06,231 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:54:18,365 - INFO - taking picture
MAIN: 2025-03-31 09:54:18,365 - INFO - we take 408 photos in this while loop
MAIN: 2025-03-31 09:54:18,366 - INFO - /home/pi/Desktop/images/31032025/09/53/image_31032025_09_54_17_29945.jpg
MAIN: 2025-03-31 09:54:18,366 - INFO - duration: 0.694624242001737
MAIN: 2025-03-31 09:54:18,366 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:54:49,338 - INFO - taking picture
MAIN: 2025-03-31 09:54:49,338 - INFO - we take 409 photos in this while loop
MAIN: 2025-03-31 09:54:49,338 - INFO - /home/pi/Desktop/images/31032025/09/54/image_31032025_09_54_48_30955.jpg
MAIN: 2025-03-31 09:54:49,339 - INFO - duration: 0.7118714790012746
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:55:06,748 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:55:18,379 - INFO - taking picture
MAIN: 2025-03-31 09:55:18,379 - INFO - we take 410 photos in this while loop
MAIN: 2025-03-31 09:55:18,379 - INFO - /home/pi/Desktop/images/31032025/09/54/image_31032025_09_55_17_29081.jpg
MAIN: 2025-03-31 09:55:18,380 - INFO - duration: 0.6718991739980993
MAIN: 2025-03-31 09:55:18,380 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/55'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:55:48,154 - INFO - taking picture
MAIN: 2025-03-31 09:55:48,155 - INFO - we take 411 photos in this while loop
MAIN: 2025-03-31 09:55:48,155 - INFO - /home/pi/Desktop/images/31032025/09/55/image_31032025_09_55_47_29748.jpg
MAIN: 2025-03-31 09:55:48,155 - INFO - duration: 0.6989386419991206
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:56:06,772 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:56:18,493 - INFO - taking picture
MAIN: 2025-03-31 09:56:18,494 - INFO - we take 412 photos in this while loop
MAIN: 2025-03-31 09:56:18,494 - INFO - /home/pi/Desktop/images/31032025/09/55/image_31032025_09_56_18_30348.jpg
MAIN: 2025-03-31 09:56:18,494 - INFO - duration: 0.6896211050006968
MAIN: 2025-03-31 09:56:18,495 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/56'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:56:48,217 - INFO - taking picture
MAIN: 2025-03-31 09:56:48,218 - INFO - we take 413 photos in this while loop
MAIN: 2025-03-31 09:56:48,218 - INFO - /home/pi/Desktop/images/31032025/09/56/image_31032025_09_56_47_29704.jpg
MAIN: 2025-03-31 09:56:48,218 - INFO - duration: 0.7098537549973116
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:57:06,474 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:57:18,478 - INFO - taking picture
MAIN: 2025-03-31 09:57:18,478 - INFO - we take 414 photos in this while loop
MAIN: 2025-03-31 09:57:18,478 - INFO - /home/pi/Desktop/images/31032025/09/56/image_31032025_09_57_18_30287.jpg
MAIN: 2025-03-31 09:57:18,479 - INFO - duration: 0.6825968550001562
MAIN: 2025-03-31 09:57:18,479 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/57'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:57:48,194 - INFO - taking picture
MAIN: 2025-03-31 09:57:48,194 - INFO - we take 415 photos in this while loop
MAIN: 2025-03-31 09:57:48,194 - INFO - /home/pi/Desktop/images/31032025/09/57/image_31032025_09_57_47_29697.jpg
MAIN: 2025-03-31 09:57:48,195 - INFO - duration: 0.7009982029994717
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:58:05,935 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:58:18,232 - INFO - taking picture
MAIN: 2025-03-31 09:58:18,233 - INFO - we take 416 photos in this while loop
MAIN: 2025-03-31 09:58:18,233 - INFO - /home/pi/Desktop/images/31032025/09/57/image_31032025_09_58_17_30059.jpg
MAIN: 2025-03-31 09:58:18,233 - INFO - duration: 0.6804291619992
MAIN: 2025-03-31 09:58:18,234 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/58'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:58:49,208 - INFO - taking picture
MAIN: 2025-03-31 09:58:49,208 - INFO - we take 417 photos in this while loop
MAIN: 2025-03-31 09:58:49,208 - INFO - /home/pi/Desktop/images/31032025/09/58/image_31032025_09_58_48_30954.jpg
MAIN: 2025-03-31 09:58:49,208 - INFO - duration: 0.701327904000209
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 09:59:05,909 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:59:19,204 - INFO - taking picture
MAIN: 2025-03-31 09:59:19,205 - INFO - we take 418 photos in this while loop
MAIN: 2025-03-31 09:59:19,205 - INFO - /home/pi/Desktop/images/31032025/09/58/image_31032025_09_59_18_30022.jpg
MAIN: 2025-03-31 09:59:19,205 - INFO - duration: 0.6756459999996878
MAIN: 2025-03-31 09:59:19,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/09/59'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 09:59:49,059 - INFO - taking picture
MAIN: 2025-03-31 09:59:49,059 - INFO - we take 419 photos in this while loop
MAIN: 2025-03-31 09:59:49,060 - INFO - /home/pi/Desktop/images/31032025/09/59/image_31032025_09_59_48_29842.jpg
MAIN: 2025-03-31 09:59:49,060 - INFO - duration: 0.6883191739980248
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:00:06,693 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:00:19,392 - INFO - taking picture
MAIN: 2025-03-31 10:00:19,392 - INFO - we take 420 photos in this while loop
MAIN: 2025-03-31 10:00:19,393 - INFO - /home/pi/Desktop/images/31032025/09/59/image_31032025_10_00_18_30329.jpg
MAIN: 2025-03-31 10:00:19,393 - INFO - duration: 0.6915007919997151
MAIN: 2025-03-31 10:00:19,393 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/00'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:00:48,921 - INFO - taking picture
MAIN: 2025-03-31 10:00:48,922 - INFO - we take 421 photos in this while loop
MAIN: 2025-03-31 10:00:48,922 - INFO - /home/pi/Desktop/images/31032025/10/00/image_31032025_10_00_48_29527.jpg
MAIN: 2025-03-31 10:00:48,922 - INFO - duration: 0.6936726179992547
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:01:06,185 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:01:19,167 - INFO - taking picture
MAIN: 2025-03-31 10:01:19,168 - INFO - we take 422 photos in this while loop
MAIN: 2025-03-31 10:01:19,168 - INFO - /home/pi/Desktop/images/31032025/10/00/image_31032025_10_01_18_30246.jpg
MAIN: 2025-03-31 10:01:19,168 - INFO - duration: 0.6931603310003993
MAIN: 2025-03-31 10:01:19,169 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:01:48,752 - INFO - taking picture
MAIN: 2025-03-31 10:01:48,752 - INFO - we take 423 photos in this while loop
MAIN: 2025-03-31 10:01:48,753 - INFO - /home/pi/Desktop/images/31032025/10/01/image_31032025_10_01_48_29566.jpg
MAIN: 2025-03-31 10:01:48,753 - INFO - duration: 0.7108811580001202
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:02:06,417 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:02:18,620 - INFO - taking picture
MAIN: 2025-03-31 10:02:18,620 - INFO - we take 424 photos in this while loop
MAIN: 2025-03-31 10:02:18,621 - INFO - /home/pi/Desktop/images/31032025/10/01/image_31032025_10_02_18_29893.jpg
MAIN: 2025-03-31 10:02:18,621 - INFO - duration: 0.6852533659985056
MAIN: 2025-03-31 10:02:18,621 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:02:48,309 - INFO - taking picture
MAIN: 2025-03-31 10:02:48,309 - INFO - we take 425 photos in this while loop
MAIN: 2025-03-31 10:02:48,310 - INFO - /home/pi/Desktop/images/31032025/10/02/image_31032025_10_02_47_29680.jpg
MAIN: 2025-03-31 10:02:48,310 - INFO - duration: 0.6934213849999651
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:03:06,383 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:03:18,425 - INFO - taking picture
MAIN: 2025-03-31 10:03:18,426 - INFO - we take 426 photos in this while loop
MAIN: 2025-03-31 10:03:18,426 - INFO - /home/pi/Desktop/images/31032025/10/02/image_31032025_10_03_18_30114.jpg
MAIN: 2025-03-31 10:03:18,426 - INFO - duration: 0.6954681580027682
MAIN: 2025-03-31 10:03:18,426 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:03:48,099 - INFO - taking picture
MAIN: 2025-03-31 10:03:48,100 - INFO - we take 427 photos in this while loop
MAIN: 2025-03-31 10:03:48,100 - INFO - /home/pi/Desktop/images/31032025/10/03/image_31032025_10_03_47_29698.jpg
MAIN: 2025-03-31 10:03:48,101 - INFO - duration: 0.6720437500007392
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:04:06,887 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:04:18,445 - INFO - taking picture
MAIN: 2025-03-31 10:04:18,445 - INFO - we take 428 photos in this while loop
MAIN: 2025-03-31 10:04:18,445 - INFO - /home/pi/Desktop/images/31032025/10/03/image_31032025_10_04_18_30320.jpg
MAIN: 2025-03-31 10:04:18,446 - INFO - duration: 0.6965830609988188
MAIN: 2025-03-31 10:04:18,446 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:04:48,274 - INFO - taking picture
MAIN: 2025-03-31 10:04:48,274 - INFO - we take 429 photos in this while loop
MAIN: 2025-03-31 10:04:48,275 - INFO - /home/pi/Desktop/images/31032025/10/04/image_31032025_10_04_47_29813.jpg
MAIN: 2025-03-31 10:04:48,275 - INFO - duration: 0.711880866001593
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:05:06,355 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:05:18,407 - INFO - taking picture
MAIN: 2025-03-31 10:05:18,407 - INFO - we take 430 photos in this while loop
MAIN: 2025-03-31 10:05:18,407 - INFO - /home/pi/Desktop/images/31032025/10/04/image_31032025_10_05_18_30207.jpg
MAIN: 2025-03-31 10:05:18,408 - INFO - duration: 0.6376772170006006
MAIN: 2025-03-31 10:05:18,408 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:05:49,354 - INFO - taking picture
MAIN: 2025-03-31 10:05:49,355 - INFO - we take 431 photos in this while loop
MAIN: 2025-03-31 10:05:49,355 - INFO - /home/pi/Desktop/images/31032025/10/05/image_31032025_10_05_48_30894.jpg
MAIN: 2025-03-31 10:05:49,355 - INFO - duration: 0.6910400519991526
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:06:06,358 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:06:19,286 - INFO - taking picture
MAIN: 2025-03-31 10:06:19,286 - INFO - we take 432 photos in this while loop
MAIN: 2025-03-31 10:06:19,287 - INFO - /home/pi/Desktop/images/31032025/10/05/image_31032025_10_06_18_29932.jpg
MAIN: 2025-03-31 10:06:19,287 - INFO - duration: 0.6900903670029948
MAIN: 2025-03-31 10:06:19,287 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:06:48,976 - INFO - taking picture
MAIN: 2025-03-31 10:06:48,976 - INFO - we take 433 photos in this while loop
MAIN: 2025-03-31 10:06:48,977 - INFO - /home/pi/Desktop/images/31032025/10/06/image_31032025_10_06_48_29714.jpg
MAIN: 2025-03-31 10:06:48,977 - INFO - duration: 0.6658949679986108
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:07:06,226 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:07:19,113 - INFO - taking picture
MAIN: 2025-03-31 10:07:19,114 - INFO - we take 434 photos in this while loop
MAIN: 2025-03-31 10:07:19,114 - INFO - /home/pi/Desktop/images/31032025/10/06/image_31032025_10_07_18_30126.jpg
MAIN: 2025-03-31 10:07:19,114 - INFO - duration: 0.6762347559997579
MAIN: 2025-03-31 10:07:19,114 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:07:49,080 - INFO - taking picture
MAIN: 2025-03-31 10:07:49,080 - INFO - we take 435 photos in this while loop
MAIN: 2025-03-31 10:07:49,081 - INFO - /home/pi/Desktop/images/31032025/10/07/image_31032025_10_07_48_29945.jpg
MAIN: 2025-03-31 10:07:49,081 - INFO - duration: 0.697136203001719
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:08:06,872 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:08:19,328 - INFO - taking picture
MAIN: 2025-03-31 10:08:19,328 - INFO - we take 436 photos in this while loop
MAIN: 2025-03-31 10:08:19,328 - INFO - /home/pi/Desktop/images/31032025/10/07/image_31032025_10_08_18_30254.jpg
MAIN: 2025-03-31 10:08:19,329 - INFO - duration: 0.6904588659999717
MAIN: 2025-03-31 10:08:19,329 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:08:49,165 - INFO - taking picture
MAIN: 2025-03-31 10:08:49,165 - INFO - we take 437 photos in this while loop
MAIN: 2025-03-31 10:08:49,165 - INFO - /home/pi/Desktop/images/31032025/10/08/image_31032025_10_08_48_29834.jpg
MAIN: 2025-03-31 10:08:49,166 - INFO - duration: 0.6934419909994176
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:09:05,755 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:09:19,157 - INFO - taking picture
MAIN: 2025-03-31 10:09:19,158 - INFO - we take 438 photos in this while loop
MAIN: 2025-03-31 10:09:19,158 - INFO - /home/pi/Desktop/images/31032025/10/08/image_31032025_10_09_18_29988.jpg
MAIN: 2025-03-31 10:09:19,158 - INFO - duration: 0.6973563659994397
MAIN: 2025-03-31 10:09:19,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:09:48,721 - INFO - taking picture
MAIN: 2025-03-31 10:09:48,721 - INFO - we take 439 photos in this while loop
MAIN: 2025-03-31 10:09:48,721 - INFO - /home/pi/Desktop/images/31032025/10/09/image_31032025_10_09_48_29557.jpg
MAIN: 2025-03-31 10:09:48,722 - INFO - duration: 0.702886363997095
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:10:06,694 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:10:19,157 - INFO - taking picture
MAIN: 2025-03-31 10:10:19,158 - INFO - we take 440 photos in this while loop
MAIN: 2025-03-31 10:10:19,158 - INFO - /home/pi/Desktop/images/31032025/10/09/image_31032025_10_10_18_30489.jpg
MAIN: 2025-03-31 10:10:19,158 - INFO - duration: 0.6498287920003349
MAIN: 2025-03-31 10:10:19,159 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:10:48,864 - INFO - taking picture
MAIN: 2025-03-31 10:10:48,865 - INFO - we take 441 photos in this while loop
MAIN: 2025-03-31 10:10:48,865 - INFO - /home/pi/Desktop/images/31032025/10/10/image_31032025_10_10_48_29664.jpg
MAIN: 2025-03-31 10:10:48,865 - INFO - duration: 0.691976843001612
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:11:06,212 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:11:18,788 - INFO - taking picture
MAIN: 2025-03-31 10:11:18,789 - INFO - we take 442 photos in this while loop
MAIN: 2025-03-31 10:11:18,789 - INFO - /home/pi/Desktop/images/31032025/10/10/image_31032025_10_11_18_29970.jpg
MAIN: 2025-03-31 10:11:18,789 - INFO - duration: 0.645439266001631
MAIN: 2025-03-31 10:11:18,790 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/11'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:11:48,556 - INFO - taking picture
MAIN: 2025-03-31 10:11:48,556 - INFO - we take 443 photos in this while loop
MAIN: 2025-03-31 10:11:48,557 - INFO - /home/pi/Desktop/images/31032025/10/11/image_31032025_10_11_48_29772.jpg
MAIN: 2025-03-31 10:11:48,557 - INFO - duration: 0.6399974479973025
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:12:06,831 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:12:18,590 - INFO - taking picture
MAIN: 2025-03-31 10:12:18,591 - INFO - we take 444 photos in this while loop
MAIN: 2025-03-31 10:12:18,591 - INFO - /home/pi/Desktop/images/31032025/10/11/image_31032025_10_12_18_30037.jpg
MAIN: 2025-03-31 10:12:18,591 - INFO - duration: 0.6369847419991856
MAIN: 2025-03-31 10:12:18,592 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/12'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:12:48,282 - INFO - taking picture
MAIN: 2025-03-31 10:12:48,283 - INFO - we take 445 photos in this while loop
MAIN: 2025-03-31 10:12:48,283 - INFO - /home/pi/Desktop/images/31032025/10/12/image_31032025_10_12_47_29686.jpg
MAIN: 2025-03-31 10:12:48,283 - INFO - duration: 0.6427199810023012
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:13:06,718 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:13:18,539 - INFO - taking picture
MAIN: 2025-03-31 10:13:18,540 - INFO - we take 446 photos in this while loop
MAIN: 2025-03-31 10:13:18,540 - INFO - /home/pi/Desktop/images/31032025/10/12/image_31032025_10_13_18_30218.jpg
MAIN: 2025-03-31 10:13:18,540 - INFO - duration: 0.6807153780027875
MAIN: 2025-03-31 10:13:18,540 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/13'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:13:48,208 - INFO - taking picture
MAIN: 2025-03-31 10:13:48,209 - INFO - we take 447 photos in this while loop
MAIN: 2025-03-31 10:13:48,209 - INFO - /home/pi/Desktop/images/31032025/10/13/image_31032025_10_13_47_29655.jpg
MAIN: 2025-03-31 10:13:48,209 - INFO - duration: 0.6940834450033435
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:14:05,988 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:14:18,193 - INFO - taking picture
MAIN: 2025-03-31 10:14:18,194 - INFO - we take 448 photos in this while loop
MAIN: 2025-03-31 10:14:18,194 - INFO - /home/pi/Desktop/images/31032025/10/13/image_31032025_10_14_17_29982.jpg
MAIN: 2025-03-31 10:14:18,194 - INFO - duration: 0.6969502190004278
MAIN: 2025-03-31 10:14:18,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:14:49,113 - INFO - taking picture
MAIN: 2025-03-31 10:14:49,114 - INFO - we take 449 photos in this while loop
MAIN: 2025-03-31 10:14:49,114 - INFO - /home/pi/Desktop/images/31032025/10/14/image_31032025_10_14_48_30921.jpg
MAIN: 2025-03-31 10:14:49,114 - INFO - duration: 0.6955247030018654
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:15:06,286 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:15:19,244 - INFO - taking picture
MAIN: 2025-03-31 10:15:19,245 - INFO - we take 450 photos in this while loop
MAIN: 2025-03-31 10:15:19,245 - INFO - /home/pi/Desktop/images/31032025/10/14/image_31032025_10_15_18_30150.jpg
MAIN: 2025-03-31 10:15:19,245 - INFO - duration: 0.675798106000002
MAIN: 2025-03-31 10:15:19,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:15:48,983 - INFO - taking picture
MAIN: 2025-03-31 10:15:48,983 - INFO - we take 451 photos in this while loop
MAIN: 2025-03-31 10:15:48,983 - INFO - /home/pi/Desktop/images/31032025/10/15/image_31032025_10_15_48_29770.jpg
MAIN: 2025-03-31 10:15:48,984 - INFO - duration: 0.6438882340007694
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:16:06,489 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:16:19,136 - INFO - taking picture
MAIN: 2025-03-31 10:16:19,136 - INFO - we take 452 photos in this while loop
MAIN: 2025-03-31 10:16:19,136 - INFO - /home/pi/Desktop/images/31032025/10/15/image_31032025_10_16_18_30116.jpg
MAIN: 2025-03-31 10:16:19,137 - INFO - duration: 0.6808718590000353
MAIN: 2025-03-31 10:16:19,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/16'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:16:48,970 - INFO - taking picture
MAIN: 2025-03-31 10:16:48,970 - INFO - we take 453 photos in this while loop
MAIN: 2025-03-31 10:16:48,971 - INFO - /home/pi/Desktop/images/31032025/10/16/image_31032025_10_16_48_29819.jpg
MAIN: 2025-03-31 10:16:48,971 - INFO - duration: 0.6957642480010691
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:17:06,502 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:17:19,000 - INFO - taking picture
MAIN: 2025-03-31 10:17:19,001 - INFO - we take 454 photos in this while loop
MAIN: 2025-03-31 10:17:19,001 - INFO - /home/pi/Desktop/images/31032025/10/16/image_31032025_10_17_18_30024.jpg
MAIN: 2025-03-31 10:17:19,001 - INFO - duration: 0.7012493000001996
MAIN: 2025-03-31 10:17:19,002 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:17:48,649 - INFO - taking picture
MAIN: 2025-03-31 10:17:48,650 - INFO - we take 455 photos in this while loop
MAIN: 2025-03-31 10:17:48,650 - INFO - /home/pi/Desktop/images/31032025/10/17/image_31032025_10_17_48_29654.jpg
MAIN: 2025-03-31 10:17:48,650 - INFO - duration: 0.6961970660013321
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:18:06,003 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:18:18,902 - INFO - taking picture
MAIN: 2025-03-31 10:18:18,903 - INFO - we take 456 photos in this while loop
MAIN: 2025-03-31 10:18:18,903 - INFO - /home/pi/Desktop/images/31032025/10/17/image_31032025_10_18_18_30249.jpg
MAIN: 2025-03-31 10:18:18,903 - INFO - duration: 0.6995292030005658
MAIN: 2025-03-31 10:18:18,903 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:18:48,617 - INFO - taking picture
MAIN: 2025-03-31 10:18:48,617 - INFO - we take 457 photos in this while loop
MAIN: 2025-03-31 10:18:48,618 - INFO - /home/pi/Desktop/images/31032025/10/18/image_31032025_10_18_48_29724.jpg
MAIN: 2025-03-31 10:18:48,618 - INFO - duration: 0.6896841080015292
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:19:05,840 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:19:18,525 - INFO - taking picture
MAIN: 2025-03-31 10:19:18,526 - INFO - we take 458 photos in this while loop
MAIN: 2025-03-31 10:19:18,526 - INFO - /home/pi/Desktop/images/31032025/10/18/image_31032025_10_19_18_29909.jpg
MAIN: 2025-03-31 10:19:18,526 - INFO - duration: 0.6887936929997522
MAIN: 2025-03-31 10:19:18,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:19:48,272 - INFO - taking picture
MAIN: 2025-03-31 10:19:48,273 - INFO - we take 459 photos in this while loop
MAIN: 2025-03-31 10:19:48,273 - INFO - /home/pi/Desktop/images/31032025/10/19/image_31032025_10_19_47_29740.jpg
MAIN: 2025-03-31 10:19:48,273 - INFO - duration: 0.6948993689984491
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:20:07,048 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:20:18,484 - INFO - taking picture
MAIN: 2025-03-31 10:20:18,485 - INFO - we take 460 photos in this while loop
MAIN: 2025-03-31 10:20:18,485 - INFO - /home/pi/Desktop/images/31032025/10/19/image_31032025_10_20_18_30213.jpg
MAIN: 2025-03-31 10:20:18,485 - INFO - duration: 0.6931562989993836
MAIN: 2025-03-31 10:20:18,486 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:20:49,352 - INFO - taking picture
MAIN: 2025-03-31 10:20:49,353 - INFO - we take 461 photos in this while loop
MAIN: 2025-03-31 10:20:49,353 - INFO - /home/pi/Desktop/images/31032025/10/20/image_31032025_10_20_48_30892.jpg
MAIN: 2025-03-31 10:20:49,353 - INFO - duration: 0.6689947010017931
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:21:06,389 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:21:18,211 - INFO - taking picture
MAIN: 2025-03-31 10:21:18,211 - INFO - we take 462 photos in this while loop
MAIN: 2025-03-31 10:21:18,211 - INFO - /home/pi/Desktop/images/31032025/10/20/image_31032025_10_21_17_28819.jpg
MAIN: 2025-03-31 10:21:18,212 - INFO - duration: 0.7077696810010821
MAIN: 2025-03-31 10:21:18,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:21:49,100 - INFO - taking picture
MAIN: 2025-03-31 10:21:49,101 - INFO - we take 463 photos in this while loop
MAIN: 2025-03-31 10:21:49,101 - INFO - /home/pi/Desktop/images/31032025/10/21/image_31032025_10_21_48_30932.jpg
MAIN: 2025-03-31 10:21:49,101 - INFO - duration: 0.6643304370008991
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:22:06,883 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:22:19,093 - INFO - taking picture
MAIN: 2025-03-31 10:22:19,094 - INFO - we take 464 photos in this while loop
MAIN: 2025-03-31 10:22:19,094 - INFO - /home/pi/Desktop/images/31032025/10/21/image_31032025_10_22_18_29993.jpg
MAIN: 2025-03-31 10:22:19,094 - INFO - duration: 0.6634137209985056
MAIN: 2025-03-31 10:22:19,095 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:22:48,750 - INFO - taking picture
MAIN: 2025-03-31 10:22:48,751 - INFO - we take 465 photos in this while loop
MAIN: 2025-03-31 10:22:48,751 - INFO - /home/pi/Desktop/images/31032025/10/22/image_31032025_10_22_48_29655.jpg
MAIN: 2025-03-31 10:22:48,751 - INFO - duration: 0.6654831999985618
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:23:06,647 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:23:18,813 - INFO - taking picture
MAIN: 2025-03-31 10:23:18,813 - INFO - we take 466 photos in this while loop
MAIN: 2025-03-31 10:23:18,813 - INFO - /home/pi/Desktop/images/31032025/10/22/image_31032025_10_23_18_30054.jpg
MAIN: 2025-03-31 10:23:18,814 - INFO - duration: 0.6733673120033927
MAIN: 2025-03-31 10:23:18,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:23:48,598 - INFO - taking picture
MAIN: 2025-03-31 10:23:48,599 - INFO - we take 467 photos in this while loop
MAIN: 2025-03-31 10:23:48,599 - INFO - /home/pi/Desktop/images/31032025/10/23/image_31032025_10_23_48_29786.jpg
MAIN: 2025-03-31 10:23:48,599 - INFO - duration: 0.6729911149996042
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:24:06,296 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:24:18,818 - INFO - taking picture
MAIN: 2025-03-31 10:24:18,818 - INFO - we take 468 photos in this while loop
MAIN: 2025-03-31 10:24:18,819 - INFO - /home/pi/Desktop/images/31032025/10/23/image_31032025_10_24_18_30227.jpg
MAIN: 2025-03-31 10:24:18,819 - INFO - duration: 0.6645220589998644
MAIN: 2025-03-31 10:24:18,819 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:24:48,541 - INFO - taking picture
MAIN: 2025-03-31 10:24:48,542 - INFO - we take 469 photos in this while loop
MAIN: 2025-03-31 10:24:48,542 - INFO - /home/pi/Desktop/images/31032025/10/24/image_31032025_10_24_48_29705.jpg
MAIN: 2025-03-31 10:24:48,542 - INFO - duration: 0.6818278829996416
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:25:06,278 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:25:18,654 - INFO - taking picture
MAIN: 2025-03-31 10:25:18,655 - INFO - we take 470 photos in this while loop
MAIN: 2025-03-31 10:25:18,655 - INFO - /home/pi/Desktop/images/31032025/10/24/image_31032025_10_25_18_30104.jpg
MAIN: 2025-03-31 10:25:18,655 - INFO - duration: 0.6904238169991004
MAIN: 2025-03-31 10:25:18,656 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:25:48,450 - INFO - taking picture
MAIN: 2025-03-31 10:25:48,451 - INFO - we take 471 photos in this while loop
MAIN: 2025-03-31 10:25:48,451 - INFO - /home/pi/Desktop/images/31032025/10/25/image_31032025_10_25_48_29791.jpg
MAIN: 2025-03-31 10:25:48,451 - INFO - duration: 0.6954143879993353
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 10:26:06,657 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:26:18,473 - INFO - taking picture
MAIN: 2025-03-31 10:26:18,473 - INFO - we take 472 photos in this while loop
MAIN: 2025-03-31 10:26:18,474 - INFO - /home/pi/Desktop/images/31032025/10/25/image_31032025_10_26_18_30040.jpg
MAIN: 2025-03-31 10:26:18,474 - INFO - duration: 0.6773960139980773
MAIN: 2025-03-31 10:26:18,474 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/26'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:26:48,201 - INFO - taking picture
MAIN: 2025-03-31 10:26:48,202 - INFO - we take 473 photos in this while loop
MAIN: 2025-03-31 10:26:48,202 - INFO - /home/pi/Desktop/images/31032025/10/26/image_31032025_10_26_47_29708.jpg
MAIN: 2025-03-31 10:26:48,202 - INFO - duration: 0.6977058470001793
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:27:06,675 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:27:18,447 - INFO - taking picture
MAIN: 2025-03-31 10:27:18,447 - INFO - we take 474 photos in this while loop
MAIN: 2025-03-31 10:27:18,448 - INFO - /home/pi/Desktop/images/31032025/10/26/image_31032025_10_27_18_30239.jpg
MAIN: 2025-03-31 10:27:18,448 - INFO - duration: 0.7040027200018812
MAIN: 2025-03-31 10:27:18,448 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:27:48,117 - INFO - taking picture
MAIN: 2025-03-31 10:27:48,117 - INFO - we take 475 photos in this while loop
MAIN: 2025-03-31 10:27:48,118 - INFO - /home/pi/Desktop/images/31032025/10/27/image_31032025_10_27_47_29677.jpg
MAIN: 2025-03-31 10:27:48,118 - INFO - duration: 0.6960547559974657
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:28:06,083 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:28:19,375 - INFO - taking picture
MAIN: 2025-03-31 10:28:19,375 - INFO - we take 476 photos in this while loop
MAIN: 2025-03-31 10:28:19,376 - INFO - /home/pi/Desktop/images/31032025/10/27/image_31032025_10_28_18_31258.jpg
MAIN: 2025-03-31 10:28:19,376 - INFO - duration: 0.6952923099997861
MAIN: 2025-03-31 10:28:19,376 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:28:49,073 - INFO - taking picture
MAIN: 2025-03-31 10:28:49,074 - INFO - we take 477 photos in this while loop
MAIN: 2025-03-31 10:28:49,074 - INFO - /home/pi/Desktop/images/31032025/10/28/image_31032025_10_28_48_29692.jpg
MAIN: 2025-03-31 10:28:49,074 - INFO - duration: 0.7005888179992326
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:29:05,887 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:29:19,209 - INFO - taking picture
MAIN: 2025-03-31 10:29:19,210 - INFO - we take 478 photos in this while loop
MAIN: 2025-03-31 10:29:19,210 - INFO - /home/pi/Desktop/images/31032025/10/28/image_31032025_10_29_18_30129.jpg
MAIN: 2025-03-31 10:29:19,210 - INFO - duration: 0.7072124090009311
MAIN: 2025-03-31 10:29:19,211 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:29:48,904 - INFO - taking picture
MAIN: 2025-03-31 10:29:48,905 - INFO - we take 479 photos in this while loop
MAIN: 2025-03-31 10:29:48,905 - INFO - /home/pi/Desktop/images/31032025/10/29/image_31032025_10_29_48_29707.jpg
MAIN: 2025-03-31 10:29:48,905 - INFO - duration: 0.6944560109986924
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:30:07,160 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:30:18,122 - INFO - taking picture
MAIN: 2025-03-31 10:30:18,123 - INFO - we take 480 photos in this while loop
MAIN: 2025-03-31 10:30:18,123 - INFO - /home/pi/Desktop/images/31032025/10/29/image_31032025_10_30_17_29241.jpg
MAIN: 2025-03-31 10:30:18,123 - INFO - duration: 0.6710821180022322
MAIN: 2025-03-31 10:30:18,124 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:30:48,978 - INFO - taking picture
MAIN: 2025-03-31 10:30:48,979 - INFO - we take 481 photos in this while loop
MAIN: 2025-03-31 10:30:48,979 - INFO - /home/pi/Desktop/images/31032025/10/30/image_31032025_10_30_48_30818.jpg
MAIN: 2025-03-31 10:30:48,979 - INFO - duration: 0.7083947540013469
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 10:31:06,528 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:31:18,980 - INFO - taking picture
MAIN: 2025-03-31 10:31:18,980 - INFO - we take 482 photos in this while loop
MAIN: 2025-03-31 10:31:18,981 - INFO - /home/pi/Desktop/images/31032025/10/30/image_31032025_10_31_18_30015.jpg
MAIN: 2025-03-31 10:31:18,981 - INFO - duration: 0.6948686679970706
MAIN: 2025-03-31 10:31:18,981 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:31:48,609 - INFO - taking picture
MAIN: 2025-03-31 10:31:48,610 - INFO - we take 483 photos in this while loop
MAIN: 2025-03-31 10:31:48,610 - INFO - /home/pi/Desktop/images/31032025/10/31/image_31032025_10_31_48_29639.jpg
MAIN: 2025-03-31 10:31:48,610 - INFO - duration: 0.6846373719999974
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:32:07,126 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:32:18,877 - INFO - taking picture
MAIN: 2025-03-31 10:32:18,878 - INFO - we take 484 photos in this while loop
MAIN: 2025-03-31 10:32:18,878 - INFO - /home/pi/Desktop/images/31032025/10/31/image_31032025_10_32_18_30252.jpg
MAIN: 2025-03-31 10:32:18,878 - INFO - duration: 0.6997701770014828
MAIN: 2025-03-31 10:32:18,879 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:32:48,590 - INFO - taking picture
MAIN: 2025-03-31 10:32:48,591 - INFO - we take 485 photos in this while loop
MAIN: 2025-03-31 10:32:48,591 - INFO - /home/pi/Desktop/images/31032025/10/32/image_31032025_10_32_48_29706.jpg
MAIN: 2025-03-31 10:32:48,591 - INFO - duration: 0.7056881429998612
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:33:06,004 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:33:18,700 - INFO - taking picture
MAIN: 2025-03-31 10:33:18,701 - INFO - we take 486 photos in this while loop
MAIN: 2025-03-31 10:33:18,701 - INFO - /home/pi/Desktop/images/31032025/10/32/image_31032025_10_33_18_30117.jpg
MAIN: 2025-03-31 10:33:18,701 - INFO - duration: 0.6978810649998195
MAIN: 2025-03-31 10:33:18,702 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:33:48,370 - INFO - taking picture
MAIN: 2025-03-31 10:33:48,370 - INFO - we take 487 photos in this while loop
MAIN: 2025-03-31 10:33:48,371 - INFO - /home/pi/Desktop/images/31032025/10/33/image_31032025_10_33_47_29674.jpg
MAIN: 2025-03-31 10:33:48,371 - INFO - duration: 0.6931672649989196
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:34:06,261 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:34:18,423 - INFO - taking picture
MAIN: 2025-03-31 10:34:18,424 - INFO - we take 488 photos in this while loop
MAIN: 2025-03-31 10:34:18,424 - INFO - /home/pi/Desktop/images/31032025/10/33/image_31032025_10_34_18_30038.jpg
MAIN: 2025-03-31 10:34:18,424 - INFO - duration: 0.7077588200008904
MAIN: 2025-03-31 10:34:18,424 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:34:48,127 - INFO - taking picture
MAIN: 2025-03-31 10:34:48,127 - INFO - we take 489 photos in this while loop
MAIN: 2025-03-31 10:34:48,128 - INFO - /home/pi/Desktop/images/31032025/10/34/image_31032025_10_34_47_29707.jpg
MAIN: 2025-03-31 10:34:48,128 - INFO - duration: 0.7038812709979538
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:35:06,674 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:35:18,540 - INFO - taking picture
MAIN: 2025-03-31 10:35:18,541 - INFO - we take 490 photos in this while loop
MAIN: 2025-03-31 10:35:18,541 - INFO - /home/pi/Desktop/images/31032025/10/34/image_31032025_10_35_18_30404.jpg
MAIN: 2025-03-31 10:35:18,541 - INFO - duration: 0.7125019429986423
MAIN: 2025-03-31 10:35:18,542 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:35:48,339 - INFO - taking picture
MAIN: 2025-03-31 10:35:48,340 - INFO - we take 491 photos in this while loop
MAIN: 2025-03-31 10:35:48,340 - INFO - /home/pi/Desktop/images/31032025/10/35/image_31032025_10_35_47_29802.jpg
MAIN: 2025-03-31 10:35:48,340 - INFO - duration: 0.7090771540024434
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:36:06,904 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:36:18,469 - INFO - taking picture
MAIN: 2025-03-31 10:36:18,470 - INFO - we take 492 photos in this while loop
MAIN: 2025-03-31 10:36:18,470 - INFO - /home/pi/Desktop/images/31032025/10/35/image_31032025_10_36_18_30147.jpg
MAIN: 2025-03-31 10:36:18,470 - INFO - duration: 0.6917282050017093
MAIN: 2025-03-31 10:36:18,471 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/36'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:36:48,283 - INFO - taking picture
MAIN: 2025-03-31 10:36:48,283 - INFO - we take 493 photos in this while loop
MAIN: 2025-03-31 10:36:48,283 - INFO - /home/pi/Desktop/images/31032025/10/36/image_31032025_10_36_47_29798.jpg
MAIN: 2025-03-31 10:36:48,284 - INFO - duration: 0.7069023639996885
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:37:06,625 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:37:18,330 - INFO - taking picture
MAIN: 2025-03-31 10:37:18,331 - INFO - we take 494 photos in this while loop
MAIN: 2025-03-31 10:37:18,331 - INFO - /home/pi/Desktop/images/31032025/10/36/image_31032025_10_37_17_30115.jpg
MAIN: 2025-03-31 10:37:18,331 - INFO - duration: 0.6395331839994469
MAIN: 2025-03-31 10:37:18,332 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/37'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:37:49,383 - INFO - taking picture
MAIN: 2025-03-31 10:37:49,383 - INFO - we take 495 photos in this while loop
MAIN: 2025-03-31 10:37:49,383 - INFO - /home/pi/Desktop/images/31032025/10/37/image_31032025_10_37_49_30998.jpg
MAIN: 2025-03-31 10:37:49,384 - INFO - duration: 0.6928077370030223
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:38:06,026 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:38:18,115 - INFO - taking picture
MAIN: 2025-03-31 10:38:18,115 - INFO - we take 496 photos in this while loop
MAIN: 2025-03-31 10:38:18,116 - INFO - /home/pi/Desktop/images/31032025/10/37/image_31032025_10_38_17_28736.jpg
MAIN: 2025-03-31 10:38:18,116 - INFO - duration: 0.6882413860002998
MAIN: 2025-03-31 10:38:18,116 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/38'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:38:49,179 - INFO - taking picture
MAIN: 2025-03-31 10:38:49,179 - INFO - we take 497 photos in this while loop
MAIN: 2025-03-31 10:38:49,180 - INFO - /home/pi/Desktop/images/31032025/10/38/image_31032025_10_38_48_31051.jpg
MAIN: 2025-03-31 10:38:49,180 - INFO - duration: 0.7011709100006556
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:39:05,861 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:39:19,223 - INFO - taking picture
MAIN: 2025-03-31 10:39:19,223 - INFO - we take 498 photos in this while loop
MAIN: 2025-03-31 10:39:19,223 - INFO - /home/pi/Desktop/images/31032025/10/38/image_31032025_10_39_18_30053.jpg
MAIN: 2025-03-31 10:39:19,224 - INFO - duration: 0.691607581997232
MAIN: 2025-03-31 10:39:19,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/39'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:39:48,881 - INFO - taking picture
MAIN: 2025-03-31 10:39:48,881 - INFO - we take 499 photos in this while loop
MAIN: 2025-03-31 10:39:48,881 - INFO - /home/pi/Desktop/images/31032025/10/39/image_31032025_10_39_48_29672.jpg
MAIN: 2025-03-31 10:39:48,882 - INFO - duration: 0.6769097260003036
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:40:06,889 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:40:19,128 - INFO - taking picture
MAIN: 2025-03-31 10:40:19,129 - INFO - we take 500 photos in this while loop
MAIN: 2025-03-31 10:40:19,129 - INFO - /home/pi/Desktop/images/31032025/10/39/image_31032025_10_40_18_30259.jpg
MAIN: 2025-03-31 10:40:19,129 - INFO - duration: 0.6653219209983945
MAIN: 2025-03-31 10:40:19,129 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:40:48,770 - INFO - taking picture
MAIN: 2025-03-31 10:40:48,770 - INFO - we take 501 photos in this while loop
MAIN: 2025-03-31 10:40:48,771 - INFO - /home/pi/Desktop/images/31032025/10/40/image_31032025_10_40_48_29604.jpg
MAIN: 2025-03-31 10:40:48,771 - INFO - duration: 0.7023725250001007
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:41:06,209 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:41:18,617 - INFO - taking picture
MAIN: 2025-03-31 10:41:18,618 - INFO - we take 502 photos in this while loop
MAIN: 2025-03-31 10:41:18,618 - INFO - /home/pi/Desktop/images/31032025/10/40/image_31032025_10_41_18_29854.jpg
MAIN: 2025-03-31 10:41:18,618 - INFO - duration: 0.6952939869988768
MAIN: 2025-03-31 10:41:18,619 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:41:49,375 - INFO - taking picture
MAIN: 2025-03-31 10:41:49,375 - INFO - we take 503 photos in this while loop
MAIN: 2025-03-31 10:41:49,376 - INFO - /home/pi/Desktop/images/31032025/10/41/image_31032025_10_41_48_30764.jpg
MAIN: 2025-03-31 10:41:49,376 - INFO - duration: 0.6884895639996103
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:42:07,013 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:42:18,374 - INFO - taking picture
MAIN: 2025-03-31 10:42:18,375 - INFO - we take 504 photos in this while loop
MAIN: 2025-03-31 10:42:18,375 - INFO - /home/pi/Desktop/images/31032025/10/41/image_31032025_10_42_17_29018.jpg
MAIN: 2025-03-31 10:42:18,375 - INFO - duration: 0.6692032729988568
MAIN: 2025-03-31 10:42:18,376 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:42:49,389 - INFO - taking picture
MAIN: 2025-03-31 10:42:49,390 - INFO - we take 505 photos in this while loop
MAIN: 2025-03-31 10:42:49,390 - INFO - /home/pi/Desktop/images/31032025/10/42/image_31032025_10_42_49_30982.jpg
MAIN: 2025-03-31 10:42:49,390 - INFO - duration: 0.7016935669998929
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:43:05,516 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:43:19,280 - INFO - taking picture
MAIN: 2025-03-31 10:43:19,281 - INFO - we take 506 photos in this while loop
MAIN: 2025-03-31 10:43:19,281 - INFO - /home/pi/Desktop/images/31032025/10/42/image_31032025_10_43_18_29880.jpg
MAIN: 2025-03-31 10:43:19,281 - INFO - duration: 0.7120436140030506
MAIN: 2025-03-31 10:43:19,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:43:48,900 - INFO - taking picture
MAIN: 2025-03-31 10:43:48,901 - INFO - we take 507 photos in this while loop
MAIN: 2025-03-31 10:43:48,901 - INFO - /home/pi/Desktop/images/31032025/10/43/image_31032025_10_43_48_29645.jpg
MAIN: 2025-03-31 10:43:48,901 - INFO - duration: 0.6863660240014724
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:44:06,135 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:44:19,231 - INFO - taking picture
MAIN: 2025-03-31 10:44:19,231 - INFO - we take 508 photos in this while loop
MAIN: 2025-03-31 10:44:19,232 - INFO - /home/pi/Desktop/images/31032025/10/43/image_31032025_10_44_18_30343.jpg
MAIN: 2025-03-31 10:44:19,232 - INFO - duration: 0.6741094169992721
MAIN: 2025-03-31 10:44:19,232 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:44:48,806 - INFO - taking picture
MAIN: 2025-03-31 10:44:48,807 - INFO - we take 509 photos in this while loop
MAIN: 2025-03-31 10:44:48,807 - INFO - /home/pi/Desktop/images/31032025/10/44/image_31032025_10_44_48_29557.jpg
MAIN: 2025-03-31 10:44:48,807 - INFO - duration: 0.6923049789984361
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:45:06,453 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:45:19,193 - INFO - taking picture
MAIN: 2025-03-31 10:45:19,194 - INFO - we take 510 photos in this while loop
MAIN: 2025-03-31 10:45:19,194 - INFO - /home/pi/Desktop/images/31032025/10/44/image_31032025_10_45_18_30375.jpg
MAIN: 2025-03-31 10:45:19,194 - INFO - duration: 0.7040407030035567
MAIN: 2025-03-31 10:45:19,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:45:48,773 - INFO - taking picture
MAIN: 2025-03-31 10:45:48,774 - INFO - we take 511 photos in this while loop
MAIN: 2025-03-31 10:45:48,774 - INFO - /home/pi/Desktop/images/31032025/10/45/image_31032025_10_45_48_29574.jpg
MAIN: 2025-03-31 10:45:48,774 - INFO - duration: 0.7099503339995863
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:46:06,429 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:46:18,838 - INFO - taking picture
MAIN: 2025-03-31 10:46:18,839 - INFO - we take 512 photos in this while loop
MAIN: 2025-03-31 10:46:18,839 - INFO - /home/pi/Desktop/images/31032025/10/45/image_31032025_10_46_18_30060.jpg
MAIN: 2025-03-31 10:46:18,839 - INFO - duration: 0.7138624680010253
MAIN: 2025-03-31 10:46:18,840 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/46'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:46:48,530 - INFO - taking picture
MAIN: 2025-03-31 10:46:48,531 - INFO - we take 513 photos in this while loop
MAIN: 2025-03-31 10:46:48,531 - INFO - /home/pi/Desktop/images/31032025/10/46/image_31032025_10_46_48_29706.jpg
MAIN: 2025-03-31 10:46:48,531 - INFO - duration: 0.6992645589998574
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:47:06,654 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:47:18,702 - INFO - taking picture
MAIN: 2025-03-31 10:47:18,703 - INFO - we take 514 photos in this while loop
MAIN: 2025-03-31 10:47:18,703 - INFO - /home/pi/Desktop/images/31032025/10/46/image_31032025_10_47_18_30159.jpg
MAIN: 2025-03-31 10:47:18,703 - INFO - duration: 0.7120938309999474
MAIN: 2025-03-31 10:47:18,704 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/47'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:47:48,433 - INFO - taking picture
MAIN: 2025-03-31 10:47:48,434 - INFO - we take 515 photos in this while loop
MAIN: 2025-03-31 10:47:48,434 - INFO - /home/pi/Desktop/images/31032025/10/47/image_31032025_10_47_48_29736.jpg
MAIN: 2025-03-31 10:47:48,434 - INFO - duration: 0.7061688320027315
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:48:05,955 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:48:18,680 - INFO - taking picture
MAIN: 2025-03-31 10:48:18,681 - INFO - we take 516 photos in this while loop
MAIN: 2025-03-31 10:48:18,681 - INFO - /home/pi/Desktop/images/31032025/10/47/image_31032025_10_48_18_30243.jpg
MAIN: 2025-03-31 10:48:18,681 - INFO - duration: 0.7093456109978433
MAIN: 2025-03-31 10:48:18,682 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/48'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:48:48,525 - INFO - taking picture
MAIN: 2025-03-31 10:48:48,525 - INFO - we take 517 photos in this while loop
MAIN: 2025-03-31 10:48:48,526 - INFO - /home/pi/Desktop/images/31032025/10/48/image_31032025_10_48_48_29835.jpg
MAIN: 2025-03-31 10:48:48,526 - INFO - duration: 0.7187527630012482
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:49:05,806 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:49:18,365 - INFO - taking picture
MAIN: 2025-03-31 10:49:18,366 - INFO - we take 518 photos in this while loop
MAIN: 2025-03-31 10:49:18,366 - INFO - /home/pi/Desktop/images/31032025/10/48/image_31032025_10_49_17_29864.jpg
MAIN: 2025-03-31 10:49:18,366 - INFO - duration: 0.6941753140017681
MAIN: 2025-03-31 10:49:18,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/49'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:49:49,336 - INFO - taking picture
MAIN: 2025-03-31 10:49:49,337 - INFO - we take 519 photos in this while loop
MAIN: 2025-03-31 10:49:49,337 - INFO - /home/pi/Desktop/images/31032025/10/49/image_31032025_10_49_48_30981.jpg
MAIN: 2025-03-31 10:49:49,337 - INFO - duration: 0.6841755320019729
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:50:07,051 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:50:20,480 - INFO - taking picture
MAIN: 2025-03-31 10:50:20,481 - INFO - we take 520 photos in this while loop
MAIN: 2025-03-31 10:50:20,481 - INFO - /home/pi/Desktop/images/31032025/10/49/image_31032025_10_50_18_29074.jpg
MAIN: 2025-03-31 10:50:20,481 - INFO - duration: 2.7540185090001614
MAIN: 2025-03-31 10:50:20,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/50'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:50:48,942 - INFO - taking picture
MAIN: 2025-03-31 10:50:48,942 - INFO - we take 521 photos in this while loop
MAIN: 2025-03-31 10:50:48,943 - INFO - /home/pi/Desktop/images/31032025/10/50/image_31032025_10_50_48_30536.jpg
MAIN: 2025-03-31 10:50:48,943 - INFO - duration: 0.6795772360019328
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 10:51:06,198 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:51:18,823 - INFO - taking picture
MAIN: 2025-03-31 10:51:18,824 - INFO - we take 522 photos in this while loop
MAIN: 2025-03-31 10:51:18,824 - INFO - /home/pi/Desktop/images/31032025/10/50/image_31032025_10_51_18_29861.jpg
MAIN: 2025-03-31 10:51:18,824 - INFO - duration: 0.6989135139992868
MAIN: 2025-03-31 10:51:18,824 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/51'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:51:48,623 - INFO - taking picture
MAIN: 2025-03-31 10:51:48,623 - INFO - we take 523 photos in this while loop
MAIN: 2025-03-31 10:51:48,623 - INFO - /home/pi/Desktop/images/31032025/10/51/image_31032025_10_51_48_29796.jpg
MAIN: 2025-03-31 10:51:48,623 - INFO - duration: 0.7014321310016385
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:52:06,827 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:52:18,747 - INFO - taking picture
MAIN: 2025-03-31 10:52:18,747 - INFO - we take 524 photos in this while loop
MAIN: 2025-03-31 10:52:18,747 - INFO - /home/pi/Desktop/images/31032025/10/51/image_31032025_10_52_18_30129.jpg
MAIN: 2025-03-31 10:52:18,748 - INFO - duration: 0.6962372070011043
MAIN: 2025-03-31 10:52:18,748 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:52:48,471 - INFO - taking picture
MAIN: 2025-03-31 10:52:48,471 - INFO - we take 525 photos in this while loop
MAIN: 2025-03-31 10:52:48,472 - INFO - /home/pi/Desktop/images/31032025/10/52/image_31032025_10_52_48_29731.jpg
MAIN: 2025-03-31 10:52:48,472 - INFO - duration: 0.6889043150004
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:53:06,485 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:53:18,525 - INFO - taking picture
MAIN: 2025-03-31 10:53:18,526 - INFO - we take 526 photos in this while loop
MAIN: 2025-03-31 10:53:18,526 - INFO - /home/pi/Desktop/images/31032025/10/52/image_31032025_10_53_18_30054.jpg
MAIN: 2025-03-31 10:53:18,526 - INFO - duration: 0.6892603850028536
MAIN: 2025-03-31 10:53:18,527 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/53'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:53:48,262 - INFO - taking picture
MAIN: 2025-03-31 10:53:48,263 - INFO - we take 527 photos in this while loop
MAIN: 2025-03-31 10:53:48,263 - INFO - /home/pi/Desktop/images/31032025/10/53/image_31032025_10_53_47_29727.jpg
MAIN: 2025-03-31 10:53:48,263 - INFO - duration: 0.6985370299989881
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:54:06,079 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:54:18,292 - INFO - taking picture
MAIN: 2025-03-31 10:54:18,292 - INFO - we take 528 photos in this while loop
MAIN: 2025-03-31 10:54:18,292 - INFO - /home/pi/Desktop/images/31032025/10/53/image_31032025_10_54_17_30033.jpg
MAIN: 2025-03-31 10:54:18,292 - INFO - duration: 0.6945854980003787
MAIN: 2025-03-31 10:54:18,293 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:54:49,303 - INFO - taking picture
MAIN: 2025-03-31 10:54:49,304 - INFO - we take 529 photos in this while loop
MAIN: 2025-03-31 10:54:49,304 - INFO - /home/pi/Desktop/images/31032025/10/54/image_31032025_10_54_48_31032.jpg
MAIN: 2025-03-31 10:54:49,304 - INFO - duration: 0.6737543810013449
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:55:06,460 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:55:18,242 - INFO - taking picture
MAIN: 2025-03-31 10:55:18,242 - INFO - we take 530 photos in this while loop
MAIN: 2025-03-31 10:55:18,242 - INFO - /home/pi/Desktop/images/31032025/10/54/image_31032025_10_55_17_28933.jpg
MAIN: 2025-03-31 10:55:18,243 - INFO - duration: 0.6792167070016149
MAIN: 2025-03-31 10:55:18,243 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/55'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:55:49,295 - INFO - taking picture
MAIN: 2025-03-31 10:55:49,296 - INFO - we take 531 photos in this while loop
MAIN: 2025-03-31 10:55:49,296 - INFO - /home/pi/Desktop/images/31032025/10/55/image_31032025_10_55_48_31037.jpg
MAIN: 2025-03-31 10:55:49,296 - INFO - duration: 0.6957677829996101
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:56:06,412 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:56:18,129 - INFO - taking picture
MAIN: 2025-03-31 10:56:18,130 - INFO - we take 532 photos in this while loop
MAIN: 2025-03-31 10:56:18,130 - INFO - /home/pi/Desktop/images/31032025/10/55/image_31032025_10_56_17_28823.jpg
MAIN: 2025-03-31 10:56:18,130 - INFO - duration: 0.706050683002104
MAIN: 2025-03-31 10:56:18,131 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:56:49,135 - INFO - taking picture
MAIN: 2025-03-31 10:56:49,135 - INFO - we take 533 photos in this while loop
MAIN: 2025-03-31 10:56:49,135 - INFO - /home/pi/Desktop/images/31032025/10/56/image_31032025_10_56_48_31012.jpg
MAIN: 2025-03-31 10:56:49,136 - INFO - duration: 0.6986944160016719
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:57:06,411 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:57:19,301 - INFO - taking picture
MAIN: 2025-03-31 10:57:19,302 - INFO - we take 534 photos in this while loop
MAIN: 2025-03-31 10:57:19,302 - INFO - /home/pi/Desktop/images/31032025/10/56/image_31032025_10_57_18_30164.jpg
MAIN: 2025-03-31 10:57:19,302 - INFO - duration: 0.7011682550000842
MAIN: 2025-03-31 10:57:19,303 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:57:48,973 - INFO - taking picture
MAIN: 2025-03-31 10:57:48,973 - INFO - we take 535 photos in this while loop
MAIN: 2025-03-31 10:57:48,974 - INFO - /home/pi/Desktop/images/31032025/10/57/image_31032025_10_57_48_29679.jpg
MAIN: 2025-03-31 10:57:48,974 - INFO - duration: 0.6931167310031014
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 10:58:06,674 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:58:19,069 - INFO - taking picture
MAIN: 2025-03-31 10:58:19,069 - INFO - we take 536 photos in this while loop
MAIN: 2025-03-31 10:58:19,070 - INFO - /home/pi/Desktop/images/31032025/10/57/image_31032025_10_58_18_30080.jpg
MAIN: 2025-03-31 10:58:19,070 - INFO - duration: 0.7090940079979191
MAIN: 2025-03-31 10:58:19,070 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/58'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:58:48,798 - INFO - taking picture
MAIN: 2025-03-31 10:58:48,799 - INFO - we take 537 photos in this while loop
MAIN: 2025-03-31 10:58:48,799 - INFO - /home/pi/Desktop/images/31032025/10/58/image_31032025_10_58_48_29760.jpg
MAIN: 2025-03-31 10:58:48,799 - INFO - duration: 0.6778358730007312
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 10:59:06,598 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:59:18,817 - INFO - taking picture
MAIN: 2025-03-31 10:59:18,818 - INFO - we take 538 photos in this while loop
MAIN: 2025-03-31 10:59:18,818 - INFO - /home/pi/Desktop/images/31032025/10/58/image_31032025_10_59_18_30018.jpg
MAIN: 2025-03-31 10:59:18,818 - INFO - duration: 0.6787231519992929
MAIN: 2025-03-31 10:59:18,818 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/10/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 10:59:48,502 - INFO - taking picture
MAIN: 2025-03-31 10:59:48,503 - INFO - we take 539 photos in this while loop
MAIN: 2025-03-31 10:59:48,503 - INFO - /home/pi/Desktop/images/31032025/10/59/image_31032025_10_59_48_29668.jpg
MAIN: 2025-03-31 10:59:48,503 - INFO - duration: 0.6956245979999949
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:00:07,357 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:00:18,800 - INFO - taking picture
MAIN: 2025-03-31 11:00:18,801 - INFO - we take 540 photos in this while loop
MAIN: 2025-03-31 11:00:18,801 - INFO - /home/pi/Desktop/images/31032025/10/59/image_31032025_11_00_18_30293.jpg
MAIN: 2025-03-31 11:00:18,801 - INFO - duration: 0.6997477639997669
MAIN: 2025-03-31 11:00:18,802 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:00:48,444 - INFO - taking picture
MAIN: 2025-03-31 11:00:48,445 - INFO - we take 541 photos in this while loop
MAIN: 2025-03-31 11:00:48,445 - INFO - /home/pi/Desktop/images/31032025/11/00/image_31032025_11_00_48_29648.jpg
MAIN: 2025-03-31 11:00:48,445 - INFO - duration: 0.6952782230000594
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:01:06,671 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:01:18,599 - INFO - taking picture
MAIN: 2025-03-31 11:01:18,600 - INFO - we take 542 photos in this while loop
MAIN: 2025-03-31 11:01:18,600 - INFO - /home/pi/Desktop/images/31032025/11/00/image_31032025_11_01_18_30149.jpg
MAIN: 2025-03-31 11:01:18,601 - INFO - duration: 0.7007559209996543
MAIN: 2025-03-31 11:01:18,601 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:01:48,245 - INFO - taking picture
MAIN: 2025-03-31 11:01:48,246 - INFO - we take 543 photos in this while loop
MAIN: 2025-03-31 11:01:48,246 - INFO - /home/pi/Desktop/images/31032025/11/01/image_31032025_11_01_47_29667.jpg
MAIN: 2025-03-31 11:01:48,246 - INFO - duration: 0.6793234159995336
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:02:05,999 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:02:18,222 - INFO - taking picture
MAIN: 2025-03-31 11:02:18,223 - INFO - we take 544 photos in this while loop
MAIN: 2025-03-31 11:02:18,223 - INFO - /home/pi/Desktop/images/31032025/11/01/image_31032025_11_02_17_29972.jpg
MAIN: 2025-03-31 11:02:18,223 - INFO - duration: 0.6839895010016335
MAIN: 2025-03-31 11:02:18,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/02'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:02:49,223 - INFO - taking picture
MAIN: 2025-03-31 11:02:49,224 - INFO - we take 545 photos in this while loop
MAIN: 2025-03-31 11:02:49,224 - INFO - /home/pi/Desktop/images/31032025/11/02/image_31032025_11_02_48_31047.jpg
MAIN: 2025-03-31 11:02:49,224 - INFO - duration: 0.637151011997048
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:03:05,863 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:03:18,128 - INFO - taking picture
MAIN: 2025-03-31 11:03:18,129 - INFO - we take 546 photos in this while loop
MAIN: 2025-03-31 11:03:18,129 - INFO - /home/pi/Desktop/images/31032025/11/02/image_31032025_11_03_17_28836.jpg
MAIN: 2025-03-31 11:03:18,129 - INFO - duration: 0.7056927090015961
MAIN: 2025-03-31 11:03:18,130 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:03:49,045 - INFO - taking picture
MAIN: 2025-03-31 11:03:49,046 - INFO - we take 547 photos in this while loop
MAIN: 2025-03-31 11:03:49,046 - INFO - /home/pi/Desktop/images/31032025/11/03/image_31032025_11_03_48_30930.jpg
MAIN: 2025-03-31 11:03:49,046 - INFO - duration: 0.6918915069982177
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:04:06,412 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:04:19,180 - INFO - taking picture
MAIN: 2025-03-31 11:04:19,181 - INFO - we take 548 photos in this while loop
MAIN: 2025-03-31 11:04:19,181 - INFO - /home/pi/Desktop/images/31032025/11/03/image_31032025_11_04_18_30132.jpg
MAIN: 2025-03-31 11:04:19,181 - INFO - duration: 0.694466345001274
MAIN: 2025-03-31 11:04:19,182 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:04:48,925 - INFO - taking picture
MAIN: 2025-03-31 11:04:48,925 - INFO - we take 549 photos in this while loop
MAIN: 2025-03-31 11:04:48,926 - INFO - /home/pi/Desktop/images/31032025/11/04/image_31032025_11_04_48_29759.jpg
MAIN: 2025-03-31 11:04:48,926 - INFO - duration: 0.6794075910001993
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:05:06,461 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:05:18,938 - INFO - taking picture
MAIN: 2025-03-31 11:05:18,939 - INFO - we take 550 photos in this while loop
MAIN: 2025-03-31 11:05:18,939 - INFO - /home/pi/Desktop/images/31032025/11/04/image_31032025_11_05_18_29996.jpg
MAIN: 2025-03-31 11:05:18,939 - INFO - duration: 0.6956218529994658
MAIN: 2025-03-31 11:05:18,939 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:05:48,669 - INFO - taking picture
MAIN: 2025-03-31 11:05:48,669 - INFO - we take 551 photos in this while loop
MAIN: 2025-03-31 11:05:48,670 - INFO - /home/pi/Desktop/images/31032025/11/05/image_31032025_11_05_48_29744.jpg
MAIN: 2025-03-31 11:05:48,670 - INFO - duration: 0.6817849760009267
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:06:06,743 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:06:18,745 - INFO - taking picture
MAIN: 2025-03-31 11:06:18,746 - INFO - we take 552 photos in this while loop
MAIN: 2025-03-31 11:06:18,746 - INFO - /home/pi/Desktop/images/31032025/11/05/image_31032025_11_06_18_30063.jpg
MAIN: 2025-03-31 11:06:18,746 - INFO - duration: 0.694839289997617
MAIN: 2025-03-31 11:06:18,747 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:06:48,561 - INFO - taking picture
MAIN: 2025-03-31 11:06:48,562 - INFO - we take 553 photos in this while loop
MAIN: 2025-03-31 11:06:48,562 - INFO - /home/pi/Desktop/images/31032025/11/06/image_31032025_11_06_48_29812.jpg
MAIN: 2025-03-31 11:06:48,562 - INFO - duration: 0.698507981000148
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:07:05,580 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:07:18,644 - INFO - taking picture
MAIN: 2025-03-31 11:07:18,644 - INFO - we take 554 photos in this while loop
MAIN: 2025-03-31 11:07:18,645 - INFO - /home/pi/Desktop/images/31032025/11/06/image_31032025_11_07_18_30112.jpg
MAIN: 2025-03-31 11:07:18,645 - INFO - duration: 0.6690448599983938
MAIN: 2025-03-31 11:07:18,645 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:07:48,414 - INFO - taking picture
MAIN: 2025-03-31 11:07:48,415 - INFO - we take 555 photos in this while loop
MAIN: 2025-03-31 11:07:48,415 - INFO - /home/pi/Desktop/images/31032025/11/07/image_31032025_11_07_48_29744.jpg
MAIN: 2025-03-31 11:07:48,415 - INFO - duration: 0.6945568800001638
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:08:06,241 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:08:18,379 - INFO - taking picture
MAIN: 2025-03-31 11:08:18,379 - INFO - we take 556 photos in this while loop
MAIN: 2025-03-31 11:08:18,379 - INFO - /home/pi/Desktop/images/31032025/11/07/image_31032025_11_08_18_29978.jpg
MAIN: 2025-03-31 11:08:18,380 - INFO - duration: 0.6807143280020682
MAIN: 2025-03-31 11:08:18,380 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:08:48,141 - INFO - taking picture
MAIN: 2025-03-31 11:08:48,141 - INFO - we take 557 photos in this while loop
MAIN: 2025-03-31 11:08:48,142 - INFO - /home/pi/Desktop/images/31032025/11/08/image_31032025_11_08_47_29751.jpg
MAIN: 2025-03-31 11:08:48,142 - INFO - duration: 0.6915852060010366
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:09:06,060 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:09:18,261 - INFO - taking picture
MAIN: 2025-03-31 11:09:18,261 - INFO - we take 558 photos in this while loop
MAIN: 2025-03-31 11:09:18,262 - INFO - /home/pi/Desktop/images/31032025/11/08/image_31032025_11_09_17_30125.jpg
MAIN: 2025-03-31 11:09:18,262 - INFO - duration: 0.6859384849994967
MAIN: 2025-03-31 11:09:18,262 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:09:49,320 - INFO - taking picture
MAIN: 2025-03-31 11:09:49,321 - INFO - we take 559 photos in this while loop
MAIN: 2025-03-31 11:09:49,321 - INFO - /home/pi/Desktop/images/31032025/11/09/image_31032025_11_09_48_31043.jpg
MAIN: 2025-03-31 11:09:49,321 - INFO - duration: 0.7012788929969247
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:10:07,220 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:10:18,560 - INFO - taking picture
MAIN: 2025-03-31 11:10:18,561 - INFO - we take 560 photos in this while loop
MAIN: 2025-03-31 11:10:18,561 - INFO - /home/pi/Desktop/images/31032025/11/09/image_31032025_11_10_18_29251.jpg
MAIN: 2025-03-31 11:10:18,561 - INFO - duration: 0.6904364460024226
MAIN: 2025-03-31 11:10:18,562 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:10:49,378 - INFO - taking picture
MAIN: 2025-03-31 11:10:49,379 - INFO - we take 561 photos in this while loop
MAIN: 2025-03-31 11:10:49,379 - INFO - /home/pi/Desktop/images/31032025/11/10/image_31032025_11_10_48_30826.jpg
MAIN: 2025-03-31 11:10:49,379 - INFO - duration: 0.681767383000988
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:11:06,515 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:11:18,412 - INFO - taking picture
MAIN: 2025-03-31 11:11:18,413 - INFO - we take 562 photos in this while loop
MAIN: 2025-03-31 11:11:18,413 - INFO - /home/pi/Desktop/images/31032025/11/10/image_31032025_11_11_18_29014.jpg
MAIN: 2025-03-31 11:11:18,413 - INFO - duration: 0.7005834679985128
MAIN: 2025-03-31 11:11:18,414 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:11:48,126 - INFO - taking picture
MAIN: 2025-03-31 11:11:48,127 - INFO - we take 563 photos in this while loop
MAIN: 2025-03-31 11:11:48,127 - INFO - /home/pi/Desktop/images/31032025/11/11/image_31032025_11_11_47_29721.jpg
MAIN: 2025-03-31 11:11:48,127 - INFO - duration: 0.6933295609997003
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:12:06,184 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:12:18,204 - INFO - taking picture
MAIN: 2025-03-31 11:12:18,204 - INFO - we take 564 photos in this while loop
MAIN: 2025-03-31 11:12:18,204 - INFO - /home/pi/Desktop/images/31032025/11/11/image_31032025_11_12_17_30075.jpg
MAIN: 2025-03-31 11:12:18,205 - INFO - duration: 0.6954648190003354
MAIN: 2025-03-31 11:12:18,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:12:49,092 - INFO - taking picture
MAIN: 2025-03-31 11:12:49,093 - INFO - we take 565 photos in this while loop
MAIN: 2025-03-31 11:12:49,093 - INFO - /home/pi/Desktop/images/31032025/11/12/image_31032025_11_12_48_30876.jpg
MAIN: 2025-03-31 11:12:49,093 - INFO - duration: 0.707533405002323
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:13:06,224 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:13:18,834 - INFO - taking picture
MAIN: 2025-03-31 11:13:18,835 - INFO - we take 566 photos in this while loop
MAIN: 2025-03-31 11:13:18,835 - INFO - /home/pi/Desktop/images/31032025/11/12/image_31032025_11_13_18_29753.jpg
MAIN: 2025-03-31 11:13:18,836 - INFO - duration: 0.6966141359989706
MAIN: 2025-03-31 11:13:18,836 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:13:48,471 - INFO - taking picture
MAIN: 2025-03-31 11:13:48,472 - INFO - we take 567 photos in this while loop
MAIN: 2025-03-31 11:13:48,472 - INFO - /home/pi/Desktop/images/31032025/11/13/image_31032025_11_13_48_29639.jpg
MAIN: 2025-03-31 11:13:48,472 - INFO - duration: 0.6937482489993272
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:14:06,367 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:14:18,366 - INFO - taking picture
MAIN: 2025-03-31 11:14:18,366 - INFO - we take 568 photos in this while loop
MAIN: 2025-03-31 11:14:18,367 - INFO - /home/pi/Desktop/images/31032025/11/13/image_31032025_11_14_17_29895.jpg
MAIN: 2025-03-31 11:14:18,367 - INFO - duration: 0.6924516850012878
MAIN: 2025-03-31 11:14:18,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:14:48,179 - INFO - taking picture
MAIN: 2025-03-31 11:14:48,180 - INFO - we take 569 photos in this while loop
MAIN: 2025-03-31 11:14:48,180 - INFO - /home/pi/Desktop/images/31032025/11/14/image_31032025_11_14_47_29828.jpg
MAIN: 2025-03-31 11:14:48,180 - INFO - duration: 0.6768144489979022
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:15:06,800 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:15:18,472 - INFO - taking picture
MAIN: 2025-03-31 11:15:18,473 - INFO - we take 570 photos in this while loop
MAIN: 2025-03-31 11:15:18,473 - INFO - /home/pi/Desktop/images/31032025/11/14/image_31032025_11_15_18_30270.jpg
MAIN: 2025-03-31 11:15:18,473 - INFO - duration: 0.6991248039994389
MAIN: 2025-03-31 11:15:18,474 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:15:48,108 - INFO - taking picture
MAIN: 2025-03-31 11:15:48,109 - INFO - we take 571 photos in this while loop
MAIN: 2025-03-31 11:15:48,109 - INFO - /home/pi/Desktop/images/31032025/11/15/image_31032025_11_15_47_29648.jpg
MAIN: 2025-03-31 11:15:48,109 - INFO - duration: 0.6860153280031227
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:16:06,942 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:16:18,518 - INFO - taking picture
MAIN: 2025-03-31 11:16:18,519 - INFO - we take 572 photos in this while loop
MAIN: 2025-03-31 11:16:18,519 - INFO - /home/pi/Desktop/images/31032025/11/15/image_31032025_11_16_18_30398.jpg
MAIN: 2025-03-31 11:16:18,519 - INFO - duration: 0.6976665719994344
MAIN: 2025-03-31 11:16:18,520 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:16:48,162 - INFO - taking picture
MAIN: 2025-03-31 11:16:48,163 - INFO - we take 573 photos in this while loop
MAIN: 2025-03-31 11:16:48,163 - INFO - /home/pi/Desktop/images/31032025/11/16/image_31032025_11_16_47_29644.jpg
MAIN: 2025-03-31 11:16:48,163 - INFO - duration: 0.697488654001063
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:17:05,437 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:17:19,413 - INFO - taking picture
MAIN: 2025-03-31 11:17:19,413 - INFO - we take 574 photos in this while loop
MAIN: 2025-03-31 11:17:19,414 - INFO - /home/pi/Desktop/images/31032025/11/16/image_31032025_11_17_19_31236.jpg
MAIN: 2025-03-31 11:17:19,414 - INFO - duration: 0.7115535950033518
MAIN: 2025-03-31 11:17:19,414 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:17:49,140 - INFO - taking picture
MAIN: 2025-03-31 11:17:49,141 - INFO - we take 575 photos in this while loop
MAIN: 2025-03-31 11:17:49,141 - INFO - /home/pi/Desktop/images/31032025/11/17/image_31032025_11_17_48_29736.jpg
MAIN: 2025-03-31 11:17:49,141 - INFO - duration: 0.7025754200003576
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:18:06,217 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:18:19,388 - INFO - taking picture
MAIN: 2025-03-31 11:18:19,389 - INFO - we take 576 photos in this while loop
MAIN: 2025-03-31 11:18:19,389 - INFO - /home/pi/Desktop/images/31032025/11/17/image_31032025_11_18_19_30243.jpg
MAIN: 2025-03-31 11:18:19,389 - INFO - duration: 0.7070113020017743
MAIN: 2025-03-31 11:18:19,390 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:18:48,974 - INFO - taking picture
MAIN: 2025-03-31 11:18:48,975 - INFO - we take 577 photos in this while loop
MAIN: 2025-03-31 11:18:48,975 - INFO - /home/pi/Desktop/images/31032025/11/18/image_31032025_11_18_48_29613.jpg
MAIN: 2025-03-31 11:18:48,975 - INFO - duration: 0.6789622489995963
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:19:05,942 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:19:19,091 - INFO - taking picture
MAIN: 2025-03-31 11:19:19,091 - INFO - we take 578 photos in this while loop
MAIN: 2025-03-31 11:19:19,092 - INFO - /home/pi/Desktop/images/31032025/11/18/image_31032025_11_19_18_30101.jpg
MAIN: 2025-03-31 11:19:19,092 - INFO - duration: 0.6939032320005936
MAIN: 2025-03-31 11:19:19,092 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:19:48,728 - INFO - taking picture
MAIN: 2025-03-31 11:19:48,729 - INFO - we take 579 photos in this while loop
MAIN: 2025-03-31 11:19:48,729 - INFO - /home/pi/Desktop/images/31032025/11/19/image_31032025_11_19_48_29648.jpg
MAIN: 2025-03-31 11:19:48,729 - INFO - duration: 0.6830298500026402
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:20:06,774 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:20:18,865 - INFO - taking picture
MAIN: 2025-03-31 11:20:18,866 - INFO - we take 580 photos in this while loop
MAIN: 2025-03-31 11:20:18,866 - INFO - /home/pi/Desktop/images/31032025/11/19/image_31032025_11_20_18_30129.jpg
MAIN: 2025-03-31 11:20:18,866 - INFO - duration: 0.6907383869984187
MAIN: 2025-03-31 11:20:18,867 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/20'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:20:48,717 - INFO - taking picture
MAIN: 2025-03-31 11:20:48,718 - INFO - we take 581 photos in this while loop
MAIN: 2025-03-31 11:20:48,718 - INFO - /home/pi/Desktop/images/31032025/11/20/image_31032025_11_20_48_29839.jpg
MAIN: 2025-03-31 11:20:48,718 - INFO - duration: 0.7030776009996771
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:21:06,224 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:21:18,717 - INFO - taking picture
MAIN: 2025-03-31 11:21:18,717 - INFO - we take 582 photos in this while loop
MAIN: 2025-03-31 11:21:18,717 - INFO - /home/pi/Desktop/images/31032025/11/20/image_31032025_11_21_18_30002.jpg
MAIN: 2025-03-31 11:21:18,718 - INFO - duration: 0.7002240180008812
MAIN: 2025-03-31 11:21:18,718 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:21:48,368 - INFO - taking picture
MAIN: 2025-03-31 11:21:48,368 - INFO - we take 583 photos in this while loop
MAIN: 2025-03-31 11:21:48,368 - INFO - /home/pi/Desktop/images/31032025/11/21/image_31032025_11_21_47_29660.jpg
MAIN: 2025-03-31 11:21:48,369 - INFO - duration: 0.6910407920004218
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:22:06,801 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:22:18,431 - INFO - taking picture
MAIN: 2025-03-31 11:22:18,431 - INFO - we take 584 photos in this while loop
MAIN: 2025-03-31 11:22:18,431 - INFO - /home/pi/Desktop/images/31032025/11/21/image_31032025_11_22_18_30053.jpg
MAIN: 2025-03-31 11:22:18,432 - INFO - duration: 0.7002866949987947
MAIN: 2025-03-31 11:22:18,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:22:49,274 - INFO - taking picture
MAIN: 2025-03-31 11:22:49,274 - INFO - we take 585 photos in this while loop
MAIN: 2025-03-31 11:22:49,274 - INFO - /home/pi/Desktop/images/31032025/11/22/image_31032025_11_22_48_30854.jpg
MAIN: 2025-03-31 11:22:49,275 - INFO - duration: 0.688658523002232
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:23:05,461 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:23:19,082 - INFO - taking picture
MAIN: 2025-03-31 11:23:19,082 - INFO - we take 586 photos in this while loop
MAIN: 2025-03-31 11:23:19,082 - INFO - /home/pi/Desktop/images/31032025/11/22/image_31032025_11_23_18_29805.jpg
MAIN: 2025-03-31 11:23:19,083 - INFO - duration: 0.6909789050005202
MAIN: 2025-03-31 11:23:19,083 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:23:48,673 - INFO - taking picture
MAIN: 2025-03-31 11:23:48,674 - INFO - we take 587 photos in this while loop
MAIN: 2025-03-31 11:23:48,674 - INFO - /home/pi/Desktop/images/31032025/11/23/image_31032025_11_23_48_29605.jpg
MAIN: 2025-03-31 11:23:48,674 - INFO - duration: 0.6774683429975994
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:24:06,328 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:24:18,724 - INFO - taking picture
MAIN: 2025-03-31 11:24:18,724 - INFO - we take 588 photos in this while loop
MAIN: 2025-03-31 11:24:18,725 - INFO - /home/pi/Desktop/images/31032025/11/23/image_31032025_11_24_18_30039.jpg
MAIN: 2025-03-31 11:24:18,725 - INFO - duration: 0.6885461819983902
MAIN: 2025-03-31 11:24:18,725 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:24:48,325 - INFO - taking picture
MAIN: 2025-03-31 11:24:48,326 - INFO - we take 589 photos in this while loop
MAIN: 2025-03-31 11:24:48,326 - INFO - /home/pi/Desktop/images/31032025/11/24/image_31032025_11_24_47_29600.jpg
MAIN: 2025-03-31 11:24:48,326 - INFO - duration: 0.6897706330018991
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:25:06,641 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:25:18,334 - INFO - taking picture
MAIN: 2025-03-31 11:25:18,334 - INFO - we take 590 photos in this while loop
MAIN: 2025-03-31 11:25:18,335 - INFO - /home/pi/Desktop/images/31032025/11/24/image_31032025_11_25_17_30007.jpg
MAIN: 2025-03-31 11:25:18,335 - INFO - duration: 0.6904606569987664
MAIN: 2025-03-31 11:25:18,335 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:25:49,277 - INFO - taking picture
MAIN: 2025-03-31 11:25:49,277 - INFO - we take 591 photos in this while loop
MAIN: 2025-03-31 11:25:49,277 - INFO - /home/pi/Desktop/images/31032025/11/25/image_31032025_11_25_48_30936.jpg
MAIN: 2025-03-31 11:25:49,278 - INFO - duration: 0.6970698509976501
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:26:06,529 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:26:18,322 - INFO - taking picture
MAIN: 2025-03-31 11:26:18,323 - INFO - we take 592 photos in this while loop
MAIN: 2025-03-31 11:26:18,323 - INFO - /home/pi/Desktop/images/31032025/11/25/image_31032025_11_26_17_29044.jpg
MAIN: 2025-03-31 11:26:18,323 - INFO - duration: 0.6984595139983867
MAIN: 2025-03-31 11:26:18,324 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:26:49,320 - INFO - taking picture
MAIN: 2025-03-31 11:26:49,321 - INFO - we take 593 photos in this while loop
MAIN: 2025-03-31 11:26:49,321 - INFO - /home/pi/Desktop/images/31032025/11/26/image_31032025_11_26_48_31004.jpg
MAIN: 2025-03-31 11:26:49,321 - INFO - duration: 0.6919069870018575
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:27:06,544 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:27:18,101 - INFO - taking picture
MAIN: 2025-03-31 11:27:18,102 - INFO - we take 594 photos in this while loop
MAIN: 2025-03-31 11:27:18,102 - INFO - /home/pi/Desktop/images/31032025/11/26/image_31032025_11_27_17_28802.jpg
MAIN: 2025-03-31 11:27:18,102 - INFO - duration: 0.6702474810008425
MAIN: 2025-03-31 11:27:18,102 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:27:49,066 - INFO - taking picture
MAIN: 2025-03-31 11:27:49,066 - INFO - we take 595 photos in this while loop
MAIN: 2025-03-31 11:27:49,066 - INFO - /home/pi/Desktop/images/31032025/11/27/image_31032025_11_27_48_30936.jpg
MAIN: 2025-03-31 11:27:49,067 - INFO - duration: 0.6985789240025042
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:28:05,859 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:28:19,223 - INFO - taking picture
MAIN: 2025-03-31 11:28:19,223 - INFO - we take 596 photos in this while loop
MAIN: 2025-03-31 11:28:19,224 - INFO - /home/pi/Desktop/images/31032025/11/27/image_31032025_11_28_18_30160.jpg
MAIN: 2025-03-31 11:28:19,224 - INFO - duration: 0.6956963519987767
MAIN: 2025-03-31 11:28:19,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:28:48,918 - INFO - taking picture
MAIN: 2025-03-31 11:28:48,919 - INFO - we take 597 photos in this while loop
MAIN: 2025-03-31 11:28:48,919 - INFO - /home/pi/Desktop/images/31032025/11/28/image_31032025_11_28_48_29690.jpg
MAIN: 2025-03-31 11:28:48,919 - INFO - duration: 0.7004250309983036
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:29:05,754 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:29:19,125 - INFO - taking picture
MAIN: 2025-03-31 11:29:19,126 - INFO - we take 598 photos in this while loop
MAIN: 2025-03-31 11:29:19,126 - INFO - /home/pi/Desktop/images/31032025/11/28/image_31032025_11_29_18_30192.jpg
MAIN: 2025-03-31 11:29:19,126 - INFO - duration: 0.714533140999265
MAIN: 2025-03-31 11:29:19,127 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:29:48,865 - INFO - taking picture
MAIN: 2025-03-31 11:29:48,865 - INFO - we take 599 photos in this while loop
MAIN: 2025-03-31 11:29:48,866 - INFO - /home/pi/Desktop/images/31032025/11/29/image_31032025_11_29_48_29753.jpg
MAIN: 2025-03-31 11:29:48,866 - INFO - duration: 0.7007754650003335
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:30:07,108 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:30:19,244 - INFO - taking picture
MAIN: 2025-03-31 11:30:19,244 - INFO - we take 600 photos in this while loop
MAIN: 2025-03-31 11:30:19,244 - INFO - /home/pi/Desktop/images/31032025/11/29/image_31032025_11_30_18_30414.jpg
MAIN: 2025-03-31 11:30:19,244 - INFO - duration: 0.6645272679998016
MAIN: 2025-03-31 11:30:19,245 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:30:49,055 - INFO - taking picture
MAIN: 2025-03-31 11:30:49,056 - INFO - we take 601 photos in this while loop
MAIN: 2025-03-31 11:30:49,056 - INFO - /home/pi/Desktop/images/31032025/11/30/image_31032025_11_30_48_29778.jpg
MAIN: 2025-03-31 11:30:49,056 - INFO - duration: 0.6974045999995724
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:31:06,072 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:31:19,148 - INFO - taking picture
MAIN: 2025-03-31 11:31:19,149 - INFO - we take 602 photos in this while loop
MAIN: 2025-03-31 11:31:19,149 - INFO - /home/pi/Desktop/images/31032025/11/30/image_31032025_11_31_18_30100.jpg
MAIN: 2025-03-31 11:31:19,149 - INFO - duration: 0.6904963050001243
MAIN: 2025-03-31 11:31:19,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/31'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:31:48,708 - INFO - taking picture
MAIN: 2025-03-31 11:31:48,709 - INFO - we take 603 photos in this while loop
MAIN: 2025-03-31 11:31:48,709 - INFO - /home/pi/Desktop/images/31032025/11/31/image_31032025_11_31_48_29582.jpg
MAIN: 2025-03-31 11:31:48,709 - INFO - duration: 0.6676603529995191
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:32:06,596 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:32:18,595 - INFO - taking picture
MAIN: 2025-03-31 11:32:18,595 - INFO - we take 604 photos in this while loop
MAIN: 2025-03-31 11:32:18,595 - INFO - /home/pi/Desktop/images/31032025/11/31/image_31032025_11_32_18_29860.jpg
MAIN: 2025-03-31 11:32:18,596 - INFO - duration: 0.6934408110028016
MAIN: 2025-03-31 11:32:18,596 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/32'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:32:48,202 - INFO - taking picture
MAIN: 2025-03-31 11:32:48,202 - INFO - we take 605 photos in this while loop
MAIN: 2025-03-31 11:32:48,202 - INFO - /home/pi/Desktop/images/31032025/11/32/image_31032025_11_32_47_29607.jpg
MAIN: 2025-03-31 11:32:48,202 - INFO - duration: 0.6929811629997857
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:33:06,607 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:33:18,431 - INFO - taking picture
MAIN: 2025-03-31 11:33:18,431 - INFO - we take 606 photos in this while loop
MAIN: 2025-03-31 11:33:18,431 - INFO - /home/pi/Desktop/images/31032025/11/32/image_31032025_11_33_18_30227.jpg
MAIN: 2025-03-31 11:33:18,432 - INFO - duration: 0.6943015169999853
MAIN: 2025-03-31 11:33:18,432 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:33:49,285 - INFO - taking picture
MAIN: 2025-03-31 11:33:49,285 - INFO - we take 607 photos in this while loop
MAIN: 2025-03-31 11:33:49,285 - INFO - /home/pi/Desktop/images/31032025/11/33/image_31032025_11_33_48_30908.jpg
MAIN: 2025-03-31 11:33:49,286 - INFO - duration: 0.6402249960010522
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:34:06,222 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:34:19,374 - INFO - taking picture
MAIN: 2025-03-31 11:34:19,374 - INFO - we take 608 photos in this while loop
MAIN: 2025-03-31 11:34:19,375 - INFO - /home/pi/Desktop/images/31032025/11/33/image_31032025_11_34_18_30038.jpg
MAIN: 2025-03-31 11:34:19,375 - INFO - duration: 0.6911638919991674
MAIN: 2025-03-31 11:34:19,375 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:34:49,081 - INFO - taking picture
MAIN: 2025-03-31 11:34:49,081 - INFO - we take 609 photos in this while loop
MAIN: 2025-03-31 11:34:49,082 - INFO - /home/pi/Desktop/images/31032025/11/34/image_31032025_11_34_48_29698.jpg
MAIN: 2025-03-31 11:34:49,082 - INFO - duration: 0.6995555489993421
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:35:06,296 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:35:19,297 - INFO - taking picture
MAIN: 2025-03-31 11:35:19,297 - INFO - we take 610 photos in this while loop
MAIN: 2025-03-31 11:35:19,297 - INFO - /home/pi/Desktop/images/31032025/11/34/image_31032025_11_35_18_30226.jpg
MAIN: 2025-03-31 11:35:19,298 - INFO - duration: 0.6888154359985492
MAIN: 2025-03-31 11:35:19,298 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/35'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:35:48,995 - INFO - taking picture
MAIN: 2025-03-31 11:35:48,995 - INFO - we take 611 photos in this while loop
MAIN: 2025-03-31 11:35:48,996 - INFO - /home/pi/Desktop/images/31032025/11/35/image_31032025_11_35_48_29696.jpg
MAIN: 2025-03-31 11:35:48,996 - INFO - duration: 0.690697303001798
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:36:06,468 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:36:19,106 - INFO - taking picture
MAIN: 2025-03-31 11:36:19,107 - INFO - we take 612 photos in this while loop
MAIN: 2025-03-31 11:36:19,107 - INFO - /home/pi/Desktop/images/31032025/11/35/image_31032025_11_36_18_30116.jpg
MAIN: 2025-03-31 11:36:19,107 - INFO - duration: 0.68559193100009
MAIN: 2025-03-31 11:36:19,107 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:36:48,963 - INFO - taking picture
MAIN: 2025-03-31 11:36:48,964 - INFO - we take 613 photos in this while loop
MAIN: 2025-03-31 11:36:48,964 - INFO - /home/pi/Desktop/images/31032025/11/36/image_31032025_11_36_48_29851.jpg
MAIN: 2025-03-31 11:36:48,964 - INFO - duration: 0.6910253599999123
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:37:06,475 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:37:19,025 - INFO - taking picture
MAIN: 2025-03-31 11:37:19,025 - INFO - we take 614 photos in this while loop
MAIN: 2025-03-31 11:37:19,025 - INFO - /home/pi/Desktop/images/31032025/11/36/image_31032025_11_37_18_30054.jpg
MAIN: 2025-03-31 11:37:19,026 - INFO - duration: 0.6982239990029484
MAIN: 2025-03-31 11:37:19,026 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:37:48,680 - INFO - taking picture
MAIN: 2025-03-31 11:37:48,680 - INFO - we take 615 photos in this while loop
MAIN: 2025-03-31 11:37:48,680 - INFO - /home/pi/Desktop/images/31032025/11/37/image_31032025_11_37_48_29642.jpg
MAIN: 2025-03-31 11:37:48,681 - INFO - duration: 0.7108231050005998
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:38:06,756 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:38:18,680 - INFO - taking picture
MAIN: 2025-03-31 11:38:18,681 - INFO - we take 616 photos in this while loop
MAIN: 2025-03-31 11:38:18,681 - INFO - /home/pi/Desktop/images/31032025/11/37/image_31032025_11_38_18_30074.jpg
MAIN: 2025-03-31 11:38:18,681 - INFO - duration: 0.6362634200013417
MAIN: 2025-03-31 11:38:18,681 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/38'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:38:48,303 - INFO - taking picture
MAIN: 2025-03-31 11:38:48,304 - INFO - we take 617 photos in this while loop
MAIN: 2025-03-31 11:38:48,304 - INFO - /home/pi/Desktop/images/31032025/11/38/image_31032025_11_38_47_29568.jpg
MAIN: 2025-03-31 11:38:48,304 - INFO - duration: 0.6906659599990235
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:39:05,507 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:39:19,411 - INFO - taking picture
MAIN: 2025-03-31 11:39:19,411 - INFO - we take 618 photos in this while loop
MAIN: 2025-03-31 11:39:19,412 - INFO - /home/pi/Desktop/images/31032025/11/38/image_31032025_11_39_19_31085.jpg
MAIN: 2025-03-31 11:39:19,412 - INFO - duration: 0.7125595979996433
MAIN: 2025-03-31 11:39:19,412 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/39'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:39:49,099 - INFO - taking picture
MAIN: 2025-03-31 11:39:49,100 - INFO - we take 619 photos in this while loop
MAIN: 2025-03-31 11:39:49,100 - INFO - /home/pi/Desktop/images/31032025/11/39/image_31032025_11_39_48_29700.jpg
MAIN: 2025-03-31 11:39:49,100 - INFO - duration: 0.7002710519991524
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:40:06,925 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:40:18,144 - INFO - taking picture
MAIN: 2025-03-31 11:40:18,145 - INFO - we take 620 photos in this while loop
MAIN: 2025-03-31 11:40:18,145 - INFO - /home/pi/Desktop/images/31032025/11/39/image_31032025_11_40_17_29065.jpg
MAIN: 2025-03-31 11:40:18,145 - INFO - duration: 0.6791603740020946
MAIN: 2025-03-31 11:40:18,146 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/40'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:40:49,031 - INFO - taking picture
MAIN: 2025-03-31 11:40:49,032 - INFO - we take 621 photos in this while loop
MAIN: 2025-03-31 11:40:49,033 - INFO - /home/pi/Desktop/images/31032025/11/40/image_31032025_11_40_48_30865.jpg
MAIN: 2025-03-31 11:40:49,033 - INFO - duration: 0.7011146889999509
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:41:06,024 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:41:18,861 - INFO - taking picture
MAIN: 2025-03-31 11:41:18,861 - INFO - we take 622 photos in this while loop
MAIN: 2025-03-31 11:41:18,861 - INFO - /home/pi/Desktop/images/31032025/11/40/image_31032025_11_41_18_29833.jpg
MAIN: 2025-03-31 11:41:18,862 - INFO - duration: 0.6961151540017454
MAIN: 2025-03-31 11:41:18,862 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/41'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:41:48,510 - INFO - taking picture
MAIN: 2025-03-31 11:41:48,511 - INFO - we take 623 photos in this while loop
MAIN: 2025-03-31 11:41:48,511 - INFO - /home/pi/Desktop/images/31032025/11/41/image_31032025_11_41_48_29661.jpg
MAIN: 2025-03-31 11:41:48,511 - INFO - duration: 0.6843157250004879
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:42:06,590 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:42:18,637 - INFO - taking picture
MAIN: 2025-03-31 11:42:18,638 - INFO - we take 624 photos in this while loop
MAIN: 2025-03-31 11:42:18,638 - INFO - /home/pi/Desktop/images/31032025/11/41/image_31032025_11_42_18_30167.jpg
MAIN: 2025-03-31 11:42:18,638 - INFO - duration: 0.6435689039972203
MAIN: 2025-03-31 11:42:18,639 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/42'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:42:48,348 - INFO - taking picture
MAIN: 2025-03-31 11:42:48,349 - INFO - we take 625 photos in this while loop
MAIN: 2025-03-31 11:42:48,349 - INFO - /home/pi/Desktop/images/31032025/11/42/image_31032025_11_42_47_29648.jpg
MAIN: 2025-03-31 11:42:48,349 - INFO - duration: 0.7058862860030786
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:43:06,215 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:43:18,484 - INFO - taking picture
MAIN: 2025-03-31 11:43:18,484 - INFO - we take 626 photos in this while loop
MAIN: 2025-03-31 11:43:18,485 - INFO - /home/pi/Desktop/images/31032025/11/42/image_31032025_11_43_18_30141.jpg
MAIN: 2025-03-31 11:43:18,485 - INFO - duration: 0.6992386800011445
MAIN: 2025-03-31 11:43:18,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/43'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:43:48,209 - INFO - taking picture
MAIN: 2025-03-31 11:43:48,209 - INFO - we take 627 photos in this while loop
MAIN: 2025-03-31 11:43:48,210 - INFO - /home/pi/Desktop/images/31032025/11/43/image_31032025_11_43_47_29720.jpg
MAIN: 2025-03-31 11:43:48,210 - INFO - duration: 0.703433935999783
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:44:07,012 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0

 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)MAIN: 2025-03-31 11:44:18,263 - INFO - taking picture
MAIN: 2025-03-31 11:44:18,263 - INFO - we take 628 photos in this while loop
MAIN: 2025-03-31 11:44:18,263 - INFO - /home/pi/Desktop/images/31032025/11/43/image_31032025_11_44_17_30116.jpg
MAIN: 2025-03-31 11:44:18,263 - INFO - duration: 0.6410259759977635
MAIN: 2025-03-31 11:44:18,264 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/44'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:44:49,227 - INFO - taking picture
MAIN: 2025-03-31 11:44:49,227 - INFO - we take 629 photos in this while loop
MAIN: 2025-03-31 11:44:49,227 - INFO - /home/pi/Desktop/images/31032025/11/44/image_31032025_11_44_48_30910.jpg
MAIN: 2025-03-31 11:44:49,228 - INFO - duration: 0.6947783590003382
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:45:06,508 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:45:19,380 - INFO - taking picture
MAIN: 2025-03-31 11:45:19,381 - INFO - we take 630 photos in this while loop
MAIN: 2025-03-31 11:45:19,381 - INFO - /home/pi/Desktop/images/31032025/11/44/image_31032025_11_45_19_30150.jpg
MAIN: 2025-03-31 11:45:19,381 - INFO - duration: 0.6980862199998228
MAIN: 2025-03-31 11:45:19,382 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/45'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:45:49,134 - INFO - taking picture
MAIN: 2025-03-31 11:45:49,135 - INFO - we take 631 photos in this while loop
MAIN: 2025-03-31 11:45:49,135 - INFO - /home/pi/Desktop/images/31032025/11/45/image_31032025_11_45_48_29753.jpg
MAIN: 2025-03-31 11:45:49,135 - INFO - duration: 0.6988758010011225
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:46:06,289 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:46:19,245 - INFO - taking picture
MAIN: 2025-03-31 11:46:19,246 - INFO - we take 632 photos in this while loop
MAIN: 2025-03-31 11:46:19,246 - INFO - /home/pi/Desktop/images/31032025/11/45/image_31032025_11_46_18_30143.jpg
MAIN: 2025-03-31 11:46:19,246 - INFO - duration: 0.6664207000030729
MAIN: 2025-03-31 11:46:19,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:46:49,076 - INFO - taking picture
MAIN: 2025-03-31 11:46:49,077 - INFO - we take 633 photos in this while loop
MAIN: 2025-03-31 11:46:49,077 - INFO - /home/pi/Desktop/images/31032025/11/46/image_31032025_11_46_48_29802.jpg
MAIN: 2025-03-31 11:46:49,077 - INFO - duration: 0.694686578000983
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:47:06,128 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:47:19,101 - INFO - taking picture
MAIN: 2025-03-31 11:47:19,102 - INFO - we take 634 photos in this while loop
MAIN: 2025-03-31 11:47:19,102 - INFO - /home/pi/Desktop/images/31032025/11/46/image_31032025_11_47_18_30022.jpg
MAIN: 2025-03-31 11:47:19,102 - INFO - duration: 0.69734376300039
MAIN: 2025-03-31 11:47:19,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:47:48,847 - INFO - taking picture
MAIN: 2025-03-31 11:47:48,848 - INFO - we take 635 photos in this while loop
MAIN: 2025-03-31 11:47:48,848 - INFO - /home/pi/Desktop/images/31032025/11/47/image_31032025_11_47_48_29747.jpg
MAIN: 2025-03-31 11:47:48,849 - INFO - duration: 0.6961385530012194
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:48:06,632 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:48:18,969 - INFO - taking picture
MAIN: 2025-03-31 11:48:18,970 - INFO - we take 636 photos in this while loop
MAIN: 2025-03-31 11:48:18,970 - INFO - /home/pi/Desktop/images/31032025/11/47/image_31032025_11_48_18_30142.jpg
MAIN: 2025-03-31 11:48:18,970 - INFO - duration: 0.6752456899994286
MAIN: 2025-03-31 11:48:18,971 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:48:48,813 - INFO - taking picture
MAIN: 2025-03-31 11:48:48,814 - INFO - we take 637 photos in this while loop
MAIN: 2025-03-31 11:48:48,814 - INFO - /home/pi/Desktop/images/31032025/11/48/image_31032025_11_48_48_29833.jpg
MAIN: 2025-03-31 11:48:48,814 - INFO - duration: 0.6855763640014629
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:49:06,594 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:49:18,843 - INFO - taking picture
MAIN: 2025-03-31 11:49:18,843 - INFO - we take 638 photos in this while loop
MAIN: 2025-03-31 11:49:18,844 - INFO - /home/pi/Desktop/images/31032025/11/48/image_31032025_11_49_18_30045.jpg
MAIN: 2025-03-31 11:49:18,844 - INFO - duration: 0.6696350629972585
MAIN: 2025-03-31 11:49:18,844 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:49:48,591 - INFO - taking picture
MAIN: 2025-03-31 11:49:48,592 - INFO - we take 639 photos in this while loop
MAIN: 2025-03-31 11:49:48,592 - INFO - /home/pi/Desktop/images/31032025/11/49/image_31032025_11_49_48_29712.jpg
MAIN: 2025-03-31 11:49:48,592 - INFO - duration: 0.7058068250007636
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:50:07,327 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:50:18,827 - INFO - taking picture
MAIN: 2025-03-31 11:50:18,828 - INFO - we take 640 photos in this while loop
MAIN: 2025-03-31 11:50:18,828 - INFO - /home/pi/Desktop/images/31032025/11/49/image_31032025_11_50_18_30262.jpg
MAIN: 2025-03-31 11:50:18,828 - INFO - duration: 0.6789222980005434
MAIN: 2025-03-31 11:50:18,829 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:50:48,467 - INFO - taking picture
MAIN: 2025-03-31 11:50:48,468 - INFO - we take 641 photos in this while loop
MAIN: 2025-03-31 11:50:48,468 - INFO - /home/pi/Desktop/images/31032025/11/50/image_31032025_11_50_48_29629.jpg
MAIN: 2025-03-31 11:50:48,468 - INFO - duration: 0.689697501999035
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:51:05,576 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:51:18,480 - INFO - taking picture
MAIN: 2025-03-31 11:51:18,481 - INFO - we take 642 photos in this while loop
MAIN: 2025-03-31 11:51:18,481 - INFO - /home/pi/Desktop/images/31032025/11/50/image_31032025_11_51_18_30004.jpg
MAIN: 2025-03-31 11:51:18,481 - INFO - duration: 0.6981937490018026
MAIN: 2025-03-31 11:51:18,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:51:48,242 - INFO - taking picture
MAIN: 2025-03-31 11:51:48,243 - INFO - we take 643 photos in this while loop
MAIN: 2025-03-31 11:51:48,243 - INFO - /home/pi/Desktop/images/31032025/11/51/image_31032025_11_51_47_29769.jpg
MAIN: 2025-03-31 11:51:48,243 - INFO - duration: 0.6904988019996381
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:52:05,840 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:52:18,388 - INFO - taking picture
MAIN: 2025-03-31 11:52:18,389 - INFO - we take 644 photos in this while loop
MAIN: 2025-03-31 11:52:18,389 - INFO - /home/pi/Desktop/images/31032025/11/51/image_31032025_11_52_18_30143.jpg
MAIN: 2025-03-31 11:52:18,389 - INFO - duration: 0.6923281240015058
MAIN: 2025-03-31 11:52:18,390 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:52:48,128 - INFO - taking picture
MAIN: 2025-03-31 11:52:48,129 - INFO - we take 645 photos in this while loop
MAIN: 2025-03-31 11:52:48,129 - INFO - /home/pi/Desktop/images/31032025/11/52/image_31032025_11_52_47_29727.jpg
MAIN: 2025-03-31 11:52:48,129 - INFO - duration: 0.705099994000193
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:53:06,024 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:53:18,241 - INFO - taking picture
MAIN: 2025-03-31 11:53:18,242 - INFO - we take 646 photos in this while loop
MAIN: 2025-03-31 11:53:18,242 - INFO - /home/pi/Desktop/images/31032025/11/52/image_31032025_11_53_17_30124.jpg
MAIN: 2025-03-31 11:53:18,242 - INFO - duration: 0.6936011409998173
MAIN: 2025-03-31 11:53:18,243 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:53:49,202 - INFO - taking picture
MAIN: 2025-03-31 11:53:49,203 - INFO - we take 647 photos in this while loop
MAIN: 2025-03-31 11:53:49,203 - INFO - /home/pi/Desktop/images/31032025/11/53/image_31032025_11_53_48_30956.jpg
MAIN: 2025-03-31 11:53:49,203 - INFO - duration: 0.6976740040008735
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:54:06,294 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:54:18,324 - INFO - taking picture
MAIN: 2025-03-31 11:54:18,324 - INFO - we take 648 photos in this while loop
MAIN: 2025-03-31 11:54:18,325 - INFO - /home/pi/Desktop/images/31032025/11/53/image_31032025_11_54_17_29129.jpg
MAIN: 2025-03-31 11:54:18,325 - INFO - duration: 0.6898638490019948
MAIN: 2025-03-31 11:54:18,325 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/54'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:54:49,302 - INFO - taking picture
MAIN: 2025-03-31 11:54:49,303 - INFO - we take 649 photos in this while loop
MAIN: 2025-03-31 11:54:49,303 - INFO - /home/pi/Desktop/images/31032025/11/54/image_31032025_11_54_48_30992.jpg
MAIN: 2025-03-31 11:54:49,303 - INFO - duration: 0.6751785390006262
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 11:55:06,878 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:55:18,315 - INFO - taking picture
MAIN: 2025-03-31 11:55:18,315 - INFO - we take 650 photos in this while loop
MAIN: 2025-03-31 11:55:18,315 - INFO - /home/pi/Desktop/images/31032025/11/54/image_31032025_11_55_17_28994.jpg
MAIN: 2025-03-31 11:55:18,315 - INFO - duration: 0.692809591000696
MAIN: 2025-03-31 11:55:18,316 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:55:49,208 - INFO - taking picture
MAIN: 2025-03-31 11:55:49,209 - INFO - we take 651 photos in this while loop
MAIN: 2025-03-31 11:55:49,209 - INFO - /home/pi/Desktop/images/31032025/11/55/image_31032025_11_55_48_30897.jpg
MAIN: 2025-03-31 11:55:49,209 - INFO - duration: 0.6892008729992085
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:56:05,911 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:56:19,381 - INFO - taking picture
MAIN: 2025-03-31 11:56:19,382 - INFO - we take 652 photos in this while loop
MAIN: 2025-03-31 11:56:19,382 - INFO - /home/pi/Desktop/images/31032025/11/55/image_31032025_11_56_18_30148.jpg
MAIN: 2025-03-31 11:56:19,382 - INFO - duration: 0.7140734140011773
MAIN: 2025-03-31 11:56:19,383 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:56:49,169 - INFO - taking picture
MAIN: 2025-03-31 11:56:49,170 - INFO - we take 653 photos in this while loop
MAIN: 2025-03-31 11:56:49,170 - INFO - /home/pi/Desktop/images/31032025/11/56/image_31032025_11_56_48_29810.jpg
MAIN: 2025-03-31 11:56:49,170 - INFO - duration: 0.6907577669990133
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:57:05,901 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:57:19,284 - INFO - taking picture
MAIN: 2025-03-31 11:57:19,284 - INFO - we take 654 photos in this while loop
MAIN: 2025-03-31 11:57:19,284 - INFO - /home/pi/Desktop/images/31032025/11/56/image_31032025_11_57_18_30092.jpg
MAIN: 2025-03-31 11:57:19,285 - INFO - duration: 0.7128167139999277
MAIN: 2025-03-31 11:57:19,285 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/57'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:57:48,948 - INFO - taking picture
MAIN: 2025-03-31 11:57:48,949 - INFO - we take 655 photos in this while loop
MAIN: 2025-03-31 11:57:48,949 - INFO - /home/pi/Desktop/images/31032025/11/57/image_31032025_11_57_48_29670.jpg
MAIN: 2025-03-31 11:57:48,949 - INFO - duration: 0.7076052910015278
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:58:06,255 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:58:19,195 - INFO - taking picture
MAIN: 2025-03-31 11:58:19,195 - INFO - we take 656 photos in this while loop
MAIN: 2025-03-31 11:58:19,195 - INFO - /home/pi/Desktop/images/31032025/11/57/image_31032025_11_58_18_30246.jpg
MAIN: 2025-03-31 11:58:19,196 - INFO - duration: 0.7068111099979433
MAIN: 2025-03-31 11:58:19,196 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/58'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:58:48,885 - INFO - taking picture
MAIN: 2025-03-31 11:58:48,885 - INFO - we take 657 photos in this while loop
MAIN: 2025-03-31 11:58:48,886 - INFO - /home/pi/Desktop/images/31032025/11/58/image_31032025_11_58_48_29720.jpg
MAIN: 2025-03-31 11:58:48,886 - INFO - duration: 0.6770967170014046
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 11:59:06,437 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:59:18,787 - INFO - taking picture
MAIN: 2025-03-31 11:59:18,787 - INFO - we take 658 photos in this while loop
MAIN: 2025-03-31 11:59:18,787 - INFO - /home/pi/Desktop/images/31032025/11/58/image_31032025_11_59_18_29881.jpg
MAIN: 2025-03-31 11:59:18,788 - INFO - duration: 0.6973780620028265
MAIN: 2025-03-31 11:59:18,788 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/11/59'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 11:59:48,585 - INFO - taking picture
MAIN: 2025-03-31 11:59:48,585 - INFO - we take 659 photos in this while loop
MAIN: 2025-03-31 11:59:48,586 - INFO - /home/pi/Desktop/images/31032025/11/59/image_31032025_11_59_48_29798.jpg
MAIN: 2025-03-31 11:59:48,586 - INFO - duration: 0.6971255499993276
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:00:06,311 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:00:18,947 - INFO - taking picture
MAIN: 2025-03-31 12:00:18,948 - INFO - we take 660 photos in this while loop
MAIN: 2025-03-31 12:00:18,948 - INFO - /home/pi/Desktop/images/31032025/11/59/image_31032025_12_00_18_30362.jpg
MAIN: 2025-03-31 12:00:18,948 - INFO - duration: 0.6976867369994579
MAIN: 2025-03-31 12:00:18,949 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/00'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:00:48,586 - INFO - taking picture
MAIN: 2025-03-31 12:00:48,586 - INFO - we take 661 photos in this while loop
MAIN: 2025-03-31 12:00:48,586 - INFO - /home/pi/Desktop/images/31032025/12/00/image_31032025_12_00_48_29635.jpg
MAIN: 2025-03-31 12:00:48,586 - INFO - duration: 0.7005220380015089
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:01:05,775 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:01:18,645 - INFO - taking picture
MAIN: 2025-03-31 12:01:18,645 - INFO - we take 662 photos in this while loop
MAIN: 2025-03-31 12:01:18,645 - INFO - /home/pi/Desktop/images/31032025/12/00/image_31032025_12_01_18_30071.jpg
MAIN: 2025-03-31 12:01:18,646 - INFO - duration: 0.68809713200244
MAIN: 2025-03-31 12:01:18,646 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/01'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:01:48,452 - INFO - taking picture
MAIN: 2025-03-31 12:01:48,453 - INFO - we take 663 photos in this while loop
MAIN: 2025-03-31 12:01:48,453 - INFO - /home/pi/Desktop/images/31032025/12/01/image_31032025_12_01_48_29821.jpg
MAIN: 2025-03-31 12:01:48,453 - INFO - duration: 0.674399622999772
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:02:06,521 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:02:18,681 - INFO - taking picture
MAIN: 2025-03-31 12:02:18,682 - INFO - we take 664 photos in this while loop
MAIN: 2025-03-31 12:02:18,682 - INFO - /home/pi/Desktop/images/31032025/12/01/image_31032025_12_02_18_30196.jpg
MAIN: 2025-03-31 12:02:18,682 - INFO - duration: 0.7075463340006536
MAIN: 2025-03-31 12:02:18,683 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/02'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:02:48,472 - INFO - taking picture
MAIN: 2025-03-31 12:02:48,473 - INFO - we take 665 photos in this while loop
MAIN: 2025-03-31 12:02:48,473 - INFO - /home/pi/Desktop/images/31032025/12/02/image_31032025_12_02_48_29824.jpg
MAIN: 2025-03-31 12:02:48,473 - INFO - duration: 0.6730467930028681
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:03:06,055 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:03:18,279 - INFO - taking picture
MAIN: 2025-03-31 12:03:18,279 - INFO - we take 666 photos in this while loop
MAIN: 2025-03-31 12:03:18,279 - INFO - /home/pi/Desktop/images/31032025/12/02/image_31032025_12_03_17_29792.jpg
MAIN: 2025-03-31 12:03:18,280 - INFO - duration: 0.6876490769973316
MAIN: 2025-03-31 12:03:18,280 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/03'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:03:49,329 - INFO - taking picture
MAIN: 2025-03-31 12:03:49,329 - INFO - we take 667 photos in this while loop
MAIN: 2025-03-31 12:03:49,329 - INFO - /home/pi/Desktop/images/31032025/12/03/image_31032025_12_03_48_31037.jpg
MAIN: 2025-03-31 12:03:49,330 - INFO - duration: 0.7000916739998502
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:04:06,691 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:04:18,375 - INFO - taking picture
MAIN: 2025-03-31 12:04:18,375 - INFO - we take 668 photos in this while loop
MAIN: 2025-03-31 12:04:18,376 - INFO - /home/pi/Desktop/images/31032025/12/03/image_31032025_12_04_17_29051.jpg
MAIN: 2025-03-31 12:04:18,376 - INFO - duration: 0.6946603649994358
MAIN: 2025-03-31 12:04:18,376 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/04'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:04:48,125 - INFO - taking picture
MAIN: 2025-03-31 12:04:48,125 - INFO - we take 669 photos in this while loop
MAIN: 2025-03-31 12:04:48,126 - INFO - /home/pi/Desktop/images/31032025/12/04/image_31032025_12_04_47_29761.jpg
MAIN: 2025-03-31 12:04:48,126 - INFO - duration: 0.683559265002259
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:05:06,612 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:05:18,272 - INFO - taking picture
MAIN: 2025-03-31 12:05:18,273 - INFO - we take 670 photos in this while loop
MAIN: 2025-03-31 12:05:18,273 - INFO - /home/pi/Desktop/images/31032025/12/04/image_31032025_12_05_17_30127.jpg
MAIN: 2025-03-31 12:05:18,273 - INFO - duration: 0.7033391019976989
MAIN: 2025-03-31 12:05:18,274 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/05'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:05:48,142 - INFO - taking picture
MAIN: 2025-03-31 12:05:48,143 - INFO - we take 671 photos in this while loop
MAIN: 2025-03-31 12:05:48,143 - INFO - /home/pi/Desktop/images/31032025/12/05/image_31032025_12_05_47_29867.jpg
MAIN: 2025-03-31 12:05:48,143 - INFO - duration: 0.7053922209997836
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:06:05,993 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:06:18,147 - INFO - taking picture
MAIN: 2025-03-31 12:06:18,148 - INFO - we take 672 photos in this while loop
MAIN: 2025-03-31 12:06:18,148 - INFO - /home/pi/Desktop/images/31032025/12/05/image_31032025_12_06_17_30014.jpg
MAIN: 2025-03-31 12:06:18,148 - INFO - duration: 0.6967552889982471
MAIN: 2025-03-31 12:06:18,149 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/06'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:06:49,123 - INFO - taking picture
MAIN: 2025-03-31 12:06:49,124 - INFO - we take 673 photos in this while loop
MAIN: 2025-03-31 12:06:49,124 - INFO - /home/pi/Desktop/images/31032025/12/06/image_31032025_12_06_48_30987.jpg
MAIN: 2025-03-31 12:06:49,124 - INFO - duration: 0.6851809090003371
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:07:05,756 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:07:19,316 - INFO - taking picture
MAIN: 2025-03-31 12:07:19,316 - INFO - we take 674 photos in this while loop
MAIN: 2025-03-31 12:07:19,317 - INFO - /home/pi/Desktop/images/31032025/12/06/image_31032025_12_07_18_30152.jpg
MAIN: 2025-03-31 12:07:19,317 - INFO - duration: 0.7252089229987178
MAIN: 2025-03-31 12:07:19,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/07'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:07:48,890 - INFO - taking picture
MAIN: 2025-03-31 12:07:48,890 - INFO - we take 675 photos in this while loop
MAIN: 2025-03-31 12:07:48,891 - INFO - /home/pi/Desktop/images/31032025/12/07/image_31032025_12_07_48_29614.jpg
MAIN: 2025-03-31 12:07:48,891 - INFO - duration: 0.6845840249989124
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:08:06,363 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:08:19,241 - INFO - taking picture
MAIN: 2025-03-31 12:08:19,241 - INFO - we take 676 photos in this while loop
MAIN: 2025-03-31 12:08:19,241 - INFO - /home/pi/Desktop/images/31032025/12/07/image_31032025_12_08_18_30340.jpg
MAIN: 2025-03-31 12:08:19,242 - INFO - duration: 0.6948858430005203
MAIN: 2025-03-31 12:08:19,242 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/08'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:08:48,859 - INFO - taking picture
MAIN: 2025-03-31 12:08:48,866 - INFO - we take 677 photos in this while loop
MAIN: 2025-03-31 12:08:48,866 - INFO - /home/pi/Desktop/images/31032025/12/08/image_31032025_12_08_48_29610.jpg
MAIN: 2025-03-31 12:08:48,866 - INFO - duration: 0.7092453169971122
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:09:06,056 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:09:18,687 - INFO - taking picture
MAIN: 2025-03-31 12:09:18,691 - INFO - we take 678 photos in this while loop
MAIN: 2025-03-31 12:09:18,691 - INFO - /home/pi/Desktop/images/31032025/12/08/image_31032025_12_09_18_29824.jpg
MAIN: 2025-03-31 12:09:18,691 - INFO - duration: 0.7096017719995871
MAIN: 2025-03-31 12:09:18,692 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/09'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:09:48,490 - INFO - taking picture
MAIN: 2025-03-31 12:09:48,490 - INFO - we take 679 photos in this while loop
MAIN: 2025-03-31 12:09:48,490 - INFO - /home/pi/Desktop/images/31032025/12/09/image_31032025_12_09_48_29832.jpg
MAIN: 2025-03-31 12:09:48,491 - INFO - duration: 0.6761276560027909
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:10:07,012 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:10:18,967 - INFO - taking picture
MAIN: 2025-03-31 12:10:18,968 - INFO - we take 680 photos in this while loop
MAIN: 2025-03-31 12:10:18,968 - INFO - /home/pi/Desktop/images/31032025/12/09/image_31032025_12_10_18_30463.jpg
MAIN: 2025-03-31 12:10:18,968 - INFO - duration: 0.6906284319993574
MAIN: 2025-03-31 12:10:18,969 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:10:48,609 - INFO - taking picture
MAIN: 2025-03-31 12:10:48,610 - INFO - we take 681 photos in this while loop
MAIN: 2025-03-31 12:10:48,610 - INFO - /home/pi/Desktop/images/31032025/12/10/image_31032025_12_10_48_29638.jpg
MAIN: 2025-03-31 12:10:48,611 - INFO - duration: 0.6948635849985294
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:11:05,619 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:11:18,903 - INFO - taking picture
MAIN: 2025-03-31 12:11:18,904 - INFO - we take 682 photos in this while loop
MAIN: 2025-03-31 12:11:18,904 - INFO - /home/pi/Desktop/images/31032025/12/10/image_31032025_12_11_18_30302.jpg
MAIN: 2025-03-31 12:11:18,904 - INFO - duration: 0.6860568109987071
MAIN: 2025-03-31 12:11:18,905 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:11:48,548 - INFO - taking picture
MAIN: 2025-03-31 12:11:48,548 - INFO - we take 683 photos in this while loop
MAIN: 2025-03-31 12:11:48,549 - INFO - /home/pi/Desktop/images/31032025/12/11/image_31032025_12_11_48_29638.jpg
MAIN: 2025-03-31 12:11:48,549 - INFO - duration: 0.6918693080006051
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:12:06,405 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:12:18,635 - INFO - taking picture
MAIN: 2025-03-31 12:12:18,635 - INFO - we take 684 photos in this while loop
MAIN: 2025-03-31 12:12:18,635 - INFO - /home/pi/Desktop/images/31032025/12/11/image_31032025_12_12_18_30074.jpg
MAIN: 2025-03-31 12:12:18,635 - INFO - duration: 0.7038490960003401
MAIN: 2025-03-31 12:12:18,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:12:48,362 - INFO - taking picture
MAIN: 2025-03-31 12:12:48,363 - INFO - we take 685 photos in this while loop
MAIN: 2025-03-31 12:12:48,363 - INFO - /home/pi/Desktop/images/31032025/12/12/image_31032025_12_12_47_29744.jpg
MAIN: 2025-03-31 12:12:48,363 - INFO - duration: 0.6868035750012496
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:13:05,861 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:13:18,452 - INFO - taking picture
MAIN: 2025-03-31 12:13:18,452 - INFO - we take 686 photos in this while loop
MAIN: 2025-03-31 12:13:18,453 - INFO - /home/pi/Desktop/images/31032025/12/12/image_31032025_12_13_18_30084.jpg
MAIN: 2025-03-31 12:13:18,453 - INFO - duration: 0.6920350299988058
MAIN: 2025-03-31 12:13:18,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:13:49,340 - INFO - taking picture
MAIN: 2025-03-31 12:13:49,341 - INFO - we take 687 photos in this while loop
MAIN: 2025-03-31 12:13:49,341 - INFO - /home/pi/Desktop/images/31032025/12/13/image_31032025_12_13_48_30908.jpg
MAIN: 2025-03-31 12:13:49,341 - INFO - duration: 0.6717290929991577
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:14:06,344 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:14:18,383 - INFO - taking picture
MAIN: 2025-03-31 12:14:18,383 - INFO - we take 688 photos in this while loop
MAIN: 2025-03-31 12:14:18,384 - INFO - /home/pi/Desktop/images/31032025/12/13/image_31032025_12_14_18_29046.jpg
MAIN: 2025-03-31 12:14:18,384 - INFO - duration: 0.6675561739975819
MAIN: 2025-03-31 12:14:18,384 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:14:49,324 - INFO - taking picture
MAIN: 2025-03-31 12:14:49,325 - INFO - we take 689 photos in this while loop
MAIN: 2025-03-31 12:14:49,325 - INFO - /home/pi/Desktop/images/31032025/12/14/image_31032025_12_14_48_30915.jpg
MAIN: 2025-03-31 12:14:49,325 - INFO - duration: 0.6936576270018122
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:15:06,406 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:15:18,256 - INFO - taking picture
MAIN: 2025-03-31 12:15:18,257 - INFO - we take 690 photos in this while loop
MAIN: 2025-03-31 12:15:18,257 - INFO - /home/pi/Desktop/images/31032025/12/14/image_31032025_12_15_17_28934.jpg
MAIN: 2025-03-31 12:15:18,257 - INFO - duration: 0.691459969002608
MAIN: 2025-03-31 12:15:18,258 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/15'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:15:49,166 - INFO - taking picture
MAIN: 2025-03-31 12:15:49,166 - INFO - we take 691 photos in this while loop
MAIN: 2025-03-31 12:15:49,167 - INFO - /home/pi/Desktop/images/31032025/12/15/image_31032025_12_15_48_30909.jpg
MAIN: 2025-03-31 12:15:49,167 - INFO - duration: 0.6912446030000865
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:16:07,101 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:16:19,209 - INFO - taking picture
MAIN: 2025-03-31 12:16:19,210 - INFO - we take 692 photos in this while loop
MAIN: 2025-03-31 12:16:19,210 - INFO - /home/pi/Desktop/images/31032025/12/15/image_31032025_12_16_18_30057.jpg
MAIN: 2025-03-31 12:16:19,210 - INFO - duration: 0.6771546029995079
MAIN: 2025-03-31 12:16:19,211 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/16'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:16:48,959 - INFO - taking picture
MAIN: 2025-03-31 12:16:48,960 - INFO - we take 693 photos in this while loop
MAIN: 2025-03-31 12:16:48,960 - INFO - /home/pi/Desktop/images/31032025/12/16/image_31032025_12_16_48_29734.jpg
MAIN: 2025-03-31 12:16:48,960 - INFO - duration: 0.6925743909996527
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:17:05,547 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:17:18,829 - INFO - taking picture
MAIN: 2025-03-31 12:17:18,830 - INFO - we take 694 photos in this while loop
MAIN: 2025-03-31 12:17:18,830 - INFO - /home/pi/Desktop/images/31032025/12/16/image_31032025_12_17_18_29870.jpg
MAIN: 2025-03-31 12:17:18,830 - INFO - duration: 0.6921691809984623
MAIN: 2025-03-31 12:17:18,831 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/17'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:17:48,593 - INFO - taking picture
MAIN: 2025-03-31 12:17:48,594 - INFO - we take 695 photos in this while loop
MAIN: 2025-03-31 12:17:48,594 - INFO - /home/pi/Desktop/images/31032025/12/17/image_31032025_12_17_48_29760.jpg
MAIN: 2025-03-31 12:17:48,594 - INFO - duration: 0.6960037620010553
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:18:05,869 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:18:18,596 - INFO - taking picture
MAIN: 2025-03-31 12:18:18,597 - INFO - we take 696 photos in this while loop
MAIN: 2025-03-31 12:18:18,597 - INFO - /home/pi/Desktop/images/31032025/12/17/image_31032025_12_18_18_30021.jpg
MAIN: 2025-03-31 12:18:18,597 - INFO - duration: 0.6776488680006878
MAIN: 2025-03-31 12:18:18,598 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/18'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:18:48,253 - INFO - taking picture
MAIN: 2025-03-31 12:18:48,253 - INFO - we take 697 photos in this while loop
MAIN: 2025-03-31 12:18:48,254 - INFO - /home/pi/Desktop/images/31032025/12/18/image_31032025_12_18_47_29652.jpg
MAIN: 2025-03-31 12:18:48,254 - INFO - duration: 0.6816416260007827
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:19:05,971 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:19:18,405 - INFO - taking picture
MAIN: 2025-03-31 12:19:18,406 - INFO - we take 698 photos in this while loop
MAIN: 2025-03-31 12:19:18,406 - INFO - /home/pi/Desktop/images/31032025/12/18/image_31032025_12_19_18_30134.jpg
MAIN: 2025-03-31 12:19:18,406 - INFO - duration: 0.6997205820007366
MAIN: 2025-03-31 12:19:18,407 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/19'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:19:49,359 - INFO - taking picture
MAIN: 2025-03-31 12:19:49,360 - INFO - we take 699 photos in this while loop
MAIN: 2025-03-31 12:19:49,360 - INFO - /home/pi/Desktop/images/31032025/12/19/image_31032025_12_19_48_30957.jpg
MAIN: 2025-03-31 12:19:49,360 - INFO - duration: 0.6957853730018542
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:20:06,939 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:20:18,462 - INFO - taking picture
MAIN: 2025-03-31 12:20:18,463 - INFO - we take 700 photos in this while loop
MAIN: 2025-03-31 12:20:18,463 - INFO - /home/pi/Desktop/images/31032025/12/19/image_31032025_12_20_18_29104.jpg
MAIN: 2025-03-31 12:20:18,463 - INFO - duration: 0.6940022460003092
MAIN: 2025-03-31 12:20:18,463 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/20'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:20:49,362 - INFO - taking picture
MAIN: 2025-03-31 12:20:49,363 - INFO - we take 701 photos in this while loop
MAIN: 2025-03-31 12:20:49,363 - INFO - /home/pi/Desktop/images/31032025/12/20/image_31032025_12_20_48_30899.jpg
MAIN: 2025-03-31 12:20:49,363 - INFO - duration: 0.6950690160010708
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:21:06,377 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:21:18,286 - INFO - taking picture
MAIN: 2025-03-31 12:21:18,286 - INFO - we take 702 photos in this while loop
MAIN: 2025-03-31 12:21:18,286 - INFO - /home/pi/Desktop/images/31032025/12/20/image_31032025_12_21_17_28937.jpg
MAIN: 2025-03-31 12:21:18,287 - INFO - duration: 0.6809202149997873
MAIN: 2025-03-31 12:21:18,287 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/21'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:21:49,204 - INFO - taking picture
MAIN: 2025-03-31 12:21:49,204 - INFO - we take 703 photos in this while loop
MAIN: 2025-03-31 12:21:49,204 - INFO - /home/pi/Desktop/images/31032025/12/21/image_31032025_12_21_48_30903.jpg
MAIN: 2025-03-31 12:21:49,205 - INFO - duration: 0.6951194309986022
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:22:06,074 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:22:19,376 - INFO - taking picture
MAIN: 2025-03-31 12:22:19,377 - INFO - we take 704 photos in this while loop
MAIN: 2025-03-31 12:22:19,377 - INFO - /home/pi/Desktop/images/31032025/12/21/image_31032025_12_22_18_30163.jpg
MAIN: 2025-03-31 12:22:19,377 - INFO - duration: 0.7042309390017181
MAIN: 2025-03-31 12:22:19,378 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/22'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:22:49,004 - INFO - taking picture
MAIN: 2025-03-31 12:22:49,004 - INFO - we take 705 photos in this while loop
MAIN: 2025-03-31 12:22:49,005 - INFO - /home/pi/Desktop/images/31032025/12/22/image_31032025_12_22_48_29646.jpg
MAIN: 2025-03-31 12:22:49,005 - INFO - duration: 0.68566557700251
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:23:05,810 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:23:18,903 - INFO - taking picture
MAIN: 2025-03-31 12:23:18,904 - INFO - we take 706 photos in this while loop
MAIN: 2025-03-31 12:23:18,904 - INFO - /home/pi/Desktop/images/31032025/12/22/image_31032025_12_23_18_29893.jpg
MAIN: 2025-03-31 12:23:18,904 - INFO - duration: 0.6913229710007727
MAIN: 2025-03-31 12:23:18,904 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/23'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:23:48,548 - INFO - taking picture
MAIN: 2025-03-31 12:23:48,548 - INFO - we take 707 photos in this while loop
MAIN: 2025-03-31 12:23:48,548 - INFO - /home/pi/Desktop/images/31032025/12/23/image_31032025_12_23_48_29644.jpg
MAIN: 2025-03-31 12:23:48,549 - INFO - duration: 0.6918393239975558
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:24:06,457 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:24:18,679 - INFO - taking picture
MAIN: 2025-03-31 12:24:18,679 - INFO - we take 708 photos in this while loop
MAIN: 2025-03-31 12:24:18,679 - INFO - /home/pi/Desktop/images/31032025/12/23/image_31032025_12_24_18_30130.jpg
MAIN: 2025-03-31 12:24:18,680 - INFO - duration: 0.6926994280001963
MAIN: 2025-03-31 12:24:18,680 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/24'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:24:48,194 - INFO - taking picture
MAIN: 2025-03-31 12:24:48,194 - INFO - we take 709 photos in this while loop
MAIN: 2025-03-31 12:24:48,194 - INFO - /home/pi/Desktop/images/31032025/12/24/image_31032025_12_24_47_29512.jpg
MAIN: 2025-03-31 12:24:48,195 - INFO - duration: 0.6952486980007961
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:25:06,670 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:25:18,488 - INFO - taking picture
MAIN: 2025-03-31 12:25:18,489 - INFO - we take 710 photos in this while loop
MAIN: 2025-03-31 12:25:18,489 - INFO - /home/pi/Desktop/images/31032025/12/24/image_31032025_12_25_18_30316.jpg
MAIN: 2025-03-31 12:25:18,489 - INFO - duration: 0.6732078149980225
MAIN: 2025-03-31 12:25:18,489 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/25'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:25:48,164 - INFO - taking picture
MAIN: 2025-03-31 12:25:48,165 - INFO - we take 711 photos in this while loop
MAIN: 2025-03-31 12:25:48,165 - INFO - /home/pi/Desktop/images/31032025/12/25/image_31032025_12_25_47_29653.jpg
MAIN: 2025-03-31 12:25:48,165 - INFO - duration: 0.6954114049985947
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:26:06,820 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:26:18,405 - INFO - taking picture
MAIN: 2025-03-31 12:26:18,406 - INFO - we take 712 photos in this while loop
MAIN: 2025-03-31 12:26:18,406 - INFO - /home/pi/Desktop/images/31032025/12/25/image_31032025_12_26_18_30236.jpg
MAIN: 2025-03-31 12:26:18,406 - INFO - duration: 0.6998149449973425
MAIN: 2025-03-31 12:26:18,406 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:26:49,268 - INFO - taking picture
MAIN: 2025-03-31 12:26:49,269 - INFO - we take 713 photos in this while loop
MAIN: 2025-03-31 12:26:49,269 - INFO - /home/pi/Desktop/images/31032025/12/26/image_31032025_12_26_48_30884.jpg
MAIN: 2025-03-31 12:26:49,269 - INFO - duration: 0.6786324470012914
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 12:27:06,357 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:27:19,313 - INFO - taking picture
MAIN: 2025-03-31 12:27:19,314 - INFO - we take 714 photos in this while loop
MAIN: 2025-03-31 12:27:19,314 - INFO - /home/pi/Desktop/images/31032025/12/26/image_31032025_12_27_18_30036.jpg
MAIN: 2025-03-31 12:27:19,314 - INFO - duration: 0.6874902070012467
MAIN: 2025-03-31 12:27:19,315 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:27:49,034 - INFO - taking picture
MAIN: 2025-03-31 12:27:49,035 - INFO - we take 715 photos in this while loop
MAIN: 2025-03-31 12:27:49,035 - INFO - /home/pi/Desktop/images/31032025/12/27/image_31032025_12_27_48_29713.jpg
MAIN: 2025-03-31 12:27:49,035 - INFO - duration: 0.6952716109990433
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:28:05,936 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:28:19,061 - INFO - taking picture
MAIN: 2025-03-31 12:28:19,062 - INFO - we take 716 photos in this while loop
MAIN: 2025-03-31 12:28:19,062 - INFO - /home/pi/Desktop/images/31032025/12/27/image_31032025_12_28_18_30020.jpg
MAIN: 2025-03-31 12:28:19,062 - INFO - duration: 0.7020671310019679
MAIN: 2025-03-31 12:28:19,063 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/28'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:28:48,703 - INFO - taking picture
MAIN: 2025-03-31 12:28:48,704 - INFO - we take 717 photos in this while loop
MAIN: 2025-03-31 12:28:48,704 - INFO - /home/pi/Desktop/images/31032025/12/28/image_31032025_12_28_48_29639.jpg
MAIN: 2025-03-31 12:28:48,704 - INFO - duration: 0.7050659320011619
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:29:05,892 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:29:18,749 - INFO - taking picture
MAIN: 2025-03-31 12:29:18,750 - INFO - we take 718 photos in this while loop
MAIN: 2025-03-31 12:29:18,750 - INFO - /home/pi/Desktop/images/31032025/12/28/image_31032025_12_29_18_30051.jpg
MAIN: 2025-03-31 12:29:18,750 - INFO - duration: 0.698850284999935
MAIN: 2025-03-31 12:29:18,751 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:29:48,453 - INFO - taking picture
MAIN: 2025-03-31 12:29:48,453 - INFO - we take 719 photos in this while loop
MAIN: 2025-03-31 12:29:48,453 - INFO - /home/pi/Desktop/images/31032025/12/29/image_31032025_12_29_48_29704.jpg
MAIN: 2025-03-31 12:29:48,454 - INFO - duration: 0.6979159740003524
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:30:07,118 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:30:18,735 - INFO - taking picture
MAIN: 2025-03-31 12:30:18,735 - INFO - we take 720 photos in this while loop
MAIN: 2025-03-31 12:30:18,736 - INFO - /home/pi/Desktop/images/31032025/12/29/image_31032025_12_30_18_30300.jpg
MAIN: 2025-03-31 12:30:18,736 - INFO - duration: 0.6799946380015172
MAIN: 2025-03-31 12:30:18,736 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:30:48,604 - INFO - taking picture
MAIN: 2025-03-31 12:30:48,604 - INFO - we take 721 photos in this while loop
MAIN: 2025-03-31 12:30:48,604 - INFO - /home/pi/Desktop/images/31032025/12/30/image_31032025_12_30_48_29864.jpg
MAIN: 2025-03-31 12:30:48,605 - INFO - duration: 0.6842392299986386
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 12:31:06,064 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:31:18,423 - INFO - taking picture
MAIN: 2025-03-31 12:31:18,423 - INFO - we take 722 photos in this while loop
MAIN: 2025-03-31 12:31:18,423 - INFO - /home/pi/Desktop/images/31032025/12/30/image_31032025_12_31_18_29803.jpg
MAIN: 2025-03-31 12:31:18,424 - INFO - duration: 0.699635169999965
MAIN: 2025-03-31 12:31:18,424 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:31:48,131 - INFO - taking picture
MAIN: 2025-03-31 12:31:48,132 - INFO - we take 723 photos in this while loop
MAIN: 2025-03-31 12:31:48,132 - INFO - /home/pi/Desktop/images/31032025/12/31/image_31032025_12_31_47_29727.jpg
MAIN: 2025-03-31 12:31:48,132 - INFO - duration: 0.6805429989981349
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:32:06,696 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:32:18,362 - INFO - taking picture
MAIN: 2025-03-31 12:32:18,362 - INFO - we take 724 photos in this while loop
MAIN: 2025-03-31 12:32:18,362 - INFO - /home/pi/Desktop/images/31032025/12/31/image_31032025_12_32_17_30229.jpg
MAIN: 2025-03-31 12:32:18,363 - INFO - duration: 0.6815918089996558
MAIN: 2025-03-31 12:32:18,363 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:32:49,284 - INFO - taking picture
MAIN: 2025-03-31 12:32:49,285 - INFO - we take 725 photos in this while loop
MAIN: 2025-03-31 12:32:49,285 - INFO - /home/pi/Desktop/images/31032025/12/32/image_31032025_12_32_48_30913.jpg
MAIN: 2025-03-31 12:32:49,285 - INFO - duration: 0.6902632719975372
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 12:33:06,454 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:33:19,159 - INFO - taking picture
MAIN: 2025-03-31 12:33:19,159 - INFO - we take 726 photos in this while loop
MAIN: 2025-03-31 12:33:19,159 - INFO - /home/pi/Desktop/images/31032025/12/32/image_31032025_12_33_18_29864.jpg
MAIN: 2025-03-31 12:33:19,160 - INFO - duration: 0.7004165570033365
MAIN: 2025-03-31 12:33:19,160 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:33:48,807 - INFO - taking picture
MAIN: 2025-03-31 12:33:48,807 - INFO - we take 727 photos in this while loop
MAIN: 2025-03-31 12:33:48,807 - INFO - /home/pi/Desktop/images/31032025/12/33/image_31032025_12_33_48_29666.jpg
MAIN: 2025-03-31 12:33:48,808 - INFO - duration: 0.6817819349998899
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:34:06,032 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:34:19,001 - INFO - taking picture
MAIN: 2025-03-31 12:34:19,001 - INFO - we take 728 photos in this while loop
MAIN: 2025-03-31 12:34:19,001 - INFO - /home/pi/Desktop/images/31032025/12/33/image_31032025_12_34_18_30206.jpg
MAIN: 2025-03-31 12:34:19,002 - INFO - duration: 0.6695816870014824
MAIN: 2025-03-31 12:34:19,002 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:34:48,718 - INFO - taking picture
MAIN: 2025-03-31 12:34:48,719 - INFO - we take 729 photos in this while loop
MAIN: 2025-03-31 12:34:48,719 - INFO - /home/pi/Desktop/images/31032025/12/34/image_31032025_12_34_48_29687.jpg
MAIN: 2025-03-31 12:34:48,719 - INFO - duration: 0.699901004001731
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:35:06,142 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:35:19,127 - INFO - taking picture
MAIN: 2025-03-31 12:35:19,128 - INFO - we take 730 photos in this while loop
MAIN: 2025-03-31 12:35:19,128 - INFO - /home/pi/Desktop/images/31032025/12/34/image_31032025_12_35_18_30345.jpg
MAIN: 2025-03-31 12:35:19,128 - INFO - duration: 0.763494789996912
MAIN: 2025-03-31 12:35:19,129 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:35:48,732 - INFO - taking picture
MAIN: 2025-03-31 12:35:48,732 - INFO - we take 731 photos in this while loop
MAIN: 2025-03-31 12:35:48,733 - INFO - /home/pi/Desktop/images/31032025/12/35/image_31032025_12_35_48_29682.jpg
MAIN: 2025-03-31 12:35:48,733 - INFO - duration: 0.6850417499990726
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:36:06,352 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:36:18,631 - INFO - taking picture
MAIN: 2025-03-31 12:36:18,631 - INFO - we take 732 photos in this while loop
MAIN: 2025-03-31 12:36:18,632 - INFO - /home/pi/Desktop/images/31032025/12/35/image_31032025_12_36_18_29913.jpg
MAIN: 2025-03-31 12:36:18,632 - INFO - duration: 0.6699707189982291
MAIN: 2025-03-31 12:36:18,632 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:36:48,221 - INFO - taking picture
MAIN: 2025-03-31 12:36:48,222 - INFO - we take 733 photos in this while loop
MAIN: 2025-03-31 12:36:48,222 - INFO - /home/pi/Desktop/images/31032025/12/36/image_31032025_12_36_47_29573.jpg
MAIN: 2025-03-31 12:36:48,222 - INFO - duration: 0.6865472799981944
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:37:06,311 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:37:19,361 - INFO - taking picture
MAIN: 2025-03-31 12:37:19,361 - INFO - we take 734 photos in this while loop
MAIN: 2025-03-31 12:37:19,362 - INFO - /home/pi/Desktop/images/31032025/12/36/image_31032025_12_37_18_31154.jpg
MAIN: 2025-03-31 12:37:19,362 - INFO - duration: 0.6719517689998611
MAIN: 2025-03-31 12:37:19,362 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:37:48,959 - INFO - taking picture
MAIN: 2025-03-31 12:37:48,959 - INFO - we take 735 photos in this while loop
MAIN: 2025-03-31 12:37:48,959 - INFO - /home/pi/Desktop/images/31032025/12/37/image_31032025_12_37_48_29584.jpg
MAIN: 2025-03-31 12:37:48,960 - INFO - duration: 0.6855598420006572
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:38:06,753 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:38:18,847 - INFO - taking picture
MAIN: 2025-03-31 12:38:18,848 - INFO - we take 736 photos in this while loop
MAIN: 2025-03-31 12:38:18,848 - INFO - /home/pi/Desktop/images/31032025/12/37/image_31032025_12_38_18_29865.jpg
MAIN: 2025-03-31 12:38:18,848 - INFO - duration: 0.7089026520006882
MAIN: 2025-03-31 12:38:18,849 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/38'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:38:48,507 - INFO - taking picture
MAIN: 2025-03-31 12:38:48,507 - INFO - we take 737 photos in this while loop
MAIN: 2025-03-31 12:38:48,507 - INFO - /home/pi/Desktop/images/31032025/12/38/image_31032025_12_38_48_29670.jpg
MAIN: 2025-03-31 12:38:48,508 - INFO - duration: 0.6982473980024224
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:39:05,604 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:39:18,677 - INFO - taking picture
MAIN: 2025-03-31 12:39:18,677 - INFO - we take 738 photos in this while loop
MAIN: 2025-03-31 12:39:18,678 - INFO - /home/pi/Desktop/images/31032025/12/38/image_31032025_12_39_18_30182.jpg
MAIN: 2025-03-31 12:39:18,678 - INFO - duration: 0.6864485510013765
MAIN: 2025-03-31 12:39:18,678 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/39'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:39:48,325 - INFO - taking picture
MAIN: 2025-03-31 12:39:48,326 - INFO - we take 739 photos in this while loop
MAIN: 2025-03-31 12:39:48,326 - INFO - /home/pi/Desktop/images/31032025/12/39/image_31032025_12_39_47_29634.jpg
MAIN: 2025-03-31 12:39:48,326 - INFO - duration: 0.7001595930014446
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:40:06,923 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:40:18,377 - INFO - taking picture
MAIN: 2025-03-31 12:40:18,378 - INFO - we take 740 photos in this while loop
MAIN: 2025-03-31 12:40:18,378 - INFO - /home/pi/Desktop/images/31032025/12/39/image_31032025_12_40_18_30061.jpg
MAIN: 2025-03-31 12:40:18,378 - INFO - duration: 0.6910330879982212
MAIN: 2025-03-31 12:40:18,379 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/40'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:40:49,217 - INFO - taking picture
MAIN: 2025-03-31 12:40:49,218 - INFO - we take 741 photos in this while loop
MAIN: 2025-03-31 12:40:49,218 - INFO - /home/pi/Desktop/images/31032025/12/40/image_31032025_12_40_48_30842.jpg
MAIN: 2025-03-31 12:40:49,218 - INFO - duration: 0.6887756959986291
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:41:06,203 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:41:19,223 - INFO - taking picture
MAIN: 2025-03-31 12:41:19,223 - INFO - we take 742 photos in this while loop
MAIN: 2025-03-31 12:41:19,224 - INFO - /home/pi/Desktop/images/31032025/12/40/image_31032025_12_41_18_29988.jpg
MAIN: 2025-03-31 12:41:19,224 - INFO - duration: 0.7059284030001436
MAIN: 2025-03-31 12:41:19,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/41'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:41:48,845 - INFO - taking picture
MAIN: 2025-03-31 12:41:48,846 - INFO - we take 743 photos in this while loop
MAIN: 2025-03-31 12:41:48,846 - INFO - /home/pi/Desktop/images/31032025/12/41/image_31032025_12_41_48_29621.jpg
MAIN: 2025-03-31 12:41:48,846 - INFO - duration: 0.7066871549977805
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:42:06,643 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:42:18,840 - INFO - taking picture
MAIN: 2025-03-31 12:42:18,840 - INFO - we take 744 photos in this while loop
MAIN: 2025-03-31 12:42:18,840 - INFO - /home/pi/Desktop/images/31032025/12/41/image_31032025_12_42_18_30007.jpg
MAIN: 2025-03-31 12:42:18,841 - INFO - duration: 0.6933065359989996
MAIN: 2025-03-31 12:42:18,841 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:42:48,580 - INFO - taking picture
MAIN: 2025-03-31 12:42:48,581 - INFO - we take 745 photos in this while loop
MAIN: 2025-03-31 12:42:48,581 - INFO - /home/pi/Desktop/images/31032025/12/42/image_31032025_12_42_48_29742.jpg
MAIN: 2025-03-31 12:42:48,581 - INFO - duration: 0.6913086749991635
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:43:05,661 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:43:18,542 - INFO - taking picture
MAIN: 2025-03-31 12:43:18,543 - INFO - we take 746 photos in this while loop
MAIN: 2025-03-31 12:43:18,543 - INFO - /home/pi/Desktop/images/31032025/12/42/image_31032025_12_43_18_29969.jpg
MAIN: 2025-03-31 12:43:18,543 - INFO - duration: 0.6837880009989021
MAIN: 2025-03-31 12:43:18,544 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/43'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:43:49,361 - INFO - taking picture
MAIN: 2025-03-31 12:43:49,361 - INFO - we take 747 photos in this while loop
MAIN: 2025-03-31 12:43:49,361 - INFO - /home/pi/Desktop/images/31032025/12/43/image_31032025_12_43_48_30826.jpg
MAIN: 2025-03-31 12:43:49,362 - INFO - duration: 0.6749569130006421
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:44:05,937 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:44:19,246 - INFO - taking picture
MAIN: 2025-03-31 12:44:19,246 - INFO - we take 748 photos in this while loop
MAIN: 2025-03-31 12:44:19,246 - INFO - /home/pi/Desktop/images/31032025/12/43/image_31032025_12_44_18_29868.jpg
MAIN: 2025-03-31 12:44:19,246 - INFO - duration: 0.6916638889997557
MAIN: 2025-03-31 12:44:19,247 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/44'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:44:48,798 - INFO - taking picture
MAIN: 2025-03-31 12:44:48,799 - INFO - we take 749 photos in this while loop
MAIN: 2025-03-31 12:44:48,799 - INFO - /home/pi/Desktop/images/31032025/12/44/image_31032025_12_44_48_29549.jpg
MAIN: 2025-03-31 12:44:48,799 - INFO - duration: 0.6950569629989332
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:45:06,524 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:45:19,088 - INFO - taking picture
MAIN: 2025-03-31 12:45:19,088 - INFO - we take 750 photos in this while loop
MAIN: 2025-03-31 12:45:19,089 - INFO - /home/pi/Desktop/images/31032025/12/44/image_31032025_12_45_18_30281.jpg
MAIN: 2025-03-31 12:45:19,089 - INFO - duration: 0.7035109729986289
MAIN: 2025-03-31 12:45:19,089 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/45'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:45:48,847 - INFO - taking picture
MAIN: 2025-03-31 12:45:48,848 - INFO - we take 751 photos in this while loop
MAIN: 2025-03-31 12:45:48,848 - INFO - /home/pi/Desktop/images/31032025/12/45/image_31032025_12_45_48_29751.jpg
MAIN: 2025-03-31 12:45:48,848 - INFO - duration: 0.7112373279996973
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:46:06,237 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:46:18,823 - INFO - taking picture
MAIN: 2025-03-31 12:46:18,824 - INFO - we take 752 photos in this while loop
MAIN: 2025-03-31 12:46:18,824 - INFO - /home/pi/Desktop/images/31032025/12/45/image_31032025_12_46_18_29995.jpg
MAIN: 2025-03-31 12:46:18,824 - INFO - duration: 0.6923341570000048
MAIN: 2025-03-31 12:46:18,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/46'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:46:48,419 - INFO - taking picture
MAIN: 2025-03-31 12:46:48,420 - INFO - we take 753 photos in this while loop
MAIN: 2025-03-31 12:46:48,420 - INFO - /home/pi/Desktop/images/31032025/12/46/image_31032025_12_46_48_29594.jpg
MAIN: 2025-03-31 12:46:48,420 - INFO - duration: 0.6935859289988002
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:47:06,491 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:47:18,410 - INFO - taking picture
MAIN: 2025-03-31 12:47:18,411 - INFO - we take 754 photos in this while loop
MAIN: 2025-03-31 12:47:18,411 - INFO - /home/pi/Desktop/images/31032025/12/46/image_31032025_12_47_18_29991.jpg
MAIN: 2025-03-31 12:47:18,411 - INFO - duration: 0.6922164509996946
MAIN: 2025-03-31 12:47:18,411 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/47'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:47:49,364 - INFO - taking picture
MAIN: 2025-03-31 12:47:49,364 - INFO - we take 755 photos in this while loop
MAIN: 2025-03-31 12:47:49,364 - INFO - /home/pi/Desktop/images/31032025/12/47/image_31032025_12_47_48_30944.jpg
MAIN: 2025-03-31 12:47:49,364 - INFO - duration: 0.7012741069993353
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:48:06,107 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:48:18,161 - INFO - taking picture
MAIN: 2025-03-31 12:48:18,161 - INFO - we take 756 photos in this while loop
MAIN: 2025-03-31 12:48:18,162 - INFO - /home/pi/Desktop/images/31032025/12/47/image_31032025_12_48_17_28802.jpg
MAIN: 2025-03-31 12:48:18,162 - INFO - duration: 0.6955215060006594
MAIN: 2025-03-31 12:48:18,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/48'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:48:49,157 - INFO - taking picture
MAIN: 2025-03-31 12:48:49,158 - INFO - we take 757 photos in this while loop
MAIN: 2025-03-31 12:48:49,158 - INFO - /home/pi/Desktop/images/31032025/12/48/image_31032025_12_48_48_31002.jpg
MAIN: 2025-03-31 12:48:49,158 - INFO - duration: 0.68958640299752
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:49:05,848 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:49:19,250 - INFO - taking picture
MAIN: 2025-03-31 12:49:19,251 - INFO - we take 758 photos in this while loop
MAIN: 2025-03-31 12:49:19,251 - INFO - /home/pi/Desktop/images/31032025/12/48/image_31032025_12_49_18_30097.jpg
MAIN: 2025-03-31 12:49:19,251 - INFO - duration: 0.6853707290028979
MAIN: 2025-03-31 12:49:19,252 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:49:48,914 - INFO - taking picture
MAIN: 2025-03-31 12:49:48,915 - INFO - we take 759 photos in this while loop
MAIN: 2025-03-31 12:49:48,915 - INFO - /home/pi/Desktop/images/31032025/12/49/image_31032025_12_49_48_29653.jpg
MAIN: 2025-03-31 12:49:48,915 - INFO - duration: 0.6953300499990291
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:50:07,035 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:50:19,070 - INFO - taking picture
MAIN: 2025-03-31 12:50:19,071 - INFO - we take 760 photos in this while loop
MAIN: 2025-03-31 12:50:19,071 - INFO - /home/pi/Desktop/images/31032025/12/49/image_31032025_12_50_18_30149.jpg
MAIN: 2025-03-31 12:50:19,071 - INFO - duration: 0.7015403100012918
MAIN: 2025-03-31 12:50:19,072 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:50:48,802 - INFO - taking picture
MAIN: 2025-03-31 12:50:48,802 - INFO - we take 761 photos in this while loop
MAIN: 2025-03-31 12:50:48,802 - INFO - /home/pi/Desktop/images/31032025/12/50/image_31032025_12_50_48_29728.jpg
MAIN: 2025-03-31 12:50:48,802 - INFO - duration: 0.70404067599884
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:51:06,285 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:51:18,752 - INFO - taking picture
MAIN: 2025-03-31 12:51:18,753 - INFO - we take 762 photos in this while loop
MAIN: 2025-03-31 12:51:18,753 - INFO - /home/pi/Desktop/images/31032025/12/50/image_31032025_12_51_18_29955.jpg
MAIN: 2025-03-31 12:51:18,753 - INFO - duration: 0.6994023439983721
MAIN: 2025-03-31 12:51:18,754 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:51:48,377 - INFO - taking picture
MAIN: 2025-03-31 12:51:48,378 - INFO - we take 763 photos in this while loop
MAIN: 2025-03-31 12:51:48,378 - INFO - /home/pi/Desktop/images/31032025/12/51/image_31032025_12_51_48_29648.jpg
MAIN: 2025-03-31 12:51:48,378 - INFO - duration: 0.6756471420012531
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 12:52:06,727 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:52:18,504 - INFO - taking picture
MAIN: 2025-03-31 12:52:18,504 - INFO - we take 764 photos in this while loop
MAIN: 2025-03-31 12:52:18,504 - INFO - /home/pi/Desktop/images/31032025/12/51/image_31032025_12_52_18_30108.jpg
MAIN: 2025-03-31 12:52:18,505 - INFO - duration: 0.6931090660000336
MAIN: 2025-03-31 12:52:18,505 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:52:49,380 - INFO - taking picture
MAIN: 2025-03-31 12:52:49,381 - INFO - we take 765 photos in this while loop
MAIN: 2025-03-31 12:52:49,381 - INFO - /home/pi/Desktop/images/31032025/12/52/image_31032025_12_52_49_30895.jpg
MAIN: 2025-03-31 12:52:49,381 - INFO - duration: 0.674139227001433
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:53:05,544 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:53:19,407 - INFO - taking picture
MAIN: 2025-03-31 12:53:19,408 - INFO - we take 766 photos in this while loop
MAIN: 2025-03-31 12:53:19,408 - INFO - /home/pi/Desktop/images/31032025/12/52/image_31032025_12_53_19_30002.jpg
MAIN: 2025-03-31 12:53:19,409 - INFO - duration: 0.6995756799988158
MAIN: 2025-03-31 12:53:19,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:53:49,035 - INFO - taking picture
MAIN: 2025-03-31 12:53:49,035 - INFO - we take 767 photos in this while loop
MAIN: 2025-03-31 12:53:49,036 - INFO - /home/pi/Desktop/images/31032025/12/53/image_31032025_12_53_48_29632.jpg
MAIN: 2025-03-31 12:53:49,036 - INFO - duration: 0.694341776001238
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:54:06,097 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:54:19,193 - INFO - taking picture
MAIN: 2025-03-31 12:54:19,194 - INFO - we take 768 photos in this while loop
MAIN: 2025-03-31 12:54:19,194 - INFO - /home/pi/Desktop/images/31032025/12/53/image_31032025_12_54_18_30153.jpg
MAIN: 2025-03-31 12:54:19,194 - INFO - duration: 0.6991269319987623
MAIN: 2025-03-31 12:54:19,194 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/54'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:54:48,781 - INFO - taking picture
MAIN: 2025-03-31 12:54:48,781 - INFO - we take 769 photos in this while loop
MAIN: 2025-03-31 12:54:48,781 - INFO - /home/pi/Desktop/images/31032025/12/54/image_31032025_12_54_48_29585.jpg
MAIN: 2025-03-31 12:54:48,782 - INFO - duration: 0.7009430259968212
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:55:06,848 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:55:18,945 - INFO - taking picture
MAIN: 2025-03-31 12:55:18,946 - INFO - we take 770 photos in this while loop
MAIN: 2025-03-31 12:55:18,946 - INFO - /home/pi/Desktop/images/31032025/12/54/image_31032025_12_55_18_30167.jpg
MAIN: 2025-03-31 12:55:18,946 - INFO - duration: 0.6980670379998628
MAIN: 2025-03-31 12:55:18,946 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:55:48,541 - INFO - taking picture
MAIN: 2025-03-31 12:55:48,541 - INFO - we take 771 photos in this while loop
MAIN: 2025-03-31 12:55:48,542 - INFO - /home/pi/Desktop/images/31032025/12/55/image_31032025_12_55_48_29616.jpg
MAIN: 2025-03-31 12:55:48,542 - INFO - duration: 0.6775194900001225
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:56:06,333 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:56:18,480 - INFO - taking picture
MAIN: 2025-03-31 12:56:18,481 - INFO - we take 772 photos in this while loop
MAIN: 2025-03-31 12:56:18,481 - INFO - /home/pi/Desktop/images/31032025/12/55/image_31032025_12_56_18_29918.jpg
MAIN: 2025-03-31 12:56:18,481 - INFO - duration: 0.6986108400014928
MAIN: 2025-03-31 12:56:18,481 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:56:49,308 - INFO - taking picture
MAIN: 2025-03-31 12:56:49,308 - INFO - we take 773 photos in this while loop
MAIN: 2025-03-31 12:56:49,308 - INFO - /home/pi/Desktop/images/31032025/12/56/image_31032025_12_56_48_30835.jpg
MAIN: 2025-03-31 12:56:49,309 - INFO - duration: 0.6904301659997145
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:57:06,500 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:57:19,097 - INFO - taking picture
MAIN: 2025-03-31 12:57:19,098 - INFO - we take 774 photos in this while loop
MAIN: 2025-03-31 12:57:19,098 - INFO - /home/pi/Desktop/images/31032025/12/56/image_31032025_12_57_18_29780.jpg
MAIN: 2025-03-31 12:57:19,098 - INFO - duration: 0.6996626639993337
MAIN: 2025-03-31 12:57:19,098 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:57:48,710 - INFO - taking picture
MAIN: 2025-03-31 12:57:48,711 - INFO - we take 775 photos in this while loop
MAIN: 2025-03-31 12:57:48,711 - INFO - /home/pi/Desktop/images/31032025/12/57/image_31032025_12_57_48_29614.jpg
MAIN: 2025-03-31 12:57:48,711 - INFO - duration: 0.6987240189992008
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:58:05,990 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:58:19,003 - INFO - taking picture
MAIN: 2025-03-31 12:58:19,004 - INFO - we take 776 photos in this while loop
MAIN: 2025-03-31 12:58:19,004 - INFO - /home/pi/Desktop/images/31032025/12/57/image_31032025_12_58_18_30307.jpg
MAIN: 2025-03-31 12:58:19,004 - INFO - duration: 0.6835446469995077
MAIN: 2025-03-31 12:58:19,004 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/58'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:58:48,670 - INFO - taking picture
MAIN: 2025-03-31 12:58:48,670 - INFO - we take 777 photos in this while loop
MAIN: 2025-03-31 12:58:48,671 - INFO - /home/pi/Desktop/images/31032025/12/58/image_31032025_12_58_48_29645.jpg
MAIN: 2025-03-31 12:58:48,671 - INFO - duration: 0.7053223519978928
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 12:59:05,515 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:59:18,501 - INFO - taking picture
MAIN: 2025-03-31 12:59:18,502 - INFO - we take 778 photos in this while loop
MAIN: 2025-03-31 12:59:18,502 - INFO - /home/pi/Desktop/images/31032025/12/58/image_31032025_12_59_18_29841.jpg
MAIN: 2025-03-31 12:59:18,502 - INFO - duration: 0.6954205830006686
MAIN: 2025-03-31 12:59:18,502 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/12/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 12:59:48,274 - INFO - taking picture
MAIN: 2025-03-31 12:59:48,275 - INFO - we take 779 photos in this while loop
MAIN: 2025-03-31 12:59:48,275 - INFO - /home/pi/Desktop/images/31032025/12/59/image_31032025_12_59_47_29774.jpg
MAIN: 2025-03-31 12:59:48,275 - INFO - duration: 0.6938371989999723
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:00:06,919 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:00:18,606 - INFO - taking picture
MAIN: 2025-03-31 13:00:18,606 - INFO - we take 780 photos in this while loop
MAIN: 2025-03-31 13:00:18,606 - INFO - /home/pi/Desktop/images/31032025/12/59/image_31032025_13_00_18_30331.jpg
MAIN: 2025-03-31 13:00:18,607 - INFO - duration: 0.6939657410002837
MAIN: 2025-03-31 13:00:18,607 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:00:48,200 - INFO - taking picture
MAIN: 2025-03-31 13:00:48,200 - INFO - we take 781 photos in this while loop
MAIN: 2025-03-31 13:00:48,201 - INFO - /home/pi/Desktop/images/31032025/13/00/image_31032025_13_00_47_29595.jpg
MAIN: 2025-03-31 13:00:48,201 - INFO - duration: 0.6930565740003658
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 13:01:06,506 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:01:18,251 - INFO - taking picture
MAIN: 2025-03-31 13:01:18,252 - INFO - we take 782 photos in this while loop
MAIN: 2025-03-31 13:01:18,252 - INFO - /home/pi/Desktop/images/31032025/13/00/image_31032025_13_01_17_30044.jpg
MAIN: 2025-03-31 13:01:18,252 - INFO - duration: 0.6992995940017863
MAIN: 2025-03-31 13:01:18,252 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:01:49,198 - INFO - taking picture
MAIN: 2025-03-31 13:01:49,198 - INFO - we take 783 photos in this while loop
MAIN: 2025-03-31 13:01:49,199 - INFO - /home/pi/Desktop/images/31032025/13/01/image_31032025_13_01_48_30939.jpg
MAIN: 2025-03-31 13:01:49,199 - INFO - duration: 0.7062648530009028
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:02:06,248 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:02:19,271 - INFO - taking picture
MAIN: 2025-03-31 13:02:19,271 - INFO - we take 784 photos in this while loop
MAIN: 2025-03-31 13:02:19,272 - INFO - /home/pi/Desktop/images/31032025/13/01/image_31032025_13_02_18_30106.jpg
MAIN: 2025-03-31 13:02:19,272 - INFO - duration: 0.6726761629979592
MAIN: 2025-03-31 13:02:19,272 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:02:48,873 - INFO - taking picture
MAIN: 2025-03-31 13:02:48,874 - INFO - we take 785 photos in this while loop
MAIN: 2025-03-31 13:02:48,874 - INFO - /home/pi/Desktop/images/31032025/13/02/image_31032025_13_02_48_29579.jpg
MAIN: 2025-03-31 13:02:48,874 - INFO - duration: 0.6959803770005237
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:03:05,834 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:03:19,086 - INFO - taking picture
MAIN: 2025-03-31 13:03:19,086 - INFO - we take 786 photos in this while loop
MAIN: 2025-03-31 13:03:19,087 - INFO - /home/pi/Desktop/images/31032025/13/02/image_31032025_13_03_18_30214.jpg
MAIN: 2025-03-31 13:03:19,087 - INFO - duration: 0.6937436580010399
MAIN: 2025-03-31 13:03:19,087 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:03:48,789 - INFO - taking picture
MAIN: 2025-03-31 13:03:48,790 - INFO - we take 787 photos in this while loop
MAIN: 2025-03-31 13:03:48,790 - INFO - /home/pi/Desktop/images/31032025/13/03/image_31032025_13_03_48_29708.jpg
MAIN: 2025-03-31 13:03:48,790 - INFO - duration: 0.6892596270008653
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:04:06,866 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:04:18,771 - INFO - taking picture
MAIN: 2025-03-31 13:04:18,771 - INFO - we take 788 photos in this while loop
MAIN: 2025-03-31 13:04:18,771 - INFO - /home/pi/Desktop/images/31032025/13/03/image_31032025_13_04_18_29975.jpg
MAIN: 2025-03-31 13:04:18,772 - INFO - duration: 0.6949861790017167
MAIN: 2025-03-31 13:04:18,772 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:04:48,363 - INFO - taking picture
MAIN: 2025-03-31 13:04:48,364 - INFO - we take 789 photos in this while loop
MAIN: 2025-03-31 13:04:48,364 - INFO - /home/pi/Desktop/images/31032025/13/04/image_31032025_13_04_47_29589.jpg
MAIN: 2025-03-31 13:04:48,364 - INFO - duration: 0.6987115319971053
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:05:07,260 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:05:18,631 - INFO - taking picture
MAIN: 2025-03-31 13:05:18,632 - INFO - we take 790 photos in this while loop
MAIN: 2025-03-31 13:05:18,632 - INFO - /home/pi/Desktop/images/31032025/13/04/image_31032025_13_05_18_30291.jpg
MAIN: 2025-03-31 13:05:18,632 - INFO - duration: 0.6748858430000837
MAIN: 2025-03-31 13:05:18,633 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:05:48,301 - INFO - taking picture
MAIN: 2025-03-31 13:05:48,302 - INFO - we take 791 photos in this while loop
MAIN: 2025-03-31 13:05:48,302 - INFO - /home/pi/Desktop/images/31032025/13/05/image_31032025_13_05_47_29643.jpg
MAIN: 2025-03-31 13:05:48,302 - INFO - duration: 0.7016905739983486
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:06:06,235 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:06:18,412 - INFO - taking picture
MAIN: 2025-03-31 13:06:18,413 - INFO - we take 792 photos in this while loop
MAIN: 2025-03-31 13:06:18,413 - INFO - /home/pi/Desktop/images/31032025/13/05/image_31032025_13_06_18_30106.jpg
MAIN: 2025-03-31 13:06:18,413 - INFO - duration: 0.7056754619989078
MAIN: 2025-03-31 13:06:18,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:06:49,376 - INFO - taking picture
MAIN: 2025-03-31 13:06:49,377 - INFO - we take 793 photos in this while loop
MAIN: 2025-03-31 13:06:49,377 - INFO - /home/pi/Desktop/images/31032025/13/06/image_31032025_13_06_48_30973.jpg
MAIN: 2025-03-31 13:06:49,377 - INFO - duration: 0.6961800349999976
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:07:05,793 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:07:18,115 - INFO - taking picture
MAIN: 2025-03-31 13:07:18,115 - INFO - we take 794 photos in this while loop
MAIN: 2025-03-31 13:07:18,115 - INFO - /home/pi/Desktop/images/31032025/13/06/image_31032025_13_07_17_28754.jpg
MAIN: 2025-03-31 13:07:18,116 - INFO - duration: 0.679976068000542
MAIN: 2025-03-31 13:07:18,116 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:07:49,146 - INFO - taking picture
MAIN: 2025-03-31 13:07:49,146 - INFO - we take 795 photos in this while loop
MAIN: 2025-03-31 13:07:49,147 - INFO - /home/pi/Desktop/images/31032025/13/07/image_31032025_13_07_48_31015.jpg
MAIN: 2025-03-31 13:07:49,147 - INFO - duration: 0.6954007480017026
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:08:06,125 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:08:19,202 - INFO - taking picture
MAIN: 2025-03-31 13:08:19,202 - INFO - we take 796 photos in this while loop
MAIN: 2025-03-31 13:08:19,202 - INFO - /home/pi/Desktop/images/31032025/13/07/image_31032025_13_08_18_30063.jpg
MAIN: 2025-03-31 13:08:19,203 - INFO - duration: 0.687315948001924
MAIN: 2025-03-31 13:08:19,203 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:08:48,913 - INFO - taking picture
MAIN: 2025-03-31 13:08:48,913 - INFO - we take 797 photos in this while loop
MAIN: 2025-03-31 13:08:48,913 - INFO - /home/pi/Desktop/images/31032025/13/08/image_31032025_13_08_48_29704.jpg
MAIN: 2025-03-31 13:08:48,914 - INFO - duration: 0.6937621919969388
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:09:05,898 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:09:18,811 - INFO - taking picture
MAIN: 2025-03-31 13:09:18,811 - INFO - we take 798 photos in this while loop
MAIN: 2025-03-31 13:09:18,812 - INFO - /home/pi/Desktop/images/31032025/13/08/image_31032025_13_09_18_29908.jpg
MAIN: 2025-03-31 13:09:18,812 - INFO - duration: 0.683259684999939
MAIN: 2025-03-31 13:09:18,812 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:09:48,244 - INFO - taking picture
MAIN: 2025-03-31 13:09:48,245 - INFO - we take 799 photos in this while loop
MAIN: 2025-03-31 13:09:48,245 - INFO - /home/pi/Desktop/images/31032025/13/09/image_31032025_13_09_47_29448.jpg
MAIN: 2025-03-31 13:09:48,245 - INFO - duration: 0.6681659290006792
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:10:06,840 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:10:18,479 - INFO - taking picture
MAIN: 2025-03-31 13:10:18,480 - INFO - we take 800 photos in this while loop
MAIN: 2025-03-31 13:10:18,480 - INFO - /home/pi/Desktop/images/31032025/13/09/image_31032025_13_10_18_30207.jpg
MAIN: 2025-03-31 13:10:18,480 - INFO - duration: 0.6954398810012208
MAIN: 2025-03-31 13:10:18,480 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/10'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:10:49,353 - INFO - taking picture
MAIN: 2025-03-31 13:10:49,354 - INFO - we take 801 photos in this while loop
MAIN: 2025-03-31 13:10:49,354 - INFO - /home/pi/Desktop/images/31032025/13/10/image_31032025_13_10_48_30875.jpg
MAIN: 2025-03-31 13:10:49,354 - INFO - duration: 0.6939815949990589
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:11:05,418 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:11:19,204 - INFO - taking picture
MAIN: 2025-03-31 13:11:19,205 - INFO - we take 802 photos in this while loop
MAIN: 2025-03-31 13:11:19,205 - INFO - /home/pi/Desktop/images/31032025/13/10/image_31032025_13_11_18_29835.jpg
MAIN: 2025-03-31 13:11:19,205 - INFO - duration: 0.7094571090019599
MAIN: 2025-03-31 13:11:19,205 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:11:48,797 - INFO - taking picture
MAIN: 2025-03-31 13:11:48,798 - INFO - we take 803 photos in this while loop
MAIN: 2025-03-31 13:11:48,798 - INFO - /home/pi/Desktop/images/31032025/13/11/image_31032025_13_11_48_29606.jpg
MAIN: 2025-03-31 13:11:48,798 - INFO - duration: 0.6962134070017783
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:12:06,133 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:12:18,895 - INFO - taking picture
MAIN: 2025-03-31 13:12:18,895 - INFO - we take 804 photos in this while loop
MAIN: 2025-03-31 13:12:18,895 - INFO - /home/pi/Desktop/images/31032025/13/11/image_31032025_13_12_18_30102.jpg
MAIN: 2025-03-31 13:12:18,896 - INFO - duration: 0.6909675169990805
MAIN: 2025-03-31 13:12:18,896 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:12:48,446 - INFO - taking picture
MAIN: 2025-03-31 13:12:48,447 - INFO - we take 805 photos in this while loop
MAIN: 2025-03-31 13:12:48,447 - INFO - /home/pi/Desktop/images/31032025/13/12/image_31032025_13_12_48_29561.jpg
MAIN: 2025-03-31 13:12:48,447 - INFO - duration: 0.6810296490002656
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:13:06,133 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:13:18,383 - INFO - taking picture
MAIN: 2025-03-31 13:13:18,383 - INFO - we take 806 photos in this while loop
MAIN: 2025-03-31 13:13:18,384 - INFO - /home/pi/Desktop/images/31032025/13/12/image_31032025_13_13_18_29948.jpg
MAIN: 2025-03-31 13:13:18,384 - INFO - duration: 0.6690116770005261
MAIN: 2025-03-31 13:13:18,384 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:13:49,258 - INFO - taking picture
MAIN: 2025-03-31 13:13:49,259 - INFO - we take 807 photos in this while loop
MAIN: 2025-03-31 13:13:49,259 - INFO - /home/pi/Desktop/images/31032025/13/13/image_31032025_13_13_48_30844.jpg
MAIN: 2025-03-31 13:13:49,259 - INFO - duration: 0.6997930249999627
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 13:14:06,918 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:14:18,199 - INFO - taking picture
MAIN: 2025-03-31 13:14:18,199 - INFO - we take 808 photos in this while loop
MAIN: 2025-03-31 13:14:18,200 - INFO - /home/pi/Desktop/images/31032025/13/13/image_31032025_13_14_17_28948.jpg
MAIN: 2025-03-31 13:14:18,200 - INFO - duration: 0.6919423449980968
MAIN: 2025-03-31 13:14:18,200 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:14:49,105 - INFO - taking picture
MAIN: 2025-03-31 13:14:49,106 - INFO - we take 809 photos in this while loop
MAIN: 2025-03-31 13:14:49,106 - INFO - /home/pi/Desktop/images/31032025/13/14/image_31032025_13_14_48_30908.jpg
MAIN: 2025-03-31 13:14:49,106 - INFO - duration: 0.689600623001752
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:15:07,211 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:15:19,302 - INFO - taking picture
MAIN: 2025-03-31 13:15:19,303 - INFO - we take 810 photos in this while loop
MAIN: 2025-03-31 13:15:19,303 - INFO - /home/pi/Desktop/images/31032025/13/14/image_31032025_13_15_18_30194.jpg
MAIN: 2025-03-31 13:15:19,303 - INFO - duration: 0.6925366609975754
MAIN: 2025-03-31 13:15:19,304 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:15:49,142 - INFO - taking picture
MAIN: 2025-03-31 13:15:49,142 - INFO - we take 811 photos in this while loop
MAIN: 2025-03-31 13:15:49,143 - INFO - /home/pi/Desktop/images/31032025/13/15/image_31032025_13_15_48_29832.jpg
MAIN: 2025-03-31 13:15:49,143 - INFO - duration: 0.6992459799985227
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:16:06,194 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:16:19,167 - INFO - taking picture
MAIN: 2025-03-31 13:16:19,167 - INFO - we take 812 photos in this while loop
MAIN: 2025-03-31 13:16:19,167 - INFO - /home/pi/Desktop/images/31032025/13/15/image_31032025_13_16_18_30031.jpg
MAIN: 2025-03-31 13:16:19,167 - INFO - duration: 0.6927156130004732
MAIN: 2025-03-31 13:16:19,168 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/16'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:16:48,793 - INFO - taking picture
MAIN: 2025-03-31 13:16:48,793 - INFO - we take 813 photos in this while loop
MAIN: 2025-03-31 13:16:48,793 - INFO - /home/pi/Desktop/images/31032025/13/16/image_31032025_13_16_48_29631.jpg
MAIN: 2025-03-31 13:16:48,794 - INFO - duration: 0.6872501420002664
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:17:05,807 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:17:18,880 - INFO - taking picture
MAIN: 2025-03-31 13:17:18,881 - INFO - we take 814 photos in this while loop
MAIN: 2025-03-31 13:17:18,881 - INFO - /home/pi/Desktop/images/31032025/13/16/image_31032025_13_17_18_30082.jpg
MAIN: 2025-03-31 13:17:18,881 - INFO - duration: 0.6921164929990482
MAIN: 2025-03-31 13:17:18,881 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/17'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:17:48,610 - INFO - taking picture
MAIN: 2025-03-31 13:17:48,611 - INFO - we take 815 photos in this while loop
MAIN: 2025-03-31 13:17:48,611 - INFO - /home/pi/Desktop/images/31032025/13/17/image_31032025_13_17_48_29727.jpg
MAIN: 2025-03-31 13:17:48,611 - INFO - duration: 0.6955151360016316
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 13:18:06,342 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:18:18,612 - INFO - taking picture
MAIN: 2025-03-31 13:18:18,613 - INFO - we take 816 photos in this while loop
MAIN: 2025-03-31 13:18:18,613 - INFO - /home/pi/Desktop/images/31032025/13/17/image_31032025_13_18_18_29996.jpg
MAIN: 2025-03-31 13:18:18,613 - INFO - duration: 0.7009741440015205
MAIN: 2025-03-31 13:18:18,613 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/18'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:18:48,169 - INFO - taking picture
MAIN: 2025-03-31 13:18:48,170 - INFO - we take 817 photos in this while loop
MAIN: 2025-03-31 13:18:48,170 - INFO - /home/pi/Desktop/images/31032025/13/18/image_31032025_13_18_47_29564.jpg
MAIN: 2025-03-31 13:18:48,170 - INFO - duration: 0.6939082050012075
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:19:06,010 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:19:18,137 - INFO - taking picture
MAIN: 2025-03-31 13:19:18,137 - INFO - we take 818 photos in this while loop
MAIN: 2025-03-31 13:19:18,137 - INFO - /home/pi/Desktop/images/31032025/13/18/image_31032025_13_19_17_29973.jpg
MAIN: 2025-03-31 13:19:18,138 - INFO - duration: 0.6879279950007913
MAIN: 2025-03-31 13:19:18,138 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/19'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:19:49,055 - INFO - taking picture
MAIN: 2025-03-31 13:19:49,056 - INFO - we take 819 photos in this while loop
MAIN: 2025-03-31 13:19:49,056 - INFO - /home/pi/Desktop/images/31032025/13/19/image_31032025_13_19_48_30911.jpg
MAIN: 2025-03-31 13:19:49,056 - INFO - duration: 0.6945917939992796
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:20:07,289 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:20:19,316 - INFO - taking picture
MAIN: 2025-03-31 13:20:19,317 - INFO - we take 820 photos in this while loop
MAIN: 2025-03-31 13:20:19,317 - INFO - /home/pi/Desktop/images/31032025/13/19/image_31032025_13_20_18_30257.jpg
MAIN: 2025-03-31 13:20:19,317 - INFO - duration: 0.6983743969976786
MAIN: 2025-03-31 13:20:19,318 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/20'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:20:48,915 - INFO - taking picture
MAIN: 2025-03-31 13:20:48,916 - INFO - we take 821 photos in this while loop
MAIN: 2025-03-31 13:20:48,916 - INFO - /home/pi/Desktop/images/31032025/13/20/image_31032025_13_20_48_29600.jpg
MAIN: 2025-03-31 13:20:48,916 - INFO - duration: 0.6969949680024001
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:21:06,773 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:21:18,943 - INFO - taking picture
MAIN: 2025-03-31 13:21:18,944 - INFO - we take 822 photos in this while loop
MAIN: 2025-03-31 13:21:18,944 - INFO - /home/pi/Desktop/images/31032025/13/20/image_31032025_13_21_18_30024.jpg
MAIN: 2025-03-31 13:21:18,944 - INFO - duration: 0.7000875699995959
MAIN: 2025-03-31 13:21:18,944 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:21:48,543 - INFO - taking picture
MAIN: 2025-03-31 13:21:48,544 - INFO - we take 823 photos in this while loop
MAIN: 2025-03-31 13:21:48,544 - INFO - /home/pi/Desktop/images/31032025/13/21/image_31032025_13_21_48_29599.jpg
MAIN: 2025-03-31 13:21:48,544 - INFO - duration: 0.700244756997563
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:22:06,263 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:22:18,621 - INFO - taking picture
MAIN: 2025-03-31 13:22:18,622 - INFO - we take 824 photos in this while loop
MAIN: 2025-03-31 13:22:18,622 - INFO - /home/pi/Desktop/images/31032025/13/21/image_31032025_13_22_18_30071.jpg
MAIN: 2025-03-31 13:22:18,622 - INFO - duration: 0.7072753790016577
MAIN: 2025-03-31 13:22:18,623 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:22:48,275 - INFO - taking picture
MAIN: 2025-03-31 13:22:48,276 - INFO - we take 825 photos in this while loop
MAIN: 2025-03-31 13:22:48,276 - INFO - /home/pi/Desktop/images/31032025/13/22/image_31032025_13_22_47_29675.jpg
MAIN: 2025-03-31 13:22:48,276 - INFO - duration: 0.6857649109988415
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:23:05,766 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:23:18,177 - INFO - taking picture
MAIN: 2025-03-31 13:23:18,177 - INFO - we take 826 photos in this while loop
MAIN: 2025-03-31 13:23:18,178 - INFO - /home/pi/Desktop/images/31032025/13/22/image_31032025_13_23_17_29887.jpg
MAIN: 2025-03-31 13:23:18,178 - INFO - duration: 0.7003700650020619
MAIN: 2025-03-31 13:23:18,178 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/23'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:23:49,054 - INFO - taking picture
MAIN: 2025-03-31 13:23:49,054 - INFO - we take 827 photos in this while loop
MAIN: 2025-03-31 13:23:49,055 - INFO - /home/pi/Desktop/images/31032025/13/23/image_31032025_13_23_48_30875.jpg
MAIN: 2025-03-31 13:23:49,055 - INFO - duration: 0.7022615729983954
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:24:06,545 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:24:19,041 - INFO - taking picture
MAIN: 2025-03-31 13:24:19,042 - INFO - we take 828 photos in this while loop
MAIN: 2025-03-31 13:24:19,042 - INFO - /home/pi/Desktop/images/31032025/13/23/image_31032025_13_24_18_29986.jpg
MAIN: 2025-03-31 13:24:19,042 - INFO - duration: 0.7032255829981295
MAIN: 2025-03-31 13:24:19,043 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/24'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:24:48,722 - INFO - taking picture
MAIN: 2025-03-31 13:24:48,722 - INFO - we take 829 photos in this while loop
MAIN: 2025-03-31 13:24:48,723 - INFO - /home/pi/Desktop/images/31032025/13/24/image_31032025_13_24_48_29681.jpg
MAIN: 2025-03-31 13:24:48,723 - INFO - duration: 0.702208654001879
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:25:06,971 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:25:18,766 - INFO - taking picture
MAIN: 2025-03-31 13:25:18,767 - INFO - we take 830 photos in this while loop
MAIN: 2025-03-31 13:25:18,767 - INFO - /home/pi/Desktop/images/31032025/13/24/image_31032025_13_25_18_30051.jpg
MAIN: 2025-03-31 13:25:18,767 - INFO - duration: 0.6954228729991883
MAIN: 2025-03-31 13:25:18,768 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/25'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:25:48,302 - INFO - taking picture
MAIN: 2025-03-31 13:25:48,303 - INFO - we take 831 photos in this while loop
MAIN: 2025-03-31 13:25:48,303 - INFO - /home/pi/Desktop/images/31032025/13/25/image_31032025_13_25_47_29535.jpg
MAIN: 2025-03-31 13:25:48,303 - INFO - duration: 0.6951094340001873
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:26:07,038 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:26:18,381 - INFO - taking picture
MAIN: 2025-03-31 13:26:18,382 - INFO - we take 832 photos in this while loop
MAIN: 2025-03-31 13:26:18,382 - INFO - /home/pi/Desktop/images/31032025/13/25/image_31032025_13_26_18_30088.jpg
MAIN: 2025-03-31 13:26:18,382 - INFO - duration: 0.6863664149968827
MAIN: 2025-03-31 13:26:18,383 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/26'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:26:48,133 - INFO - taking picture
MAIN: 2025-03-31 13:26:48,133 - INFO - we take 833 photos in this while loop
MAIN: 2025-03-31 13:26:48,134 - INFO - /home/pi/Desktop/images/31032025/13/26/image_31032025_13_26_47_29750.jpg
MAIN: 2025-03-31 13:26:48,134 - INFO - duration: 0.6876869860025181
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:27:05,797 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:27:19,381 - INFO - taking picture
MAIN: 2025-03-31 13:27:19,382 - INFO - we take 834 photos in this while loop
MAIN: 2025-03-31 13:27:19,382 - INFO - /home/pi/Desktop/images/31032025/13/26/image_31032025_13_27_18_31245.jpg
MAIN: 2025-03-31 13:27:19,382 - INFO - duration: 0.6911885990011797
MAIN: 2025-03-31 13:27:19,383 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/27'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:27:48,969 - INFO - taking picture
MAIN: 2025-03-31 13:27:48,969 - INFO - we take 835 photos in this while loop
MAIN: 2025-03-31 13:27:48,969 - INFO - /home/pi/Desktop/images/31032025/13/27/image_31032025_13_27_48_29601.jpg
MAIN: 2025-03-31 13:27:48,970 - INFO - duration: 0.6774307879968546
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:28:06,215 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:28:19,150 - INFO - taking picture
MAIN: 2025-03-31 13:28:19,150 - INFO - we take 836 photos in this while loop
MAIN: 2025-03-31 13:28:19,150 - INFO - /home/pi/Desktop/images/31032025/13/27/image_31032025_13_28_18_30160.jpg
MAIN: 2025-03-31 13:28:19,151 - INFO - duration: 0.698175003999495
MAIN: 2025-03-31 13:28:19,151 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/28'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:28:48,804 - INFO - taking picture
MAIN: 2025-03-31 13:28:48,805 - INFO - we take 837 photos in this while loop
MAIN: 2025-03-31 13:28:48,805 - INFO - /home/pi/Desktop/images/31032025/13/28/image_31032025_13_28_48_29655.jpg
MAIN: 2025-03-31 13:28:48,805 - INFO - duration: 0.6973242220010434
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:29:06,070 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:29:18,554 - INFO - taking picture
MAIN: 2025-03-31 13:29:18,554 - INFO - we take 838 photos in this while loop
MAIN: 2025-03-31 13:29:18,554 - INFO - /home/pi/Desktop/images/31032025/13/28/image_31032025_13_29_18_29753.jpg
MAIN: 2025-03-31 13:29:18,554 - INFO - duration: 0.6934618779996526
MAIN: 2025-03-31 13:29:18,555 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/29'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:29:49,337 - INFO - taking picture
MAIN: 2025-03-31 13:29:49,338 - INFO - we take 839 photos in this while loop
MAIN: 2025-03-31 13:29:49,338 - INFO - /home/pi/Desktop/images/31032025/13/29/image_31032025_13_29_48_30787.jpg
MAIN: 2025-03-31 13:29:49,338 - INFO - duration: 0.6899013559996092
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:30:07,003 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:30:18,411 - INFO - taking picture
MAIN: 2025-03-31 13:30:18,412 - INFO - we take 840 photos in this while loop
MAIN: 2025-03-31 13:30:18,412 - INFO - /home/pi/Desktop/images/31032025/13/29/image_31032025_13_30_18_29087.jpg
MAIN: 2025-03-31 13:30:18,412 - INFO - duration: 0.6760804730001837
MAIN: 2025-03-31 13:30:18,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:30:49,344 - INFO - taking picture
MAIN: 2025-03-31 13:30:49,344 - INFO - we take 841 photos in this while loop
MAIN: 2025-03-31 13:30:49,344 - INFO - /home/pi/Desktop/images/31032025/13/30/image_31032025_13_30_48_30913.jpg
MAIN: 2025-03-31 13:30:49,345 - INFO - duration: 0.6954002089987625
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:31:06,615 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:31:18,115 - INFO - taking picture
MAIN: 2025-03-31 13:31:18,116 - INFO - we take 842 photos in this while loop
MAIN: 2025-03-31 13:31:18,116 - INFO - /home/pi/Desktop/images/31032025/13/30/image_31032025_13_31_17_28788.jpg
MAIN: 2025-03-31 13:31:18,116 - INFO - duration: 0.678173180000158
MAIN: 2025-03-31 13:31:18,117 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:31:49,123 - INFO - taking picture
MAIN: 2025-03-31 13:31:49,124 - INFO - we take 843 photos in this while loop
MAIN: 2025-03-31 13:31:49,124 - INFO - /home/pi/Desktop/images/31032025/13/31/image_31032025_13_31_48_31016.jpg
MAIN: 2025-03-31 13:31:49,124 - INFO - duration: 0.6695594830016489
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:32:06,201 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:32:19,096 - INFO - taking picture
MAIN: 2025-03-31 13:32:19,097 - INFO - we take 844 photos in this while loop
MAIN: 2025-03-31 13:32:19,097 - INFO - /home/pi/Desktop/images/31032025/13/31/image_31032025_13_32_18_29951.jpg
MAIN: 2025-03-31 13:32:19,097 - INFO - duration: 0.6915371870018134
MAIN: 2025-03-31 13:32:19,098 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:32:48,722 - INFO - taking picture
MAIN: 2025-03-31 13:32:48,722 - INFO - we take 845 photos in this while loop
MAIN: 2025-03-31 13:32:48,722 - INFO - /home/pi/Desktop/images/31032025/13/32/image_31032025_13_32_48_29614.jpg
MAIN: 2025-03-31 13:32:48,723 - INFO - duration: 0.7022761949992855
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 13:33:05,817 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:33:18,523 - INFO - taking picture
MAIN: 2025-03-31 13:33:18,523 - INFO - we take 846 photos in this while loop
MAIN: 2025-03-31 13:33:18,523 - INFO - /home/pi/Desktop/images/31032025/13/32/image_31032025_13_33_18_29804.jpg
MAIN: 2025-03-31 13:33:18,524 - INFO - duration: 0.6985057800011418
MAIN: 2025-03-31 13:33:18,524 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:33:48,181 - INFO - taking picture
MAIN: 2025-03-31 13:33:48,181 - INFO - we take 847 photos in this while loop
MAIN: 2025-03-31 13:33:48,181 - INFO - /home/pi/Desktop/images/31032025/13/33/image_31032025_13_33_47_29653.jpg
MAIN: 2025-03-31 13:33:48,182 - INFO - duration: 0.703093642998283
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:34:06,447 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:34:18,396 - INFO - taking picture
MAIN: 2025-03-31 13:34:18,397 - INFO - we take 848 photos in this while loop
MAIN: 2025-03-31 13:34:18,397 - INFO - /home/pi/Desktop/images/31032025/13/33/image_31032025_13_34_18_30223.jpg
MAIN: 2025-03-31 13:34:18,397 - INFO - duration: 0.6945926020016486
MAIN: 2025-03-31 13:34:18,397 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:34:49,272 - INFO - taking picture
MAIN: 2025-03-31 13:34:49,273 - INFO - we take 849 photos in this while loop
MAIN: 2025-03-31 13:34:49,273 - INFO - /home/pi/Desktop/images/31032025/13/34/image_31032025_13_34_48_30872.jpg
MAIN: 2025-03-31 13:34:49,273 - INFO - duration: 0.6978192160022445
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:35:06,938 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:35:18,352 - INFO - taking picture
MAIN: 2025-03-31 13:35:18,353 - INFO - we take 850 photos in this while loop
MAIN: 2025-03-31 13:35:18,353 - INFO - /home/pi/Desktop/images/31032025/13/34/image_31032025_13_35_17_29077.jpg
MAIN: 2025-03-31 13:35:18,353 - INFO - duration: 0.6999696310012951
MAIN: 2025-03-31 13:35:18,353 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:35:49,333 - INFO - taking picture
MAIN: 2025-03-31 13:35:49,334 - INFO - we take 851 photos in this while loop
MAIN: 2025-03-31 13:35:49,334 - INFO - /home/pi/Desktop/images/31032025/13/35/image_31032025_13_35_48_30980.jpg
MAIN: 2025-03-31 13:35:49,334 - INFO - duration: 0.7011330690002069
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:36:06,746 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:36:18,271 - INFO - taking picture
MAIN: 2025-03-31 13:36:18,272 - INFO - we take 852 photos in this while loop
MAIN: 2025-03-31 13:36:18,272 - INFO - /home/pi/Desktop/images/31032025/13/35/image_31032025_13_36_17_28938.jpg
MAIN: 2025-03-31 13:36:18,272 - INFO - duration: 0.6997853079992638
MAIN: 2025-03-31 13:36:18,272 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:36:49,289 - INFO - taking picture
MAIN: 2025-03-31 13:36:49,290 - INFO - we take 853 photos in this while loop
MAIN: 2025-03-31 13:36:49,290 - INFO - /home/pi/Desktop/images/31032025/13/36/image_31032025_13_36_48_31017.jpg
MAIN: 2025-03-31 13:36:49,290 - INFO - duration: 0.7008099429949652
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:37:05,721 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:37:19,278 - INFO - taking picture
MAIN: 2025-03-31 13:37:19,278 - INFO - we take 854 photos in this while loop
MAIN: 2025-03-31 13:37:19,278 - INFO - /home/pi/Desktop/images/31032025/13/36/image_31032025_13_37_18_29977.jpg
MAIN: 2025-03-31 13:37:19,279 - INFO - duration: 0.711813431000337
MAIN: 2025-03-31 13:37:19,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:37:48,861 - INFO - taking picture
MAIN: 2025-03-31 13:37:48,861 - INFO - we take 855 photos in this while loop
MAIN: 2025-03-31 13:37:48,861 - INFO - /home/pi/Desktop/images/31032025/13/37/image_31032025_13_37_48_29612.jpg
MAIN: 2025-03-31 13:37:48,862 - INFO - duration: 0.6816683080032817
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:38:05,731 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:38:18,537 - INFO - taking picture
MAIN: 2025-03-31 13:38:18,537 - INFO - we take 856 photos in this while loop
MAIN: 2025-03-31 13:38:18,538 - INFO - /home/pi/Desktop/images/31032025/13/37/image_31032025_13_38_18_29669.jpg
MAIN: 2025-03-31 13:38:18,538 - INFO - duration: 0.6881062659958843
MAIN: 2025-03-31 13:38:18,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:38:48,252 - INFO - taking picture
MAIN: 2025-03-31 13:38:48,253 - INFO - we take 857 photos in this while loop
MAIN: 2025-03-31 13:38:48,253 - INFO - /home/pi/Desktop/images/31032025/13/38/image_31032025_13_38_47_29706.jpg
MAIN: 2025-03-31 13:38:48,253 - INFO - duration: 0.6968888089977554
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:39:05,955 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:39:18,273 - INFO - taking picture
MAIN: 2025-03-31 13:39:18,274 - INFO - we take 858 photos in this while loop
MAIN: 2025-03-31 13:39:18,274 - INFO - /home/pi/Desktop/images/31032025/13/38/image_31032025_13_39_17_30024.jpg
MAIN: 2025-03-31 13:39:18,274 - INFO - duration: 0.6937715680032852
MAIN: 2025-03-31 13:39:18,275 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:39:49,151 - INFO - taking picture
MAIN: 2025-03-31 13:39:49,152 - INFO - we take 859 photos in this while loop
MAIN: 2025-03-31 13:39:49,152 - INFO - /home/pi/Desktop/images/31032025/13/39/image_31032025_13_39_48_30881.jpg
MAIN: 2025-03-31 13:39:49,152 - INFO - duration: 0.6896537430002354
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:40:06,879 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:40:19,224 - INFO - taking picture
MAIN: 2025-03-31 13:40:19,225 - INFO - we take 860 photos in this while loop
MAIN: 2025-03-31 13:40:19,225 - INFO - /home/pi/Desktop/images/31032025/13/39/image_31032025_13_40_18_30073.jpg
MAIN: 2025-03-31 13:40:19,225 - INFO - duration: 0.6890113160043256
MAIN: 2025-03-31 13:40:19,225 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:40:48,815 - INFO - taking picture
MAIN: 2025-03-31 13:40:48,816 - INFO - we take 861 photos in this while loop
MAIN: 2025-03-31 13:40:48,816 - INFO - /home/pi/Desktop/images/31032025/13/40/image_31032025_13_40_48_29589.jpg
MAIN: 2025-03-31 13:40:48,816 - INFO - duration: 0.6910678580024978
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:41:05,749 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:41:18,929 - INFO - taking picture
MAIN: 2025-03-31 13:41:18,929 - INFO - we take 862 photos in this while loop
MAIN: 2025-03-31 13:41:18,930 - INFO - /home/pi/Desktop/images/31032025/13/40/image_31032025_13_41_18_30103.jpg
MAIN: 2025-03-31 13:41:18,930 - INFO - duration: 0.7010495479989913
MAIN: 2025-03-31 13:41:18,930 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:41:48,532 - INFO - taking picture
MAIN: 2025-03-31 13:41:48,533 - INFO - we take 863 photos in this while loop
MAIN: 2025-03-31 13:41:48,533 - INFO - /home/pi/Desktop/images/31032025/13/41/image_31032025_13_41_48_29605.jpg
MAIN: 2025-03-31 13:41:48,533 - INFO - duration: 0.6994017320030252
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:42:05,739 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:42:18,446 - INFO - taking picture
MAIN: 2025-03-31 13:42:18,446 - INFO - we take 864 photos in this while loop
MAIN: 2025-03-31 13:42:18,446 - INFO - /home/pi/Desktop/images/31032025/13/41/image_31032025_13_42_18_29921.jpg
MAIN: 2025-03-31 13:42:18,447 - INFO - duration: 0.691214475002198
MAIN: 2025-03-31 13:42:18,447 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/42'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:42:49,351 - INFO - taking picture
MAIN: 2025-03-31 13:42:49,352 - INFO - we take 865 photos in this while loop
MAIN: 2025-03-31 13:42:49,352 - INFO - /home/pi/Desktop/images/31032025/13/42/image_31032025_13_42_48_30896.jpg
MAIN: 2025-03-31 13:42:49,352 - INFO - duration: 0.6998335310054244
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:43:05,985 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:43:19,281 - INFO - taking picture
MAIN: 2025-03-31 13:43:19,282 - INFO - we take 866 photos in this while loop
MAIN: 2025-03-31 13:43:19,282 - INFO - /home/pi/Desktop/images/31032025/13/42/image_31032025_13_43_18_29959.jpg
MAIN: 2025-03-31 13:43:19,282 - INFO - duration: 0.6706311859961716
MAIN: 2025-03-31 13:43:19,283 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/43'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:43:48,885 - INFO - taking picture
MAIN: 2025-03-31 13:43:48,885 - INFO - we take 867 photos in this while loop
MAIN: 2025-03-31 13:43:48,886 - INFO - /home/pi/Desktop/images/31032025/13/43/image_31032025_13_43_48_29603.jpg
MAIN: 2025-03-31 13:43:48,886 - INFO - duration: 0.6706434860025183
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 13:44:06,621 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:44:18,835 - INFO - taking picture
MAIN: 2025-03-31 13:44:18,836 - INFO - we take 868 photos in this while loop
MAIN: 2025-03-31 13:44:18,836 - INFO - /home/pi/Desktop/images/31032025/13/43/image_31032025_13_44_18_29930.jpg
MAIN: 2025-03-31 13:44:18,836 - INFO - duration: 0.6903856959979748
MAIN: 2025-03-31 13:44:18,837 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:44:48,581 - INFO - taking picture
MAIN: 2025-03-31 13:44:48,582 - INFO - we take 869 photos in this while loop
MAIN: 2025-03-31 13:44:48,582 - INFO - /home/pi/Desktop/images/31032025/13/44/image_31032025_13_44_48_29736.jpg
MAIN: 2025-03-31 13:44:48,582 - INFO - duration: 0.6998639149969677
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:45:06,324 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:45:18,743 - INFO - taking picture
MAIN: 2025-03-31 13:45:18,743 - INFO - we take 870 photos in this while loop
MAIN: 2025-03-31 13:45:18,744 - INFO - /home/pi/Desktop/images/31032025/13/44/image_31032025_13_45_18_30161.jpg
MAIN: 2025-03-31 13:45:18,744 - INFO - duration: 0.6999359559995355
MAIN: 2025-03-31 13:45:18,744 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:45:48,442 - INFO - taking picture
MAIN: 2025-03-31 13:45:48,443 - INFO - we take 871 photos in this while loop
MAIN: 2025-03-31 13:45:48,443 - INFO - /home/pi/Desktop/images/31032025/13/45/image_31032025_13_45_48_29702.jpg
MAIN: 2025-03-31 13:45:48,443 - INFO - duration: 0.6961839279974811
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:46:06,720 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:46:18,610 - INFO - taking picture
MAIN: 2025-03-31 13:46:18,610 - INFO - we take 872 photos in this while loop
MAIN: 2025-03-31 13:46:18,611 - INFO - /home/pi/Desktop/images/31032025/13/45/image_31032025_13_46_18_30164.jpg
MAIN: 2025-03-31 13:46:18,611 - INFO - duration: 0.6994921400037128
MAIN: 2025-03-31 13:46:18,611 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:46:48,296 - INFO - taking picture
MAIN: 2025-03-31 13:46:48,297 - INFO - we take 873 photos in this while loop
MAIN: 2025-03-31 13:46:48,297 - INFO - /home/pi/Desktop/images/31032025/13/46/image_31032025_13_46_47_29690.jpg
MAIN: 2025-03-31 13:46:48,297 - INFO - duration: 0.6951580699969782
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:47:05,797 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:47:18,107 - INFO - taking picture
MAIN: 2025-03-31 13:47:18,108 - INFO - we take 874 photos in this while loop
MAIN: 2025-03-31 13:47:18,108 - INFO - /home/pi/Desktop/images/31032025/13/46/image_31032025_13_47_17_29842.jpg
MAIN: 2025-03-31 13:47:18,108 - INFO - duration: 0.6633477420036797
MAIN: 2025-03-31 13:47:18,108 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:47:48,910 - INFO - taking picture
MAIN: 2025-03-31 13:47:48,910 - INFO - we take 875 photos in this while loop
MAIN: 2025-03-31 13:47:48,910 - INFO - /home/pi/Desktop/images/31032025/13/47/image_31032025_13_47_48_30769.jpg
MAIN: 2025-03-31 13:47:48,911 - INFO - duration: 0.6959550819956348
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:48:06,254 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:48:19,213 - INFO - taking picture
MAIN: 2025-03-31 13:48:19,213 - INFO - we take 876 photos in this while loop
MAIN: 2025-03-31 13:48:19,214 - INFO - /home/pi/Desktop/images/31032025/13/47/image_31032025_13_48_18_30297.jpg
MAIN: 2025-03-31 13:48:19,214 - INFO - duration: 0.7016244010010269
MAIN: 2025-03-31 13:48:19,214 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/48'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:48:48,864 - INFO - taking picture
MAIN: 2025-03-31 13:48:48,865 - INFO - we take 877 photos in this while loop
MAIN: 2025-03-31 13:48:48,865 - INFO - /home/pi/Desktop/images/31032025/13/48/image_31032025_13_48_48_29670.jpg
MAIN: 2025-03-31 13:48:48,865 - INFO - duration: 0.6827048490013112
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:49:05,857 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:49:18,605 - INFO - taking picture
MAIN: 2025-03-31 13:49:18,605 - INFO - we take 878 photos in this while loop
MAIN: 2025-03-31 13:49:18,605 - INFO - /home/pi/Desktop/images/31032025/13/48/image_31032025_13_49_18_29733.jpg
MAIN: 2025-03-31 13:49:18,606 - INFO - duration: 0.6892688200023258
MAIN: 2025-03-31 13:49:18,606 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:49:49,332 - INFO - taking picture
MAIN: 2025-03-31 13:49:49,333 - INFO - we take 879 photos in this while loop
MAIN: 2025-03-31 13:49:49,333 - INFO - /home/pi/Desktop/images/31032025/13/49/image_31032025_13_49_48_30722.jpg
MAIN: 2025-03-31 13:49:49,333 - INFO - duration: 0.6943582840031013
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 13:50:06,984 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:50:18,273 - INFO - taking picture
MAIN: 2025-03-31 13:50:18,274 - INFO - we take 880 photos in this while loop
MAIN: 2025-03-31 13:50:18,274 - INFO - /home/pi/Desktop/images/31032025/13/49/image_31032025_13_50_17_28961.jpg
MAIN: 2025-03-31 13:50:18,274 - INFO - duration: 0.6738183859997662
MAIN: 2025-03-31 13:50:18,275 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:50:49,134 - INFO - taking picture
MAIN: 2025-03-31 13:50:49,135 - INFO - we take 881 photos in this while loop
MAIN: 2025-03-31 13:50:49,135 - INFO - /home/pi/Desktop/images/31032025/13/50/image_31032025_13_50_48_30838.jpg
MAIN: 2025-03-31 13:50:49,135 - INFO - duration: 0.6961601150032948
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:51:06,373 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:51:18,874 - INFO - taking picture
MAIN: 2025-03-31 13:51:18,874 - INFO - we take 882 photos in this while loop
MAIN: 2025-03-31 13:51:18,874 - INFO - /home/pi/Desktop/images/31032025/13/50/image_31032025_13_51_18_29767.jpg
MAIN: 2025-03-31 13:51:18,875 - INFO - duration: 0.6683801079998375
MAIN: 2025-03-31 13:51:18,875 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:51:48,538 - INFO - taking picture
MAIN: 2025-03-31 13:51:48,539 - INFO - we take 883 photos in this while loop
MAIN: 2025-03-31 13:51:48,539 - INFO - /home/pi/Desktop/images/31032025/13/51/image_31032025_13_51_48_29643.jpg
MAIN: 2025-03-31 13:51:48,539 - INFO - duration: 0.6895491809991654
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 13:52:05,941 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:52:18,642 - INFO - taking picture
MAIN: 2025-03-31 13:52:18,642 - INFO - we take 884 photos in this while loop
MAIN: 2025-03-31 13:52:18,643 - INFO - /home/pi/Desktop/images/31032025/13/51/image_31032025_13_52_18_30098.jpg
MAIN: 2025-03-31 13:52:18,643 - INFO - duration: 0.6947507860022597
MAIN: 2025-03-31 13:52:18,643 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/52'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:52:48,374 - INFO - taking picture
MAIN: 2025-03-31 13:52:48,374 - INFO - we take 885 photos in this while loop
MAIN: 2025-03-31 13:52:48,374 - INFO - /home/pi/Desktop/images/31032025/13/52/image_31032025_13_52_47_29741.jpg
MAIN: 2025-03-31 13:52:48,375 - INFO - duration: 0.6851253170025302
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:53:06,095 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:53:18,342 - INFO - taking picture
MAIN: 2025-03-31 13:53:18,343 - INFO - we take 886 photos in this while loop
MAIN: 2025-03-31 13:53:18,343 - INFO - /home/pi/Desktop/images/31032025/13/52/image_31032025_13_53_17_29966.jpg
MAIN: 2025-03-31 13:53:18,343 - INFO - duration: 0.6874507450047531
MAIN: 2025-03-31 13:53:18,344 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/53'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:53:49,306 - INFO - taking picture
MAIN: 2025-03-31 13:53:49,307 - INFO - we take 887 photos in this while loop
MAIN: 2025-03-31 13:53:49,307 - INFO - /home/pi/Desktop/images/31032025/13/53/image_31032025_13_53_48_30980.jpg
MAIN: 2025-03-31 13:53:49,307 - INFO - duration: 0.6712098839998362
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:54:06,350 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:54:18,171 - INFO - taking picture
MAIN: 2025-03-31 13:54:18,172 - INFO - we take 888 photos in this while loop
MAIN: 2025-03-31 13:54:18,172 - INFO - /home/pi/Desktop/images/31032025/13/53/image_31032025_13_54_17_28888.jpg
MAIN: 2025-03-31 13:54:18,172 - INFO - duration: 0.6473426319935243
MAIN: 2025-03-31 13:54:18,173 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:54:49,317 - INFO - taking picture
MAIN: 2025-03-31 13:54:49,318 - INFO - we take 889 photos in this while loop
MAIN: 2025-03-31 13:54:49,318 - INFO - /home/pi/Desktop/images/31032025/13/54/image_31032025_13_54_48_31089.jpg
MAIN: 2025-03-31 13:54:49,318 - INFO - duration: 0.7042627550035832
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:55:06,749 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:55:18,116 - INFO - taking picture
MAIN: 2025-03-31 13:55:18,116 - INFO - we take 890 photos in this while loop
MAIN: 2025-03-31 13:55:18,116 - INFO - /home/pi/Desktop/images/31032025/13/54/image_31032025_13_55_17_28862.jpg
MAIN: 2025-03-31 13:55:18,117 - INFO - duration: 0.6401939599963953
MAIN: 2025-03-31 13:55:18,117 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/55'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:55:49,150 - INFO - taking picture
MAIN: 2025-03-31 13:55:49,151 - INFO - we take 891 photos in this while loop
MAIN: 2025-03-31 13:55:49,151 - INFO - /home/pi/Desktop/images/31032025/13/55/image_31032025_13_55_48_30970.jpg
MAIN: 2025-03-31 13:55:49,151 - INFO - duration: 0.7044619340013014
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:56:06,928 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:56:19,194 - INFO - taking picture
MAIN: 2025-03-31 13:56:19,194 - INFO - we take 892 photos in this while loop
MAIN: 2025-03-31 13:56:19,194 - INFO - /home/pi/Desktop/images/31032025/13/55/image_31032025_13_56_18_30058.jpg
MAIN: 2025-03-31 13:56:19,195 - INFO - duration: 0.6895749079994857
MAIN: 2025-03-31 13:56:19,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/56'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:56:48,815 - INFO - taking picture
MAIN: 2025-03-31 13:56:48,816 - INFO - we take 893 photos in this while loop
MAIN: 2025-03-31 13:56:48,816 - INFO - /home/pi/Desktop/images/31032025/13/56/image_31032025_13_56_48_29618.jpg
MAIN: 2025-03-31 13:56:48,816 - INFO - duration: 0.6923499579934287
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:57:05,633 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:57:18,834 - INFO - taking picture
MAIN: 2025-03-31 13:57:18,835 - INFO - we take 894 photos in this while loop
MAIN: 2025-03-31 13:57:18,835 - INFO - /home/pi/Desktop/images/31032025/13/56/image_31032025_13_57_18_30046.jpg
MAIN: 2025-03-31 13:57:18,835 - INFO - duration: 0.6648430869972799
MAIN: 2025-03-31 13:57:18,836 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/57'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:57:48,615 - INFO - taking picture
MAIN: 2025-03-31 13:57:48,616 - INFO - we take 895 photos in this while loop
MAIN: 2025-03-31 13:57:48,616 - INFO - /home/pi/Desktop/images/31032025/13/57/image_31032025_13_57_48_29744.jpg
MAIN: 2025-03-31 13:57:48,616 - INFO - duration: 0.7010029439989012
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:58:06,201 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:58:18,608 - INFO - taking picture
MAIN: 2025-03-31 13:58:18,608 - INFO - we take 896 photos in this while loop
MAIN: 2025-03-31 13:58:18,608 - INFO - /home/pi/Desktop/images/31032025/13/57/image_31032025_13_58_18_30005.jpg
MAIN: 2025-03-31 13:58:18,609 - INFO - duration: 0.6878029819999938
MAIN: 2025-03-31 13:58:18,609 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/58'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:58:48,218 - INFO - taking picture
MAIN: 2025-03-31 13:58:48,219 - INFO - we take 897 photos in this while loop
MAIN: 2025-03-31 13:58:48,219 - INFO - /home/pi/Desktop/images/31032025/13/58/image_31032025_13_58_47_29595.jpg
MAIN: 2025-03-31 13:58:48,219 - INFO - duration: 0.7029558599970187
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 13:59:06,174 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:59:18,193 - INFO - taking picture
MAIN: 2025-03-31 13:59:18,194 - INFO - we take 898 photos in this while loop
MAIN: 2025-03-31 13:59:18,194 - INFO - /home/pi/Desktop/images/31032025/13/58/image_31032025_13_59_17_29988.jpg
MAIN: 2025-03-31 13:59:18,194 - INFO - duration: 0.6895154770027148
MAIN: 2025-03-31 13:59:18,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/13/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 13:59:49,106 - INFO - taking picture
MAIN: 2025-03-31 13:59:49,106 - INFO - we take 899 photos in this while loop
MAIN: 2025-03-31 13:59:49,107 - INFO - /home/pi/Desktop/images/31032025/13/59/image_31032025_13_59_48_30913.jpg
MAIN: 2025-03-31 13:59:49,107 - INFO - duration: 0.6880906170044909
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:00:07,175 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:00:18,123 - INFO - taking picture
MAIN: 2025-03-31 14:00:18,124 - INFO - we take 900 photos in this while loop
MAIN: 2025-03-31 14:00:18,124 - INFO - /home/pi/Desktop/images/31032025/13/59/image_31032025_14_00_17_29012.jpg
MAIN: 2025-03-31 14:00:18,124 - INFO - duration: 0.6931098720015143
MAIN: 2025-03-31 14:00:18,124 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/00'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:00:48,941 - INFO - taking picture
MAIN: 2025-03-31 14:00:48,941 - INFO - we take 901 photos in this while loop
MAIN: 2025-03-31 14:00:48,942 - INFO - /home/pi/Desktop/images/31032025/14/00/image_31032025_14_00_48_30835.jpg
MAIN: 2025-03-31 14:00:48,942 - INFO - duration: 0.6758815930006676
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:01:06,485 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:01:18,819 - INFO - taking picture
MAIN: 2025-03-31 14:01:18,820 - INFO - we take 902 photos in this while loop
MAIN: 2025-03-31 14:01:18,820 - INFO - /home/pi/Desktop/images/31032025/14/00/image_31032025_14_01_18_29889.jpg
MAIN: 2025-03-31 14:01:18,820 - INFO - duration: 0.6648145030048909
MAIN: 2025-03-31 14:01:18,821 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/01'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:01:48,428 - INFO - taking picture
MAIN: 2025-03-31 14:01:48,428 - INFO - we take 903 photos in this while loop
MAIN: 2025-03-31 14:01:48,428 - INFO - /home/pi/Desktop/images/31032025/14/01/image_31032025_14_01_48_29605.jpg
MAIN: 2025-03-31 14:01:48,429 - INFO - duration: 0.6677304909972008
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:02:06,783 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:02:18,656 - INFO - taking picture
MAIN: 2025-03-31 14:02:18,656 - INFO - we take 904 photos in this while loop
MAIN: 2025-03-31 14:02:18,657 - INFO - /home/pi/Desktop/images/31032025/14/01/image_31032025_14_02_18_30215.jpg
MAIN: 2025-03-31 14:02:18,657 - INFO - duration: 0.6805763240045053
MAIN: 2025-03-31 14:02:18,657 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/02'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:02:48,266 - INFO - taking picture
MAIN: 2025-03-31 14:02:48,267 - INFO - we take 905 photos in this while loop
MAIN: 2025-03-31 14:02:48,267 - INFO - /home/pi/Desktop/images/31032025/14/02/image_31032025_14_02_47_29606.jpg
MAIN: 2025-03-31 14:02:48,267 - INFO - duration: 0.6837431340027251
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:03:05,821 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:03:18,138 - INFO - taking picture
MAIN: 2025-03-31 14:03:18,139 - INFO - we take 906 photos in this while loop
MAIN: 2025-03-31 14:03:18,139 - INFO - /home/pi/Desktop/images/31032025/14/02/image_31032025_14_03_17_29882.jpg
MAIN: 2025-03-31 14:03:18,139 - INFO - duration: 0.6729603769999812
MAIN: 2025-03-31 14:03:18,139 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/03'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:03:48,976 - INFO - taking picture
MAIN: 2025-03-31 14:03:48,977 - INFO - we take 907 photos in this while loop
MAIN: 2025-03-31 14:03:48,977 - INFO - /home/pi/Desktop/images/31032025/14/03/image_31032025_14_03_48_30819.jpg
MAIN: 2025-03-31 14:03:48,977 - INFO - duration: 0.691689838997263
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:04:05,998 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:04:18,954 - INFO - taking picture
MAIN: 2025-03-31 14:04:18,954 - INFO - we take 908 photos in this while loop
MAIN: 2025-03-31 14:04:18,955 - INFO - /home/pi/Desktop/images/31032025/14/03/image_31032025_14_04_18_29968.jpg
MAIN: 2025-03-31 14:04:18,955 - INFO - duration: 0.7008113129995763
MAIN: 2025-03-31 14:04:18,955 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/04'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:04:48,595 - INFO - taking picture
MAIN: 2025-03-31 14:04:48,595 - INFO - we take 909 photos in this while loop
MAIN: 2025-03-31 14:04:48,595 - INFO - /home/pi/Desktop/images/31032025/14/04/image_31032025_14_04_48_29641.jpg
MAIN: 2025-03-31 14:04:48,596 - INFO - duration: 0.7002853890007827
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:05:06,388 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:05:18,742 - INFO - taking picture
MAIN: 2025-03-31 14:05:18,742 - INFO - we take 910 photos in this while loop
MAIN: 2025-03-31 14:05:18,742 - INFO - /home/pi/Desktop/images/31032025/14/04/image_31032025_14_05_18_30206.jpg
MAIN: 2025-03-31 14:05:18,743 - INFO - duration: 0.6407285890018102
MAIN: 2025-03-31 14:05:18,743 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:05:48,380 - INFO - taking picture
MAIN: 2025-03-31 14:05:48,381 - INFO - we take 911 photos in this while loop
MAIN: 2025-03-31 14:05:48,381 - INFO - /home/pi/Desktop/images/31032025/14/05/image_31032025_14_05_47_29577.jpg
MAIN: 2025-03-31 14:05:48,381 - INFO - duration: 0.7022680259979097
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:06:06,433 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:06:18,327 - INFO - taking picture
MAIN: 2025-03-31 14:06:18,327 - INFO - we take 912 photos in this while loop
MAIN: 2025-03-31 14:06:18,328 - INFO - /home/pi/Desktop/images/31032025/14/05/image_31032025_14_06_17_29995.jpg
MAIN: 2025-03-31 14:06:18,328 - INFO - duration: 0.6539963329996681
MAIN: 2025-03-31 14:06:18,328 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:06:49,210 - INFO - taking picture
MAIN: 2025-03-31 14:06:49,210 - INFO - we take 913 photos in this while loop
MAIN: 2025-03-31 14:06:49,210 - INFO - /home/pi/Desktop/images/31032025/14/06/image_31032025_14_06_48_30851.jpg
MAIN: 2025-03-31 14:06:49,211 - INFO - duration: 0.6851654109996161
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:07:06,157 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:07:19,209 - INFO - taking picture
MAIN: 2025-03-31 14:07:19,209 - INFO - we take 914 photos in this while loop
MAIN: 2025-03-31 14:07:19,209 - INFO - /home/pi/Desktop/images/31032025/14/06/image_31032025_14_07_18_29987.jpg
MAIN: 2025-03-31 14:07:19,210 - INFO - duration: 0.6967827910048072
MAIN: 2025-03-31 14:07:19,210 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:07:48,955 - INFO - taking picture
MAIN: 2025-03-31 14:07:48,956 - INFO - we take 915 photos in this while loop
MAIN: 2025-03-31 14:07:48,956 - INFO - /home/pi/Desktop/images/31032025/14/07/image_31032025_14_07_48_29739.jpg
MAIN: 2025-03-31 14:07:48,956 - INFO - duration: 0.7038964739986113
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:08:06,472 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:08:18,850 - INFO - taking picture
MAIN: 2025-03-31 14:08:18,851 - INFO - we take 916 photos in this while loop
MAIN: 2025-03-31 14:08:18,851 - INFO - /home/pi/Desktop/images/31032025/14/07/image_31032025_14_08_18_29909.jpg
MAIN: 2025-03-31 14:08:18,851 - INFO - duration: 0.6895806089960388
MAIN: 2025-03-31 14:08:18,852 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/08'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:08:48,510 - INFO - taking picture
MAIN: 2025-03-31 14:08:48,511 - INFO - we take 917 photos in this while loop
MAIN: 2025-03-31 14:08:48,511 - INFO - /home/pi/Desktop/images/31032025/14/08/image_31032025_14_08_48_29649.jpg
MAIN: 2025-03-31 14:08:48,511 - INFO - duration: 0.699626288995205
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:09:06,607 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:09:18,431 - INFO - taking picture
MAIN: 2025-03-31 14:09:18,432 - INFO - we take 918 photos in this while loop
MAIN: 2025-03-31 14:09:18,432 - INFO - /home/pi/Desktop/images/31032025/14/08/image_31032025_14_09_18_29935.jpg
MAIN: 2025-03-31 14:09:18,432 - INFO - duration: 0.6855339409958106
MAIN: 2025-03-31 14:09:18,433 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/09'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:09:49,307 - INFO - taking picture
MAIN: 2025-03-31 14:09:49,308 - INFO - we take 919 photos in this while loop
MAIN: 2025-03-31 14:09:49,308 - INFO - /home/pi/Desktop/images/31032025/14/09/image_31032025_14_09_48_30865.jpg
MAIN: 2025-03-31 14:09:49,308 - INFO - duration: 0.6956877280026674
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:10:06,550 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:10:18,120 - INFO - taking picture
MAIN: 2025-03-31 14:10:18,121 - INFO - we take 920 photos in this while loop
MAIN: 2025-03-31 14:10:18,121 - INFO - /home/pi/Desktop/images/31032025/14/09/image_31032025_14_10_17_28819.jpg
MAIN: 2025-03-31 14:10:18,121 - INFO - duration: 0.689616057999956
MAIN: 2025-03-31 14:10:18,122 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/10'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:10:49,154 - INFO - taking picture
MAIN: 2025-03-31 14:10:49,154 - INFO - we take 921 photos in this while loop
MAIN: 2025-03-31 14:10:49,154 - INFO - /home/pi/Desktop/images/31032025/14/10/image_31032025_14_10_48_31031.jpg
MAIN: 2025-03-31 14:10:49,155 - INFO - duration: 0.6917367620044388
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:11:06,014 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:11:19,044 - INFO - taking picture
MAIN: 2025-03-31 14:11:19,045 - INFO - we take 922 photos in this while loop
MAIN: 2025-03-31 14:11:19,045 - INFO - /home/pi/Desktop/images/31032025/14/10/image_31032025_14_11_18_29884.jpg
MAIN: 2025-03-31 14:11:19,045 - INFO - duration: 0.6980713000011747
MAIN: 2025-03-31 14:11:19,046 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/11'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:11:48,634 - INFO - taking picture
MAIN: 2025-03-31 14:11:48,635 - INFO - we take 923 photos in this while loop
MAIN: 2025-03-31 14:11:48,635 - INFO - /home/pi/Desktop/images/31032025/14/11/image_31032025_14_11_48_29608.jpg
MAIN: 2025-03-31 14:11:48,635 - INFO - duration: 0.679435393998574
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:12:06,703 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:12:18,680 - INFO - taking picture
MAIN: 2025-03-31 14:12:18,681 - INFO - we take 924 photos in this while loop
MAIN: 2025-03-31 14:12:18,681 - INFO - /home/pi/Desktop/images/31032025/14/11/image_31032025_14_12_18_30016.jpg
MAIN: 2025-03-31 14:12:18,681 - INFO - duration: 0.7085080670003663
MAIN: 2025-03-31 14:12:18,682 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/12'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:12:48,387 - INFO - taking picture
MAIN: 2025-03-31 14:12:48,387 - INFO - we take 925 photos in this while loop
MAIN: 2025-03-31 14:12:48,388 - INFO - /home/pi/Desktop/images/31032025/14/12/image_31032025_14_12_47_29697.jpg
MAIN: 2025-03-31 14:12:48,388 - INFO - duration: 0.7172090340027353
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:13:06,184 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:13:18,441 - INFO - taking picture
MAIN: 2025-03-31 14:13:18,441 - INFO - we take 926 photos in this while loop
MAIN: 2025-03-31 14:13:18,441 - INFO - /home/pi/Desktop/images/31032025/14/12/image_31032025_14_13_18_30074.jpg
MAIN: 2025-03-31 14:13:18,442 - INFO - duration: 0.696379656001227
MAIN: 2025-03-31 14:13:18,442 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/13'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:13:49,358 - INFO - taking picture
MAIN: 2025-03-31 14:13:49,359 - INFO - we take 927 photos in this while loop
MAIN: 2025-03-31 14:13:49,359 - INFO - /home/pi/Desktop/images/31032025/14/13/image_31032025_14_13_48_30938.jpg
MAIN: 2025-03-31 14:13:49,359 - INFO - duration: 0.6759677279987955
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:14:06,922 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:14:18,408 - INFO - taking picture
MAIN: 2025-03-31 14:14:18,408 - INFO - we take 928 photos in this while loop
MAIN: 2025-03-31 14:14:18,408 - INFO - /home/pi/Desktop/images/31032025/14/13/image_31032025_14_14_18_29036.jpg
MAIN: 2025-03-31 14:14:18,409 - INFO - duration: 0.6888843729975633
MAIN: 2025-03-31 14:14:18,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/14'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:14:48,201 - INFO - taking picture
MAIN: 2025-03-31 14:14:48,201 - INFO - we take 929 photos in this while loop
MAIN: 2025-03-31 14:14:48,202 - INFO - /home/pi/Desktop/images/31032025/14/14/image_31032025_14_14_47_29770.jpg
MAIN: 2025-03-31 14:14:48,202 - INFO - duration: 0.7113702540009399
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:15:06,837 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:15:18,484 - INFO - taking picture
MAIN: 2025-03-31 14:15:18,484 - INFO - we take 930 photos in this while loop
MAIN: 2025-03-31 14:15:18,484 - INFO - /home/pi/Desktop/images/31032025/14/14/image_31032025_14_15_18_30318.jpg
MAIN: 2025-03-31 14:15:18,484 - INFO - duration: 0.6756409139998141
MAIN: 2025-03-31 14:15:18,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:15:48,249 - INFO - taking picture
MAIN: 2025-03-31 14:15:48,250 - INFO - we take 931 photos in this while loop
MAIN: 2025-03-31 14:15:48,250 - INFO - /home/pi/Desktop/images/31032025/14/15/image_31032025_14_15_47_29801.jpg
MAIN: 2025-03-31 14:15:48,250 - INFO - duration: 0.6394583910005167
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 14:16:06,456 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:16:18,245 - INFO - taking picture
MAIN: 2025-03-31 14:16:18,245 - INFO - we take 932 photos in this while loop
MAIN: 2025-03-31 14:16:18,246 - INFO - /home/pi/Desktop/images/31032025/14/15/image_31032025_14_16_17_29963.jpg
MAIN: 2025-03-31 14:16:18,246 - INFO - duration: 0.6713272670021979
MAIN: 2025-03-31 14:16:18,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:16:49,118 - INFO - taking picture
MAIN: 2025-03-31 14:16:49,118 - INFO - we take 933 photos in this while loop
MAIN: 2025-03-31 14:16:49,119 - INFO - /home/pi/Desktop/images/31032025/14/16/image_31032025_14_16_48_30869.jpg
MAIN: 2025-03-31 14:16:49,119 - INFO - duration: 0.6748803480004426
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:17:06,220 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:17:18,973 - INFO - taking picture
MAIN: 2025-03-31 14:17:18,973 - INFO - we take 934 photos in this while loop
MAIN: 2025-03-31 14:17:18,974 - INFO - /home/pi/Desktop/images/31032025/14/16/image_31032025_14_17_18_29825.jpg
MAIN: 2025-03-31 14:17:18,974 - INFO - duration: 0.7041096939938143
MAIN: 2025-03-31 14:17:18,974 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/17'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:17:48,667 - INFO - taking picture
MAIN: 2025-03-31 14:17:48,667 - INFO - we take 935 photos in this while loop
MAIN: 2025-03-31 14:17:48,668 - INFO - /home/pi/Desktop/images/31032025/14/17/image_31032025_14_17_48_29707.jpg
MAIN: 2025-03-31 14:17:48,668 - INFO - duration: 0.6902485089958645
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:18:06,676 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:18:18,824 - INFO - taking picture
MAIN: 2025-03-31 14:18:18,824 - INFO - we take 936 photos in this while loop
MAIN: 2025-03-31 14:18:18,824 - INFO - /home/pi/Desktop/images/31032025/14/17/image_31032025_14_18_18_30168.jpg
MAIN: 2025-03-31 14:18:18,824 - INFO - duration: 0.6785809690045426
MAIN: 2025-03-31 14:18:18,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/18'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:18:48,542 - INFO - taking picture
MAIN: 2025-03-31 14:18:48,542 - INFO - we take 937 photos in this while loop
MAIN: 2025-03-31 14:18:48,542 - INFO - /home/pi/Desktop/images/31032025/14/18/image_31032025_14_18_48_29699.jpg
MAIN: 2025-03-31 14:18:48,543 - INFO - duration: 0.6969195960045909
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:19:06,332 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:19:18,597 - INFO - taking picture
MAIN: 2025-03-31 14:19:18,597 - INFO - we take 938 photos in this while loop
MAIN: 2025-03-31 14:19:18,598 - INFO - /home/pi/Desktop/images/31032025/14/18/image_31032025_14_19_18_30064.jpg
MAIN: 2025-03-31 14:19:18,598 - INFO - duration: 0.6877789720019791
MAIN: 2025-03-31 14:19:18,598 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/19'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:19:48,287 - INFO - taking picture
MAIN: 2025-03-31 14:19:48,288 - INFO - we take 939 photos in this while loop
MAIN: 2025-03-31 14:19:48,288 - INFO - /home/pi/Desktop/images/31032025/14/19/image_31032025_14_19_47_29688.jpg
MAIN: 2025-03-31 14:19:48,288 - INFO - duration: 0.6894208469966543
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:20:07,534 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:20:18,659 - INFO - taking picture
MAIN: 2025-03-31 14:20:18,659 - INFO - we take 940 photos in this while loop
MAIN: 2025-03-31 14:20:18,659 - INFO - /home/pi/Desktop/images/31032025/14/19/image_31032025_14_20_18_30373.jpg
MAIN: 2025-03-31 14:20:18,660 - INFO - duration: 0.6876061919974745
MAIN: 2025-03-31 14:20:18,660 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:20:48,395 - INFO - taking picture
MAIN: 2025-03-31 14:20:48,395 - INFO - we take 941 photos in this while loop
MAIN: 2025-03-31 14:20:48,396 - INFO - /home/pi/Desktop/images/31032025/14/20/image_31032025_14_20_48_29727.jpg
MAIN: 2025-03-31 14:20:48,396 - INFO - duration: 0.6962005169989425
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:21:05,581 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:21:18,345 - INFO - taking picture
MAIN: 2025-03-31 14:21:18,346 - INFO - we take 942 photos in this while loop
MAIN: 2025-03-31 14:21:18,346 - INFO - /home/pi/Desktop/images/31032025/14/20/image_31032025_14_21_17_29946.jpg
MAIN: 2025-03-31 14:21:18,346 - INFO - duration: 0.7000267350013019
MAIN: 2025-03-31 14:21:18,347 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:21:49,163 - INFO - taking picture
MAIN: 2025-03-31 14:21:49,163 - INFO - we take 943 photos in this while loop
MAIN: 2025-03-31 14:21:49,163 - INFO - /home/pi/Desktop/images/31032025/14/21/image_31032025_14_21_48_30852.jpg
MAIN: 2025-03-31 14:21:49,164 - INFO - duration: 0.6651655759997084
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:22:06,223 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0

 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)MAIN: 2025-03-31 14:22:18,143 - INFO - taking picture
MAIN: 2025-03-31 14:22:18,144 - INFO - we take 944 photos in this while loop
MAIN: 2025-03-31 14:22:18,144 - INFO - /home/pi/Desktop/images/31032025/14/21/image_31032025_14_22_17_28964.jpg
MAIN: 2025-03-31 14:22:18,144 - INFO - duration: 0.6810938819980947
MAIN: 2025-03-31 14:22:18,145 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/22'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:22:49,081 - INFO - taking picture
MAIN: 2025-03-31 14:22:49,082 - INFO - we take 945 photos in this while loop
MAIN: 2025-03-31 14:22:49,082 - INFO - /home/pi/Desktop/images/31032025/14/22/image_31032025_14_22_48_30945.jpg
MAIN: 2025-03-31 14:22:49,082 - INFO - duration: 0.6737443719976
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:23:06,309 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:23:19,105 - INFO - taking picture
MAIN: 2025-03-31 14:23:19,105 - INFO - we take 946 photos in this while loop
MAIN: 2025-03-31 14:23:19,105 - INFO - /home/pi/Desktop/images/31032025/14/22/image_31032025_14_23_18_30005.jpg
MAIN: 2025-03-31 14:23:19,105 - INFO - duration: 0.6911453879947658
MAIN: 2025-03-31 14:23:19,106 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:23:48,737 - INFO - taking picture
MAIN: 2025-03-31 14:23:48,738 - INFO - we take 947 photos in this while loop
MAIN: 2025-03-31 14:23:48,738 - INFO - /home/pi/Desktop/images/31032025/14/23/image_31032025_14_23_48_29646.jpg
MAIN: 2025-03-31 14:23:48,738 - INFO - duration: 0.6772505260014441
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:24:06,954 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:24:18,833 - INFO - taking picture
MAIN: 2025-03-31 14:24:18,834 - INFO - we take 948 photos in this while loop
MAIN: 2025-03-31 14:24:18,834 - INFO - /home/pi/Desktop/images/31032025/14/23/image_31032025_14_24_18_30078.jpg
MAIN: 2025-03-31 14:24:18,834 - INFO - duration: 0.694646197000111
MAIN: 2025-03-31 14:24:18,835 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:24:48,478 - INFO - taking picture
MAIN: 2025-03-31 14:24:48,478 - INFO - we take 949 photos in this while loop
MAIN: 2025-03-31 14:24:48,478 - INFO - /home/pi/Desktop/images/31032025/14/24/image_31032025_14_24_48_29649.jpg
MAIN: 2025-03-31 14:24:48,478 - INFO - duration: 0.6893543289988884
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 14:25:06,185 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:25:18,773 - INFO - taking picture
MAIN: 2025-03-31 14:25:18,773 - INFO - we take 950 photos in this while loop
MAIN: 2025-03-31 14:25:18,773 - INFO - /home/pi/Desktop/images/31032025/14/24/image_31032025_14_25_18_30275.jpg
MAIN: 2025-03-31 14:25:18,774 - INFO - duration: 0.7094107579978299
MAIN: 2025-03-31 14:25:18,774 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:25:48,515 - INFO - taking picture
MAIN: 2025-03-31 14:25:48,515 - INFO - we take 951 photos in this while loop
MAIN: 2025-03-31 14:25:48,515 - INFO - /home/pi/Desktop/images/31032025/14/25/image_31032025_14_25_48_29745.jpg
MAIN: 2025-03-31 14:25:48,516 - INFO - duration: 0.7055159570008982
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:26:06,590 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:26:18,486 - INFO - taking picture
MAIN: 2025-03-31 14:26:18,487 - INFO - we take 952 photos in this while loop
MAIN: 2025-03-31 14:26:18,487 - INFO - /home/pi/Desktop/images/31032025/14/25/image_31032025_14_26_18_29997.jpg
MAIN: 2025-03-31 14:26:18,487 - INFO - duration: 0.679749080001784
MAIN: 2025-03-31 14:26:18,487 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:26:48,173 - INFO - taking picture
MAIN: 2025-03-31 14:26:48,174 - INFO - we take 953 photos in this while loop
MAIN: 2025-03-31 14:26:48,174 - INFO - /home/pi/Desktop/images/31032025/14/26/image_31032025_14_26_47_29699.jpg
MAIN: 2025-03-31 14:26:48,174 - INFO - duration: 0.6672210660035489
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:27:06,152 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:27:18,223 - INFO - taking picture
MAIN: 2025-03-31 14:27:18,224 - INFO - we take 954 photos in this while loop
MAIN: 2025-03-31 14:27:18,224 - INFO - /home/pi/Desktop/images/31032025/14/26/image_31032025_14_27_17_30081.jpg
MAIN: 2025-03-31 14:27:18,224 - INFO - duration: 0.6359775929959142
MAIN: 2025-03-31 14:27:18,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:27:49,144 - INFO - taking picture
MAIN: 2025-03-31 14:27:49,144 - INFO - we take 955 photos in this while loop
MAIN: 2025-03-31 14:27:49,144 - INFO - /home/pi/Desktop/images/31032025/14/27/image_31032025_14_27_48_30857.jpg
MAIN: 2025-03-31 14:27:49,145 - INFO - duration: 0.6992855510034133
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:28:06,745 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:28:19,015 - INFO - taking picture
MAIN: 2025-03-31 14:28:19,015 - INFO - we take 956 photos in this while loop
MAIN: 2025-03-31 14:28:19,016 - INFO - /home/pi/Desktop/images/31032025/14/27/image_31032025_14_28_18_29880.jpg
MAIN: 2025-03-31 14:28:19,016 - INFO - duration: 0.6895723310008179
MAIN: 2025-03-31 14:28:19,016 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:28:48,586 - INFO - taking picture
MAIN: 2025-03-31 14:28:48,586 - INFO - we take 957 photos in this while loop
MAIN: 2025-03-31 14:28:48,586 - INFO - /home/pi/Desktop/images/31032025/14/28/image_31032025_14_28_48_29567.jpg
MAIN: 2025-03-31 14:28:48,587 - INFO - duration: 0.6931523110033595
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:29:05,899 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:29:18,491 - INFO - taking picture
MAIN: 2025-03-31 14:29:18,492 - INFO - we take 958 photos in this while loop
MAIN: 2025-03-31 14:29:18,492 - INFO - /home/pi/Desktop/images/31032025/14/28/image_31032025_14_29_18_29909.jpg
MAIN: 2025-03-31 14:29:18,492 - INFO - duration: 0.6888655160000781
MAIN: 2025-03-31 14:29:18,492 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:29:48,143 - INFO - taking picture
MAIN: 2025-03-31 14:29:48,144 - INFO - we take 959 photos in this while loop
MAIN: 2025-03-31 14:29:48,144 - INFO - /home/pi/Desktop/images/31032025/14/29/image_31032025_14_29_47_29645.jpg
MAIN: 2025-03-31 14:29:48,144 - INFO - duration: 0.6953746380022494
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 14:30:07,233 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:30:18,322 - INFO - taking picture
MAIN: 2025-03-31 14:30:18,323 - INFO - we take 960 photos in this while loop
MAIN: 2025-03-31 14:30:18,323 - INFO - /home/pi/Desktop/images/31032025/14/29/image_31032025_14_30_17_30175.jpg
MAIN: 2025-03-31 14:30:18,323 - INFO - duration: 0.6983362099999795
MAIN: 2025-03-31 14:30:18,323 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:30:49,142 - INFO - taking picture
MAIN: 2025-03-31 14:30:49,142 - INFO - we take 961 photos in this while loop
MAIN: 2025-03-31 14:30:49,142 - INFO - /home/pi/Desktop/images/31032025/14/30/image_31032025_14_30_48_30848.jpg
MAIN: 2025-03-31 14:30:49,143 - INFO - duration: 0.6688533830019878
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:31:06,601 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:31:19,258 - INFO - taking picture
MAIN: 2025-03-31 14:31:19,258 - INFO - we take 962 photos in this while loop
MAIN: 2025-03-31 14:31:19,259 - INFO - /home/pi/Desktop/images/31032025/14/30/image_31032025_14_31_18_30112.jpg
MAIN: 2025-03-31 14:31:19,259 - INFO - duration: 0.672634675000154
MAIN: 2025-03-31 14:31:19,259 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:31:48,933 - INFO - taking picture
MAIN: 2025-03-31 14:31:48,934 - INFO - we take 963 photos in this while loop
MAIN: 2025-03-31 14:31:48,934 - INFO - /home/pi/Desktop/images/31032025/14/31/image_31032025_14_31_48_29681.jpg
MAIN: 2025-03-31 14:31:48,934 - INFO - duration: 0.6660974339974928
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:32:06,925 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:32:18,885 - INFO - taking picture
MAIN: 2025-03-31 14:32:18,886 - INFO - we take 964 photos in this while loop
MAIN: 2025-03-31 14:32:18,886 - INFO - /home/pi/Desktop/images/31032025/14/31/image_31032025_14_32_18_29940.jpg
MAIN: 2025-03-31 14:32:18,886 - INFO - duration: 0.678149373998167
MAIN: 2025-03-31 14:32:18,887 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:32:48,497 - INFO - taking picture
MAIN: 2025-03-31 14:32:48,497 - INFO - we take 965 photos in this while loop
MAIN: 2025-03-31 14:32:48,498 - INFO - /home/pi/Desktop/images/31032025/14/32/image_31032025_14_32_48_29617.jpg
MAIN: 2025-03-31 14:32:48,498 - INFO - duration: 0.6724149139990914
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 14:33:05,650 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:33:18,622 - INFO - taking picture
MAIN: 2025-03-31 14:33:18,623 - INFO - we take 966 photos in this while loop
MAIN: 2025-03-31 14:33:18,623 - INFO - /home/pi/Desktop/images/31032025/14/32/image_31032025_14_33_18_30111.jpg
MAIN: 2025-03-31 14:33:18,623 - INFO - duration: 0.6864686560002156
MAIN: 2025-03-31 14:33:18,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:33:48,269 - INFO - taking picture
MAIN: 2025-03-31 14:33:48,269 - INFO - we take 967 photos in this while loop
MAIN: 2025-03-31 14:33:48,269 - INFO - /home/pi/Desktop/images/31032025/14/33/image_31032025_14_33_47_29638.jpg
MAIN: 2025-03-31 14:33:48,270 - INFO - duration: 0.6940796929993667
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:34:05,961 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:34:18,236 - INFO - taking picture
MAIN: 2025-03-31 14:34:18,236 - INFO - we take 968 photos in this while loop
MAIN: 2025-03-31 14:34:18,236 - INFO - /home/pi/Desktop/images/31032025/14/33/image_31032025_14_34_17_29965.jpg
MAIN: 2025-03-31 14:34:18,237 - INFO - duration: 0.6954463880028925
MAIN: 2025-03-31 14:34:18,237 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:34:49,147 - INFO - taking picture
MAIN: 2025-03-31 14:34:49,148 - INFO - we take 969 photos in this while loop
MAIN: 2025-03-31 14:34:49,148 - INFO - /home/pi/Desktop/images/31032025/14/34/image_31032025_14_34_48_30923.jpg
MAIN: 2025-03-31 14:34:49,148 - INFO - duration: 0.6831843820036738
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:35:06,643 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:35:19,300 - INFO - taking picture
MAIN: 2025-03-31 14:35:19,301 - INFO - we take 970 photos in this while loop
MAIN: 2025-03-31 14:35:19,301 - INFO - /home/pi/Desktop/images/31032025/14/34/image_31032025_14_35_18_30189.jpg
MAIN: 2025-03-31 14:35:19,301 - INFO - duration: 0.6462383130055969
MAIN: 2025-03-31 14:35:19,301 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:35:48,962 - INFO - taking picture
MAIN: 2025-03-31 14:35:48,962 - INFO - we take 971 photos in this while loop
MAIN: 2025-03-31 14:35:48,963 - INFO - /home/pi/Desktop/images/31032025/14/35/image_31032025_14_35_48_29666.jpg
MAIN: 2025-03-31 14:35:48,963 - INFO - duration: 0.6413249819961493
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:36:06,440 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:36:19,031 - INFO - taking picture
MAIN: 2025-03-31 14:36:19,032 - INFO - we take 972 photos in this while loop
MAIN: 2025-03-31 14:36:19,032 - INFO - /home/pi/Desktop/images/31032025/14/35/image_31032025_14_36_18_30073.jpg
MAIN: 2025-03-31 14:36:19,032 - INFO - duration: 0.6370385699992767
MAIN: 2025-03-31 14:36:19,033 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:36:48,724 - INFO - taking picture
MAIN: 2025-03-31 14:36:48,725 - INFO - we take 973 photos in this while loop
MAIN: 2025-03-31 14:36:48,725 - INFO - /home/pi/Desktop/images/31032025/14/36/image_31032025_14_36_48_29664.jpg
MAIN: 2025-03-31 14:36:48,725 - INFO - duration: 0.6657520709995879
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:37:06,618 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:37:18,832 - INFO - taking picture
MAIN: 2025-03-31 14:37:18,832 - INFO - we take 974 photos in this while loop
MAIN: 2025-03-31 14:37:18,833 - INFO - /home/pi/Desktop/images/31032025/14/36/image_31032025_14_37_18_30099.jpg
MAIN: 2025-03-31 14:37:18,833 - INFO - duration: 0.6737193779990776
MAIN: 2025-03-31 14:37:18,833 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:37:48,457 - INFO - taking picture
MAIN: 2025-03-31 14:37:48,458 - INFO - we take 975 photos in this while loop
MAIN: 2025-03-31 14:37:48,458 - INFO - /home/pi/Desktop/images/31032025/14/37/image_31032025_14_37_48_29630.jpg
MAIN: 2025-03-31 14:37:48,458 - INFO - duration: 0.6690757389951614
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:38:07,056 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:38:18,729 - INFO - taking picture
MAIN: 2025-03-31 14:38:18,730 - INFO - we take 976 photos in this while loop
MAIN: 2025-03-31 14:38:18,730 - INFO - /home/pi/Desktop/images/31032025/14/37/image_31032025_14_38_18_30243.jpg
MAIN: 2025-03-31 14:38:18,730 - INFO - duration: 0.6976593229992432
MAIN: 2025-03-31 14:38:18,731 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:38:48,354 - INFO - taking picture
MAIN: 2025-03-31 14:38:48,354 - INFO - we take 977 photos in this while loop
MAIN: 2025-03-31 14:38:48,354 - INFO - /home/pi/Desktop/images/31032025/14/38/image_31032025_14_38_47_29626.jpg
MAIN: 2025-03-31 14:38:48,355 - INFO - duration: 0.6958391759981168
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:39:05,851 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:39:18,325 - INFO - taking picture
MAIN: 2025-03-31 14:39:18,325 - INFO - we take 978 photos in this while loop
MAIN: 2025-03-31 14:39:18,326 - INFO - /home/pi/Desktop/images/31032025/14/38/image_31032025_14_39_17_29973.jpg
MAIN: 2025-03-31 14:39:18,326 - INFO - duration: 0.6932035330028157
MAIN: 2025-03-31 14:39:18,326 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:39:49,293 - INFO - taking picture
MAIN: 2025-03-31 14:39:49,293 - INFO - we take 979 photos in this while loop
MAIN: 2025-03-31 14:39:49,294 - INFO - /home/pi/Desktop/images/31032025/14/39/image_31032025_14_39_48_31008.jpg
MAIN: 2025-03-31 14:39:49,294 - INFO - duration: 0.6528450790065108
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:40:06,890 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:40:18,315 - INFO - taking picture
MAIN: 2025-03-31 14:40:18,316 - INFO - we take 980 photos in this while loop
MAIN: 2025-03-31 14:40:18,316 - INFO - /home/pi/Desktop/images/31032025/14/39/image_31032025_14_40_17_28970.jpg
MAIN: 2025-03-31 14:40:18,316 - INFO - duration: 0.7050484909996158
MAIN: 2025-03-31 14:40:18,317 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/40'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:40:49,270 - INFO - taking picture
MAIN: 2025-03-31 14:40:49,271 - INFO - we take 981 photos in this while loop
MAIN: 2025-03-31 14:40:49,271 - INFO - /home/pi/Desktop/images/31032025/14/40/image_31032025_14_40_48_31022.jpg
MAIN: 2025-03-31 14:40:49,271 - INFO - duration: 0.6373259920001146
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:41:06,318 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:41:19,282 - INFO - taking picture
MAIN: 2025-03-31 14:41:19,282 - INFO - we take 982 photos in this while loop
MAIN: 2025-03-31 14:41:19,282 - INFO - /home/pi/Desktop/images/31032025/14/40/image_31032025_14_41_18_29974.jpg
MAIN: 2025-03-31 14:41:19,283 - INFO - duration: 0.6739340539934346
MAIN: 2025-03-31 14:41:19,283 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/41'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:41:48,960 - INFO - taking picture
MAIN: 2025-03-31 14:41:48,961 - INFO - we take 983 photos in this while loop
MAIN: 2025-03-31 14:41:48,961 - INFO - /home/pi/Desktop/images/31032025/14/41/image_31032025_14_41_48_29656.jpg
MAIN: 2025-03-31 14:41:48,961 - INFO - duration: 0.6961849840008654
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:42:06,668 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:42:19,202 - INFO - taking picture
MAIN: 2025-03-31 14:42:19,203 - INFO - we take 984 photos in this while loop
MAIN: 2025-03-31 14:42:19,203 - INFO - /home/pi/Desktop/images/31032025/14/41/image_31032025_14_42_18_30244.jpg
MAIN: 2025-03-31 14:42:19,203 - INFO - duration: 0.6941934510032297
MAIN: 2025-03-31 14:42:19,204 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/42'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:42:48,952 - INFO - taking picture
MAIN: 2025-03-31 14:42:48,953 - INFO - we take 985 photos in this while loop
MAIN: 2025-03-31 14:42:48,953 - INFO - /home/pi/Desktop/images/31032025/14/42/image_31032025_14_42_48_29742.jpg
MAIN: 2025-03-31 14:42:48,953 - INFO - duration: 0.7010099339968292
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:43:06,573 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:43:18,983 - INFO - taking picture
MAIN: 2025-03-31 14:43:18,983 - INFO - we take 986 photos in this while loop
MAIN: 2025-03-31 14:43:18,984 - INFO - /home/pi/Desktop/images/31032025/14/42/image_31032025_14_43_18_30032.jpg
MAIN: 2025-03-31 14:43:18,984 - INFO - duration: 0.6990205879992573
MAIN: 2025-03-31 14:43:18,984 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/43'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:43:48,605 - INFO - taking picture
MAIN: 2025-03-31 14:43:48,605 - INFO - we take 987 photos in this while loop
MAIN: 2025-03-31 14:43:48,605 - INFO - /home/pi/Desktop/images/31032025/14/43/image_31032025_14_43_48_29623.jpg
MAIN: 2025-03-31 14:43:48,606 - INFO - duration: 0.6976586660020985
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:44:05,871 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:44:18,852 - INFO - taking picture
MAIN: 2025-03-31 14:44:18,852 - INFO - we take 988 photos in this while loop
MAIN: 2025-03-31 14:44:18,853 - INFO - /home/pi/Desktop/images/31032025/14/43/image_31032025_14_44_18_30245.jpg
MAIN: 2025-03-31 14:44:18,853 - INFO - duration: 0.6990219599974807
MAIN: 2025-03-31 14:44:18,853 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/44'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:44:48,603 - INFO - taking picture
MAIN: 2025-03-31 14:44:48,603 - INFO - we take 989 photos in this while loop
MAIN: 2025-03-31 14:44:48,604 - INFO - /home/pi/Desktop/images/31032025/14/44/image_31032025_14_44_48_29749.jpg
MAIN: 2025-03-31 14:44:48,604 - INFO - duration: 0.7002196659959736
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:45:06,877 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:45:18,919 - INFO - taking picture
MAIN: 2025-03-31 14:45:18,919 - INFO - we take 990 photos in this while loop
MAIN: 2025-03-31 14:45:18,919 - INFO - /home/pi/Desktop/images/31032025/14/44/image_31032025_14_45_18_30291.jpg
MAIN: 2025-03-31 14:45:18,920 - INFO - duration: 0.724471296001866
MAIN: 2025-03-31 14:45:18,920 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:45:48,654 - INFO - taking picture
MAIN: 2025-03-31 14:45:48,654 - INFO - we take 991 photos in this while loop
MAIN: 2025-03-31 14:45:48,654 - INFO - /home/pi/Desktop/images/31032025/14/45/image_31032025_14_45_48_29747.jpg
MAIN: 2025-03-31 14:45:48,655 - INFO - duration: 0.7117538649981725
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:46:06,579 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:46:18,672 - INFO - taking picture
MAIN: 2025-03-31 14:46:18,673 - INFO - we take 992 photos in this while loop
MAIN: 2025-03-31 14:46:18,673 - INFO - /home/pi/Desktop/images/31032025/14/45/image_31032025_14_46_18_30077.jpg
MAIN: 2025-03-31 14:46:18,673 - INFO - duration: 0.6529359670021222
MAIN: 2025-03-31 14:46:18,674 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:46:48,391 - INFO - taking picture
MAIN: 2025-03-31 14:46:48,391 - INFO - we take 993 photos in this while loop
MAIN: 2025-03-31 14:46:48,392 - INFO - /home/pi/Desktop/images/31032025/14/46/image_31032025_14_46_48_29717.jpg
MAIN: 2025-03-31 14:46:48,392 - INFO - duration: 0.6541640409996035
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:47:05,891 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:47:18,484 - INFO - taking picture
MAIN: 2025-03-31 14:47:18,484 - INFO - we take 994 photos in this while loop
MAIN: 2025-03-31 14:47:18,484 - INFO - /home/pi/Desktop/images/31032025/14/46/image_31032025_14_47_18_30059.jpg
MAIN: 2025-03-31 14:47:18,485 - INFO - duration: 0.6873636119998991
MAIN: 2025-03-31 14:47:18,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/47'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:47:48,218 - INFO - taking picture
MAIN: 2025-03-31 14:47:48,218 - INFO - we take 995 photos in this while loop
MAIN: 2025-03-31 14:47:48,219 - INFO - /home/pi/Desktop/images/31032025/14/47/image_31032025_14_47_47_29747.jpg
MAIN: 2025-03-31 14:47:48,219 - INFO - duration: 0.6742223990004277
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:48:07,013 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:48:18,380 - INFO - taking picture
MAIN: 2025-03-31 14:48:18,381 - INFO - we take 996 photos in this while loop
MAIN: 2025-03-31 14:48:18,381 - INFO - /home/pi/Desktop/images/31032025/14/47/image_31032025_14_48_17_30156.jpg
MAIN: 2025-03-31 14:48:18,381 - INFO - duration: 0.6799087380059063
MAIN: 2025-03-31 14:48:18,381 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/48'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:48:49,369 - INFO - taking picture
MAIN: 2025-03-31 14:48:49,369 - INFO - we take 997 photos in this while loop
MAIN: 2025-03-31 14:48:49,370 - INFO - /home/pi/Desktop/images/31032025/14/48/image_31032025_14_48_48_30979.jpg
MAIN: 2025-03-31 14:48:49,370 - INFO - duration: 0.6893512130045565
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:49:06,390 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:49:18,100 - INFO - taking picture
MAIN: 2025-03-31 14:49:18,100 - INFO - we take 998 photos in this while loop
MAIN: 2025-03-31 14:49:18,101 - INFO - /home/pi/Desktop/images/31032025/14/48/image_31032025_14_49_17_28746.jpg
MAIN: 2025-03-31 14:49:18,101 - INFO - duration: 0.6742996539978776
MAIN: 2025-03-31 14:49:18,101 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/49'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:49:48,977 - INFO - taking picture
MAIN: 2025-03-31 14:49:48,978 - INFO - we take 999 photos in this while loop
MAIN: 2025-03-31 14:49:48,978 - INFO - /home/pi/Desktop/images/31032025/14/49/image_31032025_14_49_48_30837.jpg
MAIN: 2025-03-31 14:49:48,978 - INFO - duration: 0.714067093002086
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:50:06,460 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:50:19,300 - INFO - taking picture
MAIN: 2025-03-31 14:50:19,301 - INFO - we take 1000 photos in this while loop
MAIN: 2025-03-31 14:50:19,301 - INFO - /home/pi/Desktop/images/31032025/14/49/image_31032025_14_50_18_30384.jpg
MAIN: 2025-03-31 14:50:19,301 - INFO - duration: 0.6526952850035741
MAIN: 2025-03-31 14:50:19,302 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/50'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:50:48,905 - INFO - taking picture
MAIN: 2025-03-31 14:50:48,906 - INFO - we take 1001 photos in this while loop
MAIN: 2025-03-31 14:50:48,906 - INFO - /home/pi/Desktop/images/31032025/14/50/image_31032025_14_50_48_29612.jpg
MAIN: 2025-03-31 14:50:48,906 - INFO - duration: 0.6448861159951775
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:51:06,134 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:51:18,700 - INFO - taking picture
MAIN: 2025-03-31 14:51:18,700 - INFO - we take 1002 photos in this while loop
MAIN: 2025-03-31 14:51:18,701 - INFO - /home/pi/Desktop/images/31032025/14/50/image_31032025_14_51_18_29803.jpg
MAIN: 2025-03-31 14:51:18,701 - INFO - duration: 0.6364697720055119
MAIN: 2025-03-31 14:51:18,701 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/51'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:51:48,476 - INFO - taking picture
MAIN: 2025-03-31 14:51:48,477 - INFO - we take 1003 photos in this while loop
MAIN: 2025-03-31 14:51:48,477 - INFO - /home/pi/Desktop/images/31032025/14/51/image_31032025_14_51_48_29732.jpg
MAIN: 2025-03-31 14:51:48,477 - INFO - duration: 0.6806763109998428
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:52:06,520 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:52:18,719 - INFO - taking picture
MAIN: 2025-03-31 14:52:18,720 - INFO - we take 1004 photos in this while loop
MAIN: 2025-03-31 14:52:18,720 - INFO - /home/pi/Desktop/images/31032025/14/51/image_31032025_14_52_18_30243.jpg
MAIN: 2025-03-31 14:52:18,720 - INFO - duration: 0.6802270690022851
MAIN: 2025-03-31 14:52:18,721 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:52:48,388 - INFO - taking picture
MAIN: 2025-03-31 14:52:48,389 - INFO - we take 1005 photos in this while loop
MAIN: 2025-03-31 14:52:48,389 - INFO - /home/pi/Desktop/images/31032025/14/52/image_31032025_14_52_48_29655.jpg
MAIN: 2025-03-31 14:52:48,389 - INFO - duration: 0.6939109939994523
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:53:06,322 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:53:18,435 - INFO - taking picture
MAIN: 2025-03-31 14:53:18,436 - INFO - we take 1006 photos in this while loop
MAIN: 2025-03-31 14:53:18,436 - INFO - /home/pi/Desktop/images/31032025/14/52/image_31032025_14_53_18_30048.jpg
MAIN: 2025-03-31 14:53:18,436 - INFO - duration: 0.6929239399978542
MAIN: 2025-03-31 14:53:18,437 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:53:49,281 - INFO - taking picture
MAIN: 2025-03-31 14:53:49,281 - INFO - we take 1007 photos in this while loop
MAIN: 2025-03-31 14:53:49,282 - INFO - /home/pi/Desktop/images/31032025/14/53/image_31032025_14_53_48_30837.jpg
MAIN: 2025-03-31 14:53:49,282 - INFO - duration: 0.7009457079984713
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:54:07,126 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:54:19,256 - INFO - taking picture
MAIN: 2025-03-31 14:54:19,256 - INFO - we take 1008 photos in this while loop
MAIN: 2025-03-31 14:54:19,256 - INFO - /home/pi/Desktop/images/31032025/14/53/image_31032025_14_54_18_29960.jpg
MAIN: 2025-03-31 14:54:19,256 - INFO - duration: 0.714828308999131
MAIN: 2025-03-31 14:54:19,257 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:54:49,022 - INFO - taking picture
MAIN: 2025-03-31 14:54:49,022 - INFO - we take 1009 photos in this while loop
MAIN: 2025-03-31 14:54:49,023 - INFO - /home/pi/Desktop/images/31032025/14/54/image_31032025_14_54_48_29827.jpg
MAIN: 2025-03-31 14:54:49,023 - INFO - duration: 0.653491124001448
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 14:55:06,416 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:55:19,309 - INFO - taking picture
MAIN: 2025-03-31 14:55:19,309 - INFO - we take 1010 photos in this while loop
MAIN: 2025-03-31 14:55:19,309 - INFO - /home/pi/Desktop/images/31032025/14/54/image_31032025_14_55_18_30262.jpg
MAIN: 2025-03-31 14:55:19,310 - INFO - duration: 0.6783984639987466
MAIN: 2025-03-31 14:55:19,310 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:55:49,019 - INFO - taking picture
MAIN: 2025-03-31 14:55:49,020 - INFO - we take 1011 photos in this while loop
MAIN: 2025-03-31 14:55:49,020 - INFO - /home/pi/Desktop/images/31032025/14/55/image_31032025_14_55_48_29712.jpg
MAIN: 2025-03-31 14:55:49,020 - INFO - duration: 0.6765595149990986
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 14:56:06,447 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:56:19,211 - INFO - taking picture
MAIN: 2025-03-31 14:56:19,211 - INFO - we take 1012 photos in this while loop
MAIN: 2025-03-31 14:56:19,211 - INFO - /home/pi/Desktop/images/31032025/14/55/image_31032025_14_56_18_30195.jpg
MAIN: 2025-03-31 14:56:19,212 - INFO - duration: 0.6722262269977364
MAIN: 2025-03-31 14:56:19,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:56:48,828 - INFO - taking picture
MAIN: 2025-03-31 14:56:48,828 - INFO - we take 1013 photos in this while loop
MAIN: 2025-03-31 14:56:48,828 - INFO - /home/pi/Desktop/images/31032025/14/56/image_31032025_14_56_48_29597.jpg
MAIN: 2025-03-31 14:56:48,829 - INFO - duration: 0.6919424919979065
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:57:06,068 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:57:18,629 - INFO - taking picture
MAIN: 2025-03-31 14:57:18,630 - INFO - we take 1014 photos in this while loop
MAIN: 2025-03-31 14:57:18,630 - INFO - /home/pi/Desktop/images/31032025/14/56/image_31032025_14_57_18_29788.jpg
MAIN: 2025-03-31 14:57:18,630 - INFO - duration: 0.7055538220010931
MAIN: 2025-03-31 14:57:18,631 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:57:48,249 - INFO - taking picture
MAIN: 2025-03-31 14:57:48,250 - INFO - we take 1015 photos in this while loop
MAIN: 2025-03-31 14:57:48,250 - INFO - /home/pi/Desktop/images/31032025/14/57/image_31032025_14_57_47_29629.jpg
MAIN: 2025-03-31 14:57:48,250 - INFO - duration: 0.6961646929994458
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:58:06,555 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:58:18,496 - INFO - taking picture
MAIN: 2025-03-31 14:58:18,497 - INFO - we take 1016 photos in this while loop
MAIN: 2025-03-31 14:58:18,497 - INFO - /home/pi/Desktop/images/31032025/14/57/image_31032025_14_58_18_30250.jpg
MAIN: 2025-03-31 14:58:18,497 - INFO - duration: 0.6926346030013519
MAIN: 2025-03-31 14:58:18,498 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/58'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:58:48,170 - INFO - taking picture
MAIN: 2025-03-31 14:58:48,170 - INFO - we take 1017 photos in this while loop
MAIN: 2025-03-31 14:58:48,170 - INFO - /home/pi/Desktop/images/31032025/14/58/image_31032025_14_58_47_29669.jpg
MAIN: 2025-03-31 14:58:48,171 - INFO - duration: 0.6966967120024492
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 14:59:05,022 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:59:19,129 - INFO - taking picture
MAIN: 2025-03-31 14:59:19,130 - INFO - we take 1018 photos in this while loop
MAIN: 2025-03-31 14:59:19,130 - INFO - /home/pi/Desktop/images/31032025/14/58/image_31032025_14_59_18_30999.jpg
MAIN: 2025-03-31 14:59:19,131 - INFO - duration: 0.6572135169990361
MAIN: 2025-03-31 14:59:19,131 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/14/59'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 14:59:48,830 - INFO - taking picture
MAIN: 2025-03-31 14:59:48,831 - INFO - we take 1019 photos in this while loop
MAIN: 2025-03-31 14:59:48,831 - INFO - /home/pi/Desktop/images/31032025/14/59/image_31032025_14_59_48_29719.jpg
MAIN: 2025-03-31 14:59:48,831 - INFO - duration: 0.638416743997368
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:00:06,520 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:00:19,131 - INFO - taking picture
MAIN: 2025-03-31 15:00:19,132 - INFO - we take 1020 photos in this while loop
MAIN: 2025-03-31 15:00:19,132 - INFO - /home/pi/Desktop/images/31032025/14/59/image_31032025_15_00_18_30214.jpg
MAIN: 2025-03-31 15:00:19,132 - INFO - duration: 0.7247044469986577
MAIN: 2025-03-31 15:00:19,133 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:00:48,676 - INFO - taking picture
MAIN: 2025-03-31 15:00:48,677 - INFO - we take 1021 photos in this while loop
MAIN: 2025-03-31 15:00:48,677 - INFO - /home/pi/Desktop/images/31032025/15/00/image_31032025_15_00_48_29588.jpg
MAIN: 2025-03-31 15:00:48,677 - INFO - duration: 0.6811978109981283
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:01:05,737 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:01:18,529 - INFO - taking picture
MAIN: 2025-03-31 15:01:18,529 - INFO - we take 1022 photos in this while loop
MAIN: 2025-03-31 15:01:18,529 - INFO - /home/pi/Desktop/images/31032025/15/00/image_31032025_15_01_18_29832.jpg
MAIN: 2025-03-31 15:01:18,530 - INFO - duration: 0.7009054360023583
MAIN: 2025-03-31 15:01:18,530 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:01:48,186 - INFO - taking picture
MAIN: 2025-03-31 15:01:48,187 - INFO - we take 1023 photos in this while loop
MAIN: 2025-03-31 15:01:48,187 - INFO - /home/pi/Desktop/images/31032025/15/01/image_31032025_15_01_47_29663.jpg
MAIN: 2025-03-31 15:01:48,187 - INFO - duration: 0.6951452110006358
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:02:06,675 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:02:18,453 - INFO - taking picture
MAIN: 2025-03-31 15:02:18,453 - INFO - we take 1024 photos in this while loop
MAIN: 2025-03-31 15:02:18,454 - INFO - /home/pi/Desktop/images/31032025/15/01/image_31032025_15_02_18_30267.jpg
MAIN: 2025-03-31 15:02:18,454 - INFO - duration: 0.6941119779949076
MAIN: 2025-03-31 15:02:18,454 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:02:49,360 - INFO - taking picture
MAIN: 2025-03-31 15:02:49,360 - INFO - we take 1025 photos in this while loop
MAIN: 2025-03-31 15:02:49,360 - INFO - /home/pi/Desktop/images/31032025/15/02/image_31032025_15_02_48_30873.jpg
MAIN: 2025-03-31 15:02:49,361 - INFO - duration: 0.7274549570065574
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:03:06,622 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:03:18,133 - INFO - taking picture
MAIN: 2025-03-31 15:03:18,134 - INFO - we take 1026 photos in this while loop
MAIN: 2025-03-31 15:03:18,134 - INFO - /home/pi/Desktop/images/31032025/15/02/image_31032025_15_03_17_28811.jpg
MAIN: 2025-03-31 15:03:18,134 - INFO - duration: 0.68954213699908
MAIN: 2025-03-31 15:03:18,135 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:03:49,050 - INFO - taking picture
MAIN: 2025-03-31 15:03:49,050 - INFO - we take 1027 photos in this while loop
MAIN: 2025-03-31 15:03:49,051 - INFO - /home/pi/Desktop/images/31032025/15/03/image_31032025_15_03_48_30962.jpg
MAIN: 2025-03-31 15:03:49,051 - INFO - duration: 0.6433978370041586
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:04:06,955 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:04:18,927 - INFO - taking picture
MAIN: 2025-03-31 15:04:18,927 - INFO - we take 1028 photos in this while loop
MAIN: 2025-03-31 15:04:18,927 - INFO - /home/pi/Desktop/images/31032025/15/03/image_31032025_15_04_18_29883.jpg
MAIN: 2025-03-31 15:04:18,928 - INFO - duration: 0.6369562979962211
MAIN: 2025-03-31 15:04:18,928 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:04:48,566 - INFO - taking picture
MAIN: 2025-03-31 15:04:48,567 - INFO - we take 1029 photos in this while loop
MAIN: 2025-03-31 15:04:48,567 - INFO - /home/pi/Desktop/images/31032025/15/04/image_31032025_15_04_48_29583.jpg
MAIN: 2025-03-31 15:04:48,567 - INFO - duration: 0.6928103879981791
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:05:06,242 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:05:18,694 - INFO - taking picture
MAIN: 2025-03-31 15:05:18,695 - INFO - we take 1030 photos in this while loop
MAIN: 2025-03-31 15:05:18,695 - INFO - /home/pi/Desktop/images/31032025/15/04/image_31032025_15_05_18_30124.jpg
MAIN: 2025-03-31 15:05:18,695 - INFO - duration: 0.6962802070047474
MAIN: 2025-03-31 15:05:18,696 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:05:48,397 - INFO - taking picture
MAIN: 2025-03-31 15:05:48,398 - INFO - we take 1031 photos in this while loop
MAIN: 2025-03-31 15:05:48,398 - INFO - /home/pi/Desktop/images/31032025/15/05/image_31032025_15_05_48_29711.jpg
MAIN: 2025-03-31 15:05:48,398 - INFO - duration: 0.687729170997045
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:06:05,922 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:06:18,404 - INFO - taking picture
MAIN: 2025-03-31 15:06:18,405 - INFO - we take 1032 photos in this while loop
MAIN: 2025-03-31 15:06:18,405 - INFO - /home/pi/Desktop/images/31032025/15/05/image_31032025_15_06_18_30004.jpg
MAIN: 2025-03-31 15:06:18,405 - INFO - duration: 0.6903928629981237
MAIN: 2025-03-31 15:06:18,406 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:06:49,359 - INFO - taking picture
MAIN: 2025-03-31 15:06:49,360 - INFO - we take 1033 photos in this while loop
MAIN: 2025-03-31 15:06:49,360 - INFO - /home/pi/Desktop/images/31032025/15/06/image_31032025_15_06_48_30941.jpg
MAIN: 2025-03-31 15:06:49,360 - INFO - duration: 0.7035434559948044
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 15:07:06,343 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:07:19,375 - INFO - taking picture
MAIN: 2025-03-31 15:07:19,376 - INFO - we take 1034 photos in this while loop
MAIN: 2025-03-31 15:07:19,376 - INFO - /home/pi/Desktop/images/31032025/15/06/image_31032025_15_07_18_30012.jpg
MAIN: 2025-03-31 15:07:19,376 - INFO - duration: 0.7068857019985444
MAIN: 2025-03-31 15:07:19,377 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:07:49,012 - INFO - taking picture
MAIN: 2025-03-31 15:07:49,013 - INFO - we take 1035 photos in this while loop
MAIN: 2025-03-31 15:07:49,013 - INFO - /home/pi/Desktop/images/31032025/15/07/image_31032025_15_07_48_29626.jpg
MAIN: 2025-03-31 15:07:49,013 - INFO - duration: 0.7169304199996986
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:08:07,034 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:08:18,930 - INFO - taking picture
MAIN: 2025-03-31 15:08:18,931 - INFO - we take 1036 photos in this while loop
MAIN: 2025-03-31 15:08:18,931 - INFO - /home/pi/Desktop/images/31032025/15/07/image_31032025_15_08_18_29931.jpg
MAIN: 2025-03-31 15:08:18,931 - INFO - duration: 0.7032033340001362
MAIN: 2025-03-31 15:08:18,932 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:08:48,497 - INFO - taking picture
MAIN: 2025-03-31 15:08:48,498 - INFO - we take 1037 photos in this while loop
MAIN: 2025-03-31 15:08:48,498 - INFO - /home/pi/Desktop/images/31032025/15/08/image_31032025_15_08_48_29599.jpg
MAIN: 2025-03-31 15:08:48,498 - INFO - duration: 0.6696815980030806
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 15:09:05,593 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:09:18,312 - INFO - taking picture
MAIN: 2025-03-31 15:09:18,313 - INFO - we take 1038 photos in this while loop
MAIN: 2025-03-31 15:09:18,313 - INFO - /home/pi/Desktop/images/31032025/15/08/image_31032025_15_09_17_29793.jpg
MAIN: 2025-03-31 15:09:18,313 - INFO - duration: 0.6917566510019242
MAIN: 2025-03-31 15:09:18,314 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:09:49,102 - INFO - taking picture
MAIN: 2025-03-31 15:09:49,102 - INFO - we take 1039 photos in this while loop
MAIN: 2025-03-31 15:09:49,102 - INFO - /home/pi/Desktop/images/31032025/15/09/image_31032025_15_09_48_30791.jpg
MAIN: 2025-03-31 15:09:49,103 - INFO - duration: 0.6897260380064836
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:10:06,917 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:10:19,277 - INFO - taking picture
MAIN: 2025-03-31 15:10:19,278 - INFO - we take 1040 photos in this while loop
MAIN: 2025-03-31 15:10:19,278 - INFO - /home/pi/Desktop/images/31032025/15/09/image_31032025_15_10_18_30172.jpg
MAIN: 2025-03-31 15:10:19,278 - INFO - duration: 0.692396483005723
MAIN: 2025-03-31 15:10:19,278 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:10:48,838 - INFO - taking picture
MAIN: 2025-03-31 15:10:48,838 - INFO - we take 1041 photos in this while loop
MAIN: 2025-03-31 15:10:48,838 - INFO - /home/pi/Desktop/images/31032025/15/10/image_31032025_15_10_48_29569.jpg
MAIN: 2025-03-31 15:10:48,839 - INFO - duration: 0.6837585450048209
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:11:06,109 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:11:18,531 - INFO - taking picture
MAIN: 2025-03-31 15:11:18,532 - INFO - we take 1042 photos in this while loop
MAIN: 2025-03-31 15:11:18,532 - INFO - /home/pi/Desktop/images/31032025/15/10/image_31032025_15_11_18_29672.jpg
MAIN: 2025-03-31 15:11:18,532 - INFO - duration: 0.7048627650001436
MAIN: 2025-03-31 15:11:18,533 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:11:48,107 - INFO - taking picture
MAIN: 2025-03-31 15:11:48,108 - INFO - we take 1043 photos in this while loop
MAIN: 2025-03-31 15:11:48,108 - INFO - /home/pi/Desktop/images/31032025/15/11/image_31032025_15_11_47_29593.jpg
MAIN: 2025-03-31 15:11:48,108 - INFO - duration: 0.6871252829951118
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:12:06,693 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:12:18,316 - INFO - taking picture
MAIN: 2025-03-31 15:12:18,317 - INFO - we take 1044 photos in this while loop
MAIN: 2025-03-31 15:12:18,317 - INFO - /home/pi/Desktop/images/31032025/15/11/image_31032025_15_12_17_30193.jpg
MAIN: 2025-03-31 15:12:18,317 - INFO - duration: 0.7024177150015021
MAIN: 2025-03-31 15:12:18,318 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:12:49,158 - INFO - taking picture
MAIN: 2025-03-31 15:12:49,159 - INFO - we take 1045 photos in this while loop
MAIN: 2025-03-31 15:12:49,159 - INFO - /home/pi/Desktop/images/31032025/15/12/image_31032025_15_12_48_30853.jpg
MAIN: 2025-03-31 15:12:49,159 - INFO - duration: 0.6912370110003394
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 15:13:06,234 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:13:19,294 - INFO - taking picture
MAIN: 2025-03-31 15:13:19,295 - INFO - we take 1046 photos in this while loop
MAIN: 2025-03-31 15:13:19,295 - INFO - /home/pi/Desktop/images/31032025/15/12/image_31032025_15_13_18_30112.jpg
MAIN: 2025-03-31 15:13:19,295 - INFO - duration: 0.714532866004447
MAIN: 2025-03-31 15:13:19,296 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/13'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:13:48,915 - INFO - taking picture
MAIN: 2025-03-31 15:13:48,916 - INFO - we take 1047 photos in this while loop
MAIN: 2025-03-31 15:13:48,916 - INFO - /home/pi/Desktop/images/31032025/15/13/image_31032025_15_13_48_29645.jpg
MAIN: 2025-03-31 15:13:48,916 - INFO - duration: 0.6905527650014847
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:14:06,878 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:14:18,962 - INFO - taking picture
MAIN: 2025-03-31 15:14:18,963 - INFO - we take 1048 photos in this while loop
MAIN: 2025-03-31 15:14:18,963 - INFO - /home/pi/Desktop/images/31032025/15/13/image_31032025_15_14_18_30032.jpg
MAIN: 2025-03-31 15:14:18,963 - INFO - duration: 0.7051610959970276
MAIN: 2025-03-31 15:14:18,964 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/14'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:14:48,610 - INFO - taking picture
MAIN: 2025-03-31 15:14:48,611 - INFO - we take 1049 photos in this while loop
MAIN: 2025-03-31 15:14:48,611 - INFO - /home/pi/Desktop/images/31032025/15/14/image_31032025_15_14_48_29655.jpg
MAIN: 2025-03-31 15:14:48,611 - INFO - duration: 0.6979215910032508
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:15:06,476 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:15:18,870 - INFO - taking picture
MAIN: 2025-03-31 15:15:18,870 - INFO - we take 1050 photos in this while loop
MAIN: 2025-03-31 15:15:18,870 - INFO - /home/pi/Desktop/images/31032025/15/14/image_31032025_15_15_18_30282.jpg
MAIN: 2025-03-31 15:15:18,871 - INFO - duration: 0.6749799780009198
MAIN: 2025-03-31 15:15:18,871 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:15:48,420 - INFO - taking picture
MAIN: 2025-03-31 15:15:48,420 - INFO - we take 1051 photos in this while loop
MAIN: 2025-03-31 15:15:48,421 - INFO - /home/pi/Desktop/images/31032025/15/15/image_31032025_15_15_48_29536.jpg
MAIN: 2025-03-31 15:15:48,421 - INFO - duration: 0.6886760810011765
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:16:06,070 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:16:18,269 - INFO - taking picture
MAIN: 2025-03-31 15:16:18,269 - INFO - we take 1052 photos in this while loop
MAIN: 2025-03-31 15:16:18,269 - INFO - /home/pi/Desktop/images/31032025/15/15/image_31032025_15_16_17_29832.jpg
MAIN: 2025-03-31 15:16:18,270 - INFO - duration: 0.7046184399951017
MAIN: 2025-03-31 15:16:18,270 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/16'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:16:49,279 - INFO - taking picture
MAIN: 2025-03-31 15:16:49,280 - INFO - we take 1053 photos in this while loop
MAIN: 2025-03-31 15:16:49,280 - INFO - /home/pi/Desktop/images/31032025/15/16/image_31032025_15_16_48_31011.jpg
MAIN: 2025-03-31 15:16:49,280 - INFO - duration: 0.7043273300005239
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:17:06,064 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:17:19,197 - INFO - taking picture
MAIN: 2025-03-31 15:17:19,197 - INFO - we take 1054 photos in this while loop
MAIN: 2025-03-31 15:17:19,198 - INFO - /home/pi/Desktop/images/31032025/15/16/image_31032025_15_17_18_29927.jpg
MAIN: 2025-03-31 15:17:19,198 - INFO - duration: 0.6938335570011986
MAIN: 2025-03-31 15:17:19,198 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:17:48,815 - INFO - taking picture
MAIN: 2025-03-31 15:17:48,815 - INFO - we take 1055 photos in this while loop
MAIN: 2025-03-31 15:17:48,815 - INFO - /home/pi/Desktop/images/31032025/15/17/image_31032025_15_17_48_29618.jpg
MAIN: 2025-03-31 15:17:48,816 - INFO - duration: 0.6934237479945295
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:18:06,592 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:18:18,694 - INFO - taking picture
MAIN: 2025-03-31 15:18:18,694 - INFO - we take 1056 photos in this while loop
MAIN: 2025-03-31 15:18:18,695 - INFO - /home/pi/Desktop/images/31032025/15/17/image_31032025_15_18_18_29885.jpg
MAIN: 2025-03-31 15:18:18,695 - INFO - duration: 0.6868985289984266
MAIN: 2025-03-31 15:18:18,695 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:18:48,194 - INFO - taking picture
MAIN: 2025-03-31 15:18:48,195 - INFO - we take 1057 photos in this while loop
MAIN: 2025-03-31 15:18:48,195 - INFO - /home/pi/Desktop/images/31032025/15/18/image_31032025_15_18_47_29496.jpg
MAIN: 2025-03-31 15:18:48,195 - INFO - duration: 0.6908342960014124
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:19:06,478 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:19:18,168 - INFO - taking picture
MAIN: 2025-03-31 15:19:18,168 - INFO - we take 1058 photos in this while loop
MAIN: 2025-03-31 15:19:18,168 - INFO - /home/pi/Desktop/images/31032025/15/18/image_31032025_15_19_17_29968.jpg
MAIN: 2025-03-31 15:19:18,169 - INFO - duration: 0.6951723140009562
MAIN: 2025-03-31 15:19:18,169 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:19:49,027 - INFO - taking picture
MAIN: 2025-03-31 15:19:49,027 - INFO - we take 1059 photos in this while loop
MAIN: 2025-03-31 15:19:49,028 - INFO - /home/pi/Desktop/images/31032025/15/19/image_31032025_15_19_48_30849.jpg
MAIN: 2025-03-31 15:19:49,028 - INFO - duration: 0.7042550179976388
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:20:07,657 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:20:19,280 - INFO - taking picture
MAIN: 2025-03-31 15:20:19,281 - INFO - we take 1060 photos in this while loop
MAIN: 2025-03-31 15:20:19,281 - INFO - /home/pi/Desktop/images/31032025/15/19/image_31032025_15_20_18_30231.jpg
MAIN: 2025-03-31 15:20:19,281 - INFO - duration: 0.7261753269995097
MAIN: 2025-03-31 15:20:19,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:20:48,939 - INFO - taking picture
MAIN: 2025-03-31 15:20:48,939 - INFO - we take 1061 photos in this while loop
MAIN: 2025-03-31 15:20:48,939 - INFO - /home/pi/Desktop/images/31032025/15/20/image_31032025_15_20_48_29690.jpg
MAIN: 2025-03-31 15:20:48,940 - INFO - duration: 0.6942753440016531
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:21:05,672 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:21:18,949 - INFO - taking picture
MAIN: 2025-03-31 15:21:18,950 - INFO - we take 1062 photos in this while loop
MAIN: 2025-03-31 15:21:18,950 - INFO - /home/pi/Desktop/images/31032025/15/20/image_31032025_15_21_18_30006.jpg
MAIN: 2025-03-31 15:21:18,950 - INFO - duration: 0.6982669670032919
MAIN: 2025-03-31 15:21:18,951 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/21'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:21:48,511 - INFO - taking picture
MAIN: 2025-03-31 15:21:48,511 - INFO - we take 1063 photos in this while loop
MAIN: 2025-03-31 15:21:48,511 - INFO - /home/pi/Desktop/images/31032025/15/21/image_31032025_15_21_48_29563.jpg
MAIN: 2025-03-31 15:21:48,512 - INFO - duration: 0.6964438510040054
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:22:06,149 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:22:18,407 - INFO - taking picture
MAIN: 2025-03-31 15:22:18,408 - INFO - we take 1064 photos in this while loop
MAIN: 2025-03-31 15:22:18,408 - INFO - /home/pi/Desktop/images/31032025/15/21/image_31032025_15_22_18_29900.jpg
MAIN: 2025-03-31 15:22:18,408 - INFO - duration: 0.692671265998797
MAIN: 2025-03-31 15:22:18,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/22'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:22:49,216 - INFO - taking picture
MAIN: 2025-03-31 15:22:49,217 - INFO - we take 1065 photos in this while loop
MAIN: 2025-03-31 15:22:49,217 - INFO - /home/pi/Desktop/images/31032025/15/22/image_31032025_15_22_48_30820.jpg
MAIN: 2025-03-31 15:22:49,217 - INFO - duration: 0.6811950550036272
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:23:06,071 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:23:19,105 - INFO - taking picture
MAIN: 2025-03-31 15:23:19,105 - INFO - we take 1066 photos in this while loop
MAIN: 2025-03-31 15:23:19,106 - INFO - /home/pi/Desktop/images/31032025/15/22/image_31032025_15_23_18_29866.jpg
MAIN: 2025-03-31 15:23:19,106 - INFO - duration: 0.7029177419972257
MAIN: 2025-03-31 15:23:19,106 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/23'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:23:48,805 - INFO - taking picture
MAIN: 2025-03-31 15:23:48,805 - INFO - we take 1067 photos in this while loop
MAIN: 2025-03-31 15:23:48,805 - INFO - /home/pi/Desktop/images/31032025/15/23/image_31032025_15_23_48_29706.jpg
MAIN: 2025-03-31 15:23:48,806 - INFO - duration: 0.6958894889976364
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:24:06,385 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:24:18,706 - INFO - taking picture
MAIN: 2025-03-31 15:24:18,706 - INFO - we take 1068 photos in this while loop
MAIN: 2025-03-31 15:24:18,707 - INFO - /home/pi/Desktop/images/31032025/15/23/image_31032025_15_24_18_29903.jpg
MAIN: 2025-03-31 15:24:18,707 - INFO - duration: 0.6934307940027793
MAIN: 2025-03-31 15:24:18,707 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/24'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:24:48,322 - INFO - taking picture
MAIN: 2025-03-31 15:24:48,322 - INFO - we take 1069 photos in this while loop
MAIN: 2025-03-31 15:24:48,323 - INFO - /home/pi/Desktop/images/31032025/15/24/image_31032025_15_24_47_29623.jpg
MAIN: 2025-03-31 15:24:48,323 - INFO - duration: 0.6863230929957354
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:25:06,630 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:25:18,354 - INFO - taking picture
MAIN: 2025-03-31 15:25:18,355 - INFO - we take 1070 photos in this while loop
MAIN: 2025-03-31 15:25:18,355 - INFO - /home/pi/Desktop/images/31032025/15/24/image_31032025_15_25_17_30047.jpg
MAIN: 2025-03-31 15:25:18,355 - INFO - duration: 0.6709909929995774
MAIN: 2025-03-31 15:25:18,356 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/25'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:25:49,269 - INFO - taking picture
MAIN: 2025-03-31 15:25:49,270 - INFO - we take 1071 photos in this while loop
MAIN: 2025-03-31 15:25:49,270 - INFO - /home/pi/Desktop/images/31032025/15/25/image_31032025_15_25_48_30880.jpg
MAIN: 2025-03-31 15:25:49,270 - INFO - duration: 0.7057047740017879
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:26:06,928 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:26:18,271 - INFO - taking picture
MAIN: 2025-03-31 15:26:18,272 - INFO - we take 1072 photos in this while loop
MAIN: 2025-03-31 15:26:18,272 - INFO - /home/pi/Desktop/images/31032025/15/25/image_31032025_15_26_17_29006.jpg
MAIN: 2025-03-31 15:26:18,272 - INFO - duration: 0.7008076159982011
MAIN: 2025-03-31 15:26:18,273 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:26:49,234 - INFO - taking picture
MAIN: 2025-03-31 15:26:49,235 - INFO - we take 1073 photos in this while loop
MAIN: 2025-03-31 15:26:49,235 - INFO - /home/pi/Desktop/images/31032025/15/26/image_31032025_15_26_48_30961.jpg
MAIN: 2025-03-31 15:26:49,235 - INFO - duration: 0.7020572260007611
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:27:05,925 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:27:19,286 - INFO - taking picture
MAIN: 2025-03-31 15:27:19,287 - INFO - we take 1074 photos in this while loop
MAIN: 2025-03-31 15:27:19,287 - INFO - /home/pi/Desktop/images/31032025/15/26/image_31032025_15_27_18_30029.jpg
MAIN: 2025-03-31 15:27:19,288 - INFO - duration: 0.7248480679991189
MAIN: 2025-03-31 15:27:19,288 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/27'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:27:48,915 - INFO - taking picture
MAIN: 2025-03-31 15:27:48,916 - INFO - we take 1075 photos in this while loop
MAIN: 2025-03-31 15:27:48,916 - INFO - /home/pi/Desktop/images/31032025/15/27/image_31032025_15_27_48_29658.jpg
MAIN: 2025-03-31 15:27:48,916 - INFO - duration: 0.6950405120005598
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:28:06,254 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:28:18,778 - INFO - taking picture
MAIN: 2025-03-31 15:28:18,779 - INFO - we take 1076 photos in this while loop
MAIN: 2025-03-31 15:28:18,779 - INFO - /home/pi/Desktop/images/31032025/15/27/image_31032025_15_28_18_29880.jpg
MAIN: 2025-03-31 15:28:18,779 - INFO - duration: 0.678090635999979
MAIN: 2025-03-31 15:28:18,780 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:28:48,369 - INFO - taking picture
MAIN: 2025-03-31 15:28:48,370 - INFO - we take 1077 photos in this while loop
MAIN: 2025-03-31 15:28:48,370 - INFO - /home/pi/Desktop/images/31032025/15/28/image_31032025_15_28_47_29579.jpg
MAIN: 2025-03-31 15:28:48,370 - INFO - duration: 0.6888353819958866
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:29:06,273 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:29:18,512 - INFO - taking picture
MAIN: 2025-03-31 15:29:18,513 - INFO - we take 1078 photos in this while loop
MAIN: 2025-03-31 15:29:18,513 - INFO - /home/pi/Desktop/images/31032025/15/28/image_31032025_15_29_18_30135.jpg
MAIN: 2025-03-31 15:29:18,513 - INFO - duration: 0.6969369900034508
MAIN: 2025-03-31 15:29:18,514 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:29:48,219 - INFO - taking picture
MAIN: 2025-03-31 15:29:48,220 - INFO - we take 1079 photos in this while loop
MAIN: 2025-03-31 15:29:48,220 - INFO - /home/pi/Desktop/images/31032025/15/29/image_31032025_15_29_47_29721.jpg
MAIN: 2025-03-31 15:29:48,221 - INFO - duration: 0.6825337310001487
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:30:07,315 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:30:18,571 - INFO - taking picture
MAIN: 2025-03-31 15:30:18,571 - INFO - we take 1080 photos in this while loop
MAIN: 2025-03-31 15:30:18,572 - INFO - /home/pi/Desktop/images/31032025/15/29/image_31032025_15_30_18_30348.jpg
MAIN: 2025-03-31 15:30:18,572 - INFO - duration: 0.6850949079962447
MAIN: 2025-03-31 15:30:18,572 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:30:48,180 - INFO - taking picture
MAIN: 2025-03-31 15:30:48,181 - INFO - we take 1081 photos in this while loop
MAIN: 2025-03-31 15:30:48,181 - INFO - /home/pi/Desktop/images/31032025/15/30/image_31032025_15_30_47_29602.jpg
MAIN: 2025-03-31 15:30:48,181 - INFO - duration: 0.6914612299951841
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:31:05,613 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:31:19,384 - INFO - taking picture
MAIN: 2025-03-31 15:31:19,385 - INFO - we take 1082 photos in this while loop
MAIN: 2025-03-31 15:31:19,385 - INFO - /home/pi/Desktop/images/31032025/15/30/image_31032025_15_31_18_31175.jpg
MAIN: 2025-03-31 15:31:19,385 - INFO - duration: 0.7204970750026405
MAIN: 2025-03-31 15:31:19,386 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:31:49,013 - INFO - taking picture
MAIN: 2025-03-31 15:31:49,013 - INFO - we take 1083 photos in this while loop
MAIN: 2025-03-31 15:31:49,014 - INFO - /home/pi/Desktop/images/31032025/15/31/image_31032025_15_31_48_29647.jpg
MAIN: 2025-03-31 15:31:49,014 - INFO - duration: 0.7020832170019276
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:32:06,005 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:32:19,181 - INFO - taking picture
MAIN: 2025-03-31 15:32:19,181 - INFO - we take 1084 photos in this while loop
MAIN: 2025-03-31 15:32:19,181 - INFO - /home/pi/Desktop/images/31032025/15/31/image_31032025_15_32_18_30206.jpg
MAIN: 2025-03-31 15:32:19,182 - INFO - duration: 0.6632069469997077
MAIN: 2025-03-31 15:32:19,182 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:32:48,768 - INFO - taking picture
MAIN: 2025-03-31 15:32:48,769 - INFO - we take 1085 photos in this while loop
MAIN: 2025-03-31 15:32:48,769 - INFO - /home/pi/Desktop/images/31032025/15/32/image_31032025_15_32_48_29560.jpg
MAIN: 2025-03-31 15:32:48,769 - INFO - duration: 0.689899291995971
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:33:05,817 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:33:18,733 - INFO - taking picture
MAIN: 2025-03-31 15:33:18,733 - INFO - we take 1086 photos in this while loop
MAIN: 2025-03-31 15:33:18,734 - INFO - /home/pi/Desktop/images/31032025/15/32/image_31032025_15_33_18_29951.jpg
MAIN: 2025-03-31 15:33:18,734 - INFO - duration: 0.7032795599952806
MAIN: 2025-03-31 15:33:18,734 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/33'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:33:48,374 - INFO - taking picture
MAIN: 2025-03-31 15:33:48,374 - INFO - we take 1087 photos in this while loop
MAIN: 2025-03-31 15:33:48,374 - INFO - /home/pi/Desktop/images/31032025/15/33/image_31032025_15_33_47_29641.jpg
MAIN: 2025-03-31 15:33:48,375 - INFO - duration: 0.7025941819956643
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:34:06,357 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:34:18,345 - INFO - taking picture
MAIN: 2025-03-31 15:34:18,345 - INFO - we take 1088 photos in this while loop
MAIN: 2025-03-31 15:34:18,345 - INFO - /home/pi/Desktop/images/31032025/15/33/image_31032025_15_34_17_29980.jpg
MAIN: 2025-03-31 15:34:18,345 - INFO - duration: 0.6931483539956389
MAIN: 2025-03-31 15:34:18,346 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:34:49,263 - INFO - taking picture
MAIN: 2025-03-31 15:34:49,264 - INFO - we take 1089 photos in this while loop
MAIN: 2025-03-31 15:34:49,264 - INFO - /home/pi/Desktop/images/31032025/15/34/image_31032025_15_34_48_30917.jpg
MAIN: 2025-03-31 15:34:49,264 - INFO - duration: 0.6939092690008692
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:35:07,023 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:35:19,339 - INFO - taking picture
MAIN: 2025-03-31 15:35:19,339 - INFO - we take 1090 photos in this while loop
MAIN: 2025-03-31 15:35:19,339 - INFO - /home/pi/Desktop/images/31032025/15/34/image_31032025_15_35_18_30081.jpg
MAIN: 2025-03-31 15:35:19,340 - INFO - duration: 0.6878969780009356
MAIN: 2025-03-31 15:35:19,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:35:49,026 - INFO - taking picture
MAIN: 2025-03-31 15:35:49,027 - INFO - we take 1091 photos in this while loop
MAIN: 2025-03-31 15:35:49,027 - INFO - /home/pi/Desktop/images/31032025/15/35/image_31032025_15_35_48_29674.jpg
MAIN: 2025-03-31 15:35:49,027 - INFO - duration: 0.7007883900005254
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:36:06,867 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:36:18,981 - INFO - taking picture
MAIN: 2025-03-31 15:36:18,981 - INFO - we take 1092 photos in this while loop
MAIN: 2025-03-31 15:36:18,982 - INFO - /home/pi/Desktop/images/31032025/15/35/image_31032025_15_36_18_29951.jpg
MAIN: 2025-03-31 15:36:18,982 - INFO - duration: 0.7035173580006813
MAIN: 2025-03-31 15:36:18,982 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:36:48,674 - INFO - taking picture
MAIN: 2025-03-31 15:36:48,674 - INFO - we take 1093 photos in this while loop
MAIN: 2025-03-31 15:36:48,675 - INFO - /home/pi/Desktop/images/31032025/15/36/image_31032025_15_36_48_29694.jpg
MAIN: 2025-03-31 15:36:48,675 - INFO - duration: 0.7014347560034366
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:37:05,666 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:37:18,692 - INFO - taking picture
MAIN: 2025-03-31 15:37:18,693 - INFO - we take 1094 photos in this while loop
MAIN: 2025-03-31 15:37:18,693 - INFO - /home/pi/Desktop/images/31032025/15/36/image_31032025_15_37_18_30015.jpg
MAIN: 2025-03-31 15:37:18,693 - INFO - duration: 0.7041552669979865
MAIN: 2025-03-31 15:37:18,693 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:37:48,260 - INFO - taking picture
MAIN: 2025-03-31 15:37:48,261 - INFO - we take 1095 photos in this while loop
MAIN: 2025-03-31 15:37:48,261 - INFO - /home/pi/Desktop/images/31032025/15/37/image_31032025_15_37_47_29583.jpg
MAIN: 2025-03-31 15:37:48,261 - INFO - duration: 0.6887144799984526
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:38:06,228 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:38:18,411 - INFO - taking picture
MAIN: 2025-03-31 15:38:18,411 - INFO - we take 1096 photos in this while loop
MAIN: 2025-03-31 15:38:18,411 - INFO - /home/pi/Desktop/images/31032025/15/37/image_31032025_15_38_18_30135.jpg
MAIN: 2025-03-31 15:38:18,412 - INFO - duration: 0.7029440010010148
MAIN: 2025-03-31 15:38:18,412 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:38:49,336 - INFO - taking picture
MAIN: 2025-03-31 15:38:49,337 - INFO - we take 1097 photos in this while loop
MAIN: 2025-03-31 15:38:49,337 - INFO - /home/pi/Desktop/images/31032025/15/38/image_31032025_15_38_48_30927.jpg
MAIN: 2025-03-31 15:38:49,337 - INFO - duration: 0.7010966810048558
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:39:06,289 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:39:19,316 - INFO - taking picture
MAIN: 2025-03-31 15:39:19,317 - INFO - we take 1098 photos in this while loop
MAIN: 2025-03-31 15:39:19,317 - INFO - /home/pi/Desktop/images/31032025/15/38/image_31032025_15_39_18_30000.jpg
MAIN: 2025-03-31 15:39:19,317 - INFO - duration: 0.6811774250018061
MAIN: 2025-03-31 15:39:19,318 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:39:48,920 - INFO - taking picture
MAIN: 2025-03-31 15:39:48,920 - INFO - we take 1099 photos in this while loop
MAIN: 2025-03-31 15:39:48,920 - INFO - /home/pi/Desktop/images/31032025/15/39/image_31032025_15_39_48_29593.jpg
MAIN: 2025-03-31 15:39:48,921 - INFO - duration: 0.6916724049951881
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:40:07,311 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:40:19,068 - INFO - taking picture
MAIN: 2025-03-31 15:40:19,069 - INFO - we take 1100 photos in this while loop
MAIN: 2025-03-31 15:40:19,069 - INFO - /home/pi/Desktop/images/31032025/15/39/image_31032025_15_40_18_30150.jpg
MAIN: 2025-03-31 15:40:19,069 - INFO - duration: 0.6901244320033584
MAIN: 2025-03-31 15:40:19,070 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/40'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:40:48,813 - INFO - taking picture
MAIN: 2025-03-31 15:40:48,813 - INFO - we take 1101 photos in this while loop
MAIN: 2025-03-31 15:40:48,813 - INFO - /home/pi/Desktop/images/31032025/15/40/image_31032025_15_40_48_29757.jpg
MAIN: 2025-03-31 15:40:48,814 - INFO - duration: 0.6771370479982579
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:41:06,502 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:41:18,623 - INFO - taking picture
MAIN: 2025-03-31 15:41:18,624 - INFO - we take 1102 photos in this while loop
MAIN: 2025-03-31 15:41:18,624 - INFO - /home/pi/Desktop/images/31032025/15/40/image_31032025_15_41_18_29792.jpg
MAIN: 2025-03-31 15:41:18,624 - INFO - duration: 0.6952261140031624
MAIN: 2025-03-31 15:41:18,625 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:41:48,299 - INFO - taking picture
MAIN: 2025-03-31 15:41:48,299 - INFO - we take 1103 photos in this while loop
MAIN: 2025-03-31 15:41:48,299 - INFO - /home/pi/Desktop/images/31032025/15/41/image_31032025_15_41_47_29670.jpg
MAIN: 2025-03-31 15:41:48,299 - INFO - duration: 0.6996614200033946
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 15:42:06,964 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:42:18,537 - INFO - taking picture
MAIN: 2025-03-31 15:42:18,537 - INFO - we take 1104 photos in this while loop
MAIN: 2025-03-31 15:42:18,538 - INFO - /home/pi/Desktop/images/31032025/15/41/image_31032025_15_42_18_30247.jpg
MAIN: 2025-03-31 15:42:18,538 - INFO - duration: 0.6902122350002173
MAIN: 2025-03-31 15:42:18,538 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:42:48,183 - INFO - taking picture
MAIN: 2025-03-31 15:42:48,184 - INFO - we take 1105 photos in this while loop
MAIN: 2025-03-31 15:42:48,184 - INFO - /home/pi/Desktop/images/31032025/15/42/image_31032025_15_42_47_29634.jpg
MAIN: 2025-03-31 15:42:48,184 - INFO - duration: 0.7019055280034081
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:43:05,624 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:43:19,407 - INFO - taking picture
MAIN: 2025-03-31 15:43:19,408 - INFO - we take 1106 photos in this while loop
MAIN: 2025-03-31 15:43:19,408 - INFO - /home/pi/Desktop/images/31032025/15/42/image_31032025_15_43_19_31214.jpg
MAIN: 2025-03-31 15:43:19,409 - INFO - duration: 0.7117497039944283
MAIN: 2025-03-31 15:43:19,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/43'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:43:49,031 - INFO - taking picture
MAIN: 2025-03-31 15:43:49,032 - INFO - we take 1107 photos in this while loop
MAIN: 2025-03-31 15:43:49,032 - INFO - /home/pi/Desktop/images/31032025/15/43/image_31032025_15_43_48_29642.jpg
MAIN: 2025-03-31 15:43:49,032 - INFO - duration: 0.6921253850014182
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:44:06,210 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:44:19,218 - INFO - taking picture
MAIN: 2025-03-31 15:44:19,219 - INFO - we take 1108 photos in this while loop
MAIN: 2025-03-31 15:44:19,219 - INFO - /home/pi/Desktop/images/31032025/15/43/image_31032025_15_44_18_30189.jpg
MAIN: 2025-03-31 15:44:19,219 - INFO - duration: 0.6896033510056441
MAIN: 2025-03-31 15:44:19,220 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/44'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:44:48,783 - INFO - taking picture
MAIN: 2025-03-31 15:44:48,784 - INFO - we take 1109 photos in this while loop
MAIN: 2025-03-31 15:44:48,784 - INFO - /home/pi/Desktop/images/31032025/15/44/image_31032025_15_44_48_29567.jpg
MAIN: 2025-03-31 15:44:48,784 - INFO - duration: 0.6865608610023628
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:45:06,647 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:45:18,734 - INFO - taking picture
MAIN: 2025-03-31 15:45:18,734 - INFO - we take 1110 photos in this while loop
MAIN: 2025-03-31 15:45:18,735 - INFO - /home/pi/Desktop/images/31032025/15/44/image_31032025_15_45_18_29950.jpg
MAIN: 2025-03-31 15:45:18,735 - INFO - duration: 0.6869581319988356
MAIN: 2025-03-31 15:45:18,735 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/45'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:45:48,394 - INFO - taking picture
MAIN: 2025-03-31 15:45:48,394 - INFO - we take 1111 photos in this while loop
MAIN: 2025-03-31 15:45:48,395 - INFO - /home/pi/Desktop/images/31032025/15/45/image_31032025_15_45_48_29671.jpg
MAIN: 2025-03-31 15:45:48,395 - INFO - duration: 0.6754224420001265
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:46:06,455 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:46:18,528 - INFO - taking picture
MAIN: 2025-03-31 15:46:18,528 - INFO - we take 1112 photos in this while loop
MAIN: 2025-03-31 15:46:18,528 - INFO - /home/pi/Desktop/images/31032025/15/45/image_31032025_15_46_18_30130.jpg
MAIN: 2025-03-31 15:46:18,528 - INFO - duration: 0.678956219999236
MAIN: 2025-03-31 15:46:18,529 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/46'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:46:48,121 - INFO - taking picture
MAIN: 2025-03-31 15:46:48,121 - INFO - we take 1113 photos in this while loop
MAIN: 2025-03-31 15:46:48,121 - INFO - /home/pi/Desktop/images/31032025/15/46/image_31032025_15_46_47_29571.jpg
MAIN: 2025-03-31 15:46:48,122 - INFO - duration: 0.700468520000868
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:47:06,656 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:47:19,367 - INFO - taking picture
MAIN: 2025-03-31 15:47:19,367 - INFO - we take 1114 photos in this while loop
MAIN: 2025-03-31 15:47:19,368 - INFO - /home/pi/Desktop/images/31032025/15/46/image_31032025_15_47_18_31246.jpg
MAIN: 2025-03-31 15:47:19,368 - INFO - duration: 0.7003756889971555
MAIN: 2025-03-31 15:47:19,368 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:47:48,907 - INFO - taking picture
MAIN: 2025-03-31 15:47:48,907 - INFO - we take 1115 photos in this while loop
MAIN: 2025-03-31 15:47:48,907 - INFO - /home/pi/Desktop/images/31032025/15/47/image_31032025_15_47_48_29548.jpg
MAIN: 2025-03-31 15:47:48,908 - INFO - duration: 0.691605697000341
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:48:06,105 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:48:18,867 - INFO - taking picture
MAIN: 2025-03-31 15:48:18,867 - INFO - we take 1116 photos in this while loop
MAIN: 2025-03-31 15:48:18,868 - INFO - /home/pi/Desktop/images/31032025/15/47/image_31032025_15_48_18_29945.jpg
MAIN: 2025-03-31 15:48:18,868 - INFO - duration: 0.7060234899981879
MAIN: 2025-03-31 15:48:18,868 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:48:48,539 - INFO - taking picture
MAIN: 2025-03-31 15:48:48,540 - INFO - we take 1117 photos in this while loop
MAIN: 2025-03-31 15:48:48,540 - INFO - /home/pi/Desktop/images/31032025/15/48/image_31032025_15_48_48_29682.jpg
MAIN: 2025-03-31 15:48:48,540 - INFO - duration: 0.6962442529984401
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 15:49:05,702 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:49:18,373 - INFO - taking picture
MAIN: 2025-03-31 15:49:18,374 - INFO - we take 1118 photos in this while loop
MAIN: 2025-03-31 15:49:18,374 - INFO - /home/pi/Desktop/images/31032025/15/48/image_31032025_15_49_17_29830.jpg
MAIN: 2025-03-31 15:49:18,374 - INFO - duration: 0.7005780769977719
MAIN: 2025-03-31 15:49:18,375 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:49:49,293 - INFO - taking picture
MAIN: 2025-03-31 15:49:49,293 - INFO - we take 1119 photos in this while loop
MAIN: 2025-03-31 15:49:49,293 - INFO - /home/pi/Desktop/images/31032025/15/49/image_31032025_15_49_48_30917.jpg
MAIN: 2025-03-31 15:49:49,294 - INFO - duration: 0.7017207090029842
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:50:06,926 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:50:18,263 - INFO - taking picture
MAIN: 2025-03-31 15:50:18,263 - INFO - we take 1120 photos in this while loop
MAIN: 2025-03-31 15:50:18,263 - INFO - /home/pi/Desktop/images/31032025/15/49/image_31032025_15_50_17_28974.jpg
MAIN: 2025-03-31 15:50:18,264 - INFO - duration: 0.6974627550007426
MAIN: 2025-03-31 15:50:18,264 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:50:49,117 - INFO - taking picture
MAIN: 2025-03-31 15:50:49,118 - INFO - we take 1121 photos in this while loop
MAIN: 2025-03-31 15:50:49,118 - INFO - /home/pi/Desktop/images/31032025/15/50/image_31032025_15_50_48_30846.jpg
MAIN: 2025-03-31 15:50:49,118 - INFO - duration: 0.7055904939988977
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 15:51:06,333 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:51:19,051 - INFO - taking picture
MAIN: 2025-03-31 15:51:19,052 - INFO - we take 1122 photos in this while loop
MAIN: 2025-03-31 15:51:19,052 - INFO - /home/pi/Desktop/images/31032025/15/50/image_31032025_15_51_18_29960.jpg
MAIN: 2025-03-31 15:51:19,052 - INFO - duration: 0.6784360390010988
MAIN: 2025-03-31 15:51:19,053 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:51:48,701 - INFO - taking picture
MAIN: 2025-03-31 15:51:48,701 - INFO - we take 1123 photos in this while loop
MAIN: 2025-03-31 15:51:48,702 - INFO - /home/pi/Desktop/images/31032025/15/51/image_31032025_15_51_48_29626.jpg
MAIN: 2025-03-31 15:51:48,702 - INFO - duration: 0.7018391710007563
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:52:06,624 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:52:18,877 - INFO - taking picture
MAIN: 2025-03-31 15:52:18,877 - INFO - we take 1124 photos in this while loop
MAIN: 2025-03-31 15:52:18,877 - INFO - /home/pi/Desktop/images/31032025/15/51/image_31032025_15_52_18_30178.jpg
MAIN: 2025-03-31 15:52:18,878 - INFO - duration: 0.6989235519940848
MAIN: 2025-03-31 15:52:18,878 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/52'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:52:48,486 - INFO - taking picture
MAIN: 2025-03-31 15:52:48,487 - INFO - we take 1125 photos in this while loop
MAIN: 2025-03-31 15:52:48,487 - INFO - /home/pi/Desktop/images/31032025/15/52/image_31032025_15_52_48_29609.jpg
MAIN: 2025-03-31 15:52:48,487 - INFO - duration: 0.6991193920039223
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:53:05,496 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:53:18,365 - INFO - taking picture
MAIN: 2025-03-31 15:53:18,366 - INFO - we take 1126 photos in this while loop
MAIN: 2025-03-31 15:53:18,366 - INFO - /home/pi/Desktop/images/31032025/15/52/image_31032025_15_53_17_29878.jpg
MAIN: 2025-03-31 15:53:18,366 - INFO - duration: 0.6998540920030791
MAIN: 2025-03-31 15:53:18,367 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/53'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:53:49,237 - INFO - taking picture
MAIN: 2025-03-31 15:53:49,238 - INFO - we take 1127 photos in this while loop
MAIN: 2025-03-31 15:53:49,238 - INFO - /home/pi/Desktop/images/31032025/15/53/image_31032025_15_53_48_30902.jpg
MAIN: 2025-03-31 15:53:49,238 - INFO - duration: 0.6688995879958384
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:54:06,121 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:54:19,205 - INFO - taking picture
MAIN: 2025-03-31 15:54:19,205 - INFO - we take 1128 photos in this while loop
MAIN: 2025-03-31 15:54:19,205 - INFO - /home/pi/Desktop/images/31032025/15/53/image_31032025_15_54_18_29941.jpg
MAIN: 2025-03-31 15:54:19,205 - INFO - duration: 0.6948864469959517
MAIN: 2025-03-31 15:54:19,206 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/54'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:54:48,811 - INFO - taking picture
MAIN: 2025-03-31 15:54:48,811 - INFO - we take 1129 photos in this while loop
MAIN: 2025-03-31 15:54:48,811 - INFO - /home/pi/Desktop/images/31032025/15/54/image_31032025_15_54_48_29598.jpg
MAIN: 2025-03-31 15:54:48,811 - INFO - duration: 0.7024504369983333
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:55:06,258 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:55:18,814 - INFO - taking picture
MAIN: 2025-03-31 15:55:18,814 - INFO - we take 1130 photos in this while loop
MAIN: 2025-03-31 15:55:18,814 - INFO - /home/pi/Desktop/images/31032025/15/54/image_31032025_15_55_18_30029.jpg
MAIN: 2025-03-31 15:55:18,815 - INFO - duration: 0.6765098989999387
MAIN: 2025-03-31 15:55:18,815 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/55'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:55:48,467 - INFO - taking picture
MAIN: 2025-03-31 15:55:48,467 - INFO - we take 1131 photos in this while loop
MAIN: 2025-03-31 15:55:48,467 - INFO - /home/pi/Desktop/images/31032025/15/55/image_31032025_15_55_48_29633.jpg
MAIN: 2025-03-31 15:55:48,468 - INFO - duration: 0.6960939719938324
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:56:06,535 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:56:18,524 - INFO - taking picture
MAIN: 2025-03-31 15:56:18,525 - INFO - we take 1132 photos in this while loop
MAIN: 2025-03-31 15:56:18,525 - INFO - /home/pi/Desktop/images/31032025/15/55/image_31032025_15_56_18_30057.jpg
MAIN: 2025-03-31 15:56:18,525 - INFO - duration: 0.6967522729974007
MAIN: 2025-03-31 15:56:18,526 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:56:49,363 - INFO - taking picture
MAIN: 2025-03-31 15:56:49,363 - INFO - we take 1133 photos in this while loop
MAIN: 2025-03-31 15:56:49,364 - INFO - /home/pi/Desktop/images/31032025/15/56/image_31032025_15_56_48_30846.jpg
MAIN: 2025-03-31 15:56:49,364 - INFO - duration: 0.6888980200019432
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:57:05,599 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:57:19,160 - INFO - taking picture
MAIN: 2025-03-31 15:57:19,161 - INFO - we take 1134 photos in this while loop
MAIN: 2025-03-31 15:57:19,161 - INFO - /home/pi/Desktop/images/31032025/15/56/image_31032025_15_57_18_29790.jpg
MAIN: 2025-03-31 15:57:19,161 - INFO - duration: 0.6958489710013964
MAIN: 2025-03-31 15:57:19,162 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:57:48,827 - INFO - taking picture
MAIN: 2025-03-31 15:57:48,827 - INFO - we take 1135 photos in this while loop
MAIN: 2025-03-31 15:57:48,827 - INFO - /home/pi/Desktop/images/31032025/15/57/image_31032025_15_57_48_29665.jpg
MAIN: 2025-03-31 15:57:48,828 - INFO - duration: 0.6971342169999843
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:58:05,969 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:58:18,924 - INFO - taking picture
MAIN: 2025-03-31 15:58:18,924 - INFO - we take 1136 photos in this while loop
MAIN: 2025-03-31 15:58:18,924 - INFO - /home/pi/Desktop/images/31032025/15/57/image_31032025_15_58_18_30092.jpg
MAIN: 2025-03-31 15:58:18,925 - INFO - duration: 0.7019736410002224
MAIN: 2025-03-31 15:58:18,925 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/58'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:58:48,629 - INFO - taking picture
MAIN: 2025-03-31 15:58:48,629 - INFO - we take 1137 photos in this while loop
MAIN: 2025-03-31 15:58:48,630 - INFO - /home/pi/Desktop/images/31032025/15/58/image_31032025_15_58_48_29725.jpg
MAIN: 2025-03-31 15:58:48,630 - INFO - duration: 0.681738339997537
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 15:59:06,125 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:59:18,487 - INFO - taking picture
MAIN: 2025-03-31 15:59:18,487 - INFO - we take 1138 photos in this while loop
MAIN: 2025-03-31 15:59:18,487 - INFO - /home/pi/Desktop/images/31032025/15/58/image_31032025_15_59_18_29845.jpg
MAIN: 2025-03-31 15:59:18,488 - INFO - duration: 0.6937329399952432
MAIN: 2025-03-31 15:59:18,488 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/15/59'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 15:59:49,397 - INFO - taking picture
MAIN: 2025-03-31 15:59:49,397 - INFO - we take 1139 photos in this while loop
MAIN: 2025-03-31 15:59:49,398 - INFO - /home/pi/Desktop/images/31032025/15/59/image_31032025_15_59_49_30908.jpg
MAIN: 2025-03-31 15:59:49,398 - INFO - duration: 0.6950269159933669
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:00:06,941 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:00:18,271 - INFO - taking picture
MAIN: 2025-03-31 16:00:18,272 - INFO - we take 1140 photos in this while loop
MAIN: 2025-03-31 16:00:18,272 - INFO - /home/pi/Desktop/images/31032025/15/59/image_31032025_16_00_17_28877.jpg
MAIN: 2025-03-31 16:00:18,272 - INFO - duration: 0.6914161320019048
MAIN: 2025-03-31 16:00:18,272 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/00'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:00:49,149 - INFO - taking picture
MAIN: 2025-03-31 16:00:49,150 - INFO - we take 1141 photos in this while loop
MAIN: 2025-03-31 16:00:49,150 - INFO - /home/pi/Desktop/images/31032025/16/00/image_31032025_16_00_48_30876.jpg
MAIN: 2025-03-31 16:00:49,150 - INFO - duration: 0.6932571509969421
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:01:06,068 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:01:19,293 - INFO - taking picture
MAIN: 2025-03-31 16:01:19,294 - INFO - we take 1142 photos in this while loop
MAIN: 2025-03-31 16:01:19,294 - INFO - /home/pi/Desktop/images/31032025/16/00/image_31032025_16_01_18_30142.jpg
MAIN: 2025-03-31 16:01:19,294 - INFO - duration: 0.6951486180041684
MAIN: 2025-03-31 16:01:19,295 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/01'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:01:49,028 - INFO - taking picture
MAIN: 2025-03-31 16:01:49,028 - INFO - we take 1143 photos in this while loop
MAIN: 2025-03-31 16:01:49,029 - INFO - /home/pi/Desktop/images/31032025/16/01/image_31032025_16_01_48_29729.jpg
MAIN: 2025-03-31 16:01:49,029 - INFO - duration: 0.7001304720033659
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:02:06,766 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:02:18,868 - INFO - taking picture
MAIN: 2025-03-31 16:02:18,869 - INFO - we take 1144 photos in this while loop
MAIN: 2025-03-31 16:02:18,869 - INFO - /home/pi/Desktop/images/31032025/16/01/image_31032025_16_02_18_29851.jpg
MAIN: 2025-03-31 16:02:18,869 - INFO - duration: 0.6894744949968299
MAIN: 2025-03-31 16:02:18,870 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/02'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:02:48,449 - INFO - taking picture
MAIN: 2025-03-31 16:02:48,450 - INFO - we take 1145 photos in this while loop
MAIN: 2025-03-31 16:02:48,450 - INFO - /home/pi/Desktop/images/31032025/16/02/image_31032025_16_02_48_29572.jpg
MAIN: 2025-03-31 16:02:48,450 - INFO - duration: 0.6978925660005189
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:03:06,554 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:03:18,442 - INFO - taking picture
MAIN: 2025-03-31 16:03:18,443 - INFO - we take 1146 photos in this while loop
MAIN: 2025-03-31 16:03:18,443 - INFO - /home/pi/Desktop/images/31032025/16/02/image_31032025_16_03_18_29993.jpg
MAIN: 2025-03-31 16:03:18,443 - INFO - duration: 0.6975101269999868
MAIN: 2025-03-31 16:03:18,444 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/03'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:03:49,319 - INFO - taking picture
MAIN: 2025-03-31 16:03:49,320 - INFO - we take 1147 photos in this while loop
MAIN: 2025-03-31 16:03:49,320 - INFO - /home/pi/Desktop/images/31032025/16/03/image_31032025_16_03_48_30874.jpg
MAIN: 2025-03-31 16:03:49,320 - INFO - duration: 0.6992212729965104
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:04:06,168 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:04:18,223 - INFO - taking picture
MAIN: 2025-03-31 16:04:18,223 - INFO - we take 1148 photos in this while loop
MAIN: 2025-03-31 16:04:18,223 - INFO - /home/pi/Desktop/images/31032025/16/03/image_31032025_16_04_17_28904.jpg
MAIN: 2025-03-31 16:04:18,224 - INFO - duration: 0.6986559910001233
MAIN: 2025-03-31 16:04:18,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:04:49,120 - INFO - taking picture
MAIN: 2025-03-31 16:04:49,121 - INFO - we take 1149 photos in this while loop
MAIN: 2025-03-31 16:04:49,121 - INFO - /home/pi/Desktop/images/31032025/16/04/image_31032025_16_04_48_30893.jpg
MAIN: 2025-03-31 16:04:49,121 - INFO - duration: 0.702238206002221
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:05:06,580 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:05:19,323 - INFO - taking picture
MAIN: 2025-03-31 16:05:19,324 - INFO - we take 1150 photos in this while loop
MAIN: 2025-03-31 16:05:19,324 - INFO - /home/pi/Desktop/images/31032025/16/04/image_31032025_16_05_18_30205.jpg
MAIN: 2025-03-31 16:05:19,324 - INFO - duration: 0.6997901009963243
MAIN: 2025-03-31 16:05:19,325 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:05:48,955 - INFO - taking picture
MAIN: 2025-03-31 16:05:48,956 - INFO - we take 1151 photos in this while loop
MAIN: 2025-03-31 16:05:48,956 - INFO - /home/pi/Desktop/images/31032025/16/05/image_31032025_16_05_48_29628.jpg
MAIN: 2025-03-31 16:05:48,956 - INFO - duration: 0.7030148949997965
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:06:06,700 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:06:19,039 - INFO - taking picture
MAIN: 2025-03-31 16:06:19,040 - INFO - we take 1152 photos in this while loop
MAIN: 2025-03-31 16:06:19,040 - INFO - /home/pi/Desktop/images/31032025/16/05/image_31032025_16_06_18_30094.jpg
MAIN: 2025-03-31 16:06:19,041 - INFO - duration: 0.6931193240016
MAIN: 2025-03-31 16:06:19,041 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:06:48,565 - INFO - taking picture
MAIN: 2025-03-31 16:06:48,565 - INFO - we take 1153 photos in this while loop
MAIN: 2025-03-31 16:06:48,565 - INFO - /home/pi/Desktop/images/31032025/16/06/image_31032025_16_06_48_29548.jpg
MAIN: 2025-03-31 16:06:48,566 - INFO - duration: 0.6702510319955763
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:07:06,453 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:07:18,692 - INFO - taking picture
MAIN: 2025-03-31 16:07:18,692 - INFO - we take 1154 photos in this while loop
MAIN: 2025-03-31 16:07:18,692 - INFO - /home/pi/Desktop/images/31032025/16/06/image_31032025_16_07_18_30113.jpg
MAIN: 2025-03-31 16:07:18,692 - INFO - duration: 0.6833432469938998
MAIN: 2025-03-31 16:07:18,693 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:07:48,254 - INFO - taking picture
MAIN: 2025-03-31 16:07:48,255 - INFO - we take 1155 photos in this while loop
MAIN: 2025-03-31 16:07:48,255 - INFO - /home/pi/Desktop/images/31032025/16/07/image_31032025_16_07_47_29550.jpg
MAIN: 2025-03-31 16:07:48,255 - INFO - duration: 0.6952309769985732
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:08:05,955 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:08:18,146 - INFO - taking picture
MAIN: 2025-03-31 16:08:18,147 - INFO - we take 1156 photos in this while loop
MAIN: 2025-03-31 16:08:18,147 - INFO - /home/pi/Desktop/images/31032025/16/07/image_31032025_16_08_17_29890.jpg
MAIN: 2025-03-31 16:08:18,147 - INFO - duration: 0.6966670869951486
MAIN: 2025-03-31 16:08:18,148 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/08'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:08:49,147 - INFO - taking picture
MAIN: 2025-03-31 16:08:49,148 - INFO - we take 1157 photos in this while loop
MAIN: 2025-03-31 16:08:49,148 - INFO - /home/pi/Desktop/images/31032025/16/08/image_31032025_16_08_48_30993.jpg
MAIN: 2025-03-31 16:08:49,148 - INFO - duration: 0.7043671560022631
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:09:05,867 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:09:19,124 - INFO - taking picture
MAIN: 2025-03-31 16:09:19,127 - INFO - we take 1158 photos in this while loop
MAIN: 2025-03-31 16:09:19,128 - INFO - /home/pi/Desktop/images/31032025/16/08/image_31032025_16_09_18_30012.jpg
MAIN: 2025-03-31 16:09:19,128 - INFO - duration: 0.6717407320029452
MAIN: 2025-03-31 16:09:19,128 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:09:48,661 - INFO - taking picture
MAIN: 2025-03-31 16:09:48,661 - INFO - we take 1159 photos in this while loop
MAIN: 2025-03-31 16:09:48,661 - INFO - /home/pi/Desktop/images/31032025/16/09/image_31032025_16_09_48_29512.jpg
MAIN: 2025-03-31 16:09:48,662 - INFO - duration: 0.6928272000004654
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:10:06,655 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:10:18,737 - INFO - taking picture
MAIN: 2025-03-31 16:10:18,737 - INFO - we take 1160 photos in this while loop
MAIN: 2025-03-31 16:10:18,737 - INFO - /home/pi/Desktop/images/31032025/16/09/image_31032025_16_10_18_30073.jpg
MAIN: 2025-03-31 16:10:18,738 - INFO - duration: 0.6959102670007269
MAIN: 2025-03-31 16:10:18,738 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/10'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:10:48,352 - INFO - taking picture
MAIN: 2025-03-31 16:10:48,353 - INFO - we take 1161 photos in this while loop
MAIN: 2025-03-31 16:10:48,353 - INFO - /home/pi/Desktop/images/31032025/16/10/image_31032025_16_10_47_29622.jpg
MAIN: 2025-03-31 16:10:48,353 - INFO - duration: 0.6886687860023812
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:11:06,095 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:11:18,301 - INFO - taking picture
MAIN: 2025-03-31 16:11:18,301 - INFO - we take 1162 photos in this while loop
MAIN: 2025-03-31 16:11:18,302 - INFO - /home/pi/Desktop/images/31032025/16/10/image_31032025_16_11_17_29935.jpg
MAIN: 2025-03-31 16:11:18,302 - INFO - duration: 0.7020356569992146
MAIN: 2025-03-31 16:11:18,302 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/11'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:11:49,172 - INFO - taking picture
MAIN: 2025-03-31 16:11:49,173 - INFO - we take 1163 photos in this while loop
MAIN: 2025-03-31 16:11:49,173 - INFO - /home/pi/Desktop/images/31032025/16/11/image_31032025_16_11_48_30871.jpg
MAIN: 2025-03-31 16:11:49,173 - INFO - duration: 0.7019411560031585
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:12:06,483 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:12:19,352 - INFO - taking picture
MAIN: 2025-03-31 16:12:19,353 - INFO - we take 1164 photos in this while loop
MAIN: 2025-03-31 16:12:19,353 - INFO - /home/pi/Desktop/images/31032025/16/11/image_31032025_16_12_18_30180.jpg
MAIN: 2025-03-31 16:12:19,353 - INFO - duration: 0.7014574300046661
MAIN: 2025-03-31 16:12:19,353 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/12'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:12:49,059 - INFO - taking picture
MAIN: 2025-03-31 16:12:49,059 - INFO - we take 1165 photos in this while loop
MAIN: 2025-03-31 16:12:49,060 - INFO - /home/pi/Desktop/images/31032025/16/12/image_31032025_16_12_48_29703.jpg
MAIN: 2025-03-31 16:12:49,060 - INFO - duration: 0.7044680780018098
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:13:06,582 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:13:19,021 - INFO - taking picture
MAIN: 2025-03-31 16:13:19,021 - INFO - we take 1166 photos in this while loop
MAIN: 2025-03-31 16:13:19,021 - INFO - /home/pi/Desktop/images/31032025/16/12/image_31032025_16_13_18_29957.jpg
MAIN: 2025-03-31 16:13:19,022 - INFO - duration: 0.7089980489981826
MAIN: 2025-03-31 16:13:19,022 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/13'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:13:48,827 - INFO - taking picture
MAIN: 2025-03-31 16:13:48,828 - INFO - we take 1167 photos in this while loop
MAIN: 2025-03-31 16:13:48,828 - INFO - /home/pi/Desktop/images/31032025/16/13/image_31032025_16_13_48_29809.jpg
MAIN: 2025-03-31 16:13:48,828 - INFO - duration: 0.7060849830013467
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:14:05,746 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:14:19,108 - INFO - taking picture
MAIN: 2025-03-31 16:14:19,109 - INFO - we take 1168 photos in this while loop
MAIN: 2025-03-31 16:14:19,109 - INFO - /home/pi/Desktop/images/31032025/16/13/image_31032025_16_14_18_30284.jpg
MAIN: 2025-03-31 16:14:19,109 - INFO - duration: 0.7027479030002723
MAIN: 2025-03-31 16:14:19,109 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/14'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:14:48,736 - INFO - taking picture
MAIN: 2025-03-31 16:14:48,737 - INFO - we take 1169 photos in this while loop
MAIN: 2025-03-31 16:14:48,737 - INFO - /home/pi/Desktop/images/31032025/16/14/image_31032025_16_14_48_29625.jpg
MAIN: 2025-03-31 16:14:48,737 - INFO - duration: 0.7054637980036205
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:15:06,258 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:15:19,026 - INFO - taking picture
MAIN: 2025-03-31 16:15:19,026 - INFO - we take 1170 photos in this while loop
MAIN: 2025-03-31 16:15:19,027 - INFO - /home/pi/Desktop/images/31032025/16/14/image_31032025_16_15_18_30299.jpg
MAIN: 2025-03-31 16:15:19,027 - INFO - duration: 0.6956781030021375
MAIN: 2025-03-31 16:15:19,027 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/15'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:15:48,627 - INFO - taking picture
MAIN: 2025-03-31 16:15:48,627 - INFO - we take 1171 photos in this while loop
MAIN: 2025-03-31 16:15:48,628 - INFO - /home/pi/Desktop/images/31032025/16/15/image_31032025_16_15_48_29626.jpg
MAIN: 2025-03-31 16:15:48,628 - INFO - duration: 0.669825443001173
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:16:06,604 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:16:18,701 - INFO - taking picture
MAIN: 2025-03-31 16:16:18,702 - INFO - we take 1172 photos in this while loop
MAIN: 2025-03-31 16:16:18,702 - INFO - /home/pi/Desktop/images/31032025/16/15/image_31032025_16_16_18_30045.jpg
MAIN: 2025-03-31 16:16:18,702 - INFO - duration: 0.6989202900003875
MAIN: 2025-03-31 16:16:18,702 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/16'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:16:48,230 - INFO - taking picture
MAIN: 2025-03-31 16:16:48,230 - INFO - we take 1173 photos in this while loop
MAIN: 2025-03-31 16:16:48,231 - INFO - /home/pi/Desktop/images/31032025/16/16/image_31032025_16_16_47_29523.jpg
MAIN: 2025-03-31 16:16:48,231 - INFO - duration: 0.7043784900015453
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:17:06,357 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:17:18,193 - INFO - taking picture
MAIN: 2025-03-31 16:17:18,193 - INFO - we take 1174 photos in this while loop
MAIN: 2025-03-31 16:17:18,193 - INFO - /home/pi/Desktop/images/31032025/16/16/image_31032025_16_17_17_29969.jpg
MAIN: 2025-03-31 16:17:18,194 - INFO - duration: 0.6977617689990439
MAIN: 2025-03-31 16:17:18,194 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:17:49,005 - INFO - taking picture
MAIN: 2025-03-31 16:17:49,006 - INFO - we take 1175 photos in this while loop
MAIN: 2025-03-31 16:17:49,006 - INFO - /home/pi/Desktop/images/31032025/16/17/image_31032025_16_17_48_30816.jpg
MAIN: 2025-03-31 16:17:49,006 - INFO - duration: 0.6943246670052758
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:18:06,906 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:18:18,966 - INFO - taking picture
MAIN: 2025-03-31 16:18:18,966 - INFO - we take 1176 photos in this while loop
MAIN: 2025-03-31 16:18:18,966 - INFO - /home/pi/Desktop/images/31032025/16/17/image_31032025_16_18_18_29947.jpg
MAIN: 2025-03-31 16:18:18,967 - INFO - duration: 0.7069209850014886
MAIN: 2025-03-31 16:18:18,967 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/18'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:18:48,587 - INFO - taking picture
MAIN: 2025-03-31 16:18:48,587 - INFO - we take 1177 photos in this while loop
MAIN: 2025-03-31 16:18:48,587 - INFO - /home/pi/Desktop/images/31032025/16/18/image_31032025_16_18_48_29631.jpg
MAIN: 2025-03-31 16:18:48,588 - INFO - duration: 0.6969515829987358
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:19:05,677 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:19:18,753 - INFO - taking picture
MAIN: 2025-03-31 16:19:18,753 - INFO - we take 1178 photos in this while loop
MAIN: 2025-03-31 16:19:18,753 - INFO - /home/pi/Desktop/images/31032025/16/18/image_31032025_16_19_18_30164.jpg
MAIN: 2025-03-31 16:19:18,754 - INFO - duration: 0.6981778179979301
MAIN: 2025-03-31 16:19:18,754 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/19'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:19:48,431 - INFO - taking picture
MAIN: 2025-03-31 16:19:48,432 - INFO - we take 1179 photos in this while loop
MAIN: 2025-03-31 16:19:48,432 - INFO - /home/pi/Desktop/images/31032025/16/19/image_31032025_16_19_48_29689.jpg
MAIN: 2025-03-31 16:19:48,432 - INFO - duration: 0.6867481959998258
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:20:06,686 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:20:18,613 - INFO - taking picture
MAIN: 2025-03-31 16:20:18,614 - INFO - we take 1180 photos in this while loop
MAIN: 2025-03-31 16:20:18,614 - INFO - /home/pi/Desktop/images/31032025/16/19/image_31032025_16_20_18_30185.jpg
MAIN: 2025-03-31 16:20:18,614 - INFO - duration: 0.6836224860016955
MAIN: 2025-03-31 16:20:18,615 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/20'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:20:48,241 - INFO - taking picture
MAIN: 2025-03-31 16:20:48,242 - INFO - we take 1181 photos in this while loop
MAIN: 2025-03-31 16:20:48,242 - INFO - /home/pi/Desktop/images/31032025/16/20/image_31032025_16_20_47_29622.jpg
MAIN: 2025-03-31 16:20:48,242 - INFO - duration: 0.6887499549993663
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:21:05,794 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:21:18,114 - INFO - taking picture
MAIN: 2025-03-31 16:21:18,115 - INFO - we take 1182 photos in this while loop
MAIN: 2025-03-31 16:21:18,115 - INFO - /home/pi/Desktop/images/31032025/16/20/image_31032025_16_21_17_29882.jpg
MAIN: 2025-03-31 16:21:18,115 - INFO - duration: 0.6792416349999257
MAIN: 2025-03-31 16:21:18,116 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/21'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:21:48,963 - INFO - taking picture
MAIN: 2025-03-31 16:21:48,964 - INFO - we take 1183 photos in this while loop
MAIN: 2025-03-31 16:21:48,964 - INFO - /home/pi/Desktop/images/31032025/16/21/image_31032025_16_21_48_30832.jpg
MAIN: 2025-03-31 16:21:48,964 - INFO - duration: 0.6963094689999707
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:22:06,500 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:22:18,815 - INFO - taking picture
MAIN: 2025-03-31 16:22:18,815 - INFO - we take 1184 photos in this while loop
MAIN: 2025-03-31 16:22:18,815 - INFO - /home/pi/Desktop/images/31032025/16/21/image_31032025_16_22_18_29881.jpg
MAIN: 2025-03-31 16:22:18,815 - INFO - duration: 0.6657646229941747
MAIN: 2025-03-31 16:22:18,816 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/22'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:22:48,339 - INFO - taking picture
MAIN: 2025-03-31 16:22:48,339 - INFO - we take 1185 photos in this while loop
MAIN: 2025-03-31 16:22:48,340 - INFO - /home/pi/Desktop/images/31032025/16/22/image_31032025_16_22_47_29494.jpg
MAIN: 2025-03-31 16:22:48,340 - INFO - duration: 0.6951426029991126
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:23:06,394 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:23:18,261 - INFO - taking picture
MAIN: 2025-03-31 16:23:18,262 - INFO - we take 1186 photos in this while loop
MAIN: 2025-03-31 16:23:18,262 - INFO - /home/pi/Desktop/images/31032025/16/22/image_31032025_16_23_17_29942.jpg
MAIN: 2025-03-31 16:23:18,262 - INFO - duration: 0.6748556070015184
MAIN: 2025-03-31 16:23:18,263 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/23'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:23:49,133 - INFO - taking picture
MAIN: 2025-03-31 16:23:49,133 - INFO - we take 1187 photos in this while loop
MAIN: 2025-03-31 16:23:49,133 - INFO - /home/pi/Desktop/images/31032025/16/23/image_31032025_16_23_48_30871.jpg
MAIN: 2025-03-31 16:23:49,134 - INFO - duration: 0.6748128049948718
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:24:06,002 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:24:19,193 - INFO - taking picture
MAIN: 2025-03-31 16:24:19,194 - INFO - we take 1188 photos in this while loop
MAIN: 2025-03-31 16:24:19,194 - INFO - /home/pi/Desktop/images/31032025/16/23/image_31032025_16_24_18_30036.jpg
MAIN: 2025-03-31 16:24:19,194 - INFO - duration: 0.6987195050023729
MAIN: 2025-03-31 16:24:19,194 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/24'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:24:48,789 - INFO - taking picture
MAIN: 2025-03-31 16:24:48,789 - INFO - we take 1189 photos in this while loop
MAIN: 2025-03-31 16:24:48,789 - INFO - /home/pi/Desktop/images/31032025/16/24/image_31032025_16_24_48_29596.jpg
MAIN: 2025-03-31 16:24:48,789 - INFO - duration: 0.697928134999529
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 16:25:06,285 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:25:19,194 - INFO - taking picture
MAIN: 2025-03-31 16:25:19,194 - INFO - we take 1190 photos in this while loop
MAIN: 2025-03-31 16:25:19,195 - INFO - /home/pi/Desktop/images/31032025/16/24/image_31032025_16_25_18_30400.jpg
MAIN: 2025-03-31 16:25:19,195 - INFO - duration: 0.7027482949997648
MAIN: 2025-03-31 16:25:19,195 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:25:48,821 - INFO - taking picture
MAIN: 2025-03-31 16:25:48,822 - INFO - we take 1191 photos in this while loop
MAIN: 2025-03-31 16:25:48,822 - INFO - /home/pi/Desktop/images/31032025/16/25/image_31032025_16_25_48_29630.jpg
MAIN: 2025-03-31 16:25:48,822 - INFO - duration: 0.6995298249967163
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:26:06,110 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:26:18,905 - INFO - taking picture
MAIN: 2025-03-31 16:26:18,906 - INFO - we take 1192 photos in this while loop
MAIN: 2025-03-31 16:26:18,906 - INFO - /home/pi/Desktop/images/31032025/16/25/image_31032025_16_26_18_30088.jpg
MAIN: 2025-03-31 16:26:18,906 - INFO - duration: 0.6949796810004045
MAIN: 2025-03-31 16:26:18,906 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:26:48,501 - INFO - taking picture
MAIN: 2025-03-31 16:26:48,502 - INFO - we take 1193 photos in this while loop
MAIN: 2025-03-31 16:26:48,502 - INFO - /home/pi/Desktop/images/31032025/16/26/image_31032025_16_26_48_29606.jpg
MAIN: 2025-03-31 16:26:48,502 - INFO - duration: 0.6848962560034124
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:27:06,077 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:27:18,486 - INFO - taking picture
MAIN: 2025-03-31 16:27:18,487 - INFO - we take 1194 photos in this while loop
MAIN: 2025-03-31 16:27:18,487 - INFO - /home/pi/Desktop/images/31032025/16/26/image_31032025_16_27_18_29992.jpg
MAIN: 2025-03-31 16:27:18,487 - INFO - duration: 0.6773340610016021
MAIN: 2025-03-31 16:27:18,487 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/27'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:27:48,186 - INFO - taking picture
MAIN: 2025-03-31 16:27:48,187 - INFO - we take 1195 photos in this while loop
MAIN: 2025-03-31 16:27:48,187 - INFO - /home/pi/Desktop/images/31032025/16/27/image_31032025_16_27_47_29679.jpg
MAIN: 2025-03-31 16:27:48,187 - INFO - duration: 0.6983232819984551
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:28:06,843 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:28:18,325 - INFO - taking picture
MAIN: 2025-03-31 16:28:18,325 - INFO - we take 1196 photos in this while loop
MAIN: 2025-03-31 16:28:18,326 - INFO - /home/pi/Desktop/images/31032025/16/27/image_31032025_16_28_17_30154.jpg
MAIN: 2025-03-31 16:28:18,326 - INFO - duration: 0.6824377550001373
MAIN: 2025-03-31 16:28:18,326 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/28'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:28:49,339 - INFO - taking picture
MAIN: 2025-03-31 16:28:49,340 - INFO - we take 1197 photos in this while loop
MAIN: 2025-03-31 16:28:49,340 - INFO - /home/pi/Desktop/images/31032025/16/28/image_31032025_16_28_48_30992.jpg
MAIN: 2025-03-31 16:28:49,340 - INFO - duration: 0.7042951000039466
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 16:29:06,612 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:29:19,333 - INFO - taking picture
MAIN: 2025-03-31 16:29:19,333 - INFO - we take 1198 photos in this while loop
MAIN: 2025-03-31 16:29:19,334 - INFO - /home/pi/Desktop/images/31032025/16/28/image_31032025_16_29_18_30015.jpg
MAIN: 2025-03-31 16:29:19,334 - INFO - duration: 0.6826286729992717
MAIN: 2025-03-31 16:29:19,334 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:29:48,914 - INFO - taking picture
MAIN: 2025-03-31 16:29:48,914 - INFO - we take 1199 photos in this while loop
MAIN: 2025-03-31 16:29:48,914 - INFO - /home/pi/Desktop/images/31032025/16/29/image_31032025_16_29_48_29580.jpg
MAIN: 2025-03-31 16:29:48,914 - INFO - duration: 0.6825481269988813
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:30:06,890 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:30:19,156 - INFO - taking picture
MAIN: 2025-03-31 16:30:19,157 - INFO - we take 1200 photos in this while loop
MAIN: 2025-03-31 16:30:19,157 - INFO - /home/pi/Desktop/images/31032025/16/29/image_31032025_16_30_18_30233.jpg
MAIN: 2025-03-31 16:30:19,157 - INFO - duration: 0.6918228719951003
MAIN: 2025-03-31 16:30:19,157 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:30:48,795 - INFO - taking picture
MAIN: 2025-03-31 16:30:48,795 - INFO - we take 1201 photos in this while loop
MAIN: 2025-03-31 16:30:48,796 - INFO - /home/pi/Desktop/images/31032025/16/30/image_31032025_16_30_48_29636.jpg
MAIN: 2025-03-31 16:30:48,796 - INFO - duration: 0.6940833000044222
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:31:05,857 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:31:18,910 - INFO - taking picture
MAIN: 2025-03-31 16:31:18,911 - INFO - we take 1202 photos in this while loop
MAIN: 2025-03-31 16:31:18,911 - INFO - /home/pi/Desktop/images/31032025/16/30/image_31032025_16_31_18_30106.jpg
MAIN: 2025-03-31 16:31:18,912 - INFO - duration: 0.7029127760033589
MAIN: 2025-03-31 16:31:18,912 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:31:48,594 - INFO - taking picture
MAIN: 2025-03-31 16:31:48,595 - INFO - we take 1203 photos in this while loop
MAIN: 2025-03-31 16:31:48,595 - INFO - /home/pi/Desktop/images/31032025/16/31/image_31032025_16_31_48_29689.jpg
MAIN: 2025-03-31 16:31:48,595 - INFO - duration: 0.6977971599990269
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:32:06,423 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:32:18,481 - INFO - taking picture
MAIN: 2025-03-31 16:32:18,482 - INFO - we take 1204 photos in this while loop
MAIN: 2025-03-31 16:32:18,482 - INFO - /home/pi/Desktop/images/31032025/16/31/image_31032025_16_32_18_29888.jpg
MAIN: 2025-03-31 16:32:18,482 - INFO - duration: 0.6954130960002658
MAIN: 2025-03-31 16:32:18,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:32:49,384 - INFO - taking picture
MAIN: 2025-03-31 16:32:49,384 - INFO - we take 1205 photos in this while loop
MAIN: 2025-03-31 16:32:49,384 - INFO - /home/pi/Desktop/images/31032025/16/32/image_31032025_16_32_49_30912.jpg
MAIN: 2025-03-31 16:32:49,385 - INFO - duration: 0.6856900769998902
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:33:06,484 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:33:19,337 - INFO - taking picture
MAIN: 2025-03-31 16:33:19,337 - INFO - we take 1206 photos in this while loop
MAIN: 2025-03-31 16:33:19,337 - INFO - /home/pi/Desktop/images/31032025/16/32/image_31032025_16_33_18_29941.jpg
MAIN: 2025-03-31 16:33:19,338 - INFO - duration: 0.6971100529990508
MAIN: 2025-03-31 16:33:19,338 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:33:49,044 - INFO - taking picture
MAIN: 2025-03-31 16:33:49,045 - INFO - we take 1207 photos in this while loop
MAIN: 2025-03-31 16:33:49,045 - INFO - /home/pi/Desktop/images/31032025/16/33/image_31032025_16_33_48_29704.jpg
MAIN: 2025-03-31 16:33:49,045 - INFO - duration: 0.7005197170001338
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:34:06,327 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:34:19,241 - INFO - taking picture
MAIN: 2025-03-31 16:34:19,242 - INFO - we take 1208 photos in this while loop
MAIN: 2025-03-31 16:34:19,242 - INFO - /home/pi/Desktop/images/31032025/16/33/image_31032025_16_34_18_30203.jpg
MAIN: 2025-03-31 16:34:19,242 - INFO - duration: 0.6943121969961794
MAIN: 2025-03-31 16:34:19,243 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:34:48,872 - INFO - taking picture
MAIN: 2025-03-31 16:34:48,873 - INFO - we take 1209 photos in this while loop
MAIN: 2025-03-31 16:34:48,873 - INFO - /home/pi/Desktop/images/31032025/16/34/image_31032025_16_34_48_29640.jpg
MAIN: 2025-03-31 16:34:48,873 - INFO - duration: 0.6850107639984344
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 16:35:06,418 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:35:19,092 - INFO - taking picture
MAIN: 2025-03-31 16:35:19,093 - INFO - we take 1210 photos in this while loop
MAIN: 2025-03-31 16:35:19,093 - INFO - /home/pi/Desktop/images/31032025/16/34/image_31032025_16_35_18_30233.jpg
MAIN: 2025-03-31 16:35:19,093 - INFO - duration: 0.6714905780027038
MAIN: 2025-03-31 16:35:19,094 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:35:48,680 - INFO - taking picture
MAIN: 2025-03-31 16:35:48,681 - INFO - we take 1211 photos in this while loop
MAIN: 2025-03-31 16:35:48,681 - INFO - /home/pi/Desktop/images/31032025/16/35/image_31032025_16_35_48_29560.jpg
MAIN: 2025-03-31 16:35:48,681 - INFO - duration: 0.6987729279935593
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:36:06,431 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:36:18,511 - INFO - taking picture
MAIN: 2025-03-31 16:36:18,511 - INFO - we take 1212 photos in this while loop
MAIN: 2025-03-31 16:36:18,511 - INFO - /home/pi/Desktop/images/31032025/16/35/image_31032025_16_36_18_29834.jpg
MAIN: 2025-03-31 16:36:18,512 - INFO - duration: 0.6945398140014731
MAIN: 2025-03-31 16:36:18,512 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:36:49,294 - INFO - taking picture
MAIN: 2025-03-31 16:36:49,295 - INFO - we take 1213 photos in this while loop
MAIN: 2025-03-31 16:36:49,295 - INFO - /home/pi/Desktop/images/31032025/16/36/image_31032025_16_36_48_30786.jpg
MAIN: 2025-03-31 16:36:49,295 - INFO - duration: 0.6910737290018005
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 16:37:06,242 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:37:19,239 - INFO - taking picture
MAIN: 2025-03-31 16:37:19,240 - INFO - we take 1214 photos in this while loop
MAIN: 2025-03-31 16:37:19,240 - INFO - /home/pi/Desktop/images/31032025/16/36/image_31032025_16_37_18_29936.jpg
MAIN: 2025-03-31 16:37:19,241 - INFO - duration: 0.7000253469959716
MAIN: 2025-03-31 16:37:19,241 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:37:48,815 - INFO - taking picture
MAIN: 2025-03-31 16:37:48,815 - INFO - we take 1215 photos in this while loop
MAIN: 2025-03-31 16:37:48,816 - INFO - /home/pi/Desktop/images/31032025/16/37/image_31032025_16_37_48_29574.jpg
MAIN: 2025-03-31 16:37:48,816 - INFO - duration: 0.7007539410042227
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:38:06,726 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:38:18,789 - INFO - taking picture
MAIN: 2025-03-31 16:38:18,789 - INFO - we take 1216 photos in this while loop
MAIN: 2025-03-31 16:38:18,790 - INFO - /home/pi/Desktop/images/31032025/16/37/image_31032025_16_38_18_29980.jpg
MAIN: 2025-03-31 16:38:18,790 - INFO - duration: 0.6943697199967573
MAIN: 2025-03-31 16:38:18,790 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:38:48,464 - INFO - taking picture
MAIN: 2025-03-31 16:38:48,465 - INFO - we take 1217 photos in this while loop
MAIN: 2025-03-31 16:38:48,465 - INFO - /home/pi/Desktop/images/31032025/16/38/image_31032025_16_38_48_29676.jpg
MAIN: 2025-03-31 16:38:48,465 - INFO - duration: 0.6930403900041711
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:39:06,510 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:39:18,428 - INFO - taking picture
MAIN: 2025-03-31 16:39:18,428 - INFO - we take 1218 photos in this while loop
MAIN: 2025-03-31 16:39:18,428 - INFO - /home/pi/Desktop/images/31032025/16/38/image_31032025_16_39_18_29956.jpg
MAIN: 2025-03-31 16:39:18,429 - INFO - duration: 0.6996953839989146
MAIN: 2025-03-31 16:39:18,429 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/39'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:39:49,243 - INFO - taking picture
MAIN: 2025-03-31 16:39:49,244 - INFO - we take 1219 photos in this while loop
MAIN: 2025-03-31 16:39:49,244 - INFO - /home/pi/Desktop/images/31032025/16/39/image_31032025_16_39_48_30835.jpg
MAIN: 2025-03-31 16:39:49,244 - INFO - duration: 0.6803454199980479
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:40:06,308 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:40:19,224 - INFO - taking picture
MAIN: 2025-03-31 16:40:19,225 - INFO - we take 1220 photos in this while loop
MAIN: 2025-03-31 16:40:19,225 - INFO - /home/pi/Desktop/images/31032025/16/39/image_31032025_16_40_18_29967.jpg
MAIN: 2025-03-31 16:40:19,225 - INFO - duration: 0.6941025479973177
MAIN: 2025-03-31 16:40:19,226 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:40:48,812 - INFO - taking picture
MAIN: 2025-03-31 16:40:48,813 - INFO - we take 1221 photos in this while loop
MAIN: 2025-03-31 16:40:48,813 - INFO - /home/pi/Desktop/images/31032025/16/40/image_31032025_16_40_48_29610.jpg
MAIN: 2025-03-31 16:40:48,813 - INFO - duration: 0.6713021559990011
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:41:05,773 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:41:18,915 - INFO - taking picture
MAIN: 2025-03-31 16:41:18,916 - INFO - we take 1222 photos in this while loop
MAIN: 2025-03-31 16:41:18,916 - INFO - /home/pi/Desktop/images/31032025/16/40/image_31032025_16_41_18_30081.jpg
MAIN: 2025-03-31 16:41:18,916 - INFO - duration: 0.693103035002423
MAIN: 2025-03-31 16:41:18,917 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:41:48,520 - INFO - taking picture
MAIN: 2025-03-31 16:41:48,520 - INFO - we take 1223 photos in this while loop
MAIN: 2025-03-31 16:41:48,521 - INFO - /home/pi/Desktop/images/31032025/16/41/image_31032025_16_41_48_29628.jpg
MAIN: 2025-03-31 16:41:48,521 - INFO - duration: 0.66865836600482
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:42:06,518 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:42:18,463 - INFO - taking picture
MAIN: 2025-03-31 16:42:18,463 - INFO - we take 1224 photos in this while loop
MAIN: 2025-03-31 16:42:18,464 - INFO - /home/pi/Desktop/images/31032025/16/41/image_31032025_16_42_18_29908.jpg
MAIN: 2025-03-31 16:42:18,464 - INFO - duration: 0.7027802919983515
MAIN: 2025-03-31 16:42:18,464 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:42:48,122 - INFO - taking picture
MAIN: 2025-03-31 16:42:48,123 - INFO - we take 1225 photos in this while loop
MAIN: 2025-03-31 16:42:48,123 - INFO - /home/pi/Desktop/images/31032025/16/42/image_31032025_16_42_47_29674.jpg
MAIN: 2025-03-31 16:42:48,123 - INFO - duration: 0.687428696997813
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:43:06,165 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:43:18,193 - INFO - taking picture
MAIN: 2025-03-31 16:43:18,193 - INFO - we take 1226 photos in this while loop
MAIN: 2025-03-31 16:43:18,193 - INFO - /home/pi/Desktop/images/31032025/16/42/image_31032025_16_43_17_30067.jpg
MAIN: 2025-03-31 16:43:18,194 - INFO - duration: 0.6904236229966045
MAIN: 2025-03-31 16:43:18,194 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:43:48,993 - INFO - taking picture
MAIN: 2025-03-31 16:43:48,994 - INFO - we take 1227 photos in this while loop
MAIN: 2025-03-31 16:43:48,994 - INFO - /home/pi/Desktop/images/31032025/16/43/image_31032025_16_43_48_30799.jpg
MAIN: 2025-03-31 16:43:48,994 - INFO - duration: 0.6911898469988955
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:44:06,851 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:44:18,713 - INFO - taking picture
MAIN: 2025-03-31 16:44:18,714 - INFO - we take 1228 photos in this while loop
MAIN: 2025-03-31 16:44:18,714 - INFO - /home/pi/Desktop/images/31032025/16/43/image_31032025_16_44_18_29720.jpg
MAIN: 2025-03-31 16:44:18,714 - INFO - duration: 0.6910941419992014
MAIN: 2025-03-31 16:44:18,715 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:44:48,259 - INFO - taking picture
MAIN: 2025-03-31 16:44:48,260 - INFO - we take 1229 photos in this while loop
MAIN: 2025-03-31 16:44:48,260 - INFO - /home/pi/Desktop/images/31032025/16/44/image_31032025_16_44_47_29565.jpg
MAIN: 2025-03-31 16:44:48,260 - INFO - duration: 0.6721875349976472
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:45:06,478 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:45:18,399 - INFO - taking picture
MAIN: 2025-03-31 16:45:18,399 - INFO - we take 1230 photos in this while loop
MAIN: 2025-03-31 16:45:18,400 - INFO - /home/pi/Desktop/images/31032025/16/44/image_31032025_16_45_17_30126.jpg
MAIN: 2025-03-31 16:45:18,400 - INFO - duration: 0.6849794420049875
MAIN: 2025-03-31 16:45:18,400 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/45'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:45:49,303 - INFO - taking picture
MAIN: 2025-03-31 16:45:49,304 - INFO - we take 1231 photos in this while loop
MAIN: 2025-03-31 16:45:49,304 - INFO - /home/pi/Desktop/images/31032025/16/45/image_31032025_16_45_48_30890.jpg
MAIN: 2025-03-31 16:45:49,304 - INFO - duration: 0.6984617150010308
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:46:06,430 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:46:19,074 - INFO - taking picture
MAIN: 2025-03-31 16:46:19,075 - INFO - we take 1232 photos in this while loop
MAIN: 2025-03-31 16:46:19,075 - INFO - /home/pi/Desktop/images/31032025/16/45/image_31032025_16_46_18_29803.jpg
MAIN: 2025-03-31 16:46:19,075 - INFO - duration: 0.6666837879965897
MAIN: 2025-03-31 16:46:19,076 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/46'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:46:48,691 - INFO - taking picture
MAIN: 2025-03-31 16:46:48,692 - INFO - we take 1233 photos in this while loop
MAIN: 2025-03-31 16:46:48,692 - INFO - /home/pi/Desktop/images/31032025/16/46/image_31032025_16_46_48_29581.jpg
MAIN: 2025-03-31 16:46:48,692 - INFO - duration: 0.7022221209990676
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:47:06,173 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:47:18,451 - INFO - taking picture
MAIN: 2025-03-31 16:47:18,452 - INFO - we take 1234 photos in this while loop
MAIN: 2025-03-31 16:47:18,452 - INFO - /home/pi/Desktop/images/31032025/16/46/image_31032025_16_47_18_29766.jpg
MAIN: 2025-03-31 16:47:18,452 - INFO - duration: 0.6948770260059973
MAIN: 2025-03-31 16:47:18,452 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/47'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:47:49,218 - INFO - taking picture
MAIN: 2025-03-31 16:47:49,218 - INFO - we take 1235 photos in this while loop
MAIN: 2025-03-31 16:47:49,219 - INFO - /home/pi/Desktop/images/31032025/16/47/image_31032025_16_47_48_30785.jpg
MAIN: 2025-03-31 16:47:49,219 - INFO - duration: 0.676704317003896
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:48:06,705 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:48:19,309 - INFO - taking picture
MAIN: 2025-03-31 16:48:19,310 - INFO - we take 1236 photos in this while loop
MAIN: 2025-03-31 16:48:19,310 - INFO - /home/pi/Desktop/images/31032025/16/47/image_31032025_16_48_18_30097.jpg
MAIN: 2025-03-31 16:48:19,310 - INFO - duration: 0.670665680001548
MAIN: 2025-03-31 16:48:19,311 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/48'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:48:48,967 - INFO - taking picture
MAIN: 2025-03-31 16:48:48,968 - INFO - we take 1237 photos in this while loop
MAIN: 2025-03-31 16:48:48,968 - INFO - /home/pi/Desktop/images/31032025/16/48/image_31032025_16_48_48_29653.jpg
MAIN: 2025-03-31 16:48:48,968 - INFO - duration: 0.6753356469998835
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:49:06,551 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:49:18,880 - INFO - taking picture
MAIN: 2025-03-31 16:49:18,880 - INFO - we take 1238 photos in this while loop
MAIN: 2025-03-31 16:49:18,881 - INFO - /home/pi/Desktop/images/31032025/16/48/image_31032025_16_49_18_29914.jpg
MAIN: 2025-03-31 16:49:18,881 - INFO - duration: 0.6739018560037948
MAIN: 2025-03-31 16:49:18,881 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/49'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:49:48,492 - INFO - taking picture
MAIN: 2025-03-31 16:49:48,492 - INFO - we take 1239 photos in this while loop
MAIN: 2025-03-31 16:49:48,493 - INFO - /home/pi/Desktop/images/31032025/16/49/image_31032025_16_49_48_29585.jpg
MAIN: 2025-03-31 16:49:48,493 - INFO - duration: 0.7007142930015107
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:50:06,555 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:50:18,957 - INFO - taking picture
MAIN: 2025-03-31 16:50:18,958 - INFO - we take 1240 photos in this while loop
MAIN: 2025-03-31 16:50:18,958 - INFO - /home/pi/Desktop/images/31032025/16/49/image_31032025_16_50_18_30488.jpg
MAIN: 2025-03-31 16:50:18,958 - INFO - duration: 0.6783737080040737
MAIN: 2025-03-31 16:50:18,959 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:50:48,544 - INFO - taking picture
MAIN: 2025-03-31 16:50:48,544 - INFO - we take 1241 photos in this while loop
MAIN: 2025-03-31 16:50:48,544 - INFO - /home/pi/Desktop/images/31032025/16/50/image_31032025_16_50_48_29570.jpg
MAIN: 2025-03-31 16:50:48,544 - INFO - duration: 0.6939439180059708
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:51:05,896 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:51:18,378 - INFO - taking picture
MAIN: 2025-03-31 16:51:18,378 - INFO - we take 1242 photos in this while loop
MAIN: 2025-03-31 16:51:18,379 - INFO - /home/pi/Desktop/images/31032025/16/50/image_31032025_16_51_17_29853.jpg
MAIN: 2025-03-31 16:51:18,379 - INFO - duration: 0.6750866809961735
MAIN: 2025-03-31 16:51:18,379 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/51'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:51:49,270 - INFO - taking picture
MAIN: 2025-03-31 16:51:49,271 - INFO - we take 1243 photos in this while loop
MAIN: 2025-03-31 16:51:49,271 - INFO - /home/pi/Desktop/images/31032025/16/51/image_31032025_16_51_48_30869.jpg
MAIN: 2025-03-31 16:51:49,271 - INFO - duration: 0.6985784799981047
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:52:06,687 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:52:18,236 - INFO - taking picture
MAIN: 2025-03-31 16:52:18,237 - INFO - we take 1244 photos in this while loop
MAIN: 2025-03-31 16:52:18,237 - INFO - /home/pi/Desktop/images/31032025/16/51/image_31032025_16_52_17_28976.jpg
MAIN: 2025-03-31 16:52:18,237 - INFO - duration: 0.6882661880008527
MAIN: 2025-03-31 16:52:18,238 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/52'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:52:49,128 - INFO - taking picture
MAIN: 2025-03-31 16:52:49,128 - INFO - we take 1245 photos in this while loop
MAIN: 2025-03-31 16:52:49,128 - INFO - /home/pi/Desktop/images/31032025/16/52/image_31032025_16_52_48_30903.jpg
MAIN: 2025-03-31 16:52:49,129 - INFO - duration: 0.6758767139981501
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:53:06,609 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:53:19,086 - INFO - taking picture
MAIN: 2025-03-31 16:53:19,087 - INFO - we take 1246 photos in this while loop
MAIN: 2025-03-31 16:53:19,087 - INFO - /home/pi/Desktop/images/31032025/16/52/image_31032025_16_53_18_29966.jpg
MAIN: 2025-03-31 16:53:19,087 - INFO - duration: 0.6679971350022242
MAIN: 2025-03-31 16:53:19,088 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/53'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:53:48,670 - INFO - taking picture
MAIN: 2025-03-31 16:53:48,671 - INFO - we take 1247 photos in this while loop
MAIN: 2025-03-31 16:53:48,671 - INFO - /home/pi/Desktop/images/31032025/16/53/image_31032025_16_53_48_29579.jpg
MAIN: 2025-03-31 16:53:48,671 - INFO - duration: 0.6720534710038919
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:54:07,058 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:54:18,842 - INFO - taking picture
MAIN: 2025-03-31 16:54:18,842 - INFO - we take 1248 photos in this while loop
MAIN: 2025-03-31 16:54:18,842 - INFO - /home/pi/Desktop/images/31032025/16/53/image_31032025_16_54_18_30145.jpg
MAIN: 2025-03-31 16:54:18,843 - INFO - duration: 0.6984929800019017
MAIN: 2025-03-31 16:54:18,843 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:54:48,516 - INFO - taking picture
MAIN: 2025-03-31 16:54:48,516 - INFO - we take 1249 photos in this while loop
MAIN: 2025-03-31 16:54:48,516 - INFO - /home/pi/Desktop/images/31032025/16/54/image_31032025_16_54_48_29698.jpg
MAIN: 2025-03-31 16:54:48,517 - INFO - duration: 0.6735556730054668
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:55:06,045 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:55:18,696 - INFO - taking picture
MAIN: 2025-03-31 16:55:18,696 - INFO - we take 1250 photos in this while loop
MAIN: 2025-03-31 16:55:18,696 - INFO - /home/pi/Desktop/images/31032025/16/54/image_31032025_16_55_18_30163.jpg
MAIN: 2025-03-31 16:55:18,697 - INFO - duration: 0.6895877169954474
MAIN: 2025-03-31 16:55:18,697 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/55'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:55:48,385 - INFO - taking picture
MAIN: 2025-03-31 16:55:48,386 - INFO - we take 1251 photos in this while loop
MAIN: 2025-03-31 16:55:48,386 - INFO - /home/pi/Desktop/images/31032025/16/55/image_31032025_16_55_48_29679.jpg
MAIN: 2025-03-31 16:55:48,386 - INFO - duration: 0.7001713889985695
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:56:05,941 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:56:18,401 - INFO - taking picture
MAIN: 2025-03-31 16:56:18,402 - INFO - we take 1252 photos in this while loop
MAIN: 2025-03-31 16:56:18,402 - INFO - /home/pi/Desktop/images/31032025/16/55/image_31032025_16_56_18_30015.jpg
MAIN: 2025-03-31 16:56:18,402 - INFO - duration: 0.700575511000352
MAIN: 2025-03-31 16:56:18,403 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/56'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:56:49,316 - INFO - taking picture
MAIN: 2025-03-31 16:56:49,317 - INFO - we take 1253 photos in this while loop
MAIN: 2025-03-31 16:56:49,317 - INFO - /home/pi/Desktop/images/31032025/16/56/image_31032025_16_56_48_30914.jpg
MAIN: 2025-03-31 16:56:49,317 - INFO - duration: 0.7009085859972402
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:57:05,976 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:57:19,312 - INFO - taking picture
MAIN: 2025-03-31 16:57:19,312 - INFO - we take 1254 photos in this while loop
MAIN: 2025-03-31 16:57:19,312 - INFO - /home/pi/Desktop/images/31032025/16/56/image_31032025_16_57_18_30027.jpg
MAIN: 2025-03-31 16:57:19,313 - INFO - duration: 0.6692840870018699
MAIN: 2025-03-31 16:57:19,313 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/57'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:57:48,903 - INFO - taking picture
MAIN: 2025-03-31 16:57:48,903 - INFO - we take 1255 photos in this while loop
MAIN: 2025-03-31 16:57:48,903 - INFO - /home/pi/Desktop/images/31032025/16/57/image_31032025_16_57_48_29562.jpg
MAIN: 2025-03-31 16:57:48,904 - INFO - duration: 0.6976624710005126
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:58:06,523 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:58:18,874 - INFO - taking picture
MAIN: 2025-03-31 16:58:18,875 - INFO - we take 1256 photos in this while loop
MAIN: 2025-03-31 16:58:18,875 - INFO - /home/pi/Desktop/images/31032025/16/57/image_31032025_16_58_18_29977.jpg
MAIN: 2025-03-31 16:58:18,875 - INFO - duration: 0.6918467299983604
MAIN: 2025-03-31 16:58:18,876 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/58'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:58:48,391 - INFO - taking picture
MAIN: 2025-03-31 16:58:48,392 - INFO - we take 1257 photos in this while loop
MAIN: 2025-03-31 16:58:48,392 - INFO - /home/pi/Desktop/images/31032025/16/58/image_31032025_16_58_48_29551.jpg
MAIN: 2025-03-31 16:58:48,392 - INFO - duration: 0.6577421410038369
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 16:59:06,159 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:59:18,265 - INFO - taking picture
MAIN: 2025-03-31 16:59:18,266 - INFO - we take 1258 photos in this while loop
MAIN: 2025-03-31 16:59:18,266 - INFO - /home/pi/Desktop/images/31032025/16/58/image_31032025_16_59_17_29892.jpg
MAIN: 2025-03-31 16:59:18,266 - INFO - duration: 0.6388664590049302
MAIN: 2025-03-31 16:59:18,267 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/16/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 16:59:49,212 - INFO - taking picture
MAIN: 2025-03-31 16:59:49,213 - INFO - we take 1259 photos in this while loop
MAIN: 2025-03-31 16:59:49,213 - INFO - /home/pi/Desktop/images/31032025/16/59/image_31032025_16_59_48_30916.jpg
MAIN: 2025-03-31 16:59:49,213 - INFO - duration: 0.6694912360035232
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:00:07,462 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0

 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)MAIN: 2025-03-31 17:00:18,441 - INFO - taking picture
MAIN: 2025-03-31 17:00:18,442 - INFO - we take 1260 photos in this while loop
MAIN: 2025-03-31 17:00:18,442 - INFO - /home/pi/Desktop/images/31032025/16/59/image_31032025_17_00_18_29218.jpg
MAIN: 2025-03-31 17:00:18,442 - INFO - duration: 0.6801772999970126
MAIN: 2025-03-31 17:00:18,442 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:00:48,107 - INFO - taking picture
MAIN: 2025-03-31 17:00:48,108 - INFO - we take 1261 photos in this while loop
MAIN: 2025-03-31 17:00:48,108 - INFO - /home/pi/Desktop/images/31032025/17/00/image_31032025_17_00_47_29676.jpg
MAIN: 2025-03-31 17:00:48,108 - INFO - duration: 0.6705178799966234
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:01:06,377 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:01:19,299 - INFO - taking picture
MAIN: 2025-03-31 17:01:19,300 - INFO - we take 1262 photos in this while loop
MAIN: 2025-03-31 17:01:19,300 - INFO - /home/pi/Desktop/images/31032025/17/00/image_31032025_17_01_18_31169.jpg
MAIN: 2025-03-31 17:01:19,300 - INFO - duration: 0.6927829330015811
MAIN: 2025-03-31 17:01:19,300 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:01:48,924 - INFO - taking picture
MAIN: 2025-03-31 17:01:48,925 - INFO - we take 1263 photos in this while loop
MAIN: 2025-03-31 17:01:48,925 - INFO - /home/pi/Desktop/images/31032025/17/01/image_31032025_17_01_48_29617.jpg
MAIN: 2025-03-31 17:01:48,925 - INFO - duration: 0.7008664419990964
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:02:06,821 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:02:18,944 - INFO - taking picture
MAIN: 2025-03-31 17:02:18,945 - INFO - we take 1264 photos in this while loop
MAIN: 2025-03-31 17:02:18,945 - INFO - /home/pi/Desktop/images/31032025/17/01/image_31032025_17_02_18_30022.jpg
MAIN: 2025-03-31 17:02:18,945 - INFO - duration: 0.6981621520026238
MAIN: 2025-03-31 17:02:18,946 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:02:48,516 - INFO - taking picture
MAIN: 2025-03-31 17:02:48,516 - INFO - we take 1265 photos in this while loop
MAIN: 2025-03-31 17:02:48,516 - INFO - /home/pi/Desktop/images/31032025/17/02/image_31032025_17_02_48_29579.jpg
MAIN: 2025-03-31 17:02:48,517 - INFO - duration: 0.6904040610024822
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:03:06,254 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:03:18,343 - INFO - taking picture
MAIN: 2025-03-31 17:03:18,343 - INFO - we take 1266 photos in this while loop
MAIN: 2025-03-31 17:03:18,343 - INFO - /home/pi/Desktop/images/31032025/17/02/image_31032025_17_03_17_29844.jpg
MAIN: 2025-03-31 17:03:18,344 - INFO - duration: 0.6725513420024072
MAIN: 2025-03-31 17:03:18,344 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:03:49,313 - INFO - taking picture
MAIN: 2025-03-31 17:03:49,314 - INFO - we take 1267 photos in this while loop
MAIN: 2025-03-31 17:03:49,314 - INFO - /home/pi/Desktop/images/31032025/17/03/image_31032025_17_03_48_30945.jpg
MAIN: 2025-03-31 17:03:49,314 - INFO - duration: 0.6981991399952676
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:04:05,717 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:04:18,140 - INFO - taking picture
MAIN: 2025-03-31 17:04:18,141 - INFO - we take 1268 photos in this while loop
MAIN: 2025-03-31 17:04:18,141 - INFO - /home/pi/Desktop/images/31032025/17/03/image_31032025_17_04_17_28827.jpg
MAIN: 2025-03-31 17:04:18,141 - INFO - duration: 0.6975598270000773
MAIN: 2025-03-31 17:04:18,141 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:04:49,062 - INFO - taking picture
MAIN: 2025-03-31 17:04:49,062 - INFO - we take 1269 photos in this while loop
MAIN: 2025-03-31 17:04:49,062 - INFO - /home/pi/Desktop/images/31032025/17/04/image_31032025_17_04_48_30919.jpg
MAIN: 2025-03-31 17:04:49,063 - INFO - duration: 0.6996789499971783
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:05:06,113 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:05:19,404 - INFO - taking picture
MAIN: 2025-03-31 17:05:19,405 - INFO - we take 1270 photos in this while loop
MAIN: 2025-03-31 17:05:19,405 - INFO - /home/pi/Desktop/images/31032025/17/04/image_31032025_17_05_19_30320.jpg
MAIN: 2025-03-31 17:05:19,405 - INFO - duration: 0.7223049769963836
MAIN: 2025-03-31 17:05:19,406 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/05'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:05:48,850 - INFO - taking picture
MAIN: 2025-03-31 17:05:48,850 - INFO - we take 1271 photos in this while loop
MAIN: 2025-03-31 17:05:48,851 - INFO - /home/pi/Desktop/images/31032025/17/05/image_31032025_17_05_48_29520.jpg
MAIN: 2025-03-31 17:05:48,851 - INFO - duration: 0.6475424890013528
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:06:06,705 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:06:19,120 - INFO - taking picture
MAIN: 2025-03-31 17:06:19,121 - INFO - we take 1272 photos in this while loop
MAIN: 2025-03-31 17:06:19,121 - INFO - /home/pi/Desktop/images/31032025/17/05/image_31032025_17_06_18_30274.jpg
MAIN: 2025-03-31 17:06:19,121 - INFO - duration: 0.6438350390017149
MAIN: 2025-03-31 17:06:19,122 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:06:48,793 - INFO - taking picture
MAIN: 2025-03-31 17:06:48,793 - INFO - we take 1273 photos in this while loop
MAIN: 2025-03-31 17:06:48,794 - INFO - /home/pi/Desktop/images/31032025/17/06/image_31032025_17_06_48_29661.jpg
MAIN: 2025-03-31 17:06:48,794 - INFO - duration: 0.6551987209968502
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:07:06,236 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:07:18,751 - INFO - taking picture
MAIN: 2025-03-31 17:07:18,752 - INFO - we take 1274 photos in this while loop
MAIN: 2025-03-31 17:07:18,752 - INFO - /home/pi/Desktop/images/31032025/17/06/image_31032025_17_07_18_29971.jpg
MAIN: 2025-03-31 17:07:18,752 - INFO - duration: 0.6421955420009908
MAIN: 2025-03-31 17:07:18,752 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:07:48,422 - INFO - taking picture
MAIN: 2025-03-31 17:07:48,423 - INFO - we take 1275 photos in this while loop
MAIN: 2025-03-31 17:07:48,423 - INFO - /home/pi/Desktop/images/31032025/17/07/image_31032025_17_07_48_29615.jpg
MAIN: 2025-03-31 17:07:48,423 - INFO - duration: 0.6975686750010937
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:08:06,885 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:08:18,496 - INFO - taking picture
MAIN: 2025-03-31 17:08:18,497 - INFO - we take 1276 photos in this while loop
MAIN: 2025-03-31 17:08:18,497 - INFO - /home/pi/Desktop/images/31032025/17/07/image_31032025_17_08_18_30129.jpg
MAIN: 2025-03-31 17:08:18,497 - INFO - duration: 0.6423154620060814
MAIN: 2025-03-31 17:08:18,498 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:08:48,197 - INFO - taking picture
MAIN: 2025-03-31 17:08:48,197 - INFO - we take 1277 photos in this while loop
MAIN: 2025-03-31 17:08:48,198 - INFO - /home/pi/Desktop/images/31032025/17/08/image_31032025_17_08_47_29641.jpg
MAIN: 2025-03-31 17:08:48,198 - INFO - duration: 0.7016586469981121
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 17:09:05,821 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:09:19,333 - INFO - taking picture
MAIN: 2025-03-31 17:09:19,334 - INFO - we take 1278 photos in this while loop
MAIN: 2025-03-31 17:09:19,334 - INFO - /home/pi/Desktop/images/31032025/17/08/image_31032025_17_09_18_31179.jpg
MAIN: 2025-03-31 17:09:19,334 - INFO - duration: 0.6590511489994242
MAIN: 2025-03-31 17:09:19,335 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:09:48,966 - INFO - taking picture
MAIN: 2025-03-31 17:09:48,966 - INFO - we take 1279 photos in this while loop
MAIN: 2025-03-31 17:09:48,966 - INFO - /home/pi/Desktop/images/31032025/17/09/image_31032025_17_09_48_29620.jpg
MAIN: 2025-03-31 17:09:48,967 - INFO - duration: 0.6704048219980905
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:10:07,101 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:10:18,101 - INFO - taking picture
MAIN: 2025-03-31 17:10:18,102 - INFO - we take 1280 photos in this while loop
MAIN: 2025-03-31 17:10:18,102 - INFO - /home/pi/Desktop/images/31032025/17/09/image_31032025_17_10_17_29162.jpg
MAIN: 2025-03-31 17:10:18,102 - INFO - duration: 0.6437848080022377
MAIN: 2025-03-31 17:10:18,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:10:48,972 - INFO - taking picture
MAIN: 2025-03-31 17:10:48,973 - INFO - we take 1281 photos in this while loop
MAIN: 2025-03-31 17:10:48,973 - INFO - /home/pi/Desktop/images/31032025/17/10/image_31032025_17_10_48_30837.jpg
MAIN: 2025-03-31 17:10:48,973 - INFO - duration: 0.6771054519995232
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 17:11:06,187 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:11:19,086 - INFO - taking picture
MAIN: 2025-03-31 17:11:19,086 - INFO - we take 1282 photos in this while loop
MAIN: 2025-03-31 17:11:19,086 - INFO - /home/pi/Desktop/images/31032025/17/10/image_31032025_17_11_18_30105.jpg
MAIN: 2025-03-31 17:11:19,087 - INFO - duration: 0.6846446440031286
MAIN: 2025-03-31 17:11:19,087 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:11:48,806 - INFO - taking picture
MAIN: 2025-03-31 17:11:48,806 - INFO - we take 1283 photos in this while loop
MAIN: 2025-03-31 17:11:48,807 - INFO - /home/pi/Desktop/images/31032025/17/11/image_31032025_17_11_48_29730.jpg
MAIN: 2025-03-31 17:11:48,807 - INFO - duration: 0.6739022239999031
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:12:06,647 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:12:18,764 - INFO - taking picture
MAIN: 2025-03-31 17:12:18,765 - INFO - we take 1284 photos in this while loop
MAIN: 2025-03-31 17:12:18,765 - INFO - /home/pi/Desktop/images/31032025/17/11/image_31032025_17_12_18_29950.jpg
MAIN: 2025-03-31 17:12:18,765 - INFO - duration: 0.6822122480007238
MAIN: 2025-03-31 17:12:18,766 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/12'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:12:48,584 - INFO - taking picture
MAIN: 2025-03-31 17:12:48,584 - INFO - we take 1285 photos in this while loop
MAIN: 2025-03-31 17:12:48,585 - INFO - /home/pi/Desktop/images/31032025/17/12/image_31032025_17_12_48_29828.jpg
MAIN: 2025-03-31 17:12:48,585 - INFO - duration: 0.6734474270051578
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 17:13:06,198 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:13:18,599 - INFO - taking picture
MAIN: 2025-03-31 17:13:18,599 - INFO - we take 1286 photos in this while loop
MAIN: 2025-03-31 17:13:18,599 - INFO - /home/pi/Desktop/images/31032025/17/12/image_31032025_17_13_18_30008.jpg
MAIN: 2025-03-31 17:13:18,599 - INFO - duration: 0.6797732300037751
MAIN: 2025-03-31 17:13:18,600 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/13'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:13:48,350 - INFO - taking picture
MAIN: 2025-03-31 17:13:48,351 - INFO - we take 1287 photos in this while loop
MAIN: 2025-03-31 17:13:48,351 - INFO - /home/pi/Desktop/images/31032025/17/13/image_31032025_17_13_47_29754.jpg
MAIN: 2025-03-31 17:13:48,351 - INFO - duration: 0.6772785110006225
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:14:06,790 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:14:18,624 - INFO - taking picture
MAIN: 2025-03-31 17:14:18,625 - INFO - we take 1288 photos in this while loop
MAIN: 2025-03-31 17:14:18,625 - INFO - /home/pi/Desktop/images/31032025/17/13/image_31032025_17_14_18_30254.jpg
MAIN: 2025-03-31 17:14:18,625 - INFO - duration: 0.6968346759967972
MAIN: 2025-03-31 17:14:18,626 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/14'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:14:48,370 - INFO - taking picture
MAIN: 2025-03-31 17:14:48,371 - INFO - we take 1289 photos in this while loop
MAIN: 2025-03-31 17:14:48,371 - INFO - /home/pi/Desktop/images/31032025/17/14/image_31032025_17_14_47_29760.jpg
MAIN: 2025-03-31 17:14:48,371 - INFO - duration: 0.6821563609992154
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:15:06,965 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:15:18,628 - INFO - taking picture
MAIN: 2025-03-31 17:15:18,629 - INFO - we take 1290 photos in this while loop
MAIN: 2025-03-31 17:15:18,629 - INFO - /home/pi/Desktop/images/31032025/17/14/image_31032025_17_15_18_30253.jpg
MAIN: 2025-03-31 17:15:18,629 - INFO - duration: 0.6861919520015363
MAIN: 2025-03-31 17:15:18,629 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:15:48,206 - INFO - taking picture
MAIN: 2025-03-31 17:15:48,206 - INFO - we take 1291 photos in this while loop
MAIN: 2025-03-31 17:15:48,207 - INFO - /home/pi/Desktop/images/31032025/17/15/image_31032025_17_15_47_29567.jpg
MAIN: 2025-03-31 17:15:48,207 - INFO - duration: 0.6961876969944569
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:16:05,820 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:16:18,200 - INFO - taking picture
MAIN: 2025-03-31 17:16:18,200 - INFO - we take 1292 photos in this while loop
MAIN: 2025-03-31 17:16:18,200 - INFO - /home/pi/Desktop/images/31032025/17/15/image_31032025_17_16_17_29990.jpg
MAIN: 2025-03-31 17:16:18,201 - INFO - duration: 0.6991782859986415
MAIN: 2025-03-31 17:16:18,201 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:16:49,173 - INFO - taking picture
MAIN: 2025-03-31 17:16:49,173 - INFO - we take 1293 photos in this while loop
MAIN: 2025-03-31 17:16:49,174 - INFO - /home/pi/Desktop/images/31032025/17/16/image_31032025_17_16_48_30983.jpg
MAIN: 2025-03-31 17:16:49,174 - INFO - duration: 0.688412518997211
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:17:05,714 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:17:19,050 - INFO - taking picture
MAIN: 2025-03-31 17:17:19,051 - INFO - we take 1294 photos in this while loop
MAIN: 2025-03-31 17:17:19,051 - INFO - /home/pi/Desktop/images/31032025/17/16/image_31032025_17_17_18_29876.jpg
MAIN: 2025-03-31 17:17:19,051 - INFO - duration: 0.6890502410024055
MAIN: 2025-03-31 17:17:19,052 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:17:48,722 - INFO - taking picture
MAIN: 2025-03-31 17:17:48,722 - INFO - we take 1295 photos in this while loop
MAIN: 2025-03-31 17:17:48,723 - INFO - /home/pi/Desktop/images/31032025/17/17/image_31032025_17_17_48_29667.jpg
MAIN: 2025-03-31 17:17:48,723 - INFO - duration: 0.6935230669987504
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:18:06,524 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:18:18,647 - INFO - taking picture
MAIN: 2025-03-31 17:18:18,647 - INFO - we take 1296 photos in this while loop
MAIN: 2025-03-31 17:18:18,647 - INFO - /home/pi/Desktop/images/31032025/17/17/image_31032025_17_18_18_29929.jpg
MAIN: 2025-03-31 17:18:18,647 - INFO - duration: 0.6886050059983972
MAIN: 2025-03-31 17:18:18,648 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:18:48,303 - INFO - taking picture
MAIN: 2025-03-31 17:18:48,304 - INFO - we take 1297 photos in this while loop
MAIN: 2025-03-31 17:18:48,304 - INFO - /home/pi/Desktop/images/31032025/17/18/image_31032025_17_18_47_29645.jpg
MAIN: 2025-03-31 17:18:48,304 - INFO - duration: 0.6992425189964706
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:19:06,472 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:19:18,450 - INFO - taking picture
MAIN: 2025-03-31 17:19:18,450 - INFO - we take 1298 photos in this while loop
MAIN: 2025-03-31 17:19:18,450 - INFO - /home/pi/Desktop/images/31032025/17/18/image_31032025_17_19_18_30149.jpg
MAIN: 2025-03-31 17:19:18,451 - INFO - duration: 0.6966096649994142
MAIN: 2025-03-31 17:19:18,451 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:19:48,120 - INFO - taking picture
MAIN: 2025-03-31 17:19:48,121 - INFO - we take 1299 photos in this while loop
MAIN: 2025-03-31 17:19:48,121 - INFO - /home/pi/Desktop/images/31032025/17/19/image_31032025_17_19_47_29695.jpg
MAIN: 2025-03-31 17:19:48,121 - INFO - duration: 0.671956702004536
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:20:07,132 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:20:18,480 - INFO - taking picture
MAIN: 2025-03-31 17:20:18,481 - INFO - we take 1300 photos in this while loop
MAIN: 2025-03-31 17:20:18,481 - INFO - /home/pi/Desktop/images/31032025/17/19/image_31032025_17_20_18_30330.jpg
MAIN: 2025-03-31 17:20:18,481 - INFO - duration: 0.7013013530013268
MAIN: 2025-03-31 17:20:18,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:20:48,133 - INFO - taking picture
MAIN: 2025-03-31 17:20:48,134 - INFO - we take 1301 photos in this while loop
MAIN: 2025-03-31 17:20:48,134 - INFO - /home/pi/Desktop/images/31032025/17/20/image_31032025_17_20_47_29667.jpg
MAIN: 2025-03-31 17:20:48,134 - INFO - duration: 0.6871610469970619
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:21:05,932 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:21:18,210 - INFO - taking picture
MAIN: 2025-03-31 17:21:18,211 - INFO - we take 1302 photos in this while loop
MAIN: 2025-03-31 17:21:18,211 - INFO - /home/pi/Desktop/images/31032025/17/20/image_31032025_17_21_17_30069.jpg
MAIN: 2025-03-31 17:21:18,211 - INFO - duration: 0.6950731920005637
MAIN: 2025-03-31 17:21:18,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:21:49,074 - INFO - taking picture
MAIN: 2025-03-31 17:21:49,075 - INFO - we take 1303 photos in this while loop
MAIN: 2025-03-31 17:21:49,075 - INFO - /home/pi/Desktop/images/31032025/17/21/image_31032025_17_21_48_30912.jpg
MAIN: 2025-03-31 17:21:49,075 - INFO - duration: 0.6465939170011552
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:22:06,443 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:22:18,154 - INFO - taking picture
MAIN: 2025-03-31 17:22:18,155 - INFO - we take 1304 photos in this while loop
MAIN: 2025-03-31 17:22:18,155 - INFO - /home/pi/Desktop/images/31032025/17/21/image_31032025_17_22_17_29025.jpg
MAIN: 2025-03-31 17:22:18,155 - INFO - duration: 0.7008947719950811
MAIN: 2025-03-31 17:22:18,156 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:22:49,119 - INFO - taking picture
MAIN: 2025-03-31 17:22:49,120 - INFO - we take 1305 photos in this while loop
MAIN: 2025-03-31 17:22:49,120 - INFO - /home/pi/Desktop/images/31032025/17/22/image_31032025_17_22_48_30991.jpg
MAIN: 2025-03-31 17:22:49,120 - INFO - duration: 0.674121178999485
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:23:06,341 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:23:18,196 - INFO - taking picture
MAIN: 2025-03-31 17:23:18,196 - INFO - we take 1306 photos in this while loop
MAIN: 2025-03-31 17:23:18,196 - INFO - /home/pi/Desktop/images/31032025/17/22/image_31032025_17_23_17_29033.jpg
MAIN: 2025-03-31 17:23:18,197 - INFO - duration: 0.7173432810013765
MAIN: 2025-03-31 17:23:18,197 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:23:49,097 - INFO - taking picture
MAIN: 2025-03-31 17:23:49,097 - INFO - we take 1307 photos in this while loop
MAIN: 2025-03-31 17:23:49,097 - INFO - /home/pi/Desktop/images/31032025/17/23/image_31032025_17_23_48_30947.jpg
MAIN: 2025-03-31 17:23:49,098 - INFO - duration: 0.6705405649991008
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 17:24:06,581 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:24:19,164 - INFO - taking picture
MAIN: 2025-03-31 17:24:19,164 - INFO - we take 1308 photos in this while loop
MAIN: 2025-03-31 17:24:19,164 - INFO - /home/pi/Desktop/images/31032025/17/23/image_31032025_17_24_18_30059.jpg
MAIN: 2025-03-31 17:24:19,165 - INFO - duration: 0.6778232829965418
MAIN: 2025-03-31 17:24:19,165 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:24:48,892 - INFO - taking picture
MAIN: 2025-03-31 17:24:48,892 - INFO - we take 1309 photos in this while loop
MAIN: 2025-03-31 17:24:48,892 - INFO - /home/pi/Desktop/images/31032025/17/24/image_31032025_17_24_48_29727.jpg
MAIN: 2025-03-31 17:24:48,892 - INFO - duration: 0.6778037570038578
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:25:07,004 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:25:19,178 - INFO - taking picture
MAIN: 2025-03-31 17:25:19,179 - INFO - we take 1310 photos in this while loop
MAIN: 2025-03-31 17:25:19,179 - INFO - /home/pi/Desktop/images/31032025/17/24/image_31032025_17_25_18_30288.jpg
MAIN: 2025-03-31 17:25:19,179 - INFO - duration: 0.6754812549988856
MAIN: 2025-03-31 17:25:19,180 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/25'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:25:48,893 - INFO - taking picture
MAIN: 2025-03-31 17:25:48,894 - INFO - we take 1311 photos in this while loop
MAIN: 2025-03-31 17:25:48,894 - INFO - /home/pi/Desktop/images/31032025/17/25/image_31032025_17_25_48_29719.jpg
MAIN: 2025-03-31 17:25:48,894 - INFO - duration: 0.6709665250018588
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:26:06,252 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:26:19,031 - INFO - taking picture
MAIN: 2025-03-31 17:26:19,031 - INFO - we take 1312 photos in this while loop
MAIN: 2025-03-31 17:26:19,032 - INFO - /home/pi/Desktop/images/31032025/17/25/image_31032025_17_26_18_30135.jpg
MAIN: 2025-03-31 17:26:19,032 - INFO - duration: 0.6732983990004868
MAIN: 2025-03-31 17:26:19,032 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:26:48,668 - INFO - taking picture
MAIN: 2025-03-31 17:26:48,668 - INFO - we take 1313 photos in this while loop
MAIN: 2025-03-31 17:26:48,668 - INFO - /home/pi/Desktop/images/31032025/17/26/image_31032025_17_26_48_29631.jpg
MAIN: 2025-03-31 17:26:48,669 - INFO - duration: 0.6788354749951395
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:27:05,894 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:27:18,649 - INFO - taking picture
MAIN: 2025-03-31 17:27:18,649 - INFO - we take 1314 photos in this while loop
MAIN: 2025-03-31 17:27:18,650 - INFO - /home/pi/Desktop/images/31032025/17/26/image_31032025_17_27_18_29969.jpg
MAIN: 2025-03-31 17:27:18,650 - INFO - duration: 0.6905814499987173
MAIN: 2025-03-31 17:27:18,650 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/27'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:27:48,284 - INFO - taking picture
MAIN: 2025-03-31 17:27:48,285 - INFO - we take 1315 photos in this while loop
MAIN: 2025-03-31 17:27:48,285 - INFO - /home/pi/Desktop/images/31032025/17/27/image_31032025_17_27_47_29647.jpg
MAIN: 2025-03-31 17:27:48,285 - INFO - duration: 0.6779945790040074
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:28:06,881 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:28:18,666 - INFO - taking picture
MAIN: 2025-03-31 17:28:18,667 - INFO - we take 1316 photos in this while loop
MAIN: 2025-03-31 17:28:18,667 - INFO - /home/pi/Desktop/images/31032025/17/27/image_31032025_17_28_18_30387.jpg
MAIN: 2025-03-31 17:28:18,667 - INFO - duration: 0.6724735859970679
MAIN: 2025-03-31 17:28:18,668 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/28'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:28:48,349 - INFO - taking picture
MAIN: 2025-03-31 17:28:48,349 - INFO - we take 1317 photos in this while loop
MAIN: 2025-03-31 17:28:48,349 - INFO - /home/pi/Desktop/images/31032025/17/28/image_31032025_17_28_47_29678.jpg
MAIN: 2025-03-31 17:28:48,350 - INFO - duration: 0.6758883110014722
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:29:06,450 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:29:18,451 - INFO - taking picture
MAIN: 2025-03-31 17:29:18,452 - INFO - we take 1318 photos in this while loop
MAIN: 2025-03-31 17:29:18,452 - INFO - /home/pi/Desktop/images/31032025/17/28/image_31032025_17_29_18_30101.jpg
MAIN: 2025-03-31 17:29:18,452 - INFO - duration: 0.6765687119986978
MAIN: 2025-03-31 17:29:18,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:29:48,100 - INFO - taking picture
MAIN: 2025-03-31 17:29:48,101 - INFO - we take 1319 photos in this while loop
MAIN: 2025-03-31 17:29:48,101 - INFO - /home/pi/Desktop/images/31032025/17/29/image_31032025_17_29_47_29651.jpg
MAIN: 2025-03-31 17:29:48,101 - INFO - duration: 0.6739410410009441
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:30:07,563 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:30:18,227 - INFO - taking picture
MAIN: 2025-03-31 17:30:18,228 - INFO - we take 1320 photos in this while loop
MAIN: 2025-03-31 17:30:18,228 - INFO - /home/pi/Desktop/images/31032025/17/29/image_31032025_17_30_17_30119.jpg
MAIN: 2025-03-31 17:30:18,228 - INFO - duration: 0.6808560189965647
MAIN: 2025-03-31 17:30:18,229 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:30:49,175 - INFO - taking picture
MAIN: 2025-03-31 17:30:49,176 - INFO - we take 1321 photos in this while loop
MAIN: 2025-03-31 17:30:49,176 - INFO - /home/pi/Desktop/images/31032025/17/30/image_31032025_17_30_48_30948.jpg
MAIN: 2025-03-31 17:30:49,176 - INFO - duration: 0.6805982919977396
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:31:05,811 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:31:19,237 - INFO - taking picture
MAIN: 2025-03-31 17:31:19,238 - INFO - we take 1322 photos in this while loop
MAIN: 2025-03-31 17:31:19,238 - INFO - /home/pi/Desktop/images/31032025/17/30/image_31032025_17_31_18_30056.jpg
MAIN: 2025-03-31 17:31:19,238 - INFO - duration: 0.6858485280026798
MAIN: 2025-03-31 17:31:19,239 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/31'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:31:48,869 - INFO - taking picture
MAIN: 2025-03-31 17:31:48,870 - INFO - we take 1323 photos in this while loop
MAIN: 2025-03-31 17:31:48,870 - INFO - /home/pi/Desktop/images/31032025/17/31/image_31032025_17_31_48_29641.jpg
MAIN: 2025-03-31 17:31:48,870 - INFO - duration: 0.6765664769991417
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:32:06,084 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:32:19,115 - INFO - taking picture
MAIN: 2025-03-31 17:32:19,115 - INFO - we take 1324 photos in this while loop
MAIN: 2025-03-31 17:32:19,116 - INFO - /home/pi/Desktop/images/31032025/17/31/image_31032025_17_32_18_30211.jpg
MAIN: 2025-03-31 17:32:19,116 - INFO - duration: 0.710620709003706
MAIN: 2025-03-31 17:32:19,116 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:32:48,698 - INFO - taking picture
MAIN: 2025-03-31 17:32:48,699 - INFO - we take 1325 photos in this while loop
MAIN: 2025-03-31 17:32:48,699 - INFO - /home/pi/Desktop/images/31032025/17/32/image_31032025_17_32_48_29597.jpg
MAIN: 2025-03-31 17:32:48,699 - INFO - duration: 0.6960720429997309
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:33:06,307 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:33:18,456 - INFO - taking picture
MAIN: 2025-03-31 17:33:18,456 - INFO - we take 1326 photos in this while loop
MAIN: 2025-03-31 17:33:18,456 - INFO - /home/pi/Desktop/images/31032025/17/32/image_31032025_17_33_18_29764.jpg
MAIN: 2025-03-31 17:33:18,456 - INFO - duration: 0.6891045689990278
MAIN: 2025-03-31 17:33:18,457 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:33:49,289 - INFO - taking picture
MAIN: 2025-03-31 17:33:49,290 - INFO - we take 1327 photos in this while loop
MAIN: 2025-03-31 17:33:49,290 - INFO - /home/pi/Desktop/images/31032025/17/33/image_31032025_17_33_48_30876.jpg
MAIN: 2025-03-31 17:33:49,290 - INFO - duration: 0.6463270010062843
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 17:34:07,136 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:34:18,203 - INFO - taking picture
MAIN: 2025-03-31 17:34:18,203 - INFO - we take 1328 photos in this while loop
MAIN: 2025-03-31 17:34:18,203 - INFO - /home/pi/Desktop/images/31032025/17/33/image_31032025_17_34_17_28863.jpg
MAIN: 2025-03-31 17:34:18,204 - INFO - duration: 0.6959649249984068
MAIN: 2025-03-31 17:34:18,204 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:34:49,136 - INFO - taking picture
MAIN: 2025-03-31 17:34:49,137 - INFO - we take 1329 photos in this while loop
MAIN: 2025-03-31 17:34:49,137 - INFO - /home/pi/Desktop/images/31032025/17/34/image_31032025_17_34_48_30984.jpg
MAIN: 2025-03-31 17:34:49,137 - INFO - duration: 0.6449493840045761
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:35:06,033 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:35:19,245 - INFO - taking picture
MAIN: 2025-03-31 17:35:19,245 - INFO - we take 1330 photos in this while loop
MAIN: 2025-03-31 17:35:19,246 - INFO - /home/pi/Desktop/images/31032025/17/34/image_31032025_17_35_18_30114.jpg
MAIN: 2025-03-31 17:35:19,246 - INFO - duration: 0.6387197680014651
MAIN: 2025-03-31 17:35:19,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/35'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:35:48,888 - INFO - taking picture
MAIN: 2025-03-31 17:35:48,889 - INFO - we take 1331 photos in this while loop
MAIN: 2025-03-31 17:35:48,889 - INFO - /home/pi/Desktop/images/31032025/17/35/image_31032025_17_35_48_29625.jpg
MAIN: 2025-03-31 17:35:48,889 - INFO - duration: 0.6567454590040143
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:36:06,285 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:36:19,037 - INFO - taking picture
MAIN: 2025-03-31 17:36:19,037 - INFO - we take 1332 photos in this while loop
MAIN: 2025-03-31 17:36:19,037 - INFO - /home/pi/Desktop/images/31032025/17/35/image_31032025_17_36_18_30166.jpg
MAIN: 2025-03-31 17:36:19,037 - INFO - duration: 0.639105529000517
MAIN: 2025-03-31 17:36:19,038 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:36:48,671 - INFO - taking picture
MAIN: 2025-03-31 17:36:48,672 - INFO - we take 1333 photos in this while loop
MAIN: 2025-03-31 17:36:48,672 - INFO - /home/pi/Desktop/images/31032025/17/36/image_31032025_17_36_48_29601.jpg
MAIN: 2025-03-31 17:36:48,672 - INFO - duration: 0.6729493950042524
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:37:05,984 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:37:18,514 - INFO - taking picture
MAIN: 2025-03-31 17:37:18,514 - INFO - we take 1334 photos in this while loop
MAIN: 2025-03-31 17:37:18,515 - INFO - /home/pi/Desktop/images/31032025/17/36/image_31032025_17_37_18_29821.jpg
MAIN: 2025-03-31 17:37:18,515 - INFO - duration: 0.6940708130059647
MAIN: 2025-03-31 17:37:18,515 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/37'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:37:48,202 - INFO - taking picture
MAIN: 2025-03-31 17:37:48,202 - INFO - we take 1335 photos in this while loop
MAIN: 2025-03-31 17:37:48,202 - INFO - /home/pi/Desktop/images/31032025/17/37/image_31032025_17_37_47_29696.jpg
MAIN: 2025-03-31 17:37:48,203 - INFO - duration: 0.6853210879999097
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:38:06,749 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:38:18,365 - INFO - taking picture
MAIN: 2025-03-31 17:38:18,365 - INFO - we take 1336 photos in this while loop
MAIN: 2025-03-31 17:38:18,365 - INFO - /home/pi/Desktop/images/31032025/17/37/image_31032025_17_38_17_30181.jpg
MAIN: 2025-03-31 17:38:18,366 - INFO - duration: 0.6671603210052126
MAIN: 2025-03-31 17:38:18,366 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/38'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:38:49,300 - INFO - taking picture
MAIN: 2025-03-31 17:38:49,301 - INFO - we take 1337 photos in this while loop
MAIN: 2025-03-31 17:38:49,301 - INFO - /home/pi/Desktop/images/31032025/17/38/image_31032025_17_38_48_30957.jpg
MAIN: 2025-03-31 17:38:49,301 - INFO - duration: 0.6451503350035637
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:39:06,821 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:39:18,155 - INFO - taking picture
MAIN: 2025-03-31 17:39:18,155 - INFO - we take 1338 photos in this while loop
MAIN: 2025-03-31 17:39:18,155 - INFO - /home/pi/Desktop/images/31032025/17/38/image_31032025_17_39_17_28843.jpg
MAIN: 2025-03-31 17:39:18,156 - INFO - duration: 0.6560273249997408
MAIN: 2025-03-31 17:39:18,156 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/39'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:39:49,226 - INFO - taking picture
MAIN: 2025-03-31 17:39:49,226 - INFO - we take 1339 photos in this while loop
MAIN: 2025-03-31 17:39:49,226 - INFO - /home/pi/Desktop/images/31032025/17/39/image_31032025_17_39_48_31046.jpg
MAIN: 2025-03-31 17:39:49,226 - INFO - duration: 0.6805498360045021
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:40:06,779 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:40:18,076 - INFO - taking picture
MAIN: 2025-03-31 17:40:18,076 - INFO - we take 1340 photos in this while loop
MAIN: 2025-03-31 17:40:18,076 - INFO - /home/pi/Desktop/images/31032025/17/39/image_31032025_17_40_17_28885.jpg
MAIN: 2025-03-31 17:40:18,077 - INFO - duration: 0.6450245849991916
MAIN: 2025-03-31 17:40:18,077 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/40'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:40:48,972 - INFO - taking picture
MAIN: 2025-03-31 17:40:48,972 - INFO - we take 1341 photos in this while loop
MAIN: 2025-03-31 17:40:48,972 - INFO - /home/pi/Desktop/images/31032025/17/40/image_31032025_17_40_48_30863.jpg
MAIN: 2025-03-31 17:40:48,973 - INFO - duration: 0.6771448050058098
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:41:05,960 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:41:18,963 - INFO - taking picture
MAIN: 2025-03-31 17:41:18,963 - INFO - we take 1342 photos in this while loop
MAIN: 2025-03-31 17:41:18,964 - INFO - /home/pi/Desktop/images/31032025/17/40/image_31032025_17_41_18_29995.jpg
MAIN: 2025-03-31 17:41:18,964 - INFO - duration: 0.6733222609982477
MAIN: 2025-03-31 17:41:18,964 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/41'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:41:48,554 - INFO - taking picture
MAIN: 2025-03-31 17:41:48,554 - INFO - we take 1343 photos in this while loop
MAIN: 2025-03-31 17:41:48,554 - INFO - /home/pi/Desktop/images/31032025/17/41/image_31032025_17_41_48_29587.jpg
MAIN: 2025-03-31 17:41:48,555 - INFO - duration: 0.6769143019992043
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:42:06,233 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:42:18,478 - INFO - taking picture
MAIN: 2025-03-31 17:42:18,478 - INFO - we take 1344 photos in this while loop
MAIN: 2025-03-31 17:42:18,478 - INFO - /home/pi/Desktop/images/31032025/17/41/image_31032025_17_42_18_29929.jpg
MAIN: 2025-03-31 17:42:18,479 - INFO - duration: 0.6710267570015276
MAIN: 2025-03-31 17:42:18,479 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/42'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:42:48,100 - INFO - taking picture
MAIN: 2025-03-31 17:42:48,101 - INFO - we take 1345 photos in this while loop
MAIN: 2025-03-31 17:42:48,101 - INFO - /home/pi/Desktop/images/31032025/17/42/image_31032025_17_42_47_29619.jpg
MAIN: 2025-03-31 17:42:48,101 - INFO - duration: 0.6741318689964828
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:43:06,245 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:43:18,289 - INFO - taking picture
MAIN: 2025-03-31 17:43:18,290 - INFO - we take 1346 photos in this while loop
MAIN: 2025-03-31 17:43:18,290 - INFO - /home/pi/Desktop/images/31032025/17/42/image_31032025_17_43_17_30184.jpg
MAIN: 2025-03-31 17:43:18,290 - INFO - duration: 0.6791921370022465
MAIN: 2025-03-31 17:43:18,291 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/43'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:43:49,130 - INFO - taking picture
MAIN: 2025-03-31 17:43:49,131 - INFO - we take 1347 photos in this while loop
MAIN: 2025-03-31 17:43:49,131 - INFO - /home/pi/Desktop/images/31032025/17/43/image_31032025_17_43_48_30842.jpg
MAIN: 2025-03-31 17:43:49,131 - INFO - duration: 0.6777193839952815
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:44:06,604 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:44:18,261 - INFO - taking picture
MAIN: 2025-03-31 17:44:18,262 - INFO - we take 1348 photos in this while loop
MAIN: 2025-03-31 17:44:18,262 - INFO - /home/pi/Desktop/images/31032025/17/43/image_31032025_17_44_17_29138.jpg
MAIN: 2025-03-31 17:44:18,262 - INFO - duration: 0.6701890250042197
MAIN: 2025-03-31 17:44:18,263 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/44'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:44:49,065 - INFO - taking picture
MAIN: 2025-03-31 17:44:49,065 - INFO - we take 1349 photos in this while loop
MAIN: 2025-03-31 17:44:49,065 - INFO - /home/pi/Desktop/images/31032025/17/44/image_31032025_17_44_48_30794.jpg
MAIN: 2025-03-31 17:44:49,065 - INFO - duration: 0.6786588760005543
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:45:06,726 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:45:18,986 - INFO - taking picture
MAIN: 2025-03-31 17:45:18,986 - INFO - we take 1350 photos in this while loop
MAIN: 2025-03-31 17:45:18,986 - INFO - /home/pi/Desktop/images/31032025/17/44/image_31032025_17_45_18_29904.jpg
MAIN: 2025-03-31 17:45:18,987 - INFO - duration: 0.6956594559960649
MAIN: 2025-03-31 17:45:18,987 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/45'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:45:48,623 - INFO - taking picture
MAIN: 2025-03-31 17:45:48,624 - INFO - we take 1351 photos in this while loop
MAIN: 2025-03-31 17:45:48,624 - INFO - /home/pi/Desktop/images/31032025/17/45/image_31032025_17_45_48_29666.jpg
MAIN: 2025-03-31 17:45:48,624 - INFO - duration: 0.6662786779997987
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:46:06,830 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:46:18,635 - INFO - taking picture
MAIN: 2025-03-31 17:46:18,635 - INFO - we take 1352 photos in this while loop
MAIN: 2025-03-31 17:46:18,636 - INFO - /home/pi/Desktop/images/31032025/17/45/image_31032025_17_46_18_29977.jpg
MAIN: 2025-03-31 17:46:18,636 - INFO - duration: 0.7007960830014781
MAIN: 2025-03-31 17:46:18,636 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/46'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:46:48,254 - INFO - taking picture
MAIN: 2025-03-31 17:46:48,255 - INFO - we take 1353 photos in this while loop
MAIN: 2025-03-31 17:46:48,255 - INFO - /home/pi/Desktop/images/31032025/17/46/image_31032025_17_46_47_29626.jpg
MAIN: 2025-03-31 17:46:48,255 - INFO - duration: 0.6937682220013812
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:47:05,650 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:47:18,121 - INFO - taking picture
MAIN: 2025-03-31 17:47:18,121 - INFO - we take 1354 photos in this while loop
MAIN: 2025-03-31 17:47:18,122 - INFO - /home/pi/Desktop/images/31032025/17/46/image_31032025_17_47_17_29861.jpg
MAIN: 2025-03-31 17:47:18,122 - INFO - duration: 0.6985937480058055
MAIN: 2025-03-31 17:47:18,122 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/47'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:47:49,099 - INFO - taking picture
MAIN: 2025-03-31 17:47:49,099 - INFO - we take 1355 photos in this while loop
MAIN: 2025-03-31 17:47:49,099 - INFO - /home/pi/Desktop/images/31032025/17/47/image_31032025_17_47_48_30974.jpg
MAIN: 2025-03-31 17:47:49,100 - INFO - duration: 0.7016898479996598
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:48:06,253 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:48:19,402 - INFO - taking picture
MAIN: 2025-03-31 17:48:19,402 - INFO - we take 1356 photos in this while loop
MAIN: 2025-03-31 17:48:19,402 - INFO - /home/pi/Desktop/images/31032025/17/47/image_31032025_17_48_19_30286.jpg
MAIN: 2025-03-31 17:48:19,403 - INFO - duration: 0.7184288649950759
MAIN: 2025-03-31 17:48:19,403 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/48'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:48:49,001 - INFO - taking picture
MAIN: 2025-03-31 17:48:49,002 - INFO - we take 1357 photos in this while loop
MAIN: 2025-03-31 17:48:49,002 - INFO - /home/pi/Desktop/images/31032025/17/48/image_31032025_17_48_48_29615.jpg
MAIN: 2025-03-31 17:48:49,002 - INFO - duration: 0.7028801679989556
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:49:06,057 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:49:19,090 - INFO - taking picture
MAIN: 2025-03-31 17:49:19,090 - INFO - we take 1358 photos in this while loop
MAIN: 2025-03-31 17:49:19,090 - INFO - /home/pi/Desktop/images/31032025/17/48/image_31032025_17_49_18_30068.jpg
MAIN: 2025-03-31 17:49:19,091 - INFO - duration: 0.7224758529991959
MAIN: 2025-03-31 17:49:19,091 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/49'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:49:48,800 - INFO - taking picture
MAIN: 2025-03-31 17:49:48,801 - INFO - we take 1359 photos in this while loop
MAIN: 2025-03-31 17:49:48,801 - INFO - /home/pi/Desktop/images/31032025/17/49/image_31032025_17_49_48_29745.jpg
MAIN: 2025-03-31 17:49:48,802 - INFO - duration: 0.6873804849965381
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:50:07,212 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:50:19,036 - INFO - taking picture
MAIN: 2025-03-31 17:50:19,037 - INFO - we take 1360 photos in this while loop
MAIN: 2025-03-31 17:50:19,037 - INFO - /home/pi/Desktop/images/31032025/17/49/image_31032025_17_50_18_30236.jpg
MAIN: 2025-03-31 17:50:19,037 - INFO - duration: 0.6871025200016447
MAIN: 2025-03-31 17:50:19,038 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/50'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:50:48,792 - INFO - taking picture
MAIN: 2025-03-31 17:50:48,792 - INFO - we take 1361 photos in this while loop
MAIN: 2025-03-31 17:50:48,793 - INFO - /home/pi/Desktop/images/31032025/17/50/image_31032025_17_50_48_29723.jpg
MAIN: 2025-03-31 17:50:48,793 - INFO - duration: 0.7192657580017112
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:51:05,951 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:51:18,762 - INFO - taking picture
MAIN: 2025-03-31 17:51:18,763 - INFO - we take 1362 photos in this while loop
MAIN: 2025-03-31 17:51:18,763 - INFO - /home/pi/Desktop/images/31032025/17/50/image_31032025_17_51_18_29972.jpg
MAIN: 2025-03-31 17:51:18,763 - INFO - duration: 0.7175364899958367
MAIN: 2025-03-31 17:51:18,764 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/51'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:51:48,511 - INFO - taking picture
MAIN: 2025-03-31 17:51:48,512 - INFO - we take 1363 photos in this while loop
MAIN: 2025-03-31 17:51:48,512 - INFO - /home/pi/Desktop/images/31032025/17/51/image_31032025_17_51_48_29764.jpg
MAIN: 2025-03-31 17:51:48,512 - INFO - duration: 0.7018428960000165
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:52:06,324 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:52:18,478 - INFO - taking picture
MAIN: 2025-03-31 17:52:18,479 - INFO - we take 1364 photos in this while loop
MAIN: 2025-03-31 17:52:18,479 - INFO - /home/pi/Desktop/images/31032025/17/51/image_31032025_17_52_18_29969.jpg
MAIN: 2025-03-31 17:52:18,479 - INFO - duration: 0.6993947740047588
MAIN: 2025-03-31 17:52:18,480 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/52'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:52:48,218 - INFO - taking picture
MAIN: 2025-03-31 17:52:48,219 - INFO - we take 1365 photos in this while loop
MAIN: 2025-03-31 17:52:48,219 - INFO - /home/pi/Desktop/images/31032025/17/52/image_31032025_17_52_47_29718.jpg
MAIN: 2025-03-31 17:52:48,219 - INFO - duration: 0.7210254579986213
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:53:06,487 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:53:18,288 - INFO - taking picture
MAIN: 2025-03-31 17:53:18,288 - INFO - we take 1366 photos in this while loop
MAIN: 2025-03-31 17:53:18,288 - INFO - /home/pi/Desktop/images/31032025/17/52/image_31032025_17_53_17_30084.jpg
MAIN: 2025-03-31 17:53:18,289 - INFO - duration: 0.7058960819995264
MAIN: 2025-03-31 17:53:18,289 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/53'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:53:49,253 - INFO - taking picture
MAIN: 2025-03-31 17:53:49,254 - INFO - we take 1367 photos in this while loop
MAIN: 2025-03-31 17:53:49,254 - INFO - /home/pi/Desktop/images/31032025/17/53/image_31032025_17_53_48_30995.jpg
MAIN: 2025-03-31 17:53:49,254 - INFO - duration: 0.6761473279984784
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:54:07,041 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:54:18,187 - INFO - taking picture
MAIN: 2025-03-31 17:54:18,187 - INFO - we take 1368 photos in this while loop
MAIN: 2025-03-31 17:54:18,188 - INFO - /home/pi/Desktop/images/31032025/17/53/image_31032025_17_54_17_28905.jpg
MAIN: 2025-03-31 17:54:18,188 - INFO - duration: 0.7045657729977393
MAIN: 2025-03-31 17:54:18,188 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:54:49,198 - INFO - taking picture
MAIN: 2025-03-31 17:54:49,199 - INFO - we take 1369 photos in this while loop
MAIN: 2025-03-31 17:54:49,199 - INFO - /home/pi/Desktop/images/31032025/17/54/image_31032025_17_54_48_31038.jpg
MAIN: 2025-03-31 17:54:49,199 - INFO - duration: 0.6777790510022896
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:55:06,121 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:55:19,310 - INFO - taking picture
MAIN: 2025-03-31 17:55:19,310 - INFO - we take 1370 photos in this while loop
MAIN: 2025-03-31 17:55:19,310 - INFO - /home/pi/Desktop/images/31032025/17/54/image_31032025_17_55_18_30151.jpg
MAIN: 2025-03-31 17:55:19,311 - INFO - duration: 0.6380192000069655
MAIN: 2025-03-31 17:55:19,311 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/55'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:55:48,964 - INFO - taking picture
MAIN: 2025-03-31 17:55:48,965 - INFO - we take 1371 photos in this while loop
MAIN: 2025-03-31 17:55:48,965 - INFO - /home/pi/Desktop/images/31032025/17/55/image_31032025_17_55_48_29616.jpg
MAIN: 2025-03-31 17:55:48,965 - INFO - duration: 0.6758375429999433
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:56:06,290 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:56:19,208 - INFO - taking picture
MAIN: 2025-03-31 17:56:19,209 - INFO - we take 1372 photos in this while loop
MAIN: 2025-03-31 17:56:19,209 - INFO - /home/pi/Desktop/images/31032025/17/55/image_31032025_17_56_18_30241.jpg
MAIN: 2025-03-31 17:56:19,209 - INFO - duration: 0.6785725970039493
MAIN: 2025-03-31 17:56:19,210 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/56'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:56:48,898 - INFO - taking picture
MAIN: 2025-03-31 17:56:48,898 - INFO - we take 1373 photos in this while loop
MAIN: 2025-03-31 17:56:48,899 - INFO - /home/pi/Desktop/images/31032025/17/56/image_31032025_17_56_48_29694.jpg
MAIN: 2025-03-31 17:56:48,899 - INFO - duration: 0.6734870250002132
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:57:06,148 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:57:18,988 - INFO - taking picture
MAIN: 2025-03-31 17:57:18,989 - INFO - we take 1374 photos in this while loop
MAIN: 2025-03-31 17:57:18,989 - INFO - /home/pi/Desktop/images/31032025/17/56/image_31032025_17_57_18_30092.jpg
MAIN: 2025-03-31 17:57:18,989 - INFO - duration: 0.6711867659978452
MAIN: 2025-03-31 17:57:18,989 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:57:48,653 - INFO - taking picture
MAIN: 2025-03-31 17:57:48,653 - INFO - we take 1375 photos in this while loop
MAIN: 2025-03-31 17:57:48,653 - INFO - /home/pi/Desktop/images/31032025/17/57/image_31032025_17_57_48_29663.jpg
MAIN: 2025-03-31 17:57:48,654 - INFO - duration: 0.6723261419974733
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:58:06,679 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:58:18,662 - INFO - taking picture
MAIN: 2025-03-31 17:58:18,663 - INFO - we take 1376 photos in this while loop
MAIN: 2025-03-31 17:58:18,663 - INFO - /home/pi/Desktop/images/31032025/17/57/image_31032025_17_58_18_30010.jpg
MAIN: 2025-03-31 17:58:18,663 - INFO - duration: 0.67122671600373
MAIN: 2025-03-31 17:58:18,664 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/58'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:58:48,205 - INFO - taking picture
MAIN: 2025-03-31 17:58:48,206 - INFO - we take 1377 photos in this while loop
MAIN: 2025-03-31 17:58:48,206 - INFO - /home/pi/Desktop/images/31032025/17/58/image_31032025_17_58_47_29540.jpg
MAIN: 2025-03-31 17:58:48,206 - INFO - duration: 0.6738165089991526
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 17:59:06,398 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:59:18,140 - INFO - taking picture
MAIN: 2025-03-31 17:59:18,141 - INFO - we take 1378 photos in this while loop
MAIN: 2025-03-31 17:59:18,141 - INFO - /home/pi/Desktop/images/31032025/17/58/image_31032025_17_59_17_29908.jpg
MAIN: 2025-03-31 17:59:18,141 - INFO - duration: 0.6999499529993045
MAIN: 2025-03-31 17:59:18,141 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/17/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 17:59:49,170 - INFO - taking picture
MAIN: 2025-03-31 17:59:49,171 - INFO - we take 1379 photos in this while loop
MAIN: 2025-03-31 17:59:49,171 - INFO - /home/pi/Desktop/images/31032025/17/59/image_31032025_17_59_48_31053.jpg
MAIN: 2025-03-31 17:59:49,171 - INFO - duration: 0.6771463039985974
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:00:07,659 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:00:18,168 - INFO - taking picture
MAIN: 2025-03-31 18:00:18,168 - INFO - we take 1380 photos in this while loop
MAIN: 2025-03-31 18:00:18,168 - INFO - /home/pi/Desktop/images/31032025/17/59/image_31032025_18_00_17_28975.jpg
MAIN: 2025-03-31 18:00:18,169 - INFO - duration: 0.6995063970025512
MAIN: 2025-03-31 18:00:18,169 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:00:49,065 - INFO - taking picture
MAIN: 2025-03-31 18:00:49,066 - INFO - we take 1381 photos in this while loop
MAIN: 2025-03-31 18:00:49,066 - INFO - /home/pi/Desktop/images/31032025/18/00/image_31032025_18_00_48_30899.jpg
MAIN: 2025-03-31 18:00:49,066 - INFO - duration: 0.6973736009967979
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 18:01:06,145 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:01:19,166 - INFO - taking picture
MAIN: 2025-03-31 18:01:19,166 - INFO - we take 1382 photos in this while loop
MAIN: 2025-03-31 18:01:19,167 - INFO - /home/pi/Desktop/images/31032025/18/00/image_31032025_18_01_18_30099.jpg
MAIN: 2025-03-31 18:01:19,167 - INFO - duration: 0.6990773990037269
MAIN: 2025-03-31 18:01:19,167 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:01:48,818 - INFO - taking picture
MAIN: 2025-03-31 18:01:48,818 - INFO - we take 1383 photos in this while loop
MAIN: 2025-03-31 18:01:48,819 - INFO - /home/pi/Desktop/images/31032025/18/01/image_31032025_18_01_48_29649.jpg
MAIN: 2025-03-31 18:01:48,819 - INFO - duration: 0.701811605002149
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:02:06,648 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:02:18,858 - INFO - taking picture
MAIN: 2025-03-31 18:02:18,859 - INFO - we take 1384 photos in this while loop
MAIN: 2025-03-31 18:02:18,859 - INFO - /home/pi/Desktop/images/31032025/18/01/image_31032025_18_02_18_30047.jpg
MAIN: 2025-03-31 18:02:18,859 - INFO - duration: 0.6942457279947121
MAIN: 2025-03-31 18:02:18,860 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:02:48,409 - INFO - taking picture
MAIN: 2025-03-31 18:02:48,409 - INFO - we take 1385 photos in this while loop
MAIN: 2025-03-31 18:02:48,409 - INFO - /home/pi/Desktop/images/31032025/18/02/image_31032025_18_02_48_29555.jpg
MAIN: 2025-03-31 18:02:48,410 - INFO - duration: 0.6889182230006554
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:03:06,676 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:03:18,474 - INFO - taking picture
MAIN: 2025-03-31 18:03:18,475 - INFO - we take 1386 photos in this while loop
MAIN: 2025-03-31 18:03:18,475 - INFO - /home/pi/Desktop/images/31032025/18/02/image_31032025_18_03_18_30068.jpg
MAIN: 2025-03-31 18:03:18,475 - INFO - duration: 0.6861087799989036
MAIN: 2025-03-31 18:03:18,475 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:03:49,357 - INFO - taking picture
MAIN: 2025-03-31 18:03:49,358 - INFO - we take 1387 photos in this while loop
MAIN: 2025-03-31 18:03:49,358 - INFO - /home/pi/Desktop/images/31032025/18/03/image_31032025_18_03_48_30860.jpg
MAIN: 2025-03-31 18:03:49,358 - INFO - duration: 0.7090878190065268
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:04:06,025 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:04:19,312 - INFO - taking picture
MAIN: 2025-03-31 18:04:19,312 - INFO - we take 1388 photos in this while loop
MAIN: 2025-03-31 18:04:19,313 - INFO - /home/pi/Desktop/images/31032025/18/03/image_31032025_18_04_18_29929.jpg
MAIN: 2025-03-31 18:04:19,313 - INFO - duration: 0.7341988819971448
MAIN: 2025-03-31 18:04:19,313 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:04:48,922 - INFO - taking picture
MAIN: 2025-03-31 18:04:48,923 - INFO - we take 1389 photos in this while loop
MAIN: 2025-03-31 18:04:48,923 - INFO - /home/pi/Desktop/images/31032025/18/04/image_31032025_18_04_48_29646.jpg
MAIN: 2025-03-31 18:04:48,923 - INFO - duration: 0.69783251699846
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:05:06,013 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:05:19,253 - INFO - taking picture
MAIN: 2025-03-31 18:05:19,254 - INFO - we take 1390 photos in this while loop
MAIN: 2025-03-31 18:05:19,254 - INFO - /home/pi/Desktop/images/31032025/18/04/image_31032025_18_05_18_30344.jpg
MAIN: 2025-03-31 18:05:19,254 - INFO - duration: 0.6845689100009622
MAIN: 2025-03-31 18:05:19,255 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/05'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:05:48,902 - INFO - taking picture
MAIN: 2025-03-31 18:05:48,903 - INFO - we take 1391 photos in this while loop
MAIN: 2025-03-31 18:05:48,903 - INFO - /home/pi/Desktop/images/31032025/18/05/image_31032025_18_05_48_29621.jpg
MAIN: 2025-03-31 18:05:48,903 - INFO - duration: 0.7122510560002411
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:06:06,046 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:06:19,071 - INFO - taking picture
MAIN: 2025-03-31 18:06:19,071 - INFO - we take 1392 photos in this while loop
MAIN: 2025-03-31 18:06:19,072 - INFO - /home/pi/Desktop/images/31032025/18/05/image_31032025_18_06_18_30198.jpg
MAIN: 2025-03-31 18:06:19,072 - INFO - duration: 0.6825398639994091
MAIN: 2025-03-31 18:06:19,072 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/06'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:06:48,779 - INFO - taking picture
MAIN: 2025-03-31 18:06:48,779 - INFO - we take 1393 photos in this while loop
MAIN: 2025-03-31 18:06:48,779 - INFO - /home/pi/Desktop/images/31032025/18/06/image_31032025_18_06_48_29692.jpg
MAIN: 2025-03-31 18:06:48,780 - INFO - duration: 0.6978820799995447
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:07:06,113 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:07:18,722 - INFO - taking picture
MAIN: 2025-03-31 18:07:18,723 - INFO - we take 1394 photos in this while loop
MAIN: 2025-03-31 18:07:18,723 - INFO - /home/pi/Desktop/images/31032025/18/06/image_31032025_18_07_18_29919.jpg
MAIN: 2025-03-31 18:07:18,723 - INFO - duration: 0.7216672509966884
MAIN: 2025-03-31 18:07:18,724 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/07'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:07:48,506 - INFO - taking picture
MAIN: 2025-03-31 18:07:48,507 - INFO - we take 1395 photos in this while loop
MAIN: 2025-03-31 18:07:48,507 - INFO - /home/pi/Desktop/images/31032025/18/07/image_31032025_18_07_48_29793.jpg
MAIN: 2025-03-31 18:07:48,507 - INFO - duration: 0.7123287209979026
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:08:06,869 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:08:18,652 - INFO - taking picture
MAIN: 2025-03-31 18:08:18,653 - INFO - we take 1396 photos in this while loop
MAIN: 2025-03-31 18:08:18,653 - INFO - /home/pi/Desktop/images/31032025/18/07/image_31032025_18_08_18_30196.jpg
MAIN: 2025-03-31 18:08:18,653 - INFO - duration: 0.6617191529949196
MAIN: 2025-03-31 18:08:18,653 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/08'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:08:48,258 - INFO - taking picture
MAIN: 2025-03-31 18:08:48,259 - INFO - we take 1397 photos in this while loop
MAIN: 2025-03-31 18:08:48,259 - INFO - /home/pi/Desktop/images/31032025/18/08/image_31032025_18_08_47_29578.jpg
MAIN: 2025-03-31 18:08:48,259 - INFO - duration: 0.689880040998105
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:09:06,749 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:09:18,497 - INFO - taking picture
MAIN: 2025-03-31 18:09:18,497 - INFO - we take 1398 photos in this while loop
MAIN: 2025-03-31 18:09:18,497 - INFO - /home/pi/Desktop/images/31032025/18/08/image_31032025_18_09_18_30245.jpg
MAIN: 2025-03-31 18:09:18,498 - INFO - duration: 0.6822044150030706
MAIN: 2025-03-31 18:09:18,498 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/09'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:09:48,351 - INFO - taking picture
MAIN: 2025-03-31 18:09:48,351 - INFO - we take 1399 photos in this while loop
MAIN: 2025-03-31 18:09:48,352 - INFO - /home/pi/Desktop/images/31032025/18/09/image_31032025_18_09_47_29821.jpg
MAIN: 2025-03-31 18:09:48,352 - INFO - duration: 0.7150700349957333
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:10:06,923 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:10:18,564 - INFO - taking picture
MAIN: 2025-03-31 18:10:18,565 - INFO - we take 1400 photos in this while loop
MAIN: 2025-03-31 18:10:18,565 - INFO - /home/pi/Desktop/images/31032025/18/09/image_31032025_18_10_18_30276.jpg
MAIN: 2025-03-31 18:10:18,565 - INFO - duration: 0.6516986909991829
MAIN: 2025-03-31 18:10:18,566 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:10:48,231 - INFO - taking picture
MAIN: 2025-03-31 18:10:48,232 - INFO - we take 1401 photos in this while loop
MAIN: 2025-03-31 18:10:48,232 - INFO - /home/pi/Desktop/images/31032025/18/10/image_31032025_18_10_47_29670.jpg
MAIN: 2025-03-31 18:10:48,232 - INFO - duration: 0.6480694569982006
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:11:06,233 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:11:19,333 - INFO - taking picture
MAIN: 2025-03-31 18:11:19,333 - INFO - we take 1402 photos in this while loop
MAIN: 2025-03-31 18:11:19,334 - INFO - /home/pi/Desktop/images/31032025/18/10/image_31032025_18_11_18_31069.jpg
MAIN: 2025-03-31 18:11:19,334 - INFO - duration: 0.6805666400032351
MAIN: 2025-03-31 18:11:19,334 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:11:49,078 - INFO - taking picture
MAIN: 2025-03-31 18:11:49,079 - INFO - we take 1403 photos in this while loop
MAIN: 2025-03-31 18:11:49,079 - INFO - /home/pi/Desktop/images/31032025/18/11/image_31032025_18_11_48_29748.jpg
MAIN: 2025-03-31 18:11:49,079 - INFO - duration: 0.6774969840043923
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:12:06,578 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:12:19,223 - INFO - taking picture
MAIN: 2025-03-31 18:12:19,224 - INFO - we take 1404 photos in this while loop
MAIN: 2025-03-31 18:12:19,224 - INFO - /home/pi/Desktop/images/31032025/18/11/image_31032025_18_12_18_30139.jpg
MAIN: 2025-03-31 18:12:19,224 - INFO - duration: 0.6834157569974195
MAIN: 2025-03-31 18:12:19,225 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:12:48,911 - INFO - taking picture
MAIN: 2025-03-31 18:12:48,912 - INFO - we take 1405 photos in this while loop
MAIN: 2025-03-31 18:12:48,912 - INFO - /home/pi/Desktop/images/31032025/18/12/image_31032025_18_12_48_29685.jpg
MAIN: 2025-03-31 18:12:48,912 - INFO - duration: 0.6858630200003972
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:13:06,419 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:13:18,723 - INFO - taking picture
MAIN: 2025-03-31 18:13:18,723 - INFO - we take 1406 photos in this while loop
MAIN: 2025-03-31 18:13:18,723 - INFO - /home/pi/Desktop/images/31032025/18/12/image_31032025_18_13_18_29823.jpg
MAIN: 2025-03-31 18:13:18,724 - INFO - duration: 0.6744020140031353
MAIN: 2025-03-31 18:13:18,724 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:13:48,366 - INFO - taking picture
MAIN: 2025-03-31 18:13:48,367 - INFO - we take 1407 photos in this while loop
MAIN: 2025-03-31 18:13:48,367 - INFO - /home/pi/Desktop/images/31032025/18/13/image_31032025_18_13_47_29621.jpg
MAIN: 2025-03-31 18:13:48,367 - INFO - duration: 0.6959144659995218
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:14:06,924 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:14:18,562 - INFO - taking picture
MAIN: 2025-03-31 18:14:18,563 - INFO - we take 1408 photos in this while loop
MAIN: 2025-03-31 18:14:18,563 - INFO - /home/pi/Desktop/images/31032025/18/13/image_31032025_18_14_18_30149.jpg
MAIN: 2025-03-31 18:14:18,563 - INFO - duration: 0.742337989002408
MAIN: 2025-03-31 18:14:18,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:14:48,149 - INFO - taking picture
MAIN: 2025-03-31 18:14:48,150 - INFO - we take 1409 photos in this while loop
MAIN: 2025-03-31 18:14:48,150 - INFO - /home/pi/Desktop/images/31032025/18/14/image_31032025_18_14_47_29640.jpg
MAIN: 2025-03-31 18:14:48,150 - INFO - duration: 0.6891646709991619
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:15:05,968 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:15:18,182 - INFO - taking picture
MAIN: 2025-03-31 18:15:18,183 - INFO - we take 1410 photos in this while loop
MAIN: 2025-03-31 18:15:18,183 - INFO - /home/pi/Desktop/images/31032025/18/14/image_31032025_18_15_17_30019.jpg
MAIN: 2025-03-31 18:15:18,183 - INFO - duration: 0.7026538989957771
MAIN: 2025-03-31 18:15:18,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/15'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:15:49,181 - INFO - taking picture
MAIN: 2025-03-31 18:15:49,181 - INFO - we take 1411 photos in this while loop
MAIN: 2025-03-31 18:15:49,181 - INFO - /home/pi/Desktop/images/31032025/18/15/image_31032025_18_15_48_30997.jpg
MAIN: 2025-03-31 18:15:49,182 - INFO - duration: 0.7032185539937927
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:16:05,987 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:16:19,302 - INFO - taking picture
MAIN: 2025-03-31 18:16:19,302 - INFO - we take 1412 photos in this while loop
MAIN: 2025-03-31 18:16:19,303 - INFO - /home/pi/Desktop/images/31032025/18/15/image_31032025_18_16_18_30154.jpg
MAIN: 2025-03-31 18:16:19,303 - INFO - duration: 0.6700534419942414
MAIN: 2025-03-31 18:16:19,303 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/16'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:16:48,837 - INFO - taking picture
MAIN: 2025-03-31 18:16:48,838 - INFO - we take 1413 photos in this while loop
MAIN: 2025-03-31 18:16:48,838 - INFO - /home/pi/Desktop/images/31032025/18/16/image_31032025_18_16_48_29519.jpg
MAIN: 2025-03-31 18:16:48,838 - INFO - duration: 0.6857313630025601
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:17:05,789 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:17:18,688 - INFO - taking picture
MAIN: 2025-03-31 18:17:18,688 - INFO - we take 1414 photos in this while loop
MAIN: 2025-03-31 18:17:18,688 - INFO - /home/pi/Desktop/images/31032025/18/16/image_31032025_18_17_18_29870.jpg
MAIN: 2025-03-31 18:17:18,689 - INFO - duration: 0.6660833710047882
MAIN: 2025-03-31 18:17:18,689 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/17'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:17:48,322 - INFO - taking picture
MAIN: 2025-03-31 18:17:48,323 - INFO - we take 1415 photos in this while loop
MAIN: 2025-03-31 18:17:48,323 - INFO - /home/pi/Desktop/images/31032025/18/17/image_31032025_18_17_47_29607.jpg
MAIN: 2025-03-31 18:17:48,323 - INFO - duration: 0.6932467000006
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:18:06,278 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:18:18,432 - INFO - taking picture
MAIN: 2025-03-31 18:18:18,432 - INFO - we take 1416 photos in this while loop
MAIN: 2025-03-31 18:18:18,433 - INFO - /home/pi/Desktop/images/31032025/18/17/image_31032025_18_18_18_30106.jpg
MAIN: 2025-03-31 18:18:18,433 - INFO - duration: 0.6962537439976586
MAIN: 2025-03-31 18:18:18,433 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/18'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:18:49,233 - INFO - taking picture
MAIN: 2025-03-31 18:18:49,234 - INFO - we take 1417 photos in this while loop
MAIN: 2025-03-31 18:18:49,234 - INFO - /home/pi/Desktop/images/31032025/18/18/image_31032025_18_18_48_30798.jpg
MAIN: 2025-03-31 18:18:49,234 - INFO - duration: 0.6990037549985573
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:19:06,521 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:19:18,115 - INFO - taking picture
MAIN: 2025-03-31 18:19:18,115 - INFO - we take 1418 photos in this while loop
MAIN: 2025-03-31 18:19:18,115 - INFO - /home/pi/Desktop/images/31032025/18/18/image_31032025_18_19_17_28886.jpg
MAIN: 2025-03-31 18:19:18,116 - INFO - duration: 0.6938904900016496
MAIN: 2025-03-31 18:19:18,116 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/19'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:19:49,133 - INFO - taking picture
MAIN: 2025-03-31 18:19:49,134 - INFO - we take 1419 photos in this while loop
MAIN: 2025-03-31 18:19:49,134 - INFO - /home/pi/Desktop/images/31032025/18/19/image_31032025_18_19_48_31003.jpg
MAIN: 2025-03-31 18:19:49,134 - INFO - duration: 0.7094470550000551
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:20:06,968 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:20:18,174 - INFO - taking picture
MAIN: 2025-03-31 18:20:18,174 - INFO - we take 1420 photos in this while loop
MAIN: 2025-03-31 18:20:18,175 - INFO - /home/pi/Desktop/images/31032025/18/19/image_31032025_18_20_17_29069.jpg
MAIN: 2025-03-31 18:20:18,175 - INFO - duration: 0.6801936470001237
MAIN: 2025-03-31 18:20:18,175 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/20'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:20:49,010 - INFO - taking picture
MAIN: 2025-03-31 18:20:49,010 - INFO - we take 1421 photos in this while loop
MAIN: 2025-03-31 18:20:49,011 - INFO - /home/pi/Desktop/images/31032025/18/20/image_31032025_18_20_48_30791.jpg
MAIN: 2025-03-31 18:20:49,011 - INFO - duration: 0.7247749320013099
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:21:05,769 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:21:19,180 - INFO - taking picture
MAIN: 2025-03-31 18:21:19,181 - INFO - we take 1422 photos in this while loop
MAIN: 2025-03-31 18:21:19,181 - INFO - /home/pi/Desktop/images/31032025/18/20/image_31032025_18_21_18_30215.jpg
MAIN: 2025-03-31 18:21:19,181 - INFO - duration: 0.6797736670050654
MAIN: 2025-03-31 18:21:19,182 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/21'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:21:48,861 - INFO - taking picture
MAIN: 2025-03-31 18:21:48,861 - INFO - we take 1423 photos in this while loop
MAIN: 2025-03-31 18:21:48,862 - INFO - /home/pi/Desktop/images/31032025/18/21/image_31032025_18_21_48_29637.jpg
MAIN: 2025-03-31 18:21:48,862 - INFO - duration: 0.7225139129950549
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:22:06,235 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:22:19,078 - INFO - taking picture
MAIN: 2025-03-31 18:22:19,079 - INFO - we take 1424 photos in this while loop
MAIN: 2025-03-31 18:22:19,079 - INFO - /home/pi/Desktop/images/31032025/18/21/image_31032025_18_22_18_30282.jpg
MAIN: 2025-03-31 18:22:19,079 - INFO - duration: 0.6574735929971212
MAIN: 2025-03-31 18:22:19,080 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:22:48,820 - INFO - taking picture
MAIN: 2025-03-31 18:22:48,821 - INFO - we take 1425 photos in this while loop
MAIN: 2025-03-31 18:22:48,821 - INFO - /home/pi/Desktop/images/31032025/18/22/image_31032025_18_22_48_29680.jpg
MAIN: 2025-03-31 18:22:48,821 - INFO - duration: 0.7193472130020382
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:23:06,465 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:23:18,754 - INFO - taking picture
MAIN: 2025-03-31 18:23:18,755 - INFO - we take 1426 photos in this while loop
MAIN: 2025-03-31 18:23:18,755 - INFO - /home/pi/Desktop/images/31032025/18/22/image_31032025_18_23_18_29969.jpg
MAIN: 2025-03-31 18:23:18,755 - INFO - duration: 0.6839301569998497
MAIN: 2025-03-31 18:23:18,756 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:23:48,408 - INFO - taking picture
MAIN: 2025-03-31 18:23:48,408 - INFO - we take 1427 photos in this while loop
MAIN: 2025-03-31 18:23:48,409 - INFO - /home/pi/Desktop/images/31032025/18/23/image_31032025_18_23_48_29625.jpg
MAIN: 2025-03-31 18:23:48,409 - INFO - duration: 0.7124654090002878
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:24:06,790 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:24:18,562 - INFO - taking picture
MAIN: 2025-03-31 18:24:18,562 - INFO - we take 1428 photos in this while loop
MAIN: 2025-03-31 18:24:18,563 - INFO - /home/pi/Desktop/images/31032025/18/23/image_31032025_18_24_18_30217.jpg
MAIN: 2025-03-31 18:24:18,563 - INFO - duration: 0.6484993039994151
MAIN: 2025-03-31 18:24:18,563 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:24:48,263 - INFO - taking picture
MAIN: 2025-03-31 18:24:48,264 - INFO - we take 1429 photos in this while loop
MAIN: 2025-03-31 18:24:48,264 - INFO - /home/pi/Desktop/images/31032025/18/24/image_31032025_18_24_47_29648.jpg
MAIN: 2025-03-31 18:24:48,265 - INFO - duration: 0.7020818879973376
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:25:05,813 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:25:18,401 - INFO - taking picture
MAIN: 2025-03-31 18:25:18,401 - INFO - we take 1430 photos in this while loop
MAIN: 2025-03-31 18:25:18,402 - INFO - /home/pi/Desktop/images/31032025/18/24/image_31032025_18_25_18_30146.jpg
MAIN: 2025-03-31 18:25:18,402 - INFO - duration: 0.6931520539947087
MAIN: 2025-03-31 18:25:18,402 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:25:49,212 - INFO - taking picture
MAIN: 2025-03-31 18:25:49,212 - INFO - we take 1431 photos in this while loop
MAIN: 2025-03-31 18:25:49,213 - INFO - /home/pi/Desktop/images/31032025/18/25/image_31032025_18_25_48_30808.jpg
MAIN: 2025-03-31 18:25:49,213 - INFO - duration: 0.6951847149975947
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:26:06,144 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:26:19,024 - INFO - taking picture
MAIN: 2025-03-31 18:26:19,024 - INFO - we take 1432 photos in this while loop
MAIN: 2025-03-31 18:26:19,024 - INFO - /home/pi/Desktop/images/31032025/18/25/image_31032025_18_26_18_29829.jpg
MAIN: 2025-03-31 18:26:19,025 - INFO - duration: 0.6778616559968214
MAIN: 2025-03-31 18:26:19,025 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:26:48,717 - INFO - taking picture
MAIN: 2025-03-31 18:26:48,717 - INFO - we take 1433 photos in this while loop
MAIN: 2025-03-31 18:26:48,718 - INFO - /home/pi/Desktop/images/31032025/18/26/image_31032025_18_26_48_29669.jpg
MAIN: 2025-03-31 18:26:48,718 - INFO - duration: 0.7021022749977419
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:27:06,075 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:27:18,527 - INFO - taking picture
MAIN: 2025-03-31 18:27:18,528 - INFO - we take 1434 photos in this while loop
MAIN: 2025-03-31 18:27:18,528 - INFO - /home/pi/Desktop/images/31032025/18/26/image_31032025_18_27_18_29823.jpg
MAIN: 2025-03-31 18:27:18,528 - INFO - duration: 0.6887870259961346
MAIN: 2025-03-31 18:27:18,528 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/27'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:27:48,110 - INFO - taking picture
MAIN: 2025-03-31 18:27:48,111 - INFO - we take 1435 photos in this while loop
MAIN: 2025-03-31 18:27:48,111 - INFO - /home/pi/Desktop/images/31032025/18/27/image_31032025_18_27_47_29596.jpg
MAIN: 2025-03-31 18:27:48,111 - INFO - duration: 0.6756643269982305
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:28:06,293 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:28:18,163 - INFO - taking picture
MAIN: 2025-03-31 18:28:18,163 - INFO - we take 1436 photos in this while loop
MAIN: 2025-03-31 18:28:18,163 - INFO - /home/pi/Desktop/images/31032025/18/27/image_31032025_18_28_17_30030.jpg
MAIN: 2025-03-31 18:28:18,164 - INFO - duration: 0.697530936995463
MAIN: 2025-03-31 18:28:18,164 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/28'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:28:49,083 - INFO - taking picture
MAIN: 2025-03-31 18:28:49,083 - INFO - we take 1437 photos in this while loop
MAIN: 2025-03-31 18:28:49,083 - INFO - /home/pi/Desktop/images/31032025/18/28/image_31032025_18_28_48_30944.jpg
MAIN: 2025-03-31 18:28:49,084 - INFO - duration: 0.6726238170012948
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:29:06,380 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:29:18,917 - INFO - taking picture
MAIN: 2025-03-31 18:29:18,918 - INFO - we take 1438 photos in this while loop
MAIN: 2025-03-31 18:29:18,918 - INFO - /home/pi/Desktop/images/31032025/18/28/image_31032025_18_29_18_29815.jpg
MAIN: 2025-03-31 18:29:18,918 - INFO - duration: 0.6911540729997796
MAIN: 2025-03-31 18:29:18,918 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:29:48,458 - INFO - taking picture
MAIN: 2025-03-31 18:29:48,458 - INFO - we take 1439 photos in this while loop
MAIN: 2025-03-31 18:29:48,459 - INFO - /home/pi/Desktop/images/31032025/18/29/image_31032025_18_29_48_29530.jpg
MAIN: 2025-03-31 18:29:48,459 - INFO - duration: 0.701580635002756
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 18:30:06,267 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:30:18,784 - INFO - taking picture
MAIN: 2025-03-31 18:30:18,784 - INFO - we take 1440 photos in this while loop
MAIN: 2025-03-31 18:30:18,784 - INFO - /home/pi/Desktop/images/31032025/18/29/image_31032025_18_30_18_30329.jpg
MAIN: 2025-03-31 18:30:18,785 - INFO - duration: 0.6979625669991947
MAIN: 2025-03-31 18:30:18,785 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:30:48,509 - INFO - taking picture
MAIN: 2025-03-31 18:30:48,509 - INFO - we take 1441 photos in this while loop
MAIN: 2025-03-31 18:30:48,510 - INFO - /home/pi/Desktop/images/31032025/18/30/image_31032025_18_30_48_29747.jpg
MAIN: 2025-03-31 18:30:48,510 - INFO - duration: 0.6752035169993178
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:31:06,026 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:31:18,327 - INFO - taking picture
MAIN: 2025-03-31 18:31:18,328 - INFO - we take 1442 photos in this while loop
MAIN: 2025-03-31 18:31:18,328 - INFO - /home/pi/Desktop/images/31032025/18/30/image_31032025_18_31_17_29815.jpg
MAIN: 2025-03-31 18:31:18,328 - INFO - duration: 0.6785107059986331
MAIN: 2025-03-31 18:31:18,329 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:31:49,138 - INFO - taking picture
MAIN: 2025-03-31 18:31:49,139 - INFO - we take 1443 photos in this while loop
MAIN: 2025-03-31 18:31:49,139 - INFO - /home/pi/Desktop/images/31032025/18/31/image_31032025_18_31_48_30788.jpg
MAIN: 2025-03-31 18:31:49,139 - INFO - duration: 0.7003908560000127
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:32:06,603 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:32:19,101 - INFO - taking picture
MAIN: 2025-03-31 18:32:19,102 - INFO - we take 1444 photos in this while loop
MAIN: 2025-03-31 18:32:19,102 - INFO - /home/pi/Desktop/images/31032025/18/31/image_31032025_18_32_18_29972.jpg
MAIN: 2025-03-31 18:32:19,102 - INFO - duration: 0.6912722690030932
MAIN: 2025-03-31 18:32:19,103 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:32:48,838 - INFO - taking picture
MAIN: 2025-03-31 18:32:48,838 - INFO - we take 1445 photos in this while loop
MAIN: 2025-03-31 18:32:48,838 - INFO - /home/pi/Desktop/images/31032025/18/32/image_31032025_18_32_48_29733.jpg
MAIN: 2025-03-31 18:32:48,839 - INFO - duration: 0.6942741449965979
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:33:06,493 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:33:18,756 - INFO - taking picture
MAIN: 2025-03-31 18:33:18,756 - INFO - we take 1446 photos in this while loop
MAIN: 2025-03-31 18:33:18,756 - INFO - /home/pi/Desktop/images/31032025/18/32/image_31032025_18_33_18_29917.jpg
MAIN: 2025-03-31 18:33:18,757 - INFO - duration: 0.6945473410014529
MAIN: 2025-03-31 18:33:18,757 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:33:48,378 - INFO - taking picture
MAIN: 2025-03-31 18:33:48,378 - INFO - we take 1447 photos in this while loop
MAIN: 2025-03-31 18:33:48,378 - INFO - /home/pi/Desktop/images/31032025/18/33/image_31032025_18_33_48_29626.jpg
MAIN: 2025-03-31 18:33:48,378 - INFO - duration: 0.690150046000781
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 18:34:07,083 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:34:18,404 - INFO - taking picture
MAIN: 2025-03-31 18:34:18,404 - INFO - we take 1448 photos in this while loop
MAIN: 2025-03-31 18:34:18,405 - INFO - /home/pi/Desktop/images/31032025/18/33/image_31032025_18_34_18_30021.jpg
MAIN: 2025-03-31 18:34:18,405 - INFO - duration: 0.6948412910060142
MAIN: 2025-03-31 18:34:18,405 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:34:49,271 - INFO - taking picture
MAIN: 2025-03-31 18:34:49,271 - INFO - we take 1449 photos in this while loop
MAIN: 2025-03-31 18:34:49,272 - INFO - /home/pi/Desktop/images/31032025/18/34/image_31032025_18_34_48_30882.jpg
MAIN: 2025-03-31 18:34:49,272 - INFO - duration: 0.6796755100003793
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:35:06,119 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:35:18,313 - INFO - taking picture
MAIN: 2025-03-31 18:35:18,313 - INFO - we take 1450 photos in this while loop
MAIN: 2025-03-31 18:35:18,313 - INFO - /home/pi/Desktop/images/31032025/18/34/image_31032025_18_35_17_29020.jpg
MAIN: 2025-03-31 18:35:18,314 - INFO - duration: 0.7013765950032393
MAIN: 2025-03-31 18:35:18,314 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:35:49,393 - INFO - taking picture
MAIN: 2025-03-31 18:35:49,394 - INFO - we take 1451 photos in this while loop
MAIN: 2025-03-31 18:35:49,394 - INFO - /home/pi/Desktop/images/31032025/18/35/image_31032025_18_35_49_31092.jpg
MAIN: 2025-03-31 18:35:49,394 - INFO - duration: 0.6894180019953637
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:36:06,086 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:36:19,310 - INFO - taking picture
MAIN: 2025-03-31 18:36:19,311 - INFO - we take 1452 photos in this while loop
MAIN: 2025-03-31 18:36:19,311 - INFO - /home/pi/Desktop/images/31032025/18/35/image_31032025_18_36_18_29929.jpg
MAIN: 2025-03-31 18:36:19,311 - INFO - duration: 0.6768825850012945
MAIN: 2025-03-31 18:36:19,312 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:36:48,968 - INFO - taking picture
MAIN: 2025-03-31 18:36:48,969 - INFO - we take 1453 photos in this while loop
MAIN: 2025-03-31 18:36:48,969 - INFO - /home/pi/Desktop/images/31032025/18/36/image_31032025_18_36_48_29631.jpg
MAIN: 2025-03-31 18:36:48,969 - INFO - duration: 0.7035310650026076
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 18:37:06,011 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:37:18,953 - INFO - taking picture
MAIN: 2025-03-31 18:37:18,954 - INFO - we take 1454 photos in this while loop
MAIN: 2025-03-31 18:37:18,954 - INFO - /home/pi/Desktop/images/31032025/18/36/image_31032025_18_37_18_29964.jpg
MAIN: 2025-03-31 18:37:18,954 - INFO - duration: 0.7237071500057937
MAIN: 2025-03-31 18:37:18,954 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/37'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:37:48,681 - INFO - taking picture
MAIN: 2025-03-31 18:37:48,681 - INFO - we take 1455 photos in this while loop
MAIN: 2025-03-31 18:37:48,682 - INFO - /home/pi/Desktop/images/31032025/18/37/image_31032025_18_37_48_29752.jpg
MAIN: 2025-03-31 18:37:48,682 - INFO - duration: 0.6989903310022783
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:38:06,409 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:38:18,616 - INFO - taking picture
MAIN: 2025-03-31 18:38:18,617 - INFO - we take 1456 photos in this while loop
MAIN: 2025-03-31 18:38:18,617 - INFO - /home/pi/Desktop/images/31032025/18/37/image_31032025_18_38_18_29939.jpg
MAIN: 2025-03-31 18:38:18,617 - INFO - duration: 0.6945844450019649
MAIN: 2025-03-31 18:38:18,618 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:38:48,176 - INFO - taking picture
MAIN: 2025-03-31 18:38:48,176 - INFO - we take 1457 photos in this while loop
MAIN: 2025-03-31 18:38:48,176 - INFO - /home/pi/Desktop/images/31032025/18/38/image_31032025_18_38_47_29556.jpg
MAIN: 2025-03-31 18:38:48,177 - INFO - duration: 0.6975625659979414
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:39:06,316 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:39:18,132 - INFO - taking picture
MAIN: 2025-03-31 18:39:18,132 - INFO - we take 1458 photos in this while loop
MAIN: 2025-03-31 18:39:18,132 - INFO - /home/pi/Desktop/images/31032025/18/38/image_31032025_18_39_17_29978.jpg
MAIN: 2025-03-31 18:39:18,133 - INFO - duration: 0.6755292890011333
MAIN: 2025-03-31 18:39:18,133 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:39:49,044 - INFO - taking picture
MAIN: 2025-03-31 18:39:49,045 - INFO - we take 1459 photos in this while loop
MAIN: 2025-03-31 18:39:49,045 - INFO - /home/pi/Desktop/images/31032025/18/39/image_31032025_18_39_48_30885.jpg
MAIN: 2025-03-31 18:39:49,045 - INFO - duration: 0.7028471970043029
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:40:07,209 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:40:19,105 - INFO - taking picture
MAIN: 2025-03-31 18:40:19,105 - INFO - we take 1460 photos in this while loop
MAIN: 2025-03-31 18:40:19,105 - INFO - /home/pi/Desktop/images/31032025/18/39/image_31032025_18_40_18_30063.jpg
MAIN: 2025-03-31 18:40:19,106 - INFO - duration: 0.6999411020005937
MAIN: 2025-03-31 18:40:19,106 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:40:48,754 - INFO - taking picture
MAIN: 2025-03-31 18:40:48,754 - INFO - we take 1461 photos in this while loop
MAIN: 2025-03-31 18:40:48,755 - INFO - /home/pi/Desktop/images/31032025/18/40/image_31032025_18_40_48_29651.jpg
MAIN: 2025-03-31 18:40:48,755 - INFO - duration: 0.6980725589965004
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:41:05,818 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:41:18,857 - INFO - taking picture
MAIN: 2025-03-31 18:41:18,858 - INFO - we take 1462 photos in this while loop
MAIN: 2025-03-31 18:41:18,858 - INFO - /home/pi/Desktop/images/31032025/18/40/image_31032025_18_41_18_30106.jpg
MAIN: 2025-03-31 18:41:18,858 - INFO - duration: 0.6948511520022294
MAIN: 2025-03-31 18:41:18,859 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:41:48,565 - INFO - taking picture
MAIN: 2025-03-31 18:41:48,565 - INFO - we take 1463 photos in this while loop
MAIN: 2025-03-31 18:41:48,566 - INFO - /home/pi/Desktop/images/31032025/18/41/image_31032025_18_41_48_29701.jpg
MAIN: 2025-03-31 18:41:48,566 - INFO - duration: 0.7003178150043823
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:42:06,295 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:42:18,383 - INFO - taking picture
MAIN: 2025-03-31 18:42:18,383 - INFO - we take 1464 photos in this while loop
MAIN: 2025-03-31 18:42:18,384 - INFO - /home/pi/Desktop/images/31032025/18/41/image_31032025_18_42_18_29847.jpg
MAIN: 2025-03-31 18:42:18,384 - INFO - duration: 0.6706538119979086
MAIN: 2025-03-31 18:42:18,384 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:42:49,320 - INFO - taking picture
MAIN: 2025-03-31 18:42:49,321 - INFO - we take 1465 photos in this while loop
MAIN: 2025-03-31 18:42:49,321 - INFO - /home/pi/Desktop/images/31032025/18/42/image_31032025_18_42_48_30935.jpg
MAIN: 2025-03-31 18:42:49,321 - INFO - duration: 0.6726324039991596
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 18:43:06,216 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:43:19,118 - INFO - taking picture
MAIN: 2025-03-31 18:43:19,119 - INFO - we take 1466 photos in this while loop
MAIN: 2025-03-31 18:43:19,119 - INFO - /home/pi/Desktop/images/31032025/18/42/image_31032025_18_43_18_29775.jpg
MAIN: 2025-03-31 18:43:19,119 - INFO - duration: 0.6958003120016656
MAIN: 2025-03-31 18:43:19,119 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:43:48,737 - INFO - taking picture
MAIN: 2025-03-31 18:43:48,738 - INFO - we take 1467 photos in this while loop
MAIN: 2025-03-31 18:43:48,738 - INFO - /home/pi/Desktop/images/31032025/18/43/image_31032025_18_43_48_29634.jpg
MAIN: 2025-03-31 18:43:48,738 - INFO - duration: 0.6801668260013685
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:44:06,631 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:44:18,692 - INFO - taking picture
MAIN: 2025-03-31 18:44:18,692 - INFO - we take 1468 photos in this while loop
MAIN: 2025-03-31 18:44:18,692 - INFO - /home/pi/Desktop/images/31032025/18/43/image_31032025_18_44_18_29947.jpg
MAIN: 2025-03-31 18:44:18,692 - INFO - duration: 0.6865444269933505
MAIN: 2025-03-31 18:44:18,693 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:44:48,257 - INFO - taking picture
MAIN: 2025-03-31 18:44:48,258 - INFO - we take 1469 photos in this while loop
MAIN: 2025-03-31 18:44:48,258 - INFO - /home/pi/Desktop/images/31032025/18/44/image_31032025_18_44_47_29561.jpg
MAIN: 2025-03-31 18:44:48,258 - INFO - duration: 0.6905362999968929
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:45:05,636 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:45:18,196 - INFO - taking picture
MAIN: 2025-03-31 18:45:18,197 - INFO - we take 1470 photos in this while loop
MAIN: 2025-03-31 18:45:18,197 - INFO - /home/pi/Desktop/images/31032025/18/44/image_31032025_18_45_17_29920.jpg
MAIN: 2025-03-31 18:45:18,197 - INFO - duration: 0.7090248870008509
MAIN: 2025-03-31 18:45:18,197 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/45'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:45:49,251 - INFO - taking picture
MAIN: 2025-03-31 18:45:49,252 - INFO - we take 1471 photos in this while loop
MAIN: 2025-03-31 18:45:49,252 - INFO - /home/pi/Desktop/images/31032025/18/45/image_31032025_18_45_48_31061.jpg
MAIN: 2025-03-31 18:45:49,252 - INFO - duration: 0.7031489509972744
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 18:46:06,116 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:46:19,211 - INFO - taking picture
MAIN: 2025-03-31 18:46:19,211 - INFO - we take 1472 photos in this while loop
MAIN: 2025-03-31 18:46:19,211 - INFO - /home/pi/Desktop/images/31032025/18/45/image_31032025_18_46_18_29988.jpg
MAIN: 2025-03-31 18:46:19,212 - INFO - duration: 0.6742664069970488
MAIN: 2025-03-31 18:46:19,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:46:48,826 - INFO - taking picture
MAIN: 2025-03-31 18:46:48,827 - INFO - we take 1473 photos in this while loop
MAIN: 2025-03-31 18:46:48,827 - INFO - /home/pi/Desktop/images/31032025/18/46/image_31032025_18_46_48_29595.jpg
MAIN: 2025-03-31 18:46:48,827 - INFO - duration: 0.6938310350014945
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:47:05,873 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:47:18,656 - INFO - taking picture
MAIN: 2025-03-31 18:47:18,656 - INFO - we take 1474 photos in this while loop
MAIN: 2025-03-31 18:47:18,657 - INFO - /home/pi/Desktop/images/31032025/18/46/image_31032025_18_47_18_29832.jpg
MAIN: 2025-03-31 18:47:18,657 - INFO - duration: 0.6912284299978637
MAIN: 2025-03-31 18:47:18,657 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:47:48,297 - INFO - taking picture
MAIN: 2025-03-31 18:47:48,297 - INFO - we take 1475 photos in this while loop
MAIN: 2025-03-31 18:47:48,297 - INFO - /home/pi/Desktop/images/31032025/18/47/image_31032025_18_47_47_29651.jpg
MAIN: 2025-03-31 18:47:48,297 - INFO - duration: 0.6808951519997208
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:48:06,572 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:48:18,501 - INFO - taking picture
MAIN: 2025-03-31 18:48:18,502 - INFO - we take 1476 photos in this while loop
MAIN: 2025-03-31 18:48:18,502 - INFO - /home/pi/Desktop/images/31032025/18/47/image_31032025_18_48_18_30195.jpg
MAIN: 2025-03-31 18:48:18,502 - INFO - duration: 0.6900926480011549
MAIN: 2025-03-31 18:48:18,502 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:48:48,171 - INFO - taking picture
MAIN: 2025-03-31 18:48:48,172 - INFO - we take 1477 photos in this while loop
MAIN: 2025-03-31 18:48:48,172 - INFO - /home/pi/Desktop/images/31032025/18/48/image_31032025_18_48_47_29656.jpg
MAIN: 2025-03-31 18:48:48,172 - INFO - duration: 0.7031622270005755
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:49:05,411 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:49:19,359 - INFO - taking picture
MAIN: 2025-03-31 18:49:19,360 - INFO - we take 1478 photos in this while loop
MAIN: 2025-03-31 18:49:19,360 - INFO - /home/pi/Desktop/images/31032025/18/48/image_31032025_18_49_18_31183.jpg
MAIN: 2025-03-31 18:49:19,361 - INFO - duration: 0.7078545690019382
MAIN: 2025-03-31 18:49:19,361 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:49:48,881 - INFO - taking picture
MAIN: 2025-03-31 18:49:48,882 - INFO - we take 1479 photos in this while loop
MAIN: 2025-03-31 18:49:48,882 - INFO - /home/pi/Desktop/images/31032025/18/49/image_31032025_18_49_48_29537.jpg
MAIN: 2025-03-31 18:49:48,882 - INFO - duration: 0.6913133229973027
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:50:06,623 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:50:19,364 - INFO - taking picture
MAIN: 2025-03-31 18:50:19,365 - INFO - we take 1480 photos in this while loop
MAIN: 2025-03-31 18:50:19,365 - INFO - /home/pi/Desktop/images/31032025/18/49/image_31032025_18_50_18_30460.jpg
MAIN: 2025-03-31 18:50:19,365 - INFO - duration: 0.7141427430033218
MAIN: 2025-03-31 18:50:19,366 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:50:48,946 - INFO - taking picture
MAIN: 2025-03-31 18:50:48,946 - INFO - we take 1481 photos in this while loop
MAIN: 2025-03-31 18:50:48,946 - INFO - /home/pi/Desktop/images/31032025/18/50/image_31032025_18_50_48_29594.jpg
MAIN: 2025-03-31 18:50:48,947 - INFO - duration: 0.7008208179977373
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:51:05,656 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:51:18,861 - INFO - taking picture
MAIN: 2025-03-31 18:51:18,862 - INFO - we take 1482 photos in this while loop
MAIN: 2025-03-31 18:51:18,862 - INFO - /home/pi/Desktop/images/31032025/18/50/image_31032025_18_51_18_29914.jpg
MAIN: 2025-03-31 18:51:18,862 - INFO - duration: 0.7022359219990904
MAIN: 2025-03-31 18:51:18,863 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:51:48,543 - INFO - taking picture
MAIN: 2025-03-31 18:51:48,544 - INFO - we take 1483 photos in this while loop
MAIN: 2025-03-31 18:51:48,544 - INFO - /home/pi/Desktop/images/31032025/18/51/image_31032025_18_51_48_29684.jpg
MAIN: 2025-03-31 18:51:48,544 - INFO - duration: 0.7001342030052911
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:52:06,424 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:52:18,314 - INFO - taking picture
MAIN: 2025-03-31 18:52:18,314 - INFO - we take 1484 photos in this while loop
MAIN: 2025-03-31 18:52:18,314 - INFO - /home/pi/Desktop/images/31032025/18/51/image_31032025_18_52_17_29776.jpg
MAIN: 2025-03-31 18:52:18,314 - INFO - duration: 0.6945500900037587
MAIN: 2025-03-31 18:52:18,315 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:52:49,110 - INFO - taking picture
MAIN: 2025-03-31 18:52:49,110 - INFO - we take 1485 photos in this while loop
MAIN: 2025-03-31 18:52:49,110 - INFO - /home/pi/Desktop/images/31032025/18/52/image_31032025_18_52_48_30800.jpg
MAIN: 2025-03-31 18:52:49,111 - INFO - duration: 0.6904861329967389
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:53:05,926 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:53:19,133 - INFO - taking picture
MAIN: 2025-03-31 18:53:19,134 - INFO - we take 1486 photos in this while loop
MAIN: 2025-03-31 18:53:19,134 - INFO - /home/pi/Desktop/images/31032025/18/52/image_31032025_18_53_18_29997.jpg
MAIN: 2025-03-31 18:53:19,134 - INFO - duration: 0.7165212289983174
MAIN: 2025-03-31 18:53:19,134 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:53:48,840 - INFO - taking picture
MAIN: 2025-03-31 18:53:48,841 - INFO - we take 1487 photos in this while loop
MAIN: 2025-03-31 18:53:48,841 - INFO - /home/pi/Desktop/images/31032025/18/53/image_31032025_18_53_48_29724.jpg
MAIN: 2025-03-31 18:53:48,841 - INFO - duration: 0.6990109199978178
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:54:06,798 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:54:18,927 - INFO - taking picture
MAIN: 2025-03-31 18:54:18,927 - INFO - we take 1488 photos in this while loop
MAIN: 2025-03-31 18:54:18,927 - INFO - /home/pi/Desktop/images/31032025/18/53/image_31032025_18_54_18_30082.jpg
MAIN: 2025-03-31 18:54:18,928 - INFO - duration: 0.703020397995715
MAIN: 2025-03-31 18:54:18,928 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/54'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:54:48,513 - INFO - taking picture
MAIN: 2025-03-31 18:54:48,513 - INFO - we take 1489 photos in this while loop
MAIN: 2025-03-31 18:54:48,514 - INFO - /home/pi/Desktop/images/31032025/18/54/image_31032025_18_54_48_29588.jpg
MAIN: 2025-03-31 18:54:48,514 - INFO - duration: 0.7004246180003975
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:55:06,941 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:55:18,758 - INFO - taking picture
MAIN: 2025-03-31 18:55:18,759 - INFO - we take 1490 photos in this while loop
MAIN: 2025-03-31 18:55:18,759 - INFO - /home/pi/Desktop/images/31032025/18/54/image_31032025_18_55_18_30250.jpg
MAIN: 2025-03-31 18:55:18,759 - INFO - duration: 0.6947450879961252
MAIN: 2025-03-31 18:55:18,759 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/55'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:55:48,286 - INFO - taking picture
MAIN: 2025-03-31 18:55:48,287 - INFO - we take 1491 photos in this while loop
MAIN: 2025-03-31 18:55:48,287 - INFO - /home/pi/Desktop/images/31032025/18/55/image_31032025_18_55_47_29526.jpg
MAIN: 2025-03-31 18:55:48,287 - INFO - duration: 0.6960189940000419
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:56:06,004 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:56:19,367 - INFO - taking picture
MAIN: 2025-03-31 18:56:19,368 - INFO - we take 1492 photos in this while loop
MAIN: 2025-03-31 18:56:19,368 - INFO - /home/pi/Desktop/images/31032025/18/55/image_31032025_18_56_18_31077.jpg
MAIN: 2025-03-31 18:56:19,368 - INFO - duration: 0.6997814400019706
MAIN: 2025-03-31 18:56:19,369 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:56:49,033 - INFO - taking picture
MAIN: 2025-03-31 18:56:49,034 - INFO - we take 1493 photos in this while loop
MAIN: 2025-03-31 18:56:49,034 - INFO - /home/pi/Desktop/images/31032025/18/56/image_31032025_18_56_48_29665.jpg
MAIN: 2025-03-31 18:56:49,034 - INFO - duration: 0.7004508669997449
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:57:05,909 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:57:18,966 - INFO - taking picture
MAIN: 2025-03-31 18:57:18,967 - INFO - we take 1494 photos in this while loop
MAIN: 2025-03-31 18:57:18,967 - INFO - /home/pi/Desktop/images/31032025/18/56/image_31032025_18_57_18_29953.jpg
MAIN: 2025-03-31 18:57:18,967 - INFO - duration: 0.6799748310004361
MAIN: 2025-03-31 18:57:18,968 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:57:48,600 - INFO - taking picture
MAIN: 2025-03-31 18:57:48,601 - INFO - we take 1495 photos in this while loop
MAIN: 2025-03-31 18:57:48,601 - INFO - /home/pi/Desktop/images/31032025/18/57/image_31032025_18_57_48_29623.jpg
MAIN: 2025-03-31 18:57:48,601 - INFO - duration: 0.6907849319977686
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 18:58:06,403 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:58:18,623 - INFO - taking picture
MAIN: 2025-03-31 18:58:18,623 - INFO - we take 1496 photos in this while loop
MAIN: 2025-03-31 18:58:18,624 - INFO - /home/pi/Desktop/images/31032025/18/57/image_31032025_18_58_18_30039.jpg
MAIN: 2025-03-31 18:58:18,624 - INFO - duration: 0.6739860829984536
MAIN: 2025-03-31 18:58:18,624 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/58'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:58:48,268 - INFO - taking picture
MAIN: 2025-03-31 18:58:48,268 - INFO - we take 1497 photos in this while loop
MAIN: 2025-03-31 18:58:48,269 - INFO - /home/pi/Desktop/images/31032025/18/58/image_31032025_18_58_47_29630.jpg
MAIN: 2025-03-31 18:58:48,269 - INFO - duration: 0.6880974320010864
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 18:59:06,193 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:59:18,232 - INFO - taking picture
MAIN: 2025-03-31 18:59:18,232 - INFO - we take 1498 photos in this while loop
MAIN: 2025-03-31 18:59:18,233 - INFO - /home/pi/Desktop/images/31032025/18/58/image_31032025_18_59_17_29961.jpg
MAIN: 2025-03-31 18:59:18,233 - INFO - duration: 0.6906577429981553
MAIN: 2025-03-31 18:59:18,233 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/18/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 18:59:49,094 - INFO - taking picture
MAIN: 2025-03-31 18:59:49,094 - INFO - we take 1499 photos in this while loop
MAIN: 2025-03-31 18:59:49,094 - INFO - /home/pi/Desktop/images/31032025/18/59/image_31032025_18_59_48_30856.jpg
MAIN: 2025-03-31 18:59:49,095 - INFO - duration: 0.6957577940047486
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:00:07,204 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:00:19,280 - INFO - taking picture
MAIN: 2025-03-31 19:00:19,281 - INFO - we take 1500 photos in this while loop
MAIN: 2025-03-31 19:00:19,281 - INFO - /home/pi/Desktop/images/31032025/18/59/image_31032025_19_00_18_30171.jpg
MAIN: 2025-03-31 19:00:19,281 - INFO - duration: 0.710786799005291
MAIN: 2025-03-31 19:00:19,282 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/00'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:00:48,927 - INFO - taking picture
MAIN: 2025-03-31 19:00:48,928 - INFO - we take 1501 photos in this while loop
MAIN: 2025-03-31 19:00:48,928 - INFO - /home/pi/Desktop/images/31032025/19/00/image_31032025_19_00_48_29653.jpg
MAIN: 2025-03-31 19:00:48,928 - INFO - duration: 0.704169926000759
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:01:06,490 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:01:18,921 - INFO - taking picture
MAIN: 2025-03-31 19:01:18,921 - INFO - we take 1502 photos in this while loop
MAIN: 2025-03-31 19:01:18,922 - INFO - /home/pi/Desktop/images/31032025/19/00/image_31032025_19_01_18_29987.jpg
MAIN: 2025-03-31 19:01:18,922 - INFO - duration: 0.7100363829958951
MAIN: 2025-03-31 19:01:18,922 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:01:48,589 - INFO - taking picture
MAIN: 2025-03-31 19:01:48,589 - INFO - we take 1503 photos in this while loop
MAIN: 2025-03-31 19:01:48,589 - INFO - /home/pi/Desktop/images/31032025/19/01/image_31032025_19_01_48_29686.jpg
MAIN: 2025-03-31 19:01:48,590 - INFO - duration: 0.6914284719969146
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:02:06,076 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:02:18,823 - INFO - taking picture
MAIN: 2025-03-31 19:02:18,824 - INFO - we take 1504 photos in this while loop
MAIN: 2025-03-31 19:02:18,824 - INFO - /home/pi/Desktop/images/31032025/19/01/image_31032025_19_02_18_30231.jpg
MAIN: 2025-03-31 19:02:18,824 - INFO - duration: 0.69504221999523
MAIN: 2025-03-31 19:02:18,825 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/02'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:02:48,504 - INFO - taking picture
MAIN: 2025-03-31 19:02:48,505 - INFO - we take 1505 photos in this while loop
MAIN: 2025-03-31 19:02:48,505 - INFO - /home/pi/Desktop/images/31032025/19/02/image_31032025_19_02_48_29679.jpg
MAIN: 2025-03-31 19:02:48,505 - INFO - duration: 0.6959606050004368
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:03:05,457 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:03:18,325 - INFO - taking picture
MAIN: 2025-03-31 19:03:18,326 - INFO - we take 1506 photos in this while loop
MAIN: 2025-03-31 19:03:18,326 - INFO - /home/pi/Desktop/images/31032025/19/02/image_31032025_19_03_17_29826.jpg
MAIN: 2025-03-31 19:03:18,326 - INFO - duration: 0.6899066480036709
MAIN: 2025-03-31 19:03:18,326 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/03'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:03:49,197 - INFO - taking picture
MAIN: 2025-03-31 19:03:49,197 - INFO - we take 1507 photos in this while loop
MAIN: 2025-03-31 19:03:49,197 - INFO - /home/pi/Desktop/images/31032025/19/03/image_31032025_19_03_48_30869.jpg
MAIN: 2025-03-31 19:03:49,198 - INFO - duration: 0.692484251994756
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:04:06,163 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:04:19,285 - INFO - taking picture
MAIN: 2025-03-31 19:04:19,286 - INFO - we take 1508 photos in this while loop
MAIN: 2025-03-31 19:04:19,286 - INFO - /home/pi/Desktop/images/31032025/19/03/image_31032025_19_04_18_30088.jpg
MAIN: 2025-03-31 19:04:19,286 - INFO - duration: 0.6926785229952657
MAIN: 2025-03-31 19:04:19,286 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/04'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:04:48,833 - INFO - taking picture
MAIN: 2025-03-31 19:04:48,834 - INFO - we take 1509 photos in this while loop
MAIN: 2025-03-31 19:04:48,834 - INFO - /home/pi/Desktop/images/31032025/19/04/image_31032025_19_04_48_29543.jpg
MAIN: 2025-03-31 19:04:48,834 - INFO - duration: 0.6974814369968954
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:05:06,642 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:05:18,722 - INFO - taking picture
MAIN: 2025-03-31 19:05:18,722 - INFO - we take 1510 photos in this while loop
MAIN: 2025-03-31 19:05:18,723 - INFO - /home/pi/Desktop/images/31032025/19/04/image_31032025_19_05_18_29891.jpg
MAIN: 2025-03-31 19:05:18,723 - INFO - duration: 0.6951858129978064
MAIN: 2025-03-31 19:05:18,723 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/05'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:05:48,269 - INFO - taking picture
MAIN: 2025-03-31 19:05:48,269 - INFO - we take 1511 photos in this while loop
MAIN: 2025-03-31 19:05:48,270 - INFO - /home/pi/Desktop/images/31032025/19/05/image_31032025_19_05_47_29549.jpg
MAIN: 2025-03-31 19:05:48,270 - INFO - duration: 0.69266097000218
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:06:06,591 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:06:18,176 - INFO - taking picture
MAIN: 2025-03-31 19:06:18,176 - INFO - we take 1512 photos in this while loop
MAIN: 2025-03-31 19:06:18,176 - INFO - /home/pi/Desktop/images/31032025/19/05/image_31032025_19_06_17_29896.jpg
MAIN: 2025-03-31 19:06:18,176 - INFO - duration: 0.7029132589959772
MAIN: 2025-03-31 19:06:18,177 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:06:49,056 - INFO - taking picture
MAIN: 2025-03-31 19:06:49,057 - INFO - we take 1513 photos in this while loop
MAIN: 2025-03-31 19:06:49,057 - INFO - /home/pi/Desktop/images/31032025/19/06/image_31032025_19_06_48_30891.jpg
MAIN: 2025-03-31 19:06:49,057 - INFO - duration: 0.6926052929993602
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:07:06,469 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:07:18,732 - INFO - taking picture
MAIN: 2025-03-31 19:07:18,732 - INFO - we take 1514 photos in this while loop
MAIN: 2025-03-31 19:07:18,733 - INFO - /home/pi/Desktop/images/31032025/19/06/image_31032025_19_07_18_29676.jpg
MAIN: 2025-03-31 19:07:18,733 - INFO - duration: 0.6914263350045076
MAIN: 2025-03-31 19:07:18,733 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:07:48,295 - INFO - taking picture
MAIN: 2025-03-31 19:07:48,296 - INFO - we take 1515 photos in this while loop
MAIN: 2025-03-31 19:07:48,296 - INFO - /home/pi/Desktop/images/31032025/19/07/image_31032025_19_07_47_29555.jpg
MAIN: 2025-03-31 19:07:48,296 - INFO - duration: 0.7000202599956538
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 19:08:07,052 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:08:18,369 - INFO - taking picture
MAIN: 2025-03-31 19:08:18,370 - INFO - we take 1516 photos in this while loop
MAIN: 2025-03-31 19:08:18,370 - INFO - /home/pi/Desktop/images/31032025/19/07/image_31032025_19_08_17_30101.jpg
MAIN: 2025-03-31 19:08:18,370 - INFO - duration: 0.6719476979997125
MAIN: 2025-03-31 19:08:18,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:08:49,274 - INFO - taking picture
MAIN: 2025-03-31 19:08:49,275 - INFO - we take 1517 photos in this while loop
MAIN: 2025-03-31 19:08:49,275 - INFO - /home/pi/Desktop/images/31032025/19/08/image_31032025_19_08_48_30879.jpg
MAIN: 2025-03-31 19:08:49,275 - INFO - duration: 0.698101221001707
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 19:09:05,725 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:09:19,184 - INFO - taking picture
MAIN: 2025-03-31 19:09:19,185 - INFO - we take 1518 photos in this while loop
MAIN: 2025-03-31 19:09:19,185 - INFO - /home/pi/Desktop/images/31032025/19/08/image_31032025_19_09_18_29907.jpg
MAIN: 2025-03-31 19:09:19,185 - INFO - duration: 0.7004522279967205
MAIN: 2025-03-31 19:09:19,186 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:09:48,655 - INFO - taking picture
MAIN: 2025-03-31 19:09:48,656 - INFO - we take 1519 photos in this while loop
MAIN: 2025-03-31 19:09:48,656 - INFO - /home/pi/Desktop/images/31032025/19/09/image_31032025_19_09_48_29478.jpg
MAIN: 2025-03-31 19:09:48,656 - INFO - duration: 0.693595003001974
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:10:07,000 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:10:18,812 - INFO - taking picture
MAIN: 2025-03-31 19:10:18,813 - INFO - we take 1520 photos in this while loop
MAIN: 2025-03-31 19:10:18,813 - INFO - /home/pi/Desktop/images/31032025/19/09/image_31032025_19_10_18_30149.jpg
MAIN: 2025-03-31 19:10:18,813 - INFO - duration: 0.7009165890049189
MAIN: 2025-03-31 19:10:18,813 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:10:48,490 - INFO - taking picture
MAIN: 2025-03-31 19:10:48,490 - INFO - we take 1521 photos in this while loop
MAIN: 2025-03-31 19:10:48,491 - INFO - /home/pi/Desktop/images/31032025/19/10/image_31032025_19_10_48_29699.jpg
MAIN: 2025-03-31 19:10:48,491 - INFO - duration: 0.6792659759958042
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:11:06,013 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:11:18,451 - INFO - taking picture
MAIN: 2025-03-31 19:11:18,452 - INFO - we take 1522 photos in this while loop
MAIN: 2025-03-31 19:11:18,452 - INFO - /home/pi/Desktop/images/31032025/19/10/image_31032025_19_11_18_29944.jpg
MAIN: 2025-03-31 19:11:18,452 - INFO - duration: 0.6959406960013439
MAIN: 2025-03-31 19:11:18,452 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/11'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:11:49,328 - INFO - taking picture
MAIN: 2025-03-31 19:11:49,329 - INFO - we take 1523 photos in this while loop
MAIN: 2025-03-31 19:11:49,329 - INFO - /home/pi/Desktop/images/31032025/19/11/image_31032025_19_11_48_30870.jpg
MAIN: 2025-03-31 19:11:49,329 - INFO - duration: 0.703082389998599
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:12:06,766 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:12:18,124 - INFO - taking picture
MAIN: 2025-03-31 19:12:18,125 - INFO - we take 1524 photos in this while loop
MAIN: 2025-03-31 19:12:18,125 - INFO - /home/pi/Desktop/images/31032025/19/11/image_31032025_19_12_17_28809.jpg
MAIN: 2025-03-31 19:12:18,125 - INFO - duration: 0.6896089230067446
MAIN: 2025-03-31 19:12:18,126 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/12'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:12:48,992 - INFO - taking picture
MAIN: 2025-03-31 19:12:48,993 - INFO - we take 1525 photos in this while loop
MAIN: 2025-03-31 19:12:48,993 - INFO - /home/pi/Desktop/images/31032025/19/12/image_31032025_19_12_48_30860.jpg
MAIN: 2025-03-31 19:12:48,993 - INFO - duration: 0.6968841099951533
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:13:06,592 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:13:18,885 - INFO - taking picture
MAIN: 2025-03-31 19:13:18,886 - INFO - we take 1526 photos in this while loop
MAIN: 2025-03-31 19:13:18,886 - INFO - /home/pi/Desktop/images/31032025/19/12/image_31032025_19_13_18_29883.jpg
MAIN: 2025-03-31 19:13:18,886 - INFO - duration: 0.7068141950003337
MAIN: 2025-03-31 19:13:18,887 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/13'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:13:48,485 - INFO - taking picture
MAIN: 2025-03-31 19:13:48,486 - INFO - we take 1527 photos in this while loop
MAIN: 2025-03-31 19:13:48,486 - INFO - /home/pi/Desktop/images/31032025/19/13/image_31032025_19_13_48_29602.jpg
MAIN: 2025-03-31 19:13:48,486 - INFO - duration: 0.7039325060031842
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:14:06,952 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:14:18,604 - INFO - taking picture
MAIN: 2025-03-31 19:14:18,604 - INFO - we take 1528 photos in this while loop
MAIN: 2025-03-31 19:14:18,605 - INFO - /home/pi/Desktop/images/31032025/19/13/image_31032025_19_14_18_30152.jpg
MAIN: 2025-03-31 19:14:18,605 - INFO - duration: 0.6701725289967726
MAIN: 2025-03-31 19:14:18,605 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:14:48,276 - INFO - taking picture
MAIN: 2025-03-31 19:14:48,277 - INFO - we take 1529 photos in this while loop
MAIN: 2025-03-31 19:14:48,277 - INFO - /home/pi/Desktop/images/31032025/19/14/image_31032025_19_14_47_29666.jpg
MAIN: 2025-03-31 19:14:48,277 - INFO - duration: 0.6761676690002787
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:15:06,304 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:15:18,436 - INFO - taking picture
MAIN: 2025-03-31 19:15:18,436 - INFO - we take 1530 photos in this while loop
MAIN: 2025-03-31 19:15:18,436 - INFO - /home/pi/Desktop/images/31032025/19/14/image_31032025_19_15_18_30142.jpg
MAIN: 2025-03-31 19:15:18,437 - INFO - duration: 0.6928498940033023
MAIN: 2025-03-31 19:15:18,437 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/15'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:15:48,134 - INFO - taking picture
MAIN: 2025-03-31 19:15:48,135 - INFO - we take 1531 photos in this while loop
MAIN: 2025-03-31 19:15:48,135 - INFO - /home/pi/Desktop/images/31032025/19/15/image_31032025_19_15_47_29721.jpg
MAIN: 2025-03-31 19:15:48,135 - INFO - duration: 0.6701156029957929
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:16:05,981 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:16:18,216 - INFO - taking picture
MAIN: 2025-03-31 19:16:18,216 - INFO - we take 1532 photos in this while loop
MAIN: 2025-03-31 19:16:18,216 - INFO - /home/pi/Desktop/images/31032025/19/15/image_31032025_19_16_17_30062.jpg
MAIN: 2025-03-31 19:16:18,216 - INFO - duration: 0.6888503830050468
MAIN: 2025-03-31 19:16:18,217 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:16:49,147 - INFO - taking picture
MAIN: 2025-03-31 19:16:49,147 - INFO - we take 1533 photos in this while loop
MAIN: 2025-03-31 19:16:49,147 - INFO - /home/pi/Desktop/images/31032025/19/16/image_31032025_19_16_48_30928.jpg
MAIN: 2025-03-31 19:16:49,148 - INFO - duration: 0.6912316180023481
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:17:05,999 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:17:19,071 - INFO - taking picture
MAIN: 2025-03-31 19:17:19,071 - INFO - we take 1534 photos in this while loop
MAIN: 2025-03-31 19:17:19,072 - INFO - /home/pi/Desktop/images/31032025/19/16/image_31032025_19_17_18_29922.jpg
MAIN: 2025-03-31 19:17:19,072 - INFO - duration: 0.6925275940011488
MAIN: 2025-03-31 19:17:19,072 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:17:48,628 - INFO - taking picture
MAIN: 2025-03-31 19:17:48,629 - INFO - we take 1535 photos in this while loop
MAIN: 2025-03-31 19:17:48,629 - INFO - /home/pi/Desktop/images/31032025/19/17/image_31032025_19_17_48_29555.jpg
MAIN: 2025-03-31 19:17:48,629 - INFO - duration: 0.6944538830066449
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:18:06,411 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:18:18,571 - INFO - taking picture
MAIN: 2025-03-31 19:18:18,572 - INFO - we take 1536 photos in this while loop
MAIN: 2025-03-31 19:18:18,572 - INFO - /home/pi/Desktop/images/31032025/19/17/image_31032025_19_18_18_29941.jpg
MAIN: 2025-03-31 19:18:18,572 - INFO - duration: 0.6962481939990539
MAIN: 2025-03-31 19:18:18,573 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:18:48,198 - INFO - taking picture
MAIN: 2025-03-31 19:18:48,198 - INFO - we take 1537 photos in this while loop
MAIN: 2025-03-31 19:18:48,198 - INFO - /home/pi/Desktop/images/31032025/19/18/image_31032025_19_18_47_29616.jpg
MAIN: 2025-03-31 19:18:48,199 - INFO - duration: 0.7063416730015888
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:19:06,563 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:19:18,233 - INFO - taking picture
MAIN: 2025-03-31 19:19:18,233 - INFO - we take 1538 photos in this while loop
MAIN: 2025-03-31 19:19:18,233 - INFO - /home/pi/Desktop/images/31032025/19/18/image_31032025_19_19_17_30051.jpg
MAIN: 2025-03-31 19:19:18,233 - INFO - duration: 0.6900525970049785
MAIN: 2025-03-31 19:19:18,234 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:19:49,029 - INFO - taking picture
MAIN: 2025-03-31 19:19:49,030 - INFO - we take 1539 photos in this while loop
MAIN: 2025-03-31 19:19:49,030 - INFO - /home/pi/Desktop/images/31032025/19/19/image_31032025_19_19_48_30803.jpg
MAIN: 2025-03-31 19:19:49,030 - INFO - duration: 0.6835662849989603
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:20:06,584 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:20:19,283 - INFO - taking picture
MAIN: 2025-03-31 19:20:19,283 - INFO - we take 1540 photos in this while loop
MAIN: 2025-03-31 19:20:19,284 - INFO - /home/pi/Desktop/images/31032025/19/19/image_31032025_19_20_18_30237.jpg
MAIN: 2025-03-31 19:20:19,284 - INFO - duration: 0.6992466400042758
MAIN: 2025-03-31 19:20:19,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:20:48,808 - INFO - taking picture
MAIN: 2025-03-31 19:20:48,808 - INFO - we take 1541 photos in this while loop
MAIN: 2025-03-31 19:20:48,808 - INFO - /home/pi/Desktop/images/31032025/19/20/image_31032025_19_20_48_29533.jpg
MAIN: 2025-03-31 19:20:48,809 - INFO - duration: 0.690817151000374
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:21:05,821 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:21:18,872 - INFO - taking picture
MAIN: 2025-03-31 19:21:18,873 - INFO - we take 1542 photos in this while loop
MAIN: 2025-03-31 19:21:18,873 - INFO - /home/pi/Desktop/images/31032025/19/20/image_31032025_19_21_18_30085.jpg
MAIN: 2025-03-31 19:21:18,873 - INFO - duration: 0.6698157360006007
MAIN: 2025-03-31 19:21:18,873 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:21:48,409 - INFO - taking picture
MAIN: 2025-03-31 19:21:48,409 - INFO - we take 1543 photos in this while loop
MAIN: 2025-03-31 19:21:48,409 - INFO - /home/pi/Desktop/images/31032025/19/21/image_31032025_19_21_48_29521.jpg
MAIN: 2025-03-31 19:21:48,409 - INFO - duration: 0.6847573429986369
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:22:06,623 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:22:18,185 - INFO - taking picture
MAIN: 2025-03-31 19:22:18,186 - INFO - we take 1544 photos in this while loop
MAIN: 2025-03-31 19:22:18,186 - INFO - /home/pi/Desktop/images/31032025/19/21/image_31032025_19_22_17_29798.jpg
MAIN: 2025-03-31 19:22:18,186 - INFO - duration: 0.6634577000004356
MAIN: 2025-03-31 19:22:18,187 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:22:48,914 - INFO - taking picture
MAIN: 2025-03-31 19:22:48,915 - INFO - we take 1545 photos in this while loop
MAIN: 2025-03-31 19:22:48,915 - INFO - /home/pi/Desktop/images/31032025/19/22/image_31032025_19_22_48_30699.jpg
MAIN: 2025-03-31 19:22:48,915 - INFO - duration: 0.6935042030017939
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:23:06,047 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:23:18,566 - INFO - taking picture
MAIN: 2025-03-31 19:23:18,566 - INFO - we take 1546 photos in this while loop
MAIN: 2025-03-31 19:23:18,567 - INFO - /home/pi/Desktop/images/31032025/19/22/image_31032025_19_23_18_29645.jpg
MAIN: 2025-03-31 19:23:18,567 - INFO - duration: 0.6999712270044256
MAIN: 2025-03-31 19:23:18,567 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:23:49,370 - INFO - taking picture
MAIN: 2025-03-31 19:23:49,371 - INFO - we take 1547 photos in this while loop
MAIN: 2025-03-31 19:23:49,371 - INFO - /home/pi/Desktop/images/31032025/19/23/image_31032025_19_23_48_30834.jpg
MAIN: 2025-03-31 19:23:49,371 - INFO - duration: 0.6700034089953988
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:24:06,976 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:24:18,135 - INFO - taking picture
MAIN: 2025-03-31 19:24:18,136 - INFO - we take 1548 photos in this while loop
MAIN: 2025-03-31 19:24:18,136 - INFO - /home/pi/Desktop/images/31032025/19/23/image_31032025_19_24_17_28744.jpg
MAIN: 2025-03-31 19:24:18,136 - INFO - duration: 0.6905504850001307
MAIN: 2025-03-31 19:24:18,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:24:49,044 - INFO - taking picture
MAIN: 2025-03-31 19:24:49,044 - INFO - we take 1549 photos in this while loop
MAIN: 2025-03-31 19:24:49,045 - INFO - /home/pi/Desktop/images/31032025/19/24/image_31032025_19_24_48_30897.jpg
MAIN: 2025-03-31 19:24:49,045 - INFO - duration: 0.7009870420006337
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:25:05,989 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:25:19,152 - INFO - taking picture
MAIN: 2025-03-31 19:25:19,152 - INFO - we take 1550 photos in this while loop
MAIN: 2025-03-31 19:25:19,152 - INFO - /home/pi/Desktop/images/31032025/19/24/image_31032025_19_25_18_30112.jpg
MAIN: 2025-03-31 19:25:19,153 - INFO - duration: 0.6959230259963078
MAIN: 2025-03-31 19:25:19,153 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:25:48,655 - INFO - taking picture
MAIN: 2025-03-31 19:25:48,655 - INFO - we take 1551 photos in this while loop
MAIN: 2025-03-31 19:25:48,655 - INFO - /home/pi/Desktop/images/31032025/19/25/image_31032025_19_25_48_29507.jpg
MAIN: 2025-03-31 19:25:48,656 - INFO - duration: 0.6916592189954827
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:26:06,082 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:26:18,864 - INFO - taking picture
MAIN: 2025-03-31 19:26:18,865 - INFO - we take 1552 photos in this while loop
MAIN: 2025-03-31 19:26:18,865 - INFO - /home/pi/Desktop/images/31032025/19/25/image_31032025_19_26_18_30207.jpg
MAIN: 2025-03-31 19:26:18,865 - INFO - duration: 0.6944955170038156
MAIN: 2025-03-31 19:26:18,866 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:26:48,129 - INFO - taking picture
MAIN: 2025-03-31 19:26:48,130 - INFO - we take 1553 photos in this while loop
MAIN: 2025-03-31 19:26:48,130 - INFO - /home/pi/Desktop/images/31032025/19/26/image_31032025_19_26_47_29260.jpg
MAIN: 2025-03-31 19:26:48,131 - INFO - duration: 0.6994938970019575
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:27:06,083 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:27:18,214 - INFO - taking picture
MAIN: 2025-03-31 19:27:18,214 - INFO - we take 1554 photos in this while loop
MAIN: 2025-03-31 19:27:18,215 - INFO - /home/pi/Desktop/images/31032025/19/26/image_31032025_19_27_17_30116.jpg
MAIN: 2025-03-31 19:27:18,215 - INFO - duration: 0.6675575930057676
MAIN: 2025-03-31 19:27:18,215 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/27'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:27:49,134 - INFO - taking picture
MAIN: 2025-03-31 19:27:49,135 - INFO - we take 1555 photos in this while loop
MAIN: 2025-03-31 19:27:49,135 - INFO - /home/pi/Desktop/images/31032025/19/27/image_31032025_19_27_48_30890.jpg
MAIN: 2025-03-31 19:27:49,135 - INFO - duration: 0.6975977430047351
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:28:06,387 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:28:19,248 - INFO - taking picture
MAIN: 2025-03-31 19:28:19,249 - INFO - we take 1556 photos in this while loop
MAIN: 2025-03-31 19:28:19,249 - INFO - /home/pi/Desktop/images/31032025/19/27/image_31032025_19_28_18_30111.jpg
MAIN: 2025-03-31 19:28:19,249 - INFO - duration: 0.700386279997474
MAIN: 2025-03-31 19:28:19,250 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:28:48,874 - INFO - taking picture
MAIN: 2025-03-31 19:28:48,875 - INFO - we take 1557 photos in this while loop
MAIN: 2025-03-31 19:28:48,875 - INFO - /home/pi/Desktop/images/31032025/19/28/image_31032025_19_28_48_29647.jpg
MAIN: 2025-03-31 19:28:48,875 - INFO - duration: 0.6781449250047444
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 19:29:06,291 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:29:18,540 - INFO - taking picture
MAIN: 2025-03-31 19:29:18,541 - INFO - we take 1558 photos in this while loop
MAIN: 2025-03-31 19:29:18,541 - INFO - /home/pi/Desktop/images/31032025/19/28/image_31032025_19_29_18_29650.jpg
MAIN: 2025-03-31 19:29:18,541 - INFO - duration: 0.6933898679999402
MAIN: 2025-03-31 19:29:18,542 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:29:49,367 - INFO - taking picture
MAIN: 2025-03-31 19:29:49,368 - INFO - we take 1559 photos in this while loop
MAIN: 2025-03-31 19:29:49,368 - INFO - /home/pi/Desktop/images/31032025/19/29/image_31032025_19_29_48_30829.jpg
MAIN: 2025-03-31 19:29:49,368 - INFO - duration: 0.6903058539974154
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:30:07,354 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:30:18,408 - INFO - taking picture
MAIN: 2025-03-31 19:30:18,408 - INFO - we take 1560 photos in this while loop
MAIN: 2025-03-31 19:30:18,409 - INFO - /home/pi/Desktop/images/31032025/19/29/image_31032025_19_30_18_29040.jpg
MAIN: 2025-03-31 19:30:18,409 - INFO - duration: 0.6904939239975647
MAIN: 2025-03-31 19:30:18,409 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:30:49,282 - INFO - taking picture
MAIN: 2025-03-31 19:30:49,283 - INFO - we take 1561 photos in this while loop
MAIN: 2025-03-31 19:30:49,283 - INFO - /home/pi/Desktop/images/31032025/19/30/image_31032025_19_30_48_30867.jpg
MAIN: 2025-03-31 19:30:49,283 - INFO - duration: 0.6974787119979737
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:31:06,096 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:31:19,088 - INFO - taking picture
MAIN: 2025-03-31 19:31:19,089 - INFO - we take 1562 photos in this while loop
MAIN: 2025-03-31 19:31:19,089 - INFO - /home/pi/Desktop/images/31032025/19/30/image_31032025_19_31_18_29834.jpg
MAIN: 2025-03-31 19:31:19,089 - INFO - duration: 0.6692428269961965
MAIN: 2025-03-31 19:31:19,090 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:31:48,750 - INFO - taking picture
MAIN: 2025-03-31 19:31:48,751 - INFO - we take 1563 photos in this while loop
MAIN: 2025-03-31 19:31:48,751 - INFO - /home/pi/Desktop/images/31032025/19/31/image_31032025_19_31_48_29650.jpg
MAIN: 2025-03-31 19:31:48,751 - INFO - duration: 0.6802093340011197
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:32:06,382 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:32:19,027 - INFO - taking picture
MAIN: 2025-03-31 19:32:19,027 - INFO - we take 1564 photos in this while loop
MAIN: 2025-03-31 19:32:19,027 - INFO - /home/pi/Desktop/images/31032025/19/31/image_31032025_19_32_18_30264.jpg
MAIN: 2025-03-31 19:32:19,028 - INFO - duration: 0.6926412569955573
MAIN: 2025-03-31 19:32:19,028 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:32:48,771 - INFO - taking picture
MAIN: 2025-03-31 19:32:48,771 - INFO - we take 1565 photos in this while loop
MAIN: 2025-03-31 19:32:48,771 - INFO - /home/pi/Desktop/images/31032025/19/32/image_31032025_19_32_48_29740.jpg
MAIN: 2025-03-31 19:32:48,772 - INFO - duration: 0.6966230770049151
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:33:06,289 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:33:18,691 - INFO - taking picture
MAIN: 2025-03-31 19:33:18,692 - INFO - we take 1566 photos in this while loop
MAIN: 2025-03-31 19:33:18,692 - INFO - /home/pi/Desktop/images/31032025/19/32/image_31032025_19_33_18_29915.jpg
MAIN: 2025-03-31 19:33:18,692 - INFO - duration: 0.7019803660004982
MAIN: 2025-03-31 19:33:18,692 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:33:48,379 - INFO - taking picture
MAIN: 2025-03-31 19:33:48,380 - INFO - we take 1567 photos in this while loop
MAIN: 2025-03-31 19:33:48,380 - INFO - /home/pi/Desktop/images/31032025/19/33/image_31032025_19_33_47_29702.jpg
MAIN: 2025-03-31 19:33:48,380 - INFO - duration: 0.6877483349962858
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:34:06,392 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:34:18,488 - INFO - taking picture
MAIN: 2025-03-31 19:34:18,488 - INFO - we take 1568 photos in this while loop
MAIN: 2025-03-31 19:34:18,489 - INFO - /home/pi/Desktop/images/31032025/19/33/image_31032025_19_34_18_30096.jpg
MAIN: 2025-03-31 19:34:18,489 - INFO - duration: 0.6995711959971231
MAIN: 2025-03-31 19:34:18,489 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:34:49,358 - INFO - taking picture
MAIN: 2025-03-31 19:34:49,359 - INFO - we take 1569 photos in this while loop
MAIN: 2025-03-31 19:34:49,359 - INFO - /home/pi/Desktop/images/31032025/19/34/image_31032025_19_34_48_30872.jpg
MAIN: 2025-03-31 19:34:49,359 - INFO - duration: 0.698260361001303
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:35:06,874 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:35:18,220 - INFO - taking picture
MAIN: 2025-03-31 19:35:18,220 - INFO - we take 1570 photos in this while loop
MAIN: 2025-03-31 19:35:18,220 - INFO - /home/pi/Desktop/images/31032025/19/34/image_31032025_19_35_17_28865.jpg
MAIN: 2025-03-31 19:35:18,221 - INFO - duration: 0.6941153070001747
MAIN: 2025-03-31 19:35:18,221 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:35:49,162 - INFO - taking picture
MAIN: 2025-03-31 19:35:49,162 - INFO - we take 1571 photos in this while loop
MAIN: 2025-03-31 19:35:49,162 - INFO - /home/pi/Desktop/images/31032025/19/35/image_31032025_19_35_48_30964.jpg
MAIN: 2025-03-31 19:35:49,163 - INFO - duration: 0.6715590599997086
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:36:06,249 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:36:19,264 - INFO - taking picture
MAIN: 2025-03-31 19:36:19,264 - INFO - we take 1572 photos in this while loop
MAIN: 2025-03-31 19:36:19,264 - INFO - /home/pi/Desktop/images/31032025/19/35/image_31032025_19_36_18_30081.jpg
MAIN: 2025-03-31 19:36:19,265 - INFO - duration: 0.6924082730038208
MAIN: 2025-03-31 19:36:19,265 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:36:48,855 - INFO - taking picture
MAIN: 2025-03-31 19:36:48,856 - INFO - we take 1573 photos in this while loop
MAIN: 2025-03-31 19:36:48,856 - INFO - /home/pi/Desktop/images/31032025/19/36/image_31032025_19_36_48_29594.jpg
MAIN: 2025-03-31 19:36:48,856 - INFO - duration: 0.6894703040015884
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:37:05,844 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:37:18,878 - INFO - taking picture
MAIN: 2025-03-31 19:37:18,879 - INFO - we take 1574 photos in this while loop
MAIN: 2025-03-31 19:37:18,879 - INFO - /home/pi/Desktop/images/31032025/19/36/image_31032025_19_37_18_30043.jpg
MAIN: 2025-03-31 19:37:18,879 - INFO - duration: 0.6691345770013868
MAIN: 2025-03-31 19:37:18,880 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:37:48,483 - INFO - taking picture
MAIN: 2025-03-31 19:37:48,483 - INFO - we take 1575 photos in this while loop
MAIN: 2025-03-31 19:37:48,483 - INFO - /home/pi/Desktop/images/31032025/19/37/image_31032025_19_37_48_29599.jpg
MAIN: 2025-03-31 19:37:48,484 - INFO - duration: 0.6739951990020927
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:38:06,546 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0

 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)MAIN: 2025-03-31 19:38:18,371 - INFO - taking picture
MAIN: 2025-03-31 19:38:18,372 - INFO - we take 1576 photos in this while loop
MAIN: 2025-03-31 19:38:18,372 - INFO - /home/pi/Desktop/images/31032025/19/37/image_31032025_19_38_17_29867.jpg
MAIN: 2025-03-31 19:38:18,372 - INFO - duration: 0.6949964449959225
MAIN: 2025-03-31 19:38:18,373 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:38:49,280 - INFO - taking picture
MAIN: 2025-03-31 19:38:49,281 - INFO - we take 1577 photos in this while loop
MAIN: 2025-03-31 19:38:49,281 - INFO - /home/pi/Desktop/images/31032025/19/38/image_31032025_19_38_48_30929.jpg
MAIN: 2025-03-31 19:38:49,281 - INFO - duration: 0.6748755099979462
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:39:06,392 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:39:19,266 - INFO - taking picture
MAIN: 2025-03-31 19:39:19,266 - INFO - we take 1578 photos in this while loop
MAIN: 2025-03-31 19:39:19,266 - INFO - /home/pi/Desktop/images/31032025/19/38/image_31032025_19_39_18_29969.jpg
MAIN: 2025-03-31 19:39:19,267 - INFO - duration: 0.6906197240023175
MAIN: 2025-03-31 19:39:19,267 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:39:48,843 - INFO - taking picture
MAIN: 2025-03-31 19:39:48,844 - INFO - we take 1579 photos in this while loop
MAIN: 2025-03-31 19:39:48,844 - INFO - /home/pi/Desktop/images/31032025/19/39/image_31032025_19_39_48_29572.jpg
MAIN: 2025-03-31 19:39:48,844 - INFO - duration: 0.6957610769968596
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:40:07,207 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:40:19,069 - INFO - taking picture
MAIN: 2025-03-31 19:40:19,070 - INFO - we take 1580 photos in this while loop
MAIN: 2025-03-31 19:40:19,070 - INFO - /home/pi/Desktop/images/31032025/19/39/image_31032025_19_40_18_30246.jpg
MAIN: 2025-03-31 19:40:19,070 - INFO - duration: 0.6747493610018864
MAIN: 2025-03-31 19:40:19,071 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:40:48,631 - INFO - taking picture
MAIN: 2025-03-31 19:40:48,631 - INFO - we take 1581 photos in this while loop
MAIN: 2025-03-31 19:40:48,632 - INFO - /home/pi/Desktop/images/31032025/19/40/image_31032025_19_40_48_29567.jpg
MAIN: 2025-03-31 19:40:48,632 - INFO - duration: 0.6687544129963499
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:41:06,559 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:41:18,816 - INFO - taking picture
MAIN: 2025-03-31 19:41:18,817 - INFO - we take 1582 photos in this while loop
MAIN: 2025-03-31 19:41:18,817 - INFO - /home/pi/Desktop/images/31032025/19/40/image_31032025_19_41_18_30141.jpg
MAIN: 2025-03-31 19:41:18,817 - INFO - duration: 0.7123549780008034
MAIN: 2025-03-31 19:41:18,817 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:41:48,575 - INFO - taking picture
MAIN: 2025-03-31 19:41:48,576 - INFO - we take 1583 photos in this while loop
MAIN: 2025-03-31 19:41:48,576 - INFO - /home/pi/Desktop/images/31032025/19/41/image_31032025_19_41_48_29767.jpg
MAIN: 2025-03-31 19:41:48,576 - INFO - duration: 0.7041158050051308
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:42:07,340 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:42:18,903 - INFO - taking picture
MAIN: 2025-03-31 19:42:18,904 - INFO - we take 1584 photos in this while loop
MAIN: 2025-03-31 19:42:18,904 - INFO - /home/pi/Desktop/images/31032025/19/41/image_31032025_19_42_18_30302.jpg
MAIN: 2025-03-31 19:42:18,904 - INFO - duration: 0.7292160209981375
MAIN: 2025-03-31 19:42:18,904 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:42:48,536 - INFO - taking picture
MAIN: 2025-03-31 19:42:48,537 - INFO - we take 1585 photos in this while loop
MAIN: 2025-03-31 19:42:48,537 - INFO - /home/pi/Desktop/images/31032025/19/42/image_31032025_19_42_48_29720.jpg
MAIN: 2025-03-31 19:42:48,537 - INFO - duration: 0.64206854999793
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 19:43:05,895 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:43:18,631 - INFO - taking picture
MAIN: 2025-03-31 19:43:18,632 - INFO - we take 1586 photos in this while loop
MAIN: 2025-03-31 19:43:18,632 - INFO - /home/pi/Desktop/images/31032025/19/42/image_31032025_19_43_18_30069.jpg
MAIN: 2025-03-31 19:43:18,632 - INFO - duration: 0.6676599589991383
MAIN: 2025-03-31 19:43:18,632 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:43:48,326 - INFO - taking picture
MAIN: 2025-03-31 19:43:48,327 - INFO - we take 1587 photos in this while loop
MAIN: 2025-03-31 19:43:48,327 - INFO - /home/pi/Desktop/images/31032025/19/43/image_31032025_19_43_47_29689.jpg
MAIN: 2025-03-31 19:43:48,327 - INFO - duration: 0.673295346001396
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:44:06,573 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:44:18,347 - INFO - taking picture
MAIN: 2025-03-31 19:44:18,348 - INFO - we take 1588 photos in this while loop
MAIN: 2025-03-31 19:44:18,348 - INFO - /home/pi/Desktop/images/31032025/19/43/image_31032025_19_44_17_30022.jpg
MAIN: 2025-03-31 19:44:18,348 - INFO - duration: 0.6711827190010808
MAIN: 2025-03-31 19:44:18,349 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/44'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:44:49,266 - INFO - taking picture
MAIN: 2025-03-31 19:44:49,266 - INFO - we take 1589 photos in this while loop
MAIN: 2025-03-31 19:44:49,266 - INFO - /home/pi/Desktop/images/31032025/19/44/image_31032025_19_44_48_30908.jpg
MAIN: 2025-03-31 19:44:49,266 - INFO - duration: 0.6811427370048477
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:45:07,230 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:45:18,260 - INFO - taking picture
MAIN: 2025-03-31 19:45:18,261 - INFO - we take 1590 photos in this while loop
MAIN: 2025-03-31 19:45:18,261 - INFO - /home/pi/Desktop/images/31032025/19/44/image_31032025_19_45_17_29001.jpg
MAIN: 2025-03-31 19:45:18,261 - INFO - duration: 0.6745678189981845
MAIN: 2025-03-31 19:45:18,261 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:45:49,090 - INFO - taking picture
MAIN: 2025-03-31 19:45:49,091 - INFO - we take 1591 photos in this while loop
MAIN: 2025-03-31 19:45:49,091 - INFO - /home/pi/Desktop/images/31032025/19/45/image_31032025_19_45_48_30845.jpg
MAIN: 2025-03-31 19:45:49,091 - INFO - duration: 0.6596280639932957
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:46:06,980 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:46:19,036 - INFO - taking picture
MAIN: 2025-03-31 19:46:19,037 - INFO - we take 1592 photos in this while loop
MAIN: 2025-03-31 19:46:19,037 - INFO - /home/pi/Desktop/images/31032025/19/45/image_31032025_19_46_18_29960.jpg
MAIN: 2025-03-31 19:46:19,037 - INFO - duration: 0.6447196600056486
MAIN: 2025-03-31 19:46:19,038 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:46:48,674 - INFO - taking picture
MAIN: 2025-03-31 19:46:48,674 - INFO - we take 1593 photos in this while loop
MAIN: 2025-03-31 19:46:48,674 - INFO - /home/pi/Desktop/images/31032025/19/46/image_31032025_19_46_48_29597.jpg
MAIN: 2025-03-31 19:46:48,675 - INFO - duration: 0.6846653239990701
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:47:05,808 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:47:18,701 - INFO - taking picture
MAIN: 2025-03-31 19:47:18,702 - INFO - we take 1594 photos in this while loop
MAIN: 2025-03-31 19:47:18,702 - INFO - /home/pi/Desktop/images/31032025/19/46/image_31032025_19_47_18_30066.jpg
MAIN: 2025-03-31 19:47:18,702 - INFO - duration: 0.6462598009966314
MAIN: 2025-03-31 19:47:18,703 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:47:48,330 - INFO - taking picture
MAIN: 2025-03-31 19:47:48,330 - INFO - we take 1595 photos in this while loop
MAIN: 2025-03-31 19:47:48,331 - INFO - /home/pi/Desktop/images/31032025/19/47/image_31032025_19_47_47_29626.jpg
MAIN: 2025-03-31 19:47:48,331 - INFO - duration: 0.64831523400062
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:48:06,351 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:48:18,343 - INFO - taking picture
MAIN: 2025-03-31 19:48:18,343 - INFO - we take 1596 photos in this while loop
MAIN: 2025-03-31 19:48:18,344 - INFO - /home/pi/Desktop/images/31032025/19/47/image_31032025_19_48_17_30024.jpg
MAIN: 2025-03-31 19:48:18,344 - INFO - duration: 0.6366689570058952
MAIN: 2025-03-31 19:48:18,344 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:48:49,238 - INFO - taking picture
MAIN: 2025-03-31 19:48:49,239 - INFO - we take 1597 photos in this while loop
MAIN: 2025-03-31 19:48:49,239 - INFO - /home/pi/Desktop/images/31032025/19/48/image_31032025_19_48_48_30840.jpg
MAIN: 2025-03-31 19:48:49,239 - INFO - duration: 0.6914551829977427
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:49:05,945 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:49:19,280 - INFO - taking picture
MAIN: 2025-03-31 19:49:19,280 - INFO - we take 1598 photos in this while loop
MAIN: 2025-03-31 19:49:19,281 - INFO - /home/pi/Desktop/images/31032025/19/48/image_31032025_19_49_18_30032.jpg
MAIN: 2025-03-31 19:49:19,281 - INFO - duration: 0.7007434219995048
MAIN: 2025-03-31 19:49:19,281 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:49:48,981 - INFO - taking picture
MAIN: 2025-03-31 19:49:48,982 - INFO - we take 1599 photos in this while loop
MAIN: 2025-03-31 19:49:48,982 - INFO - /home/pi/Desktop/images/31032025/19/49/image_31032025_19_49_48_29700.jpg
MAIN: 2025-03-31 19:49:48,982 - INFO - duration: 0.7013294779972057
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:50:07,345 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:50:19,127 - INFO - taking picture
MAIN: 2025-03-31 19:50:19,127 - INFO - we take 1600 photos in this while loop
MAIN: 2025-03-31 19:50:19,128 - INFO - /home/pi/Desktop/images/31032025/19/49/image_31032025_19_50_18_30149.jpg
MAIN: 2025-03-31 19:50:19,128 - INFO - duration: 0.6979287129943259
MAIN: 2025-03-31 19:50:19,128 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:50:48,803 - INFO - taking picture
MAIN: 2025-03-31 19:50:48,804 - INFO - we take 1601 photos in this while loop
MAIN: 2025-03-31 19:50:48,804 - INFO - /home/pi/Desktop/images/31032025/19/50/image_31032025_19_50_48_29678.jpg
MAIN: 2025-03-31 19:50:48,804 - INFO - duration: 0.6953758640011074
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:51:06,464 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:51:18,795 - INFO - taking picture
MAIN: 2025-03-31 19:51:18,796 - INFO - we take 1602 photos in this while loop
MAIN: 2025-03-31 19:51:18,796 - INFO - /home/pi/Desktop/images/31032025/19/50/image_31032025_19_51_18_29990.jpg
MAIN: 2025-03-31 19:51:18,796 - INFO - duration: 0.6974908230040455
MAIN: 2025-03-31 19:51:18,797 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:51:48,457 - INFO - taking picture
MAIN: 2025-03-31 19:51:48,458 - INFO - we take 1603 photos in this while loop
MAIN: 2025-03-31 19:51:48,458 - INFO - /home/pi/Desktop/images/31032025/19/51/image_31032025_19_51_48_29664.jpg
MAIN: 2025-03-31 19:51:48,458 - INFO - duration: 0.6956145850053872
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:52:05,949 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:52:18,524 - INFO - taking picture
MAIN: 2025-03-31 19:52:18,525 - INFO - we take 1604 photos in this while loop
MAIN: 2025-03-31 19:52:18,525 - INFO - /home/pi/Desktop/images/31032025/19/51/image_31032025_19_52_18_30049.jpg
MAIN: 2025-03-31 19:52:18,525 - INFO - duration: 0.7127806799981045
MAIN: 2025-03-31 19:52:18,525 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/52'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:52:48,252 - INFO - taking picture
MAIN: 2025-03-31 19:52:48,253 - INFO - we take 1605 photos in this while loop
MAIN: 2025-03-31 19:52:48,253 - INFO - /home/pi/Desktop/images/31032025/19/52/image_31032025_19_52_47_29734.jpg
MAIN: 2025-03-31 19:52:48,253 - INFO - duration: 0.7063796529982937
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:53:05,449 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:53:18,189 - INFO - taking picture
MAIN: 2025-03-31 19:53:18,190 - INFO - we take 1606 photos in this while loop
MAIN: 2025-03-31 19:53:18,190 - INFO - /home/pi/Desktop/images/31032025/19/52/image_31032025_19_53_17_29992.jpg
MAIN: 2025-03-31 19:53:18,190 - INFO - duration: 0.6505863600032171
MAIN: 2025-03-31 19:53:18,191 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/53'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:53:49,129 - INFO - taking picture
MAIN: 2025-03-31 19:53:49,129 - INFO - we take 1607 photos in this while loop
MAIN: 2025-03-31 19:53:49,129 - INFO - /home/pi/Desktop/images/31032025/19/53/image_31032025_19_53_48_30906.jpg
MAIN: 2025-03-31 19:53:49,130 - INFO - duration: 0.6833210910044727
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:54:06,500 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:54:19,111 - INFO - taking picture
MAIN: 2025-03-31 19:54:19,111 - INFO - we take 1608 photos in this while loop
MAIN: 2025-03-31 19:54:19,111 - INFO - /home/pi/Desktop/images/31032025/19/53/image_31032025_19_54_18_29959.jpg
MAIN: 2025-03-31 19:54:19,112 - INFO - duration: 0.7053956710005878
MAIN: 2025-03-31 19:54:19,112 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/54'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:54:48,759 - INFO - taking picture
MAIN: 2025-03-31 19:54:48,760 - INFO - we take 1609 photos in this while loop
MAIN: 2025-03-31 19:54:48,760 - INFO - /home/pi/Desktop/images/31032025/19/54/image_31032025_19_54_48_29674.jpg
MAIN: 2025-03-31 19:54:48,760 - INFO - duration: 0.6791776210011449
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:55:06,654 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:55:18,733 - INFO - taking picture
MAIN: 2025-03-31 19:55:18,734 - INFO - we take 1610 photos in this while loop
MAIN: 2025-03-31 19:55:18,734 - INFO - /home/pi/Desktop/images/31032025/19/54/image_31032025_19_55_18_29958.jpg
MAIN: 2025-03-31 19:55:18,734 - INFO - duration: 0.6950023600002169
MAIN: 2025-03-31 19:55:18,734 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:55:48,250 - INFO - taking picture
MAIN: 2025-03-31 19:55:48,251 - INFO - we take 1611 photos in this while loop
MAIN: 2025-03-31 19:55:48,251 - INFO - /home/pi/Desktop/images/31032025/19/55/image_31032025_19_55_47_29533.jpg
MAIN: 2025-03-31 19:55:48,251 - INFO - duration: 0.6784266979957465
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:56:06,940 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:56:18,461 - INFO - taking picture
MAIN: 2025-03-31 19:56:18,461 - INFO - we take 1612 photos in this while loop
MAIN: 2025-03-31 19:56:18,461 - INFO - /home/pi/Desktop/images/31032025/19/55/image_31032025_19_56_18_30184.jpg
MAIN: 2025-03-31 19:56:18,462 - INFO - duration: 0.7038398179938667
MAIN: 2025-03-31 19:56:18,462 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:56:49,213 - INFO - taking picture
MAIN: 2025-03-31 19:56:49,213 - INFO - we take 1613 photos in this while loop
MAIN: 2025-03-31 19:56:49,213 - INFO - /home/pi/Desktop/images/31032025/19/56/image_31032025_19_56_48_30810.jpg
MAIN: 2025-03-31 19:56:49,213 - INFO - duration: 0.6456093310043798
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:57:05,987 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:57:19,349 - INFO - taking picture
MAIN: 2025-03-31 19:57:19,349 - INFO - we take 1614 photos in this while loop
MAIN: 2025-03-31 19:57:19,349 - INFO - /home/pi/Desktop/images/31032025/19/56/image_31032025_19_57_18_30103.jpg
MAIN: 2025-03-31 19:57:19,350 - INFO - duration: 0.6783975510043092
MAIN: 2025-03-31 19:57:19,350 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:57:48,991 - INFO - taking picture
MAIN: 2025-03-31 19:57:48,991 - INFO - we take 1615 photos in this while loop
MAIN: 2025-03-31 19:57:48,992 - INFO - /home/pi/Desktop/images/31032025/19/57/image_31032025_19_57_48_29647.jpg
MAIN: 2025-03-31 19:57:48,992 - INFO - duration: 0.6731922980034142
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 19:58:06,655 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:58:19,188 - INFO - taking picture
MAIN: 2025-03-31 19:58:19,189 - INFO - we take 1616 photos in this while loop
MAIN: 2025-03-31 19:58:19,189 - INFO - /home/pi/Desktop/images/31032025/19/57/image_31032025_19_58_18_30197.jpg
MAIN: 2025-03-31 19:58:19,189 - INFO - duration: 0.6733265229995595
MAIN: 2025-03-31 19:58:19,190 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/58'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:58:48,762 - INFO - taking picture
MAIN: 2025-03-31 19:58:48,763 - INFO - we take 1617 photos in this while loop
MAIN: 2025-03-31 19:58:48,763 - INFO - /home/pi/Desktop/images/31032025/19/58/image_31032025_19_58_48_29575.jpg
MAIN: 2025-03-31 19:58:48,763 - INFO - duration: 0.6717694969993317
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 19:59:05,863 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:59:18,555 - INFO - taking picture
MAIN: 2025-03-31 19:59:18,555 - INFO - we take 1618 photos in this while loop
MAIN: 2025-03-31 19:59:18,555 - INFO - /home/pi/Desktop/images/31032025/19/58/image_31032025_19_59_18_29766.jpg
MAIN: 2025-03-31 19:59:18,556 - INFO - duration: 0.6974658960025408
MAIN: 2025-03-31 19:59:18,556 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/19/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 19:59:48,223 - INFO - taking picture
MAIN: 2025-03-31 19:59:48,224 - INFO - we take 1619 photos in this while loop
MAIN: 2025-03-31 19:59:48,224 - INFO - /home/pi/Desktop/images/31032025/19/59/image_31032025_19_59_47_29670.jpg
MAIN: 2025-03-31 19:59:48,224 - INFO - duration: 0.6959987149966764
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:00:06,242 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:00:18,415 - INFO - taking picture
MAIN: 2025-03-31 20:00:18,416 - INFO - we take 1620 photos in this while loop
MAIN: 2025-03-31 20:00:18,416 - INFO - /home/pi/Desktop/images/31032025/19/59/image_31032025_20_00_18_30193.jpg
MAIN: 2025-03-31 20:00:18,416 - INFO - duration: 0.6946661670008325
MAIN: 2025-03-31 20:00:18,417 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:00:49,226 - INFO - taking picture
MAIN: 2025-03-31 20:00:49,226 - INFO - we take 1621 photos in this while loop
MAIN: 2025-03-31 20:00:49,226 - INFO - /home/pi/Desktop/images/31032025/20/00/image_31032025_20_00_48_30861.jpg
MAIN: 2025-03-31 20:00:49,227 - INFO - duration: 0.6433309319982072
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:01:05,967 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:01:19,332 - INFO - taking picture
MAIN: 2025-03-31 20:01:19,332 - INFO - we take 1622 photos in this while loop
MAIN: 2025-03-31 20:01:19,332 - INFO - /home/pi/Desktop/images/31032025/20/00/image_31032025_20_01_18_30054.jpg
MAIN: 2025-03-31 20:01:19,333 - INFO - duration: 0.6946258110037888
MAIN: 2025-03-31 20:01:19,333 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:01:48,941 - INFO - taking picture
MAIN: 2025-03-31 20:01:48,941 - INFO - we take 1623 photos in this while loop
MAIN: 2025-03-31 20:01:48,941 - INFO - /home/pi/Desktop/images/31032025/20/01/image_31032025_20_01_48_29630.jpg
MAIN: 2025-03-31 20:01:48,942 - INFO - duration: 0.6733648340014042
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:02:06,318 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:02:18,936 - INFO - taking picture
MAIN: 2025-03-31 20:02:18,936 - INFO - we take 1624 photos in this while loop
MAIN: 2025-03-31 20:02:18,936 - INFO - /home/pi/Desktop/images/31032025/20/01/image_31032025_20_02_18_29971.jpg
MAIN: 2025-03-31 20:02:18,937 - INFO - duration: 0.6965584729987313
MAIN: 2025-03-31 20:02:18,937 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:02:48,746 - INFO - taking picture
MAIN: 2025-03-31 20:02:48,746 - INFO - we take 1625 photos in this while loop
MAIN: 2025-03-31 20:02:48,746 - INFO - /home/pi/Desktop/images/31032025/20/02/image_31032025_20_02_48_29821.jpg
MAIN: 2025-03-31 20:02:48,747 - INFO - duration: 0.6847118150035385
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:03:06,498 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:03:18,724 - INFO - taking picture
MAIN: 2025-03-31 20:03:18,725 - INFO - we take 1626 photos in this while loop
MAIN: 2025-03-31 20:03:18,725 - INFO - /home/pi/Desktop/images/31032025/20/02/image_31032025_20_03_18_29967.jpg
MAIN: 2025-03-31 20:03:18,725 - INFO - duration: 0.695568375995208
MAIN: 2025-03-31 20:03:18,726 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:03:48,477 - INFO - taking picture
MAIN: 2025-03-31 20:03:48,477 - INFO - we take 1627 photos in this while loop
MAIN: 2025-03-31 20:03:48,478 - INFO - /home/pi/Desktop/images/31032025/20/03/image_31032025_20_03_48_29748.jpg
MAIN: 2025-03-31 20:03:48,478 - INFO - duration: 0.6996326479929849
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:04:07,021 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:04:18,561 - INFO - taking picture
MAIN: 2025-03-31 20:04:18,562 - INFO - we take 1628 photos in this while loop
MAIN: 2025-03-31 20:04:18,562 - INFO - /home/pi/Desktop/images/31032025/20/03/image_31032025_20_04_18_30085.jpg
MAIN: 2025-03-31 20:04:18,562 - INFO - duration: 0.6983900470004301
MAIN: 2025-03-31 20:04:18,563 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:04:48,168 - INFO - taking picture
MAIN: 2025-03-31 20:04:48,168 - INFO - we take 1629 photos in this while loop
MAIN: 2025-03-31 20:04:48,168 - INFO - /home/pi/Desktop/images/31032025/20/04/image_31032025_20_04_47_29656.jpg
MAIN: 2025-03-31 20:04:48,169 - INFO - duration: 0.6485740269999951
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:05:07,142 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:05:18,243 - INFO - taking picture
MAIN: 2025-03-31 20:05:18,244 - INFO - we take 1630 photos in this while loop
MAIN: 2025-03-31 20:05:18,244 - INFO - /home/pi/Desktop/images/31032025/20/04/image_31032025_20_05_17_30050.jpg
MAIN: 2025-03-31 20:05:18,244 - INFO - duration: 0.6734095409992733
MAIN: 2025-03-31 20:05:18,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:05:49,113 - INFO - taking picture
MAIN: 2025-03-31 20:05:49,113 - INFO - we take 1631 photos in this while loop
MAIN: 2025-03-31 20:05:49,114 - INFO - /home/pi/Desktop/images/31032025/20/05/image_31032025_20_05_48_30847.jpg
MAIN: 2025-03-31 20:05:49,114 - INFO - duration: 0.6955989620037144
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:06:06,225 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:06:19,129 - INFO - taking picture
MAIN: 2025-03-31 20:06:19,129 - INFO - we take 1632 photos in this while loop
MAIN: 2025-03-31 20:06:19,130 - INFO - /home/pi/Desktop/images/31032025/20/05/image_31032025_20_06_18_30004.jpg
MAIN: 2025-03-31 20:06:19,130 - INFO - duration: 0.7066914600000018
MAIN: 2025-03-31 20:06:19,130 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:06:48,754 - INFO - taking picture
MAIN: 2025-03-31 20:06:48,755 - INFO - we take 1633 photos in this while loop
MAIN: 2025-03-31 20:06:48,755 - INFO - /home/pi/Desktop/images/31032025/20/06/image_31032025_20_06_48_29638.jpg
MAIN: 2025-03-31 20:06:48,755 - INFO - duration: 0.6938983410000219
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:07:05,897 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:07:18,729 - INFO - taking picture
MAIN: 2025-03-31 20:07:18,730 - INFO - we take 1634 photos in this while loop
MAIN: 2025-03-31 20:07:18,730 - INFO - /home/pi/Desktop/images/31032025/20/06/image_31032025_20_07_18_29979.jpg
MAIN: 2025-03-31 20:07:18,730 - INFO - duration: 0.6896946470005787
MAIN: 2025-03-31 20:07:18,731 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/07'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:07:48,362 - INFO - taking picture
MAIN: 2025-03-31 20:07:48,363 - INFO - we take 1635 photos in this while loop
MAIN: 2025-03-31 20:07:48,363 - INFO - /home/pi/Desktop/images/31032025/20/07/image_31032025_20_07_47_29659.jpg
MAIN: 2025-03-31 20:07:48,363 - INFO - duration: 0.6632899190008175
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:08:06,541 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:08:18,563 - INFO - taking picture
MAIN: 2025-03-31 20:08:18,563 - INFO - we take 1636 photos in this while loop
MAIN: 2025-03-31 20:08:18,564 - INFO - /home/pi/Desktop/images/31032025/20/07/image_31032025_20_08_18_30156.jpg
MAIN: 2025-03-31 20:08:18,564 - INFO - duration: 0.7071204259991646
MAIN: 2025-03-31 20:08:18,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/08'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:08:48,299 - INFO - taking picture
MAIN: 2025-03-31 20:08:48,300 - INFO - we take 1637 photos in this while loop
MAIN: 2025-03-31 20:08:48,300 - INFO - /home/pi/Desktop/images/31032025/20/08/image_31032025_20_08_47_29748.jpg
MAIN: 2025-03-31 20:08:48,300 - INFO - duration: 0.6951946499975747
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:09:06,630 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:09:18,410 - INFO - taking picture
MAIN: 2025-03-31 20:09:18,411 - INFO - we take 1638 photos in this while loop
MAIN: 2025-03-31 20:09:18,411 - INFO - /home/pi/Desktop/images/31032025/20/08/image_31032025_20_09_18_30105.jpg
MAIN: 2025-03-31 20:09:18,411 - INFO - duration: 0.7008006390024093
MAIN: 2025-03-31 20:09:18,412 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/09'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:09:49,365 - INFO - taking picture
MAIN: 2025-03-31 20:09:49,366 - INFO - we take 1639 photos in this while loop
MAIN: 2025-03-31 20:09:49,366 - INFO - /home/pi/Desktop/images/31032025/20/09/image_31032025_20_09_48_30991.jpg
MAIN: 2025-03-31 20:09:49,366 - INFO - duration: 0.6640882569990936
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:10:06,977 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:10:18,432 - INFO - taking picture
MAIN: 2025-03-31 20:10:18,433 - INFO - we take 1640 photos in this while loop
MAIN: 2025-03-31 20:10:18,433 - INFO - /home/pi/Desktop/images/31032025/20/09/image_31032025_20_10_18_29013.jpg
MAIN: 2025-03-31 20:10:18,433 - INFO - duration: 0.7175328240045928
MAIN: 2025-03-31 20:10:18,434 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:10:48,142 - INFO - taking picture
MAIN: 2025-03-31 20:10:48,143 - INFO - we take 1641 photos in this while loop
MAIN: 2025-03-31 20:10:48,143 - INFO - /home/pi/Desktop/images/31032025/20/10/image_31032025_20_10_47_29741.jpg
MAIN: 2025-03-31 20:10:48,143 - INFO - duration: 0.6852145029988606
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:11:06,023 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:11:19,322 - INFO - taking picture
MAIN: 2025-03-31 20:11:19,322 - INFO - we take 1642 photos in this while loop
MAIN: 2025-03-31 20:11:19,323 - INFO - /home/pi/Desktop/images/31032025/20/10/image_31032025_20_11_18_31171.jpg
MAIN: 2025-03-31 20:11:19,323 - INFO - duration: 0.6935999699999229
MAIN: 2025-03-31 20:11:19,323 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:11:48,875 - INFO - taking picture
MAIN: 2025-03-31 20:11:48,876 - INFO - we take 1643 photos in this while loop
MAIN: 2025-03-31 20:11:48,876 - INFO - /home/pi/Desktop/images/31032025/20/11/image_31032025_20_11_48_29581.jpg
MAIN: 2025-03-31 20:11:48,876 - INFO - duration: 0.6655920120028895
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:12:06,775 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:12:18,822 - INFO - taking picture
MAIN: 2025-03-31 20:12:18,822 - INFO - we take 1644 photos in this while loop
MAIN: 2025-03-31 20:12:18,822 - INFO - /home/pi/Desktop/images/31032025/20/11/image_31032025_20_12_18_29926.jpg
MAIN: 2025-03-31 20:12:18,822 - INFO - duration: 0.6853048710036092
MAIN: 2025-03-31 20:12:18,823 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:12:48,472 - INFO - taking picture
MAIN: 2025-03-31 20:12:48,473 - INFO - we take 1645 photos in this while loop
MAIN: 2025-03-31 20:12:48,473 - INFO - /home/pi/Desktop/images/31032025/20/12/image_31032025_20_12_48_29640.jpg
MAIN: 2025-03-31 20:12:48,473 - INFO - duration: 0.6955820560033317
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:13:06,265 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:13:18,573 - INFO - taking picture
MAIN: 2025-03-31 20:13:18,573 - INFO - we take 1646 photos in this while loop
MAIN: 2025-03-31 20:13:18,573 - INFO - /home/pi/Desktop/images/31032025/20/12/image_31032025_20_13_18_30076.jpg
MAIN: 2025-03-31 20:13:18,574 - INFO - duration: 0.7190235070011113
MAIN: 2025-03-31 20:13:18,574 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:13:48,235 - INFO - taking picture
MAIN: 2025-03-31 20:13:48,236 - INFO - we take 1647 photos in this while loop
MAIN: 2025-03-31 20:13:48,236 - INFO - /home/pi/Desktop/images/31032025/20/13/image_31032025_20_13_47_29697.jpg
MAIN: 2025-03-31 20:13:48,236 - INFO - duration: 0.6838041450027958
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:14:06,831 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:14:18,373 - INFO - taking picture
MAIN: 2025-03-31 20:14:18,373 - INFO - we take 1648 photos in this while loop
MAIN: 2025-03-31 20:14:18,373 - INFO - /home/pi/Desktop/images/31032025/20/13/image_31032025_20_14_17_30131.jpg
MAIN: 2025-03-31 20:14:18,374 - INFO - duration: 0.6900660710016382
MAIN: 2025-03-31 20:14:18,374 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:14:49,343 - INFO - taking picture
MAIN: 2025-03-31 20:14:49,344 - INFO - we take 1649 photos in this while loop
MAIN: 2025-03-31 20:14:49,344 - INFO - /home/pi/Desktop/images/31032025/20/14/image_31032025_20_14_48_30965.jpg
MAIN: 2025-03-31 20:14:49,344 - INFO - duration: 0.694759610996698
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:15:06,095 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:15:18,137 - INFO - taking picture
MAIN: 2025-03-31 20:15:18,138 - INFO - we take 1650 photos in this while loop
MAIN: 2025-03-31 20:15:18,138 - INFO - /home/pi/Desktop/images/31032025/20/14/image_31032025_20_15_17_28808.jpg
MAIN: 2025-03-31 20:15:18,138 - INFO - duration: 0.6802253459973144
MAIN: 2025-03-31 20:15:18,138 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/15'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:15:48,989 - INFO - taking picture
MAIN: 2025-03-31 20:15:48,990 - INFO - we take 1651 photos in this while loop
MAIN: 2025-03-31 20:15:48,990 - INFO - /home/pi/Desktop/images/31032025/20/15/image_31032025_20_15_48_30829.jpg
MAIN: 2025-03-31 20:15:48,990 - INFO - duration: 0.7030161340007908
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:16:06,351 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:16:19,175 - INFO - taking picture
MAIN: 2025-03-31 20:16:19,175 - INFO - we take 1652 photos in this while loop
MAIN: 2025-03-31 20:16:19,175 - INFO - /home/pi/Desktop/images/31032025/20/15/image_31032025_20_16_18_30242.jpg
MAIN: 2025-03-31 20:16:19,176 - INFO - duration: 0.6458465230025467
MAIN: 2025-03-31 20:16:19,176 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/16'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:16:48,749 - INFO - taking picture
MAIN: 2025-03-31 20:16:48,749 - INFO - we take 1653 photos in this while loop
MAIN: 2025-03-31 20:16:48,750 - INFO - /home/pi/Desktop/images/31032025/20/16/image_31032025_20_16_48_29571.jpg
MAIN: 2025-03-31 20:16:48,750 - INFO - duration: 0.6486710350000067
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:17:05,727 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:17:18,616 - INFO - taking picture
MAIN: 2025-03-31 20:17:18,617 - INFO - we take 1654 photos in this while loop
MAIN: 2025-03-31 20:17:18,617 - INFO - /home/pi/Desktop/images/31032025/20/16/image_31032025_20_17_18_29805.jpg
MAIN: 2025-03-31 20:17:18,617 - INFO - duration: 0.7108278570012772
MAIN: 2025-03-31 20:17:18,617 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/17'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:17:48,307 - INFO - taking picture
MAIN: 2025-03-31 20:17:48,307 - INFO - we take 1655 photos in this while loop
MAIN: 2025-03-31 20:17:48,308 - INFO - /home/pi/Desktop/images/31032025/20/17/image_31032025_20_17_47_29683.jpg
MAIN: 2025-03-31 20:17:48,308 - INFO - duration: 0.7179201229955652
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:18:06,530 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:18:18,492 - INFO - taking picture
MAIN: 2025-03-31 20:18:18,493 - INFO - we take 1656 photos in this while loop
MAIN: 2025-03-31 20:18:18,493 - INFO - /home/pi/Desktop/images/31032025/20/17/image_31032025_20_18_18_30202.jpg
MAIN: 2025-03-31 20:18:18,493 - INFO - duration: 0.7010041900066426
MAIN: 2025-03-31 20:18:18,494 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:18:49,367 - INFO - taking picture
MAIN: 2025-03-31 20:18:49,367 - INFO - we take 1657 photos in this while loop
MAIN: 2025-03-31 20:18:49,367 - INFO - /home/pi/Desktop/images/31032025/20/18/image_31032025_20_18_48_30873.jpg
MAIN: 2025-03-31 20:18:49,368 - INFO - duration: 0.702041199998348
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:19:06,654 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:19:18,183 - INFO - taking picture
MAIN: 2025-03-31 20:19:18,184 - INFO - we take 1658 photos in this while loop
MAIN: 2025-03-31 20:19:18,184 - INFO - /home/pi/Desktop/images/31032025/20/18/image_31032025_20_19_17_28828.jpg
MAIN: 2025-03-31 20:19:18,184 - INFO - duration: 0.6904245750047266
MAIN: 2025-03-31 20:19:18,184 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/19'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:19:49,195 - INFO - taking picture
MAIN: 2025-03-31 20:19:49,196 - INFO - we take 1659 photos in this while loop
MAIN: 2025-03-31 20:19:49,196 - INFO - /home/pi/Desktop/images/31032025/20/19/image_31032025_20_19_48_30981.jpg
MAIN: 2025-03-31 20:19:49,196 - INFO - duration: 0.7211989939969499
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:20:06,895 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:20:18,252 - INFO - taking picture
MAIN: 2025-03-31 20:20:18,253 - INFO - we take 1660 photos in this while loop
MAIN: 2025-03-31 20:20:18,253 - INFO - /home/pi/Desktop/images/31032025/20/19/image_31032025_20_20_17_29077.jpg
MAIN: 2025-03-31 20:20:18,254 - INFO - duration: 0.701789512000687
MAIN: 2025-03-31 20:20:18,254 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:20:49,165 - INFO - taking picture
MAIN: 2025-03-31 20:20:49,165 - INFO - we take 1661 photos in this while loop
MAIN: 2025-03-31 20:20:49,166 - INFO - /home/pi/Desktop/images/31032025/20/20/image_31032025_20_20_48_30969.jpg
MAIN: 2025-03-31 20:20:49,166 - INFO - duration: 0.6445836110069649
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:21:06,200 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:21:19,161 - INFO - taking picture
MAIN: 2025-03-31 20:21:19,162 - INFO - we take 1662 photos in this while loop
MAIN: 2025-03-31 20:21:19,162 - INFO - /home/pi/Desktop/images/31032025/20/20/image_31032025_20_21_18_29941.jpg
MAIN: 2025-03-31 20:21:19,162 - INFO - duration: 0.6999089899982209
MAIN: 2025-03-31 20:21:19,163 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:21:48,690 - INFO - taking picture
MAIN: 2025-03-31 20:21:48,690 - INFO - we take 1663 photos in this while loop
MAIN: 2025-03-31 20:21:48,691 - INFO - /home/pi/Desktop/images/31032025/20/21/image_31032025_20_21_48_29534.jpg
MAIN: 2025-03-31 20:21:48,691 - INFO - duration: 0.6943970909997006
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:22:06,271 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:22:18,651 - INFO - taking picture
MAIN: 2025-03-31 20:22:18,651 - INFO - we take 1664 photos in this while loop
MAIN: 2025-03-31 20:22:18,651 - INFO - /home/pi/Desktop/images/31032025/20/21/image_31032025_20_22_18_29958.jpg
MAIN: 2025-03-31 20:22:18,651 - INFO - duration: 0.6961519539981964
MAIN: 2025-03-31 20:22:18,652 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:22:48,288 - INFO - taking picture
MAIN: 2025-03-31 20:22:48,288 - INFO - we take 1665 photos in this while loop
MAIN: 2025-03-31 20:22:48,289 - INFO - /home/pi/Desktop/images/31032025/20/22/image_31032025_20_22_47_29634.jpg
MAIN: 2025-03-31 20:22:48,289 - INFO - duration: 0.6993942609988153
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:23:06,496 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:23:18,165 - INFO - taking picture
MAIN: 2025-03-31 20:23:18,165 - INFO - we take 1666 photos in this while loop
MAIN: 2025-03-31 20:23:18,166 - INFO - /home/pi/Desktop/images/31032025/20/22/image_31032025_20_23_17_29888.jpg
MAIN: 2025-03-31 20:23:18,166 - INFO - duration: 0.6882087170015438
MAIN: 2025-03-31 20:23:18,166 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:23:49,041 - INFO - taking picture
MAIN: 2025-03-31 20:23:49,041 - INFO - we take 1667 photos in this while loop
MAIN: 2025-03-31 20:23:49,041 - INFO - /home/pi/Desktop/images/31032025/20/23/image_31032025_20_23_48_30912.jpg
MAIN: 2025-03-31 20:23:49,042 - INFO - duration: 0.651556946002529
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:24:06,983 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:24:18,957 - INFO - taking picture
MAIN: 2025-03-31 20:24:18,957 - INFO - we take 1668 photos in this while loop
MAIN: 2025-03-31 20:24:18,958 - INFO - /home/pi/Desktop/images/31032025/20/23/image_31032025_20_24_18_29869.jpg
MAIN: 2025-03-31 20:24:18,958 - INFO - duration: 0.6983015020014136
MAIN: 2025-03-31 20:24:18,958 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:24:48,545 - INFO - taking picture
MAIN: 2025-03-31 20:24:48,546 - INFO - we take 1669 photos in this while loop
MAIN: 2025-03-31 20:24:48,546 - INFO - /home/pi/Desktop/images/31032025/20/24/image_31032025_20_24_48_29597.jpg
MAIN: 2025-03-31 20:24:48,546 - INFO - duration: 0.6889247549988795
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:25:06,264 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:25:18,631 - INFO - taking picture
MAIN: 2025-03-31 20:25:18,632 - INFO - we take 1670 photos in this while loop
MAIN: 2025-03-31 20:25:18,632 - INFO - /home/pi/Desktop/images/31032025/20/24/image_31032025_20_25_18_30074.jpg
MAIN: 2025-03-31 20:25:18,632 - INFO - duration: 0.7012218939999002
MAIN: 2025-03-31 20:25:18,633 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:25:48,197 - INFO - taking picture
MAIN: 2025-03-31 20:25:48,198 - INFO - we take 1671 photos in this while loop
MAIN: 2025-03-31 20:25:48,198 - INFO - /home/pi/Desktop/images/31032025/20/25/image_31032025_20_25_47_29603.jpg
MAIN: 2025-03-31 20:25:48,198 - INFO - duration: 0.663246367003012
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:26:06,641 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:26:18,306 - INFO - taking picture
MAIN: 2025-03-31 20:26:18,307 - INFO - we take 1672 photos in this while loop
MAIN: 2025-03-31 20:26:18,307 - INFO - /home/pi/Desktop/images/31032025/20/25/image_31032025_20_26_17_30097.jpg
MAIN: 2025-03-31 20:26:18,307 - INFO - duration: 0.6745204329999979
MAIN: 2025-03-31 20:26:18,308 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/26'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:26:49,088 - INFO - taking picture
MAIN: 2025-03-31 20:26:49,088 - INFO - we take 1673 photos in this while loop
MAIN: 2025-03-31 20:26:49,089 - INFO - /home/pi/Desktop/images/31032025/20/26/image_31032025_20_26_48_30760.jpg
MAIN: 2025-03-31 20:26:49,089 - INFO - duration: 0.6954394909989787
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:27:06,204 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:27:19,244 - INFO - taking picture
MAIN: 2025-03-31 20:27:19,245 - INFO - we take 1674 photos in this while loop
MAIN: 2025-03-31 20:27:19,245 - INFO - /home/pi/Desktop/images/31032025/20/26/image_31032025_20_27_18_30159.jpg
MAIN: 2025-03-31 20:27:19,245 - INFO - duration: 0.6920026299994788
MAIN: 2025-03-31 20:27:19,246 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/27'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:27:48,808 - INFO - taking picture
MAIN: 2025-03-31 20:27:48,809 - INFO - we take 1675 photos in this while loop
MAIN: 2025-03-31 20:27:48,809 - INFO - /home/pi/Desktop/images/31032025/20/27/image_31032025_20_27_48_29552.jpg
MAIN: 2025-03-31 20:27:48,809 - INFO - duration: 0.7040414329967462
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:28:06,685 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:28:18,900 - INFO - taking picture
MAIN: 2025-03-31 20:28:18,900 - INFO - we take 1676 photos in this while loop
MAIN: 2025-03-31 20:28:18,901 - INFO - /home/pi/Desktop/images/31032025/20/27/image_31032025_20_28_18_30108.jpg
MAIN: 2025-03-31 20:28:18,901 - INFO - duration: 0.6868476550007472
MAIN: 2025-03-31 20:28:18,901 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/28'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:28:48,553 - INFO - taking picture
MAIN: 2025-03-31 20:28:48,554 - INFO - we take 1677 photos in this while loop
MAIN: 2025-03-31 20:28:48,554 - INFO - /home/pi/Desktop/images/31032025/20/28/image_31032025_20_28_48_29645.jpg
MAIN: 2025-03-31 20:28:48,554 - INFO - duration: 0.6945997410002747
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:29:06,465 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:29:18,571 - INFO - taking picture
MAIN: 2025-03-31 20:29:18,572 - INFO - we take 1678 photos in this while loop
MAIN: 2025-03-31 20:29:18,572 - INFO - /home/pi/Desktop/images/31032025/20/28/image_31032025_20_29_18_30010.jpg
MAIN: 2025-03-31 20:29:18,572 - INFO - duration: 0.7027275569998892
MAIN: 2025-03-31 20:29:18,573 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:29:48,108 - INFO - taking picture
MAIN: 2025-03-31 20:29:48,109 - INFO - we take 1679 photos in this while loop
MAIN: 2025-03-31 20:29:48,109 - INFO - /home/pi/Desktop/images/31032025/20/29/image_31032025_20_29_47_29552.jpg
MAIN: 2025-03-31 20:29:48,109 - INFO - duration: 0.6869654420006555
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:30:06,594 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:30:18,136 - INFO - taking picture
MAIN: 2025-03-31 20:30:18,136 - INFO - we take 1680 photos in this while loop
MAIN: 2025-03-31 20:30:18,136 - INFO - /home/pi/Desktop/images/31032025/20/29/image_31032025_20_30_17_30010.jpg
MAIN: 2025-03-31 20:30:18,137 - INFO - duration: 0.7037137709994568
MAIN: 2025-03-31 20:30:18,137 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:30:49,010 - INFO - taking picture
MAIN: 2025-03-31 20:30:49,010 - INFO - we take 1681 photos in this while loop
MAIN: 2025-03-31 20:30:49,010 - INFO - /home/pi/Desktop/images/31032025/20/30/image_31032025_20_30_48_30876.jpg
MAIN: 2025-03-31 20:30:49,011 - INFO - duration: 0.7013608640045277
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:31:05,810 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:31:19,053 - INFO - taking picture
MAIN: 2025-03-31 20:31:19,053 - INFO - we take 1682 photos in this while loop
MAIN: 2025-03-31 20:31:19,053 - INFO - /home/pi/Desktop/images/31032025/20/30/image_31032025_20_31_18_30053.jpg
MAIN: 2025-03-31 20:31:19,054 - INFO - duration: 0.6907359830001951
MAIN: 2025-03-31 20:31:19,054 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:31:48,626 - INFO - taking picture
MAIN: 2025-03-31 20:31:48,626 - INFO - we take 1683 photos in this while loop
MAIN: 2025-03-31 20:31:48,627 - INFO - /home/pi/Desktop/images/31032025/20/31/image_31032025_20_31_48_29586.jpg
MAIN: 2025-03-31 20:31:48,627 - INFO - duration: 0.6778305299958447
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:32:06,184 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:32:18,548 - INFO - taking picture
MAIN: 2025-03-31 20:32:18,549 - INFO - we take 1684 photos in this while loop
MAIN: 2025-03-31 20:32:18,549 - INFO - /home/pi/Desktop/images/31032025/20/31/image_31032025_20_32_18_29906.jpg
MAIN: 2025-03-31 20:32:18,549 - INFO - duration: 0.693829742995149
MAIN: 2025-03-31 20:32:18,550 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:32:48,180 - INFO - taking picture
MAIN: 2025-03-31 20:32:48,181 - INFO - we take 1685 photos in this while loop
MAIN: 2025-03-31 20:32:48,181 - INFO - /home/pi/Desktop/images/31032025/20/32/image_31032025_20_32_47_29643.jpg
MAIN: 2025-03-31 20:32:48,181 - INFO - duration: 0.6825125699979253
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:33:06,236 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:33:18,107 - INFO - taking picture
MAIN: 2025-03-31 20:33:18,107 - INFO - we take 1686 photos in this while loop
MAIN: 2025-03-31 20:33:18,108 - INFO - /home/pi/Desktop/images/31032025/20/32/image_31032025_20_33_17_29929.jpg
MAIN: 2025-03-31 20:33:18,108 - INFO - duration: 0.6801303889951669
MAIN: 2025-03-31 20:33:18,108 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:33:49,002 - INFO - taking picture
MAIN: 2025-03-31 20:33:49,003 - INFO - we take 1687 photos in this while loop
MAIN: 2025-03-31 20:33:49,003 - INFO - /home/pi/Desktop/images/31032025/20/33/image_31032025_20_33_48_30880.jpg
MAIN: 2025-03-31 20:33:49,003 - INFO - duration: 0.6946748639966245
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:34:06,867 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:34:18,997 - INFO - taking picture
MAIN: 2025-03-31 20:34:18,997 - INFO - we take 1688 photos in this while loop
MAIN: 2025-03-31 20:34:18,998 - INFO - /home/pi/Desktop/images/31032025/20/33/image_31032025_20_34_18_29985.jpg
MAIN: 2025-03-31 20:34:18,998 - INFO - duration: 0.7034478849964216
MAIN: 2025-03-31 20:34:18,998 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/34'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:34:48,640 - INFO - taking picture
MAIN: 2025-03-31 20:34:48,641 - INFO - we take 1689 photos in this while loop
MAIN: 2025-03-31 20:34:48,641 - INFO - /home/pi/Desktop/images/31032025/20/34/image_31032025_20_34_48_29652.jpg
MAIN: 2025-03-31 20:34:48,641 - INFO - duration: 0.6942353960039327
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:35:05,980 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:35:18,923 - INFO - taking picture
MAIN: 2025-03-31 20:35:18,923 - INFO - we take 1690 photos in this while loop
MAIN: 2025-03-31 20:35:18,923 - INFO - /home/pi/Desktop/images/31032025/20/34/image_31032025_20_35_18_30271.jpg
MAIN: 2025-03-31 20:35:18,923 - INFO - duration: 0.7048521640026593
MAIN: 2025-03-31 20:35:18,924 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:35:48,409 - INFO - taking picture
MAIN: 2025-03-31 20:35:48,410 - INFO - we take 1691 photos in this while loop
MAIN: 2025-03-31 20:35:48,410 - INFO - /home/pi/Desktop/images/31032025/20/35/image_31032025_20_35_48_29518.jpg
MAIN: 2025-03-31 20:35:48,410 - INFO - duration: 0.6731553130011889
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:36:06,181 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:36:18,278 - INFO - taking picture
MAIN: 2025-03-31 20:36:18,278 - INFO - we take 1692 photos in this while loop
MAIN: 2025-03-31 20:36:18,278 - INFO - /home/pi/Desktop/images/31032025/20/35/image_31032025_20_36_17_29841.jpg
MAIN: 2025-03-31 20:36:18,279 - INFO - duration: 0.6995420710009057
MAIN: 2025-03-31 20:36:18,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:36:49,014 - INFO - taking picture
MAIN: 2025-03-31 20:36:49,015 - INFO - we take 1693 photos in this while loop
MAIN: 2025-03-31 20:36:49,015 - INFO - /home/pi/Desktop/images/31032025/20/36/image_31032025_20_36_48_30766.jpg
MAIN: 2025-03-31 20:36:49,015 - INFO - duration: 0.6692097499981173
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:37:05,974 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:37:19,151 - INFO - taking picture
MAIN: 2025-03-31 20:37:19,152 - INFO - we take 1694 photos in this while loop
MAIN: 2025-03-31 20:37:19,152 - INFO - /home/pi/Desktop/images/31032025/20/36/image_31032025_20_37_18_30118.jpg
MAIN: 2025-03-31 20:37:19,152 - INFO - duration: 0.6881716690040776
MAIN: 2025-03-31 20:37:19,153 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:37:48,775 - INFO - taking picture
MAIN: 2025-03-31 20:37:48,775 - INFO - we take 1695 photos in this while loop
MAIN: 2025-03-31 20:37:48,776 - INFO - /home/pi/Desktop/images/31032025/20/37/image_31032025_20_37_48_29637.jpg
MAIN: 2025-03-31 20:37:48,776 - INFO - duration: 0.673636836996593
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:38:06,157 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:38:18,706 - INFO - taking picture
MAIN: 2025-03-31 20:38:18,707 - INFO - we take 1696 photos in this while loop
MAIN: 2025-03-31 20:38:18,707 - INFO - /home/pi/Desktop/images/31032025/20/37/image_31032025_20_38_18_29901.jpg
MAIN: 2025-03-31 20:38:18,707 - INFO - duration: 0.7038216140063014
MAIN: 2025-03-31 20:38:18,707 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:38:48,451 - INFO - taking picture
MAIN: 2025-03-31 20:38:48,452 - INFO - we take 1697 photos in this while loop
MAIN: 2025-03-31 20:38:48,452 - INFO - /home/pi/Desktop/images/31032025/20/38/image_31032025_20_38_48_29749.jpg
MAIN: 2025-03-31 20:38:48,452 - INFO - duration: 0.6992116199980956
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:39:06,373 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:39:18,266 - INFO - taking picture
MAIN: 2025-03-31 20:39:18,267 - INFO - we take 1698 photos in this while loop
MAIN: 2025-03-31 20:39:18,267 - INFO - /home/pi/Desktop/images/31032025/20/38/image_31032025_20_39_17_29822.jpg
MAIN: 2025-03-31 20:39:18,267 - INFO - duration: 0.6920925640006317
MAIN: 2025-03-31 20:39:18,268 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:39:49,147 - INFO - taking picture
MAIN: 2025-03-31 20:39:49,148 - INFO - we take 1699 photos in this while loop
MAIN: 2025-03-31 20:39:49,148 - INFO - /home/pi/Desktop/images/31032025/20/39/image_31032025_20_39_48_30873.jpg
MAIN: 2025-03-31 20:39:49,148 - INFO - duration: 0.6990440220033634
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:40:06,361 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:40:19,367 - INFO - taking picture
MAIN: 2025-03-31 20:40:19,367 - INFO - we take 1700 photos in this while loop
MAIN: 2025-03-31 20:40:19,367 - INFO - /home/pi/Desktop/images/31032025/20/39/image_31032025_20_40_18_30227.jpg
MAIN: 2025-03-31 20:40:19,368 - INFO - duration: 0.6915359030026593
MAIN: 2025-03-31 20:40:19,368 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:40:48,860 - INFO - taking picture
MAIN: 2025-03-31 20:40:48,860 - INFO - we take 1701 photos in this while loop
MAIN: 2025-03-31 20:40:48,861 - INFO - /home/pi/Desktop/images/31032025/20/40/image_31032025_20_40_48_29491.jpg
MAIN: 2025-03-31 20:40:48,861 - INFO - duration: 0.6930660090001766
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:41:05,780 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:41:18,726 - INFO - taking picture
MAIN: 2025-03-31 20:41:18,726 - INFO - we take 1702 photos in this while loop
MAIN: 2025-03-31 20:41:18,726 - INFO - /home/pi/Desktop/images/31032025/20/40/image_31032025_20_41_18_29877.jpg
MAIN: 2025-03-31 20:41:18,727 - INFO - duration: 0.6810724239985575
MAIN: 2025-03-31 20:41:18,727 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:41:48,321 - INFO - taking picture
MAIN: 2025-03-31 20:41:48,321 - INFO - we take 1703 photos in this while loop
MAIN: 2025-03-31 20:41:48,321 - INFO - /home/pi/Desktop/images/31032025/20/41/image_31032025_20_41_47_29587.jpg
MAIN: 2025-03-31 20:41:48,322 - INFO - duration: 0.6888733070009039
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:42:06,268 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:42:18,164 - INFO - taking picture
MAIN: 2025-03-31 20:42:18,164 - INFO - we take 1704 photos in this while loop
MAIN: 2025-03-31 20:42:18,165 - INFO - /home/pi/Desktop/images/31032025/20/41/image_31032025_20_42_17_29838.jpg
MAIN: 2025-03-31 20:42:18,165 - INFO - duration: 0.693489192002744
MAIN: 2025-03-31 20:42:18,165 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:42:49,024 - INFO - taking picture
MAIN: 2025-03-31 20:42:49,024 - INFO - we take 1705 photos in this while loop
MAIN: 2025-03-31 20:42:49,025 - INFO - /home/pi/Desktop/images/31032025/20/42/image_31032025_20_42_48_30856.jpg
MAIN: 2025-03-31 20:42:49,025 - INFO - duration: 0.6973359100011294
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:43:05,894 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:43:19,094 - INFO - taking picture
MAIN: 2025-03-31 20:43:19,094 - INFO - we take 1706 photos in this while loop
MAIN: 2025-03-31 20:43:19,094 - INFO - /home/pi/Desktop/images/31032025/20/42/image_31032025_20_43_18_30072.jpg
MAIN: 2025-03-31 20:43:19,095 - INFO - duration: 0.6948204969958169
MAIN: 2025-03-31 20:43:19,095 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:43:48,699 - INFO - taking picture
MAIN: 2025-03-31 20:43:48,700 - INFO - we take 1707 photos in this while loop
MAIN: 2025-03-31 20:43:48,700 - INFO - /home/pi/Desktop/images/31032025/20/43/image_31032025_20_43_48_29600.jpg
MAIN: 2025-03-31 20:43:48,700 - INFO - duration: 0.7005231000002823
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:44:06,746 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:44:18,777 - INFO - taking picture
MAIN: 2025-03-31 20:44:18,777 - INFO - we take 1708 photos in this while loop
MAIN: 2025-03-31 20:44:18,777 - INFO - /home/pi/Desktop/images/31032025/20/43/image_31032025_20_44_18_30079.jpg
MAIN: 2025-03-31 20:44:18,778 - INFO - duration: 0.6984732589990017
MAIN: 2025-03-31 20:44:18,778 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:44:48,381 - INFO - taking picture
MAIN: 2025-03-31 20:44:48,381 - INFO - we take 1709 photos in this while loop
MAIN: 2025-03-31 20:44:48,381 - INFO - /home/pi/Desktop/images/31032025/20/44/image_31032025_20_44_47_29626.jpg
MAIN: 2025-03-31 20:44:48,382 - INFO - duration: 0.6757043669931591
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:45:06,919 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:45:18,563 - INFO - taking picture
MAIN: 2025-03-31 20:45:18,564 - INFO - we take 1710 photos in this while loop
MAIN: 2025-03-31 20:45:18,564 - INFO - /home/pi/Desktop/images/31032025/20/44/image_31032025_20_45_18_30160.jpg
MAIN: 2025-03-31 20:45:18,564 - INFO - duration: 0.6969610220039613
MAIN: 2025-03-31 20:45:18,564 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:45:49,371 - INFO - taking picture
MAIN: 2025-03-31 20:45:49,371 - INFO - we take 1711 photos in this while loop
MAIN: 2025-03-31 20:45:49,371 - INFO - /home/pi/Desktop/images/31032025/20/45/image_31032025_20_45_48_30819.jpg
MAIN: 2025-03-31 20:45:49,372 - INFO - duration: 0.6851489469991066
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:46:06,093 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:46:19,339 - INFO - taking picture
MAIN: 2025-03-31 20:46:19,340 - INFO - we take 1712 photos in this while loop
MAIN: 2025-03-31 20:46:19,340 - INFO - /home/pi/Desktop/images/31032025/20/45/image_31032025_20_46_18_29951.jpg
MAIN: 2025-03-31 20:46:19,340 - INFO - duration: 0.7017957620046218
MAIN: 2025-03-31 20:46:19,340 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:46:48,934 - INFO - taking picture
MAIN: 2025-03-31 20:46:48,935 - INFO - we take 1713 photos in this while loop
MAIN: 2025-03-31 20:46:48,935 - INFO - /home/pi/Desktop/images/31032025/20/46/image_31032025_20_46_48_29589.jpg
MAIN: 2025-03-31 20:46:48,935 - INFO - duration: 0.707652583005256
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:47:05,999 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:47:19,092 - INFO - taking picture
MAIN: 2025-03-31 20:47:19,092 - INFO - we take 1714 photos in this while loop
MAIN: 2025-03-31 20:47:19,092 - INFO - /home/pi/Desktop/images/31032025/20/46/image_31032025_20_47_18_30157.jpg
MAIN: 2025-03-31 20:47:19,093 - INFO - duration: 0.707318105000013
MAIN: 2025-03-31 20:47:19,093 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:47:48,723 - INFO - taking picture
MAIN: 2025-03-31 20:47:48,724 - INFO - we take 1715 photos in this while loop
MAIN: 2025-03-31 20:47:48,724 - INFO - /home/pi/Desktop/images/31032025/20/47/image_31032025_20_47_48_29650.jpg
MAIN: 2025-03-31 20:47:48,724 - INFO - duration: 0.6884012409936986
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:48:06,657 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:48:18,616 - INFO - taking picture
MAIN: 2025-03-31 20:48:18,617 - INFO - we take 1716 photos in this while loop
MAIN: 2025-03-31 20:48:18,617 - INFO - /home/pi/Desktop/images/31032025/20/47/image_31032025_20_48_18_29904.jpg
MAIN: 2025-03-31 20:48:18,617 - INFO - duration: 0.6769842180001433
MAIN: 2025-03-31 20:48:18,618 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:48:48,128 - INFO - taking picture
MAIN: 2025-03-31 20:48:48,129 - INFO - we take 1717 photos in this while loop
MAIN: 2025-03-31 20:48:48,129 - INFO - /home/pi/Desktop/images/31032025/20/48/image_31032025_20_48_47_29523.jpg
MAIN: 2025-03-31 20:48:48,129 - INFO - duration: 0.6649816209974233
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:49:06,483 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:49:18,222 - INFO - taking picture
MAIN: 2025-03-31 20:49:18,223 - INFO - we take 1718 photos in this while loop
MAIN: 2025-03-31 20:49:18,223 - INFO - /home/pi/Desktop/images/31032025/20/48/image_31032025_20_49_17_30059.jpg
MAIN: 2025-03-31 20:49:18,223 - INFO - duration: 0.6997883219955838
MAIN: 2025-03-31 20:49:18,224 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:49:49,204 - INFO - taking picture
MAIN: 2025-03-31 20:49:49,204 - INFO - we take 1719 photos in this while loop
MAIN: 2025-03-31 20:49:49,204 - INFO - /home/pi/Desktop/images/31032025/20/49/image_31032025_20_49_48_30987.jpg
MAIN: 2025-03-31 20:49:49,205 - INFO - duration: 0.69374773799791
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 20:50:06,641 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:50:18,120 - INFO - taking picture
MAIN: 2025-03-31 20:50:18,124 - INFO - we take 1720 photos in this while loop
MAIN: 2025-03-31 20:50:18,125 - INFO - /home/pi/Desktop/images/31032025/20/49/image_31032025_20_50_17_28922.jpg
MAIN: 2025-03-31 20:50:18,125 - INFO - duration: 0.6919559859961737
MAIN: 2025-03-31 20:50:18,125 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:50:48,935 - INFO - taking picture
MAIN: 2025-03-31 20:50:48,936 - INFO - we take 1721 photos in this while loop
MAIN: 2025-03-31 20:50:48,936 - INFO - /home/pi/Desktop/images/31032025/20/50/image_31032025_20_50_48_30823.jpg
MAIN: 2025-03-31 20:50:48,936 - INFO - duration: 0.6797064550046343
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:51:05,652 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:51:18,869 - INFO - taking picture
MAIN: 2025-03-31 20:51:18,869 - INFO - we take 1722 photos in this while loop
MAIN: 2025-03-31 20:51:18,869 - INFO - /home/pi/Desktop/images/31032025/20/50/image_31032025_20_51_18_29922.jpg
MAIN: 2025-03-31 20:51:18,870 - INFO - duration: 0.6906996790057747
MAIN: 2025-03-31 20:51:18,870 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:51:48,590 - INFO - taking picture
MAIN: 2025-03-31 20:51:48,591 - INFO - we take 1723 photos in this while loop
MAIN: 2025-03-31 20:51:48,591 - INFO - /home/pi/Desktop/images/31032025/20/51/image_31032025_20_51_48_29710.jpg
MAIN: 2025-03-31 20:51:48,591 - INFO - duration: 0.7019248330034316
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:52:06,125 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:52:18,483 - INFO - taking picture
MAIN: 2025-03-31 20:52:18,484 - INFO - we take 1724 photos in this while loop
MAIN: 2025-03-31 20:52:18,484 - INFO - /home/pi/Desktop/images/31032025/20/51/image_31032025_20_52_18_29924.jpg
MAIN: 2025-03-31 20:52:18,484 - INFO - duration: 0.6706903459999012
MAIN: 2025-03-31 20:52:18,485 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:52:49,415 - INFO - taking picture
MAIN: 2025-03-31 20:52:49,416 - INFO - we take 1725 photos in this while loop
MAIN: 2025-03-31 20:52:49,416 - INFO - /home/pi/Desktop/images/31032025/20/52/image_31032025_20_52_49_30903.jpg
MAIN: 2025-03-31 20:52:49,416 - INFO - duration: 0.6996986020021723
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:53:05,916 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:53:18,149 - INFO - taking picture
MAIN: 2025-03-31 20:53:18,149 - INFO - we take 1726 photos in this while loop
MAIN: 2025-03-31 20:53:18,149 - INFO - /home/pi/Desktop/images/31032025/20/52/image_31032025_20_53_17_28759.jpg
MAIN: 2025-03-31 20:53:18,150 - INFO - duration: 0.6732195539952954
MAIN: 2025-03-31 20:53:18,150 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:53:49,042 - INFO - taking picture
MAIN: 2025-03-31 20:53:49,042 - INFO - we take 1727 photos in this while loop
MAIN: 2025-03-31 20:53:49,043 - INFO - /home/pi/Desktop/images/31032025/20/53/image_31032025_20_53_48_30866.jpg
MAIN: 2025-03-31 20:53:49,043 - INFO - duration: 0.6998337450058898
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:54:06,801 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:54:18,975 - INFO - taking picture
MAIN: 2025-03-31 20:54:18,976 - INFO - we take 1728 photos in this while loop
MAIN: 2025-03-31 20:54:18,976 - INFO - /home/pi/Desktop/images/31032025/20/53/image_31032025_20_54_18_29967.jpg
MAIN: 2025-03-31 20:54:18,976 - INFO - duration: 0.6659761569972034
MAIN: 2025-03-31 20:54:18,977 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/54'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:54:48,502 - INFO - taking picture
MAIN: 2025-03-31 20:54:48,503 - INFO - we take 1729 photos in this while loop
MAIN: 2025-03-31 20:54:48,503 - INFO - /home/pi/Desktop/images/31032025/20/54/image_31032025_20_54_48_29504.jpg
MAIN: 2025-03-31 20:54:48,503 - INFO - duration: 0.6881552440027008
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:55:06,131 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:55:18,693 - INFO - taking picture
MAIN: 2025-03-31 20:55:18,693 - INFO - we take 1730 photos in this while loop
MAIN: 2025-03-31 20:55:18,694 - INFO - /home/pi/Desktop/images/31032025/20/54/image_31032025_20_55_18_30201.jpg
MAIN: 2025-03-31 20:55:18,694 - INFO - duration: 0.6775809160026256
MAIN: 2025-03-31 20:55:18,694 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:55:48,389 - INFO - taking picture
MAIN: 2025-03-31 20:55:48,389 - INFO - we take 1731 photos in this while loop
MAIN: 2025-03-31 20:55:48,390 - INFO - /home/pi/Desktop/images/31032025/20/55/image_31032025_20_55_48_29676.jpg
MAIN: 2025-03-31 20:55:48,390 - INFO - duration: 0.6967602109943982
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:56:06,344 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:56:18,297 - INFO - taking picture
MAIN: 2025-03-31 20:56:18,297 - INFO - we take 1732 photos in this while loop
MAIN: 2025-03-31 20:56:18,297 - INFO - /home/pi/Desktop/images/31032025/20/55/image_31032025_20_56_17_29904.jpg
MAIN: 2025-03-31 20:56:18,298 - INFO - duration: 0.7001666819996899
MAIN: 2025-03-31 20:56:18,298 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:56:49,160 - INFO - taking picture
MAIN: 2025-03-31 20:56:49,161 - INFO - we take 1733 photos in this while loop
MAIN: 2025-03-31 20:56:49,161 - INFO - /home/pi/Desktop/images/31032025/20/56/image_31032025_20_56_48_30873.jpg
MAIN: 2025-03-31 20:56:49,161 - INFO - duration: 0.689753976999782
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:57:06,017 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:57:19,191 - INFO - taking picture
MAIN: 2025-03-31 20:57:19,191 - INFO - we take 1734 photos in this while loop
MAIN: 2025-03-31 20:57:19,191 - INFO - /home/pi/Desktop/images/31032025/20/56/image_31032025_20_57_18_30015.jpg
MAIN: 2025-03-31 20:57:19,192 - INFO - duration: 0.70503816800192
MAIN: 2025-03-31 20:57:19,192 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:57:48,818 - INFO - taking picture
MAIN: 2025-03-31 20:57:48,819 - INFO - we take 1735 photos in this while loop
MAIN: 2025-03-31 20:57:48,819 - INFO - /home/pi/Desktop/images/31032025/20/57/image_31032025_20_57_48_29642.jpg
MAIN: 2025-03-31 20:57:48,819 - INFO - duration: 0.6901204680034425
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:58:06,228 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:58:18,803 - INFO - taking picture
MAIN: 2025-03-31 20:58:18,803 - INFO - we take 1736 photos in this while loop
MAIN: 2025-03-31 20:58:18,803 - INFO - /home/pi/Desktop/images/31032025/20/57/image_31032025_20_58_18_29975.jpg
MAIN: 2025-03-31 20:58:18,804 - INFO - duration: 0.6989529920028872
MAIN: 2025-03-31 20:58:18,804 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/58'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:58:48,482 - INFO - taking picture
MAIN: 2025-03-31 20:58:48,483 - INFO - we take 1737 photos in this while loop
MAIN: 2025-03-31 20:58:48,483 - INFO - /home/pi/Desktop/images/31032025/20/58/image_31032025_20_58_48_29675.jpg
MAIN: 2025-03-31 20:58:48,483 - INFO - duration: 0.7026870240006247
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 20:59:06,293 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:59:18,412 - INFO - taking picture
MAIN: 2025-03-31 20:59:18,412 - INFO - we take 1738 photos in this while loop
MAIN: 2025-03-31 20:59:18,412 - INFO - /home/pi/Desktop/images/31032025/20/58/image_31032025_20_59_18_29931.jpg
MAIN: 2025-03-31 20:59:18,413 - INFO - duration: 0.7008421490027104
MAIN: 2025-03-31 20:59:18,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/20/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 20:59:48,184 - INFO - taking picture
MAIN: 2025-03-31 20:59:48,185 - INFO - we take 1739 photos in this while loop
MAIN: 2025-03-31 20:59:48,185 - INFO - /home/pi/Desktop/images/31032025/20/59/image_31032025_20_59_47_29773.jpg
MAIN: 2025-03-31 20:59:48,185 - INFO - duration: 0.7001834750044509
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:00:07,428 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:00:18,452 - INFO - taking picture
MAIN: 2025-03-31 21:00:18,452 - INFO - we take 1740 photos in this while loop
MAIN: 2025-03-31 21:00:18,452 - INFO - /home/pi/Desktop/images/31032025/20/59/image_31032025_21_00_18_30278.jpg
MAIN: 2025-03-31 21:00:18,453 - INFO - duration: 0.689712662002421
MAIN: 2025-03-31 21:00:18,453 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:00:49,239 - INFO - taking picture
MAIN: 2025-03-31 21:00:49,239 - INFO - we take 1741 photos in this while loop
MAIN: 2025-03-31 21:00:49,239 - INFO - /home/pi/Desktop/images/31032025/21/00/image_31032025_21_00_48_30781.jpg
MAIN: 2025-03-31 21:00:49,240 - INFO - duration: 0.6950519099991652
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:01:06,055 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:01:19,268 - INFO - taking picture
MAIN: 2025-03-31 21:01:19,268 - INFO - we take 1742 photos in this while loop
MAIN: 2025-03-31 21:01:19,268 - INFO - /home/pi/Desktop/images/31032025/21/00/image_31032025_21_01_18_30021.jpg
MAIN: 2025-03-31 21:01:19,269 - INFO - duration: 0.7027165239996975
MAIN: 2025-03-31 21:01:19,269 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/01'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:01:48,980 - INFO - taking picture
MAIN: 2025-03-31 21:01:48,981 - INFO - we take 1743 photos in this while loop
MAIN: 2025-03-31 21:01:48,981 - INFO - /home/pi/Desktop/images/31032025/21/01/image_31032025_21_01_48_29728.jpg
MAIN: 2025-03-31 21:01:48,981 - INFO - duration: 0.6867383729986614
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:02:06,687 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:02:18,923 - INFO - taking picture
MAIN: 2025-03-31 21:02:18,923 - INFO - we take 1744 photos in this while loop
MAIN: 2025-03-31 21:02:18,924 - INFO - /home/pi/Desktop/images/31032025/21/01/image_31032025_21_02_18_29929.jpg
MAIN: 2025-03-31 21:02:18,924 - INFO - duration: 0.7000063239975134
MAIN: 2025-03-31 21:02:18,924 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:02:48,523 - INFO - taking picture
MAIN: 2025-03-31 21:02:48,523 - INFO - we take 1745 photos in this while loop
MAIN: 2025-03-31 21:02:48,524 - INFO - /home/pi/Desktop/images/31032025/21/02/image_31032025_21_02_48_29599.jpg
MAIN: 2025-03-31 21:02:48,524 - INFO - duration: 0.7008445860046777
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:03:05,792 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:03:18,429 - INFO - taking picture
MAIN: 2025-03-31 21:03:18,429 - INFO - we take 1746 photos in this while loop
MAIN: 2025-03-31 21:03:18,430 - INFO - /home/pi/Desktop/images/31032025/21/02/image_31032025_21_03_18_29914.jpg
MAIN: 2025-03-31 21:03:18,430 - INFO - duration: 0.6923451379989274
MAIN: 2025-03-31 21:03:18,430 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:03:49,311 - INFO - taking picture
MAIN: 2025-03-31 21:03:49,312 - INFO - we take 1747 photos in this while loop
MAIN: 2025-03-31 21:03:49,312 - INFO - /home/pi/Desktop/images/31032025/21/03/image_31032025_21_03_48_30879.jpg
MAIN: 2025-03-31 21:03:49,312 - INFO - duration: 0.6946850160020404
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:04:06,080 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:04:18,126 - INFO - taking picture
MAIN: 2025-03-31 21:04:18,126 - INFO - we take 1748 photos in this while loop
MAIN: 2025-03-31 21:04:18,127 - INFO - /home/pi/Desktop/images/31032025/21/03/image_31032025_21_04_17_28810.jpg
MAIN: 2025-03-31 21:04:18,127 - INFO - duration: 0.6988417199972901
MAIN: 2025-03-31 21:04:18,127 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:04:48,901 - INFO - taking picture
MAIN: 2025-03-31 21:04:48,902 - INFO - we take 1749 photos in this while loop
MAIN: 2025-03-31 21:04:48,902 - INFO - /home/pi/Desktop/images/31032025/21/04/image_31032025_21_04_48_30781.jpg
MAIN: 2025-03-31 21:04:48,902 - INFO - duration: 0.6925681609936873
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:05:06,965 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:05:18,909 - INFO - taking picture
MAIN: 2025-03-31 21:05:18,909 - INFO - we take 1750 photos in this while loop
MAIN: 2025-03-31 21:05:18,909 - INFO - /home/pi/Desktop/images/31032025/21/04/image_31032025_21_05_18_30001.jpg
MAIN: 2025-03-31 21:05:18,910 - INFO - duration: 0.6989193449990125
MAIN: 2025-03-31 21:05:18,910 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:05:48,553 - INFO - taking picture
MAIN: 2025-03-31 21:05:48,553 - INFO - we take 1751 photos in this while loop
MAIN: 2025-03-31 21:05:48,553 - INFO - /home/pi/Desktop/images/31032025/21/05/image_31032025_21_05_48_29641.jpg
MAIN: 2025-03-31 21:05:48,554 - INFO - duration: 0.7013158410045435
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:06:06,412 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:06:18,605 - INFO - taking picture
MAIN: 2025-03-31 21:06:18,606 - INFO - we take 1752 photos in this while loop
MAIN: 2025-03-31 21:06:18,606 - INFO - /home/pi/Desktop/images/31032025/21/05/image_31032025_21_06_18_30063.jpg
MAIN: 2025-03-31 21:06:18,606 - INFO - duration: 0.690417650002928
MAIN: 2025-03-31 21:06:18,607 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/06'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:06:48,208 - INFO - taking picture
MAIN: 2025-03-31 21:06:48,209 - INFO - we take 1753 photos in this while loop
MAIN: 2025-03-31 21:06:48,209 - INFO - /home/pi/Desktop/images/31032025/21/06/image_31032025_21_06_47_29597.jpg
MAIN: 2025-03-31 21:06:48,209 - INFO - duration: 0.6958219099979033
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:07:06,463 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:07:18,272 - INFO - taking picture
MAIN: 2025-03-31 21:07:18,273 - INFO - we take 1754 photos in this while loop
MAIN: 2025-03-31 21:07:18,273 - INFO - /home/pi/Desktop/images/31032025/21/06/image_31032025_21_07_17_30060.jpg
MAIN: 2025-03-31 21:07:18,273 - INFO - duration: 0.6989899710024474
MAIN: 2025-03-31 21:07:18,273 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/07'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:07:49,200 - INFO - taking picture
MAIN: 2025-03-31 21:07:49,200 - INFO - we take 1755 photos in this while loop
MAIN: 2025-03-31 21:07:49,200 - INFO - /home/pi/Desktop/images/31032025/21/07/image_31032025_21_07_48_30928.jpg
MAIN: 2025-03-31 21:07:49,201 - INFO - duration: 0.6982148039969616
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:08:06,142 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:08:19,148 - INFO - taking picture
MAIN: 2025-03-31 21:08:19,148 - INFO - we take 1756 photos in this while loop
MAIN: 2025-03-31 21:08:19,149 - INFO - /home/pi/Desktop/images/31032025/21/07/image_31032025_21_08_18_29953.jpg
MAIN: 2025-03-31 21:08:19,149 - INFO - duration: 0.6924350010012859
MAIN: 2025-03-31 21:08:19,149 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/08'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:08:48,632 - INFO - taking picture
MAIN: 2025-03-31 21:08:48,633 - INFO - we take 1757 photos in this while loop
MAIN: 2025-03-31 21:08:48,633 - INFO - /home/pi/Desktop/images/31032025/21/08/image_31032025_21_08_48_29508.jpg
MAIN: 2025-03-31 21:08:48,633 - INFO - duration: 0.6679058259978774
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:09:05,901 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:09:18,480 - INFO - taking picture
MAIN: 2025-03-31 21:09:18,481 - INFO - we take 1758 photos in this while loop
MAIN: 2025-03-31 21:09:18,481 - INFO - /home/pi/Desktop/images/31032025/21/08/image_31032025_21_09_18_29822.jpg
MAIN: 2025-03-31 21:09:18,481 - INFO - duration: 0.6934802950054291
MAIN: 2025-03-31 21:09:18,482 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/09'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:09:49,327 - INFO - taking picture
MAIN: 2025-03-31 21:09:49,328 - INFO - we take 1759 photos in this while loop
MAIN: 2025-03-31 21:09:49,328 - INFO - /home/pi/Desktop/images/31032025/21/09/image_31032025_21_09_48_30847.jpg
MAIN: 2025-03-31 21:09:49,328 - INFO - duration: 0.6931855470029404
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:10:06,979 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:10:18,282 - INFO - taking picture
MAIN: 2025-03-31 21:10:18,283 - INFO - we take 1760 photos in this while loop
MAIN: 2025-03-31 21:10:18,283 - INFO - /home/pi/Desktop/images/31032025/21/09/image_31032025_21_10_17_28956.jpg
MAIN: 2025-03-31 21:10:18,283 - INFO - duration: 0.6920414239939419
MAIN: 2025-03-31 21:10:18,284 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/10'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:10:49,087 - INFO - taking picture
MAIN: 2025-03-31 21:10:49,087 - INFO - we take 1761 photos in this while loop
MAIN: 2025-03-31 21:10:49,087 - INFO - /home/pi/Desktop/images/31032025/21/10/image_31032025_21_10_48_30800.jpg
MAIN: 2025-03-31 21:10:49,088 - INFO - duration: 0.6957918320040335
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:11:06,065 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:11:19,022 - INFO - taking picture
MAIN: 2025-03-31 21:11:19,022 - INFO - we take 1762 photos in this while loop
MAIN: 2025-03-31 21:11:19,022 - INFO - /home/pi/Desktop/images/31032025/21/10/image_31032025_21_11_18_29899.jpg
MAIN: 2025-03-31 21:11:19,023 - INFO - duration: 0.7314453649960342
MAIN: 2025-03-31 21:11:19,023 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:11:48,579 - INFO - taking picture
MAIN: 2025-03-31 21:11:48,580 - INFO - we take 1763 photos in this while loop
MAIN: 2025-03-31 21:11:48,580 - INFO - /home/pi/Desktop/images/31032025/21/11/image_31032025_21_11_48_29594.jpg
MAIN: 2025-03-31 21:11:48,580 - INFO - duration: 0.6949284859947511
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:12:06,954 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:12:18,576 - INFO - taking picture
MAIN: 2025-03-31 21:12:18,577 - INFO - we take 1764 photos in this while loop
MAIN: 2025-03-31 21:12:18,577 - INFO - /home/pi/Desktop/images/31032025/21/11/image_31032025_21_12_18_30016.jpg
MAIN: 2025-03-31 21:12:18,577 - INFO - duration: 0.675691188997007
MAIN: 2025-03-31 21:12:18,578 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:12:48,193 - INFO - taking picture
MAIN: 2025-03-31 21:12:48,194 - INFO - we take 1765 photos in this while loop
MAIN: 2025-03-31 21:12:48,194 - INFO - /home/pi/Desktop/images/31032025/21/12/image_31032025_21_12_47_29591.jpg
MAIN: 2025-03-31 21:12:48,194 - INFO - duration: 0.7011877429977176
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:13:05,616 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:13:18,227 - INFO - taking picture
MAIN: 2025-03-31 21:13:18,228 - INFO - we take 1766 photos in this while loop
MAIN: 2025-03-31 21:13:18,228 - INFO - /home/pi/Desktop/images/31032025/21/12/image_31032025_21_13_17_30043.jpg
MAIN: 2025-03-31 21:13:18,228 - INFO - duration: 0.6917497699978412
MAIN: 2025-03-31 21:13:18,229 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:13:49,108 - INFO - taking picture
MAIN: 2025-03-31 21:13:49,108 - INFO - we take 1767 photos in this while loop
MAIN: 2025-03-31 21:13:49,109 - INFO - /home/pi/Desktop/images/31032025/21/13/image_31032025_21_13_48_30885.jpg
MAIN: 2025-03-31 21:13:49,109 - INFO - duration: 0.686342524997599
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:14:06,247 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:14:19,150 - INFO - taking picture
MAIN: 2025-03-31 21:14:19,151 - INFO - we take 1768 photos in this while loop
MAIN: 2025-03-31 21:14:19,151 - INFO - /home/pi/Desktop/images/31032025/21/13/image_31032025_21_14_18_30035.jpg
MAIN: 2025-03-31 21:14:19,151 - INFO - duration: 0.6932350709976163
MAIN: 2025-03-31 21:14:19,151 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/14'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:14:48,625 - INFO - taking picture
MAIN: 2025-03-31 21:14:48,625 - INFO - we take 1769 photos in this while loop
MAIN: 2025-03-31 21:14:48,626 - INFO - /home/pi/Desktop/images/31032025/21/14/image_31032025_21_14_48_29482.jpg
MAIN: 2025-03-31 21:14:48,626 - INFO - duration: 0.6853544420009712
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:15:06,804 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:15:18,699 - INFO - taking picture
MAIN: 2025-03-31 21:15:18,700 - INFO - we take 1770 photos in this while loop
MAIN: 2025-03-31 21:15:18,700 - INFO - /home/pi/Desktop/images/31032025/21/14/image_31032025_21_15_18_30063.jpg
MAIN: 2025-03-31 21:15:18,700 - INFO - duration: 0.6954928209961508
MAIN: 2025-03-31 21:15:18,700 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/15'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:15:48,351 - INFO - taking picture
MAIN: 2025-03-31 21:15:48,352 - INFO - we take 1771 photos in this while loop
MAIN: 2025-03-31 21:15:48,352 - INFO - /home/pi/Desktop/images/31032025/21/15/image_31032025_21_15_47_29642.jpg
MAIN: 2025-03-31 21:15:48,352 - INFO - duration: 0.7051431290019536
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:16:06,515 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:16:18,226 - INFO - taking picture
MAIN: 2025-03-31 21:16:18,226 - INFO - we take 1772 photos in this while loop
MAIN: 2025-03-31 21:16:18,227 - INFO - /home/pi/Desktop/images/31032025/21/15/image_31032025_21_16_17_29887.jpg
MAIN: 2025-03-31 21:16:18,227 - INFO - duration: 0.6930156260059448
MAIN: 2025-03-31 21:16:18,227 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/16'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:16:49,076 - INFO - taking picture
MAIN: 2025-03-31 21:16:49,076 - INFO - we take 1773 photos in this while loop
MAIN: 2025-03-31 21:16:49,077 - INFO - /home/pi/Desktop/images/31032025/21/16/image_31032025_21_16_48_30845.jpg
MAIN: 2025-03-31 21:16:49,077 - INFO - duration: 0.6975193719990784
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:17:06,258 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:17:18,964 - INFO - taking picture
MAIN: 2025-03-31 21:17:18,965 - INFO - we take 1774 photos in this while loop
MAIN: 2025-03-31 21:17:18,965 - INFO - /home/pi/Desktop/images/31032025/21/16/image_31032025_21_17_18_29890.jpg
MAIN: 2025-03-31 21:17:18,965 - INFO - duration: 0.6956752539990703
MAIN: 2025-03-31 21:17:18,966 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:17:48,500 - INFO - taking picture
MAIN: 2025-03-31 21:17:48,500 - INFO - we take 1775 photos in this while loop
MAIN: 2025-03-31 21:17:48,501 - INFO - /home/pi/Desktop/images/31032025/21/17/image_31032025_21_17_48_29539.jpg
MAIN: 2025-03-31 21:17:48,501 - INFO - duration: 0.6920588450011564
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:18:07,110 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:18:18,715 - INFO - taking picture
MAIN: 2025-03-31 21:18:18,715 - INFO - we take 1776 photos in this while loop
MAIN: 2025-03-31 21:18:18,715 - INFO - /home/pi/Desktop/images/31032025/21/17/image_31032025_21_18_18_30234.jpg
MAIN: 2025-03-31 21:18:18,716 - INFO - duration: 0.6726586889999453
MAIN: 2025-03-31 21:18:18,716 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:18:48,374 - INFO - taking picture
MAIN: 2025-03-31 21:18:48,375 - INFO - we take 1777 photos in this while loop
MAIN: 2025-03-31 21:18:48,375 - INFO - /home/pi/Desktop/images/31032025/21/18/image_31032025_21_18_47_29645.jpg
MAIN: 2025-03-31 21:18:48,375 - INFO - duration: 0.6867745690033189
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:19:05,751 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:19:18,291 - INFO - taking picture
MAIN: 2025-03-31 21:19:18,291 - INFO - we take 1778 photos in this while loop
MAIN: 2025-03-31 21:19:18,291 - INFO - /home/pi/Desktop/images/31032025/21/18/image_31032025_21_19_17_29900.jpg
MAIN: 2025-03-31 21:19:18,292 - INFO - duration: 0.7028806570015149
MAIN: 2025-03-31 21:19:18,292 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/19'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:19:49,214 - INFO - taking picture
MAIN: 2025-03-31 21:19:49,215 - INFO - we take 1779 photos in this while loop
MAIN: 2025-03-31 21:19:49,215 - INFO - /home/pi/Desktop/images/31032025/21/19/image_31032025_21_19_48_30926.jpg
MAIN: 2025-03-31 21:19:49,215 - INFO - duration: 0.699701488003484
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:20:06,817 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:20:18,190 - INFO - taking picture
MAIN: 2025-03-31 21:20:18,191 - INFO - we take 1780 photos in this while loop
MAIN: 2025-03-31 21:20:18,191 - INFO - /home/pi/Desktop/images/31032025/21/19/image_31032025_21_20_17_28978.jpg
MAIN: 2025-03-31 21:20:18,191 - INFO - duration: 0.6979376309973304
MAIN: 2025-03-31 21:20:18,192 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/20'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:20:49,052 - INFO - taking picture
MAIN: 2025-03-31 21:20:49,052 - INFO - we take 1781 photos in this while loop
MAIN: 2025-03-31 21:20:49,053 - INFO - /home/pi/Desktop/images/31032025/21/20/image_31032025_21_20_48_30869.jpg
MAIN: 2025-03-31 21:20:49,053 - INFO - duration: 0.6902760160010075
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:21:06,459 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:21:19,225 - INFO - taking picture
MAIN: 2025-03-31 21:21:19,225 - INFO - we take 1782 photos in this while loop
MAIN: 2025-03-31 21:21:19,225 - INFO - /home/pi/Desktop/images/31032025/21/20/image_31032025_21_21_18_30190.jpg
MAIN: 2025-03-31 21:21:19,225 - INFO - duration: 0.6722291420010151
MAIN: 2025-03-31 21:21:19,226 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/21'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:21:48,928 - INFO - taking picture
MAIN: 2025-03-31 21:21:48,928 - INFO - we take 1783 photos in this while loop
MAIN: 2025-03-31 21:21:48,928 - INFO - /home/pi/Desktop/images/31032025/21/21/image_31032025_21_21_48_29699.jpg
MAIN: 2025-03-31 21:21:48,929 - INFO - duration: 0.6760137219971512
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:22:06,886 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:22:19,048 - INFO - taking picture
MAIN: 2025-03-31 21:22:19,049 - INFO - we take 1784 photos in this while loop
MAIN: 2025-03-31 21:22:19,049 - INFO - /home/pi/Desktop/images/31032025/21/21/image_31032025_21_22_18_30094.jpg
MAIN: 2025-03-31 21:22:19,049 - INFO - duration: 0.7019225699987146
MAIN: 2025-03-31 21:22:19,050 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:22:48,721 - INFO - taking picture
MAIN: 2025-03-31 21:22:48,721 - INFO - we take 1785 photos in this while loop
MAIN: 2025-03-31 21:22:48,722 - INFO - /home/pi/Desktop/images/31032025/21/22/image_31032025_21_22_48_29669.jpg
MAIN: 2025-03-31 21:22:48,722 - INFO - duration: 0.7050900670001283
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:23:05,759 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:23:19,051 - INFO - taking picture
MAIN: 2025-03-31 21:23:19,052 - INFO - we take 1786 photos in this while loop
MAIN: 2025-03-31 21:23:19,052 - INFO - /home/pi/Desktop/images/31032025/21/22/image_31032025_21_23_18_30333.jpg
MAIN: 2025-03-31 21:23:19,052 - INFO - duration: 0.7012663170025917
MAIN: 2025-03-31 21:23:19,052 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/23'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:23:48,779 - INFO - taking picture
MAIN: 2025-03-31 21:23:48,779 - INFO - we take 1787 photos in this while loop
MAIN: 2025-03-31 21:23:48,780 - INFO - /home/pi/Desktop/images/31032025/21/23/image_31032025_21_23_48_29732.jpg
MAIN: 2025-03-31 21:23:48,780 - INFO - duration: 0.6964880859959521
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:24:06,253 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:24:19,036 - INFO - taking picture
MAIN: 2025-03-31 21:24:19,037 - INFO - we take 1788 photos in this while loop
MAIN: 2025-03-31 21:24:19,037 - INFO - /home/pi/Desktop/images/31032025/21/23/image_31032025_21_24_18_30261.jpg
MAIN: 2025-03-31 21:24:19,037 - INFO - duration: 0.6923472970011062
MAIN: 2025-03-31 21:24:19,037 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/24'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:24:48,502 - INFO - taking picture
MAIN: 2025-03-31 21:24:48,503 - INFO - we take 1789 photos in this while loop
MAIN: 2025-03-31 21:24:48,503 - INFO - /home/pi/Desktop/images/31032025/21/24/image_31032025_21_24_48_29479.jpg
MAIN: 2025-03-31 21:24:48,503 - INFO - duration: 0.67853670000477
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:25:06,760 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:25:18,444 - INFO - taking picture
MAIN: 2025-03-31 21:25:18,444 - INFO - we take 1790 photos in this while loop
MAIN: 2025-03-31 21:25:18,445 - INFO - /home/pi/Desktop/images/31032025/21/24/image_31032025_21_25_18_29969.jpg
MAIN: 2025-03-31 21:25:18,445 - INFO - duration: 0.6504947490029735
MAIN: 2025-03-31 21:25:18,445 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:25:49,329 - INFO - taking picture
MAIN: 2025-03-31 21:25:49,329 - INFO - we take 1791 photos in this while loop
MAIN: 2025-03-31 21:25:49,330 - INFO - /home/pi/Desktop/images/31032025/21/25/image_31032025_21_25_48_30848.jpg
MAIN: 2025-03-31 21:25:49,330 - INFO - duration: 0.6866061979962979
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:26:06,778 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:26:18,339 - INFO - taking picture
MAIN: 2025-03-31 21:26:18,340 - INFO - we take 1792 photos in this while loop
MAIN: 2025-03-31 21:26:18,340 - INFO - /home/pi/Desktop/images/31032025/21/25/image_31032025_21_26_17_29059.jpg
MAIN: 2025-03-31 21:26:18,340 - INFO - duration: 0.6379270059987903
MAIN: 2025-03-31 21:26:18,341 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:26:49,256 - INFO - taking picture
MAIN: 2025-03-31 21:26:49,257 - INFO - we take 1793 photos in this while loop
MAIN: 2025-03-31 21:26:49,257 - INFO - /home/pi/Desktop/images/31032025/21/26/image_31032025_21_26_48_30863.jpg
MAIN: 2025-03-31 21:26:49,257 - INFO - duration: 0.6909704909994616
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:27:06,456 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:27:18,873 - INFO - taking picture
MAIN: 2025-03-31 21:27:18,873 - INFO - we take 1794 photos in this while loop
MAIN: 2025-03-31 21:27:18,873 - INFO - /home/pi/Desktop/images/31032025/21/26/image_31032025_21_27_18_29627.jpg
MAIN: 2025-03-31 21:27:18,874 - INFO - duration: 0.679547088999243
MAIN: 2025-03-31 21:27:18,874 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:27:48,390 - INFO - taking picture
MAIN: 2025-03-31 21:27:48,391 - INFO - we take 1795 photos in this while loop
MAIN: 2025-03-31 21:27:48,391 - INFO - /home/pi/Desktop/images/31032025/21/27/image_31032025_21_27_48_29502.jpg
MAIN: 2025-03-31 21:27:48,391 - INFO - duration: 0.6947567140014144
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:28:06,165 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:28:18,475 - INFO - taking picture
MAIN: 2025-03-31 21:28:18,475 - INFO - we take 1796 photos in this while loop
MAIN: 2025-03-31 21:28:18,476 - INFO - /home/pi/Desktop/images/31032025/21/27/image_31032025_21_28_18_30087.jpg
MAIN: 2025-03-31 21:28:18,476 - INFO - duration: 0.6923876900036703
MAIN: 2025-03-31 21:28:18,476 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:28:49,349 - INFO - taking picture
MAIN: 2025-03-31 21:28:49,350 - INFO - we take 1797 photos in this while loop
MAIN: 2025-03-31 21:28:49,350 - INFO - /home/pi/Desktop/images/31032025/21/28/image_31032025_21_28_48_30877.jpg
MAIN: 2025-03-31 21:28:49,350 - INFO - duration: 0.6893073649989674
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:29:06,028 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:29:19,373 - INFO - taking picture
MAIN: 2025-03-31 21:29:19,374 - INFO - we take 1798 photos in this while loop
MAIN: 2025-03-31 21:29:19,374 - INFO - /home/pi/Desktop/images/31032025/21/28/image_31032025_21_29_18_30030.jpg
MAIN: 2025-03-31 21:29:19,374 - INFO - duration: 0.683139280998148
MAIN: 2025-03-31 21:29:19,374 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:29:49,020 - INFO - taking picture
MAIN: 2025-03-31 21:29:49,020 - INFO - we take 1799 photos in this while loop
MAIN: 2025-03-31 21:29:49,021 - INFO - /home/pi/Desktop/images/31032025/21/29/image_31032025_21_29_48_29659.jpg
MAIN: 2025-03-31 21:29:49,021 - INFO - duration: 0.6704846860011457
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:30:07,023 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:30:18,235 - INFO - taking picture
MAIN: 2025-03-31 21:30:18,236 - INFO - we take 1800 photos in this while loop
MAIN: 2025-03-31 21:30:18,236 - INFO - /home/pi/Desktop/images/31032025/21/29/image_31032025_21_30_17_29165.jpg
MAIN: 2025-03-31 21:30:18,236 - INFO - duration: 0.7197128050029278
MAIN: 2025-03-31 21:30:18,237 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/30'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:30:49,193 - INFO - taking picture
MAIN: 2025-03-31 21:30:49,193 - INFO - we take 1801 photos in this while loop
MAIN: 2025-03-31 21:30:49,194 - INFO - /home/pi/Desktop/images/31032025/21/30/image_31032025_21_30_48_31039.jpg
MAIN: 2025-03-31 21:30:49,194 - INFO - duration: 0.6382660710005439
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:31:06,048 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:31:19,288 - INFO - taking picture
MAIN: 2025-03-31 21:31:19,289 - INFO - we take 1802 photos in this while loop
MAIN: 2025-03-31 21:31:19,289 - INFO - /home/pi/Desktop/images/31032025/21/30/image_31032025_21_31_18_30060.jpg
MAIN: 2025-03-31 21:31:19,289 - INFO - duration: 0.67296434599848
MAIN: 2025-03-31 21:31:19,289 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:31:48,987 - INFO - taking picture
MAIN: 2025-03-31 21:31:48,987 - INFO - we take 1803 photos in this while loop
MAIN: 2025-03-31 21:31:48,987 - INFO - /home/pi/Desktop/images/31032025/21/31/image_31032025_21_31_48_29702.jpg
MAIN: 2025-03-31 21:31:48,988 - INFO - duration: 0.6695563159955782
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:32:06,667 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:32:18,889 - INFO - taking picture
MAIN: 2025-03-31 21:32:18,889 - INFO - we take 1804 photos in this while loop
MAIN: 2025-03-31 21:32:18,890 - INFO - /home/pi/Desktop/images/31032025/21/31/image_31032025_21_32_18_29879.jpg
MAIN: 2025-03-31 21:32:18,890 - INFO - duration: 0.69180021599459
MAIN: 2025-03-31 21:32:18,890 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:32:48,544 - INFO - taking picture
MAIN: 2025-03-31 21:32:48,544 - INFO - we take 1805 photos in this while loop
MAIN: 2025-03-31 21:32:48,545 - INFO - /home/pi/Desktop/images/31032025/21/32/image_31032025_21_32_48_29672.jpg
MAIN: 2025-03-31 21:32:48,545 - INFO - duration: 0.673916300998826
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:33:06,697 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:33:18,783 - INFO - taking picture
MAIN: 2025-03-31 21:33:18,784 - INFO - we take 1806 photos in this while loop
MAIN: 2025-03-31 21:33:18,784 - INFO - /home/pi/Desktop/images/31032025/21/32/image_31032025_21_33_18_30218.jpg
MAIN: 2025-03-31 21:33:18,784 - INFO - duration: 0.694680253000115
MAIN: 2025-03-31 21:33:18,785 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/33'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:33:48,320 - INFO - taking picture
MAIN: 2025-03-31 21:33:48,321 - INFO - we take 1807 photos in this while loop
MAIN: 2025-03-31 21:33:48,321 - INFO - /home/pi/Desktop/images/31032025/21/33/image_31032025_21_33_47_29541.jpg
MAIN: 2025-03-31 21:33:48,321 - INFO - duration: 0.689765350005473
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:34:06,290 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:34:18,441 - INFO - taking picture
MAIN: 2025-03-31 21:34:18,442 - INFO - we take 1808 photos in this while loop
MAIN: 2025-03-31 21:34:18,442 - INFO - /home/pi/Desktop/images/31032025/21/33/image_31032025_21_34_18_30117.jpg
MAIN: 2025-03-31 21:34:18,442 - INFO - duration: 0.6926851360040018
MAIN: 2025-03-31 21:34:18,442 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:34:49,362 - INFO - taking picture
MAIN: 2025-03-31 21:34:49,363 - INFO - we take 1809 photos in this while loop
MAIN: 2025-03-31 21:34:49,363 - INFO - /home/pi/Desktop/images/31032025/21/34/image_31032025_21_34_48_30916.jpg
MAIN: 2025-03-31 21:34:49,363 - INFO - duration: 0.6972051290067611
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:35:06,354 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:35:18,125 - INFO - taking picture
MAIN: 2025-03-31 21:35:18,125 - INFO - we take 1810 photos in this while loop
MAIN: 2025-03-31 21:35:18,125 - INFO - /home/pi/Desktop/images/31032025/21/34/image_31032025_21_35_17_28790.jpg
MAIN: 2025-03-31 21:35:18,126 - INFO - duration: 0.6692553850007243
MAIN: 2025-03-31 21:35:18,126 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:35:48,989 - INFO - taking picture
MAIN: 2025-03-31 21:35:48,989 - INFO - we take 1811 photos in this while loop
MAIN: 2025-03-31 21:35:48,990 - INFO - /home/pi/Desktop/images/31032025/21/35/image_31032025_21_35_48_30862.jpg
MAIN: 2025-03-31 21:35:48,990 - INFO - duration: 0.6714219420027803
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:36:06,348 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:36:19,225 - INFO - taking picture
MAIN: 2025-03-31 21:36:19,225 - INFO - we take 1812 photos in this while loop
MAIN: 2025-03-31 21:36:19,226 - INFO - /home/pi/Desktop/images/31032025/21/35/image_31032025_21_36_18_30197.jpg
MAIN: 2025-03-31 21:36:19,226 - INFO - duration: 0.7102288099995349
MAIN: 2025-03-31 21:36:19,226 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:36:48,875 - INFO - taking picture
MAIN: 2025-03-31 21:36:48,876 - INFO - we take 1813 photos in this while loop
MAIN: 2025-03-31 21:36:48,876 - INFO - /home/pi/Desktop/images/31032025/21/36/image_31032025_21_36_48_29680.jpg
MAIN: 2025-03-31 21:36:48,876 - INFO - duration: 0.6806098500019289
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:37:06,432 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:37:18,852 - INFO - taking picture
MAIN: 2025-03-31 21:37:18,853 - INFO - we take 1814 photos in this while loop
MAIN: 2025-03-31 21:37:18,853 - INFO - /home/pi/Desktop/images/31032025/21/36/image_31032025_21_37_18_29940.jpg
MAIN: 2025-03-31 21:37:18,853 - INFO - duration: 0.7169332269986626
MAIN: 2025-03-31 21:37:18,854 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:37:48,604 - INFO - taking picture
MAIN: 2025-03-31 21:37:48,605 - INFO - we take 1815 photos in this while loop
MAIN: 2025-03-31 21:37:48,605 - INFO - /home/pi/Desktop/images/31032025/21/37/image_31032025_21_37_48_29757.jpg
MAIN: 2025-03-31 21:37:48,605 - INFO - duration: 0.7112403589999303
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:38:07,065 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:38:18,592 - INFO - taking picture
MAIN: 2025-03-31 21:38:18,593 - INFO - we take 1816 photos in this while loop
MAIN: 2025-03-31 21:38:18,593 - INFO - /home/pi/Desktop/images/31032025/21/37/image_31032025_21_38_18_30024.jpg
MAIN: 2025-03-31 21:38:18,593 - INFO - duration: 0.6743107750007766
MAIN: 2025-03-31 21:38:18,593 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:38:48,208 - INFO - taking picture
MAIN: 2025-03-31 21:38:48,209 - INFO - we take 1817 photos in this while loop
MAIN: 2025-03-31 21:38:48,209 - INFO - /home/pi/Desktop/images/31032025/21/38/image_31032025_21_38_47_29588.jpg
MAIN: 2025-03-31 21:38:48,209 - INFO - duration: 0.7024732170029893
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:39:06,069 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:39:18,128 - INFO - taking picture
MAIN: 2025-03-31 21:39:18,129 - INFO - we take 1818 photos in this while loop
MAIN: 2025-03-31 21:39:18,129 - INFO - /home/pi/Desktop/images/31032025/21/38/image_31032025_21_39_17_29932.jpg
MAIN: 2025-03-31 21:39:18,129 - INFO - duration: 0.6903151939986856
MAIN: 2025-03-31 21:39:18,130 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:39:49,081 - INFO - taking picture
MAIN: 2025-03-31 21:39:49,081 - INFO - we take 1819 photos in this while loop
MAIN: 2025-03-31 21:39:49,082 - INFO - /home/pi/Desktop/images/31032025/21/39/image_31032025_21_39_48_30944.jpg
MAIN: 2025-03-31 21:39:49,082 - INFO - duration: 0.6987083140047616
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:40:06,926 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:40:18,233 - INFO - taking picture
MAIN: 2025-03-31 21:40:18,233 - INFO - we take 1820 photos in this while loop
MAIN: 2025-03-31 21:40:18,233 - INFO - /home/pi/Desktop/images/31032025/21/39/image_31032025_21_40_17_29155.jpg
MAIN: 2025-03-31 21:40:18,234 - INFO - duration: 0.694773780000105
MAIN: 2025-03-31 21:40:18,234 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:40:49,138 - INFO - taking picture
MAIN: 2025-03-31 21:40:49,139 - INFO - we take 1821 photos in this while loop
MAIN: 2025-03-31 21:40:49,139 - INFO - /home/pi/Desktop/images/31032025/21/40/image_31032025_21_40_48_30909.jpg
MAIN: 2025-03-31 21:40:49,139 - INFO - duration: 0.6912326840028982
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:41:06,156 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:41:19,110 - INFO - taking picture
MAIN: 2025-03-31 21:41:19,110 - INFO - we take 1822 photos in this while loop
MAIN: 2025-03-31 21:41:19,110 - INFO - /home/pi/Desktop/images/31032025/21/40/image_31032025_21_41_18_29995.jpg
MAIN: 2025-03-31 21:41:19,111 - INFO - duration: 0.6674138300004415
MAIN: 2025-03-31 21:41:19,111 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:41:48,830 - INFO - taking picture
MAIN: 2025-03-31 21:41:48,830 - INFO - we take 1823 photos in this while loop
MAIN: 2025-03-31 21:41:48,831 - INFO - /home/pi/Desktop/images/31032025/21/41/image_31032025_21_41_48_29698.jpg
MAIN: 2025-03-31 21:41:48,831 - INFO - duration: 0.6889758549950784
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:42:06,736 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:42:18,813 - INFO - taking picture
MAIN: 2025-03-31 21:42:18,813 - INFO - we take 1824 photos in this while loop
MAIN: 2025-03-31 21:42:18,813 - INFO - /home/pi/Desktop/images/31032025/21/41/image_31032025_21_42_18_29977.jpg
MAIN: 2025-03-31 21:42:18,813 - INFO - duration: 0.6936711649977951
MAIN: 2025-03-31 21:42:18,814 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:42:48,456 - INFO - taking picture
MAIN: 2025-03-31 21:42:48,457 - INFO - we take 1825 photos in this while loop
MAIN: 2025-03-31 21:42:48,457 - INFO - /home/pi/Desktop/images/31032025/21/42/image_31032025_21_42_48_29644.jpg
MAIN: 2025-03-31 21:42:48,457 - INFO - duration: 0.6925772559989127
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:43:06,865 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:43:18,662 - INFO - taking picture
MAIN: 2025-03-31 21:43:18,663 - INFO - we take 1826 photos in this while loop
MAIN: 2025-03-31 21:43:18,663 - INFO - /home/pi/Desktop/images/31032025/21/42/image_31032025_21_43_18_30202.jpg
MAIN: 2025-03-31 21:43:18,663 - INFO - duration: 0.6966241289992468
MAIN: 2025-03-31 21:43:18,664 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:43:48,247 - INFO - taking picture
MAIN: 2025-03-31 21:43:48,248 - INFO - we take 1827 photos in this while loop
MAIN: 2025-03-31 21:43:48,248 - INFO - /home/pi/Desktop/images/31032025/21/43/image_31032025_21_43_47_29604.jpg
MAIN: 2025-03-31 21:43:48,248 - INFO - duration: 0.6772969939993345
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:44:05,888 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:44:19,312 - INFO - taking picture
MAIN: 2025-03-31 21:44:19,312 - INFO - we take 1828 photos in this while loop
MAIN: 2025-03-31 21:44:19,312 - INFO - /home/pi/Desktop/images/31032025/21/43/image_31032025_21_44_18_31069.jpg
MAIN: 2025-03-31 21:44:19,313 - INFO - duration: 0.6717714199985494
MAIN: 2025-03-31 21:44:19,313 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:44:48,861 - INFO - taking picture
MAIN: 2025-03-31 21:44:48,862 - INFO - we take 1829 photos in this while loop
MAIN: 2025-03-31 21:44:48,862 - INFO - /home/pi/Desktop/images/31032025/21/44/image_31032025_21_44_48_29516.jpg
MAIN: 2025-03-31 21:44:48,862 - INFO - duration: 0.7055086010004743
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:45:06,219 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:45:18,977 - INFO - taking picture
MAIN: 2025-03-31 21:45:18,978 - INFO - we take 1830 photos in this while loop
MAIN: 2025-03-31 21:45:18,978 - INFO - /home/pi/Desktop/images/31032025/21/44/image_31032025_21_45_18_30128.jpg
MAIN: 2025-03-31 21:45:18,978 - INFO - duration: 0.6929952150021563
MAIN: 2025-03-31 21:45:18,978 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:45:48,488 - INFO - taking picture
MAIN: 2025-03-31 21:45:48,489 - INFO - we take 1831 photos in this while loop
MAIN: 2025-03-31 21:45:48,489 - INFO - /home/pi/Desktop/images/31032025/21/45/image_31032025_21_45_48_29515.jpg
MAIN: 2025-03-31 21:45:48,489 - INFO - duration: 0.6883420890007983
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:46:06,344 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:46:18,506 - INFO - taking picture
MAIN: 2025-03-31 21:46:18,507 - INFO - we take 1832 photos in this while loop
MAIN: 2025-03-31 21:46:18,507 - INFO - /home/pi/Desktop/images/31032025/21/45/image_31032025_21_46_18_30004.jpg
MAIN: 2025-03-31 21:46:18,507 - INFO - duration: 0.7016829710046295
MAIN: 2025-03-31 21:46:18,508 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/46'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:46:48,118 - INFO - taking picture
MAIN: 2025-03-31 21:46:48,119 - INFO - we take 1833 photos in this while loop
MAIN: 2025-03-31 21:46:48,119 - INFO - /home/pi/Desktop/images/31032025/21/46/image_31032025_21_46_47_29621.jpg
MAIN: 2025-03-31 21:46:48,119 - INFO - duration: 0.6921844819953549
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:47:06,072 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:47:19,280 - INFO - taking picture
MAIN: 2025-03-31 21:47:19,281 - INFO - we take 1834 photos in this while loop
MAIN: 2025-03-31 21:47:19,281 - INFO - /home/pi/Desktop/images/31032025/21/46/image_31032025_21_47_18_31170.jpg
MAIN: 2025-03-31 21:47:19,281 - INFO - duration: 0.6840789609996136
MAIN: 2025-03-31 21:47:19,281 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/47'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:47:48,936 - INFO - taking picture
MAIN: 2025-03-31 21:47:48,936 - INFO - we take 1835 photos in this while loop
MAIN: 2025-03-31 21:47:48,937 - INFO - /home/pi/Desktop/images/31032025/21/47/image_31032025_21_47_48_29640.jpg
MAIN: 2025-03-31 21:47:48,937 - INFO - duration: 0.6989731770008802
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:48:06,529 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:48:18,983 - INFO - taking picture
MAIN: 2025-03-31 21:48:18,984 - INFO - we take 1836 photos in this while loop
MAIN: 2025-03-31 21:48:18,984 - INFO - /home/pi/Desktop/images/31032025/21/47/image_31032025_21_48_18_30046.jpg
MAIN: 2025-03-31 21:48:18,984 - INFO - duration: 0.6998895289943903
MAIN: 2025-03-31 21:48:18,984 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:48:48,594 - INFO - taking picture
MAIN: 2025-03-31 21:48:48,594 - INFO - we take 1837 photos in this while loop
MAIN: 2025-03-31 21:48:48,594 - INFO - /home/pi/Desktop/images/31032025/21/48/image_31032025_21_48_48_29615.jpg
MAIN: 2025-03-31 21:48:48,594 - INFO - duration: 0.6952645800047321
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:49:06,362 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:49:18,560 - INFO - taking picture
MAIN: 2025-03-31 21:49:18,560 - INFO - we take 1838 photos in this while loop
MAIN: 2025-03-31 21:49:18,561 - INFO - /home/pi/Desktop/images/31032025/21/48/image_31032025_21_49_18_29966.jpg
MAIN: 2025-03-31 21:49:18,561 - INFO - duration: 0.6947719759991742
MAIN: 2025-03-31 21:49:18,561 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:49:49,391 - INFO - taking picture
MAIN: 2025-03-31 21:49:49,391 - INFO - we take 1839 photos in this while loop
MAIN: 2025-03-31 21:49:49,392 - INFO - /home/pi/Desktop/images/31032025/21/49/image_31032025_21_49_49_30828.jpg
MAIN: 2025-03-31 21:49:49,392 - INFO - duration: 0.6976414009986911
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:50:06,554 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:50:18,367 - INFO - taking picture
MAIN: 2025-03-31 21:50:18,367 - INFO - we take 1840 photos in this while loop
MAIN: 2025-03-31 21:50:18,368 - INFO - /home/pi/Desktop/images/31032025/21/49/image_31032025_21_50_17_28998.jpg
MAIN: 2025-03-31 21:50:18,368 - INFO - duration: 0.6755214559962042
MAIN: 2025-03-31 21:50:18,368 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:50:49,190 - INFO - taking picture
MAIN: 2025-03-31 21:50:49,190 - INFO - we take 1841 photos in this while loop
MAIN: 2025-03-31 21:50:49,191 - INFO - /home/pi/Desktop/images/31032025/21/50/image_31032025_21_50_48_30798.jpg
MAIN: 2025-03-31 21:50:49,191 - INFO - duration: 0.6997367119984119
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:51:06,072 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:51:19,045 - INFO - taking picture
MAIN: 2025-03-31 21:51:19,046 - INFO - we take 1842 photos in this while loop
MAIN: 2025-03-31 21:51:19,046 - INFO - /home/pi/Desktop/images/31032025/21/50/image_31032025_21_51_18_29871.jpg
MAIN: 2025-03-31 21:51:19,046 - INFO - duration: 0.6836529110005358
MAIN: 2025-03-31 21:51:19,047 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:51:48,624 - INFO - taking picture
MAIN: 2025-03-31 21:51:48,625 - INFO - we take 1843 photos in this while loop
MAIN: 2025-03-31 21:51:48,625 - INFO - /home/pi/Desktop/images/31032025/21/51/image_31032025_21_51_48_29597.jpg
MAIN: 2025-03-31 21:51:48,625 - INFO - duration: 0.6651448400007212
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:52:06,454 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:52:18,609 - INFO - taking picture
MAIN: 2025-03-31 21:52:18,610 - INFO - we take 1844 photos in this while loop
MAIN: 2025-03-31 21:52:18,610 - INFO - /home/pi/Desktop/images/31032025/21/51/image_31032025_21_52_18_29949.jpg
MAIN: 2025-03-31 21:52:18,610 - INFO - duration: 0.700191709001956
MAIN: 2025-03-31 21:52:18,610 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:52:48,205 - INFO - taking picture
MAIN: 2025-03-31 21:52:48,206 - INFO - we take 1845 photos in this while loop
MAIN: 2025-03-31 21:52:48,206 - INFO - /home/pi/Desktop/images/31032025/21/52/image_31032025_21_52_47_29594.jpg
MAIN: 2025-03-31 21:52:48,206 - INFO - duration: 0.7019540520050214
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:53:06,447 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:53:19,369 - INFO - taking picture
MAIN: 2025-03-31 21:53:19,370 - INFO - we take 1846 photos in this while loop
MAIN: 2025-03-31 21:53:19,370 - INFO - /home/pi/Desktop/images/31032025/21/52/image_31032025_21_53_18_31197.jpg
MAIN: 2025-03-31 21:53:19,370 - INFO - duration: 0.6685319210009766
MAIN: 2025-03-31 21:53:19,371 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:53:48,973 - INFO - taking picture
MAIN: 2025-03-31 21:53:48,973 - INFO - we take 1847 photos in this while loop
MAIN: 2025-03-31 21:53:48,973 - INFO - /home/pi/Desktop/images/31032025/21/53/image_31032025_21_53_48_29578.jpg
MAIN: 2025-03-31 21:53:48,974 - INFO - duration: 0.6930850409989944
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:54:06,757 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:54:19,050 - INFO - taking picture
MAIN: 2025-03-31 21:54:19,051 - INFO - we take 1848 photos in this while loop
MAIN: 2025-03-31 21:54:19,051 - INFO - /home/pi/Desktop/images/31032025/21/53/image_31032025_21_54_18_30081.jpg
MAIN: 2025-03-31 21:54:19,051 - INFO - duration: 0.689592854003422
MAIN: 2025-03-31 21:54:19,052 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/54'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:54:48,670 - INFO - taking picture
MAIN: 2025-03-31 21:54:48,671 - INFO - we take 1849 photos in this while loop
MAIN: 2025-03-31 21:54:48,671 - INFO - /home/pi/Desktop/images/31032025/21/54/image_31032025_21_54_48_29613.jpg
MAIN: 2025-03-31 21:54:48,671 - INFO - duration: 0.6958818620041711
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:55:06,164 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:55:18,862 - INFO - taking picture
MAIN: 2025-03-31 21:55:18,863 - INFO - we take 1850 photos in this while loop
MAIN: 2025-03-31 21:55:18,863 - INFO - /home/pi/Desktop/images/31032025/21/54/image_31032025_21_55_18_30214.jpg
MAIN: 2025-03-31 21:55:18,863 - INFO - duration: 0.6732012409993331
MAIN: 2025-03-31 21:55:18,863 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:55:48,482 - INFO - taking picture
MAIN: 2025-03-31 21:55:48,483 - INFO - we take 1851 photos in this while loop
MAIN: 2025-03-31 21:55:48,483 - INFO - /home/pi/Desktop/images/31032025/21/55/image_31032025_21_55_48_29598.jpg
MAIN: 2025-03-31 21:55:48,483 - INFO - duration: 0.694847174003371
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 21:56:06,243 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:56:18,503 - INFO - taking picture
MAIN: 2025-03-31 21:56:18,503 - INFO - we take 1852 photos in this while loop
MAIN: 2025-03-31 21:56:18,503 - INFO - /home/pi/Desktop/images/31032025/21/55/image_31032025_21_56_18_30020.jpg
MAIN: 2025-03-31 21:56:18,504 - INFO - duration: 0.6941924869970535
MAIN: 2025-03-31 21:56:18,504 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:56:49,372 - INFO - taking picture
MAIN: 2025-03-31 21:56:49,373 - INFO - we take 1853 photos in this while loop
MAIN: 2025-03-31 21:56:49,373 - INFO - /home/pi/Desktop/images/31032025/21/56/image_31032025_21_56_48_30894.jpg
MAIN: 2025-03-31 21:56:49,373 - INFO - duration: 0.669119573001808
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:57:06,055 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:57:18,154 - INFO - taking picture
MAIN: 2025-03-31 21:57:18,155 - INFO - we take 1854 photos in this while loop
MAIN: 2025-03-31 21:57:18,155 - INFO - /home/pi/Desktop/images/31032025/21/56/image_31032025_21_57_17_28761.jpg
MAIN: 2025-03-31 21:57:18,155 - INFO - duration: 0.6896761839961982
MAIN: 2025-03-31 21:57:18,156 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/57'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:57:48,983 - INFO - taking picture
MAIN: 2025-03-31 21:57:48,984 - INFO - we take 1855 photos in this while loop
MAIN: 2025-03-31 21:57:48,984 - INFO - /home/pi/Desktop/images/31032025/21/57/image_31032025_21_57_48_30829.jpg
MAIN: 2025-03-31 21:57:48,984 - INFO - duration: 0.6886749859986594
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:58:06,558 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:58:18,763 - INFO - taking picture
MAIN: 2025-03-31 21:58:18,764 - INFO - we take 1856 photos in this while loop
MAIN: 2025-03-31 21:58:18,764 - INFO - /home/pi/Desktop/images/31032025/21/57/image_31032025_21_58_18_29780.jpg
MAIN: 2025-03-31 21:58:18,764 - INFO - duration: 0.6881311210017884
MAIN: 2025-03-31 21:58:18,765 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/58'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:58:48,342 - INFO - taking picture
MAIN: 2025-03-31 21:58:48,343 - INFO - we take 1857 photos in this while loop
MAIN: 2025-03-31 21:58:48,343 - INFO - /home/pi/Desktop/images/31032025/21/58/image_31032025_21_58_47_29572.jpg
MAIN: 2025-03-31 21:58:48,343 - INFO - duration: 0.6947816989995772
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 21:59:06,660 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:59:19,267 - INFO - taking picture
MAIN: 2025-03-31 21:59:19,267 - INFO - we take 1858 photos in this while loop
MAIN: 2025-03-31 21:59:19,268 - INFO - /home/pi/Desktop/images/31032025/21/58/image_31032025_21_59_18_30926.jpg
MAIN: 2025-03-31 21:59:19,268 - INFO - duration: 0.6929896759975236
MAIN: 2025-03-31 21:59:19,268 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/21/59'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 21:59:48,875 - INFO - taking picture
MAIN: 2025-03-31 21:59:48,875 - INFO - we take 1859 photos in this while loop
MAIN: 2025-03-31 21:59:48,875 - INFO - /home/pi/Desktop/images/31032025/21/59/image_31032025_21_59_48_29607.jpg
MAIN: 2025-03-31 21:59:48,875 - INFO - duration: 0.6931298919953406
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:00:07,329 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:00:18,973 - INFO - taking picture
MAIN: 2025-03-31 22:00:18,973 - INFO - we take 1860 photos in this while loop
MAIN: 2025-03-31 22:00:18,973 - INFO - /home/pi/Desktop/images/31032025/21/59/image_31032025_22_00_18_30098.jpg
MAIN: 2025-03-31 22:00:18,974 - INFO - duration: 0.6928356799980975
MAIN: 2025-03-31 22:00:18,974 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/00'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:00:48,533 - INFO - taking picture
MAIN: 2025-03-31 22:00:48,534 - INFO - we take 1861 photos in this while loop
MAIN: 2025-03-31 22:00:48,534 - INFO - /home/pi/Desktop/images/31032025/22/00/image_31032025_22_00_48_29585.jpg
MAIN: 2025-03-31 22:00:48,534 - INFO - duration: 0.668000852005207
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:01:05,741 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:01:18,461 - INFO - taking picture
MAIN: 2025-03-31 22:01:18,462 - INFO - we take 1862 photos in this while loop
MAIN: 2025-03-31 22:01:18,462 - INFO - /home/pi/Desktop/images/31032025/22/00/image_31032025_22_01_18_29901.jpg
MAIN: 2025-03-31 22:01:18,462 - INFO - duration: 0.6948131390017807
MAIN: 2025-03-31 22:01:18,463 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/01'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:01:49,295 - INFO - taking picture
MAIN: 2025-03-31 22:01:49,296 - INFO - we take 1863 photos in this while loop
MAIN: 2025-03-31 22:01:49,296 - INFO - /home/pi/Desktop/images/31032025/22/01/image_31032025_22_01_48_30837.jpg
MAIN: 2025-03-31 22:01:49,296 - INFO - duration: 0.6912553349975497
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:02:06,066 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:02:18,130 - INFO - taking picture
MAIN: 2025-03-31 22:02:18,130 - INFO - we take 1864 photos in this while loop
MAIN: 2025-03-31 22:02:18,131 - INFO - /home/pi/Desktop/images/31032025/22/01/image_31032025_22_02_17_28843.jpg
MAIN: 2025-03-31 22:02:18,131 - INFO - duration: 0.68239893700229
MAIN: 2025-03-31 22:02:18,131 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/02'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:02:48,921 - INFO - taking picture
MAIN: 2025-03-31 22:02:48,922 - INFO - we take 1865 photos in this while loop
MAIN: 2025-03-31 22:02:48,922 - INFO - /home/pi/Desktop/images/31032025/22/02/image_31032025_22_02_48_30777.jpg
MAIN: 2025-03-31 22:02:48,922 - INFO - duration: 0.6962346659929608
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:03:05,821 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:03:18,710 - INFO - taking picture
MAIN: 2025-03-31 22:03:18,711 - INFO - we take 1866 photos in this while loop
MAIN: 2025-03-31 22:03:18,711 - INFO - /home/pi/Desktop/images/31032025/22/02/image_31032025_22_03_18_29793.jpg
MAIN: 2025-03-31 22:03:18,711 - INFO - duration: 0.6916414950028411
MAIN: 2025-03-31 22:03:18,712 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/03'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:03:48,223 - INFO - taking picture
MAIN: 2025-03-31 22:03:48,224 - INFO - we take 1867 photos in this while loop
MAIN: 2025-03-31 22:03:48,224 - INFO - /home/pi/Desktop/images/31032025/22/03/image_31032025_22_03_47_29510.jpg
MAIN: 2025-03-31 22:03:48,224 - INFO - duration: 0.6941653530011536
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:04:06,435 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:04:18,210 - INFO - taking picture
MAIN: 2025-03-31 22:04:18,211 - INFO - we take 1868 photos in this while loop
MAIN: 2025-03-31 22:04:18,211 - INFO - /home/pi/Desktop/images/31032025/22/03/image_31032025_22_04_17_30035.jpg
MAIN: 2025-03-31 22:04:18,211 - INFO - duration: 0.6450965189942508
MAIN: 2025-03-31 22:04:18,212 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/04'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:04:49,152 - INFO - taking picture
MAIN: 2025-03-31 22:04:49,152 - INFO - we take 1869 photos in this while loop
MAIN: 2025-03-31 22:04:49,153 - INFO - /home/pi/Desktop/images/31032025/22/04/image_31032025_22_04_48_30888.jpg
MAIN: 2025-03-31 22:04:49,153 - INFO - duration: 0.6987249439989682
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:05:06,963 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:05:19,292 - INFO - taking picture
MAIN: 2025-03-31 22:05:19,293 - INFO - we take 1870 photos in this while loop
MAIN: 2025-03-31 22:05:19,293 - INFO - /home/pi/Desktop/images/31032025/22/04/image_31032025_22_05_18_30142.jpg
MAIN: 2025-03-31 22:05:19,293 - INFO - duration: 0.6968704170067213
MAIN: 2025-03-31 22:05:19,293 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/05'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:05:48,885 - INFO - taking picture
MAIN: 2025-03-31 22:05:48,886 - INFO - we take 1871 photos in this while loop
MAIN: 2025-03-31 22:05:48,886 - INFO - /home/pi/Desktop/images/31032025/22/05/image_31032025_22_05_48_29598.jpg
MAIN: 2025-03-31 22:05:48,886 - INFO - duration: 0.6918836509939865
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:06:07,118 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:06:18,775 - INFO - taking picture
MAIN: 2025-03-31 22:06:18,775 - INFO - we take 1872 photos in this while loop
MAIN: 2025-03-31 22:06:18,775 - INFO - /home/pi/Desktop/images/31032025/22/05/image_31032025_22_06_18_29891.jpg
MAIN: 2025-03-31 22:06:18,776 - INFO - duration: 0.6897206859939615
MAIN: 2025-03-31 22:06:18,776 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/06'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:06:48,332 - INFO - taking picture
MAIN: 2025-03-31 22:06:48,333 - INFO - we take 1873 photos in this while loop
MAIN: 2025-03-31 22:06:48,333 - INFO - /home/pi/Desktop/images/31032025/22/06/image_31032025_22_06_47_29549.jpg
MAIN: 2025-03-31 22:06:48,333 - INFO - duration: 0.6980699580017244
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:07:05,480 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:07:18,212 - INFO - taking picture
MAIN: 2025-03-31 22:07:18,213 - INFO - we take 1874 photos in this while loop
MAIN: 2025-03-31 22:07:18,213 - INFO - /home/pi/Desktop/images/31032025/22/06/image_31032025_22_07_17_29886.jpg
MAIN: 2025-03-31 22:07:18,213 - INFO - duration: 0.6917889730029856
MAIN: 2025-03-31 22:07:18,213 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/07'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:07:49,054 - INFO - taking picture
MAIN: 2025-03-31 22:07:49,055 - INFO - we take 1875 photos in this while loop
MAIN: 2025-03-31 22:07:49,055 - INFO - /home/pi/Desktop/images/31032025/22/07/image_31032025_22_07_48_30845.jpg
MAIN: 2025-03-31 22:07:49,055 - INFO - duration: 0.6881434039969463
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:08:06,282 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:08:19,101 - INFO - taking picture
MAIN: 2025-03-31 22:08:19,101 - INFO - we take 1876 photos in this while loop
MAIN: 2025-03-31 22:08:19,101 - INFO - /home/pi/Desktop/images/31032025/22/07/image_31032025_22_08_18_30044.jpg
MAIN: 2025-03-31 22:08:19,102 - INFO - duration: 0.6904372080025496
MAIN: 2025-03-31 22:08:19,102 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/08'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:08:48,711 - INFO - taking picture
MAIN: 2025-03-31 22:08:48,712 - INFO - we take 1877 photos in this while loop
MAIN: 2025-03-31 22:08:48,712 - INFO - /home/pi/Desktop/images/31032025/22/08/image_31032025_22_08_48_29607.jpg
MAIN: 2025-03-31 22:08:48,712 - INFO - duration: 0.6927785640000366
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:09:06,156 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:09:18,533 - INFO - taking picture
MAIN: 2025-03-31 22:09:18,534 - INFO - we take 1878 photos in this while loop
MAIN: 2025-03-31 22:09:18,534 - INFO - /home/pi/Desktop/images/31032025/22/08/image_31032025_22_09_18_29869.jpg
MAIN: 2025-03-31 22:09:18,534 - INFO - duration: 0.6462315480021061
MAIN: 2025-03-31 22:09:18,535 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/09'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:09:48,132 - INFO - taking picture
MAIN: 2025-03-31 22:09:48,133 - INFO - we take 1879 photos in this while loop
MAIN: 2025-03-31 22:09:48,133 - INFO - /home/pi/Desktop/images/31032025/22/09/image_31032025_22_09_47_29597.jpg
MAIN: 2025-03-31 22:09:48,133 - INFO - duration: 0.6473622260018601
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:10:07,670 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:10:18,703 - INFO - taking picture
MAIN: 2025-03-31 22:10:18,703 - INFO - we take 1880 photos in this while loop
MAIN: 2025-03-31 22:10:18,703 - INFO - /home/pi/Desktop/images/31032025/22/09/image_31032025_22_10_18_30545.jpg
MAIN: 2025-03-31 22:10:18,704 - INFO - duration: 0.671682221996889
MAIN: 2025-03-31 22:10:18,704 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/10'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:10:48,192 - INFO - taking picture
MAIN: 2025-03-31 22:10:48,193 - INFO - we take 1881 photos in this while loop
MAIN: 2025-03-31 22:10:48,193 - INFO - /home/pi/Desktop/images/31032025/22/10/image_31032025_22_10_47_29524.jpg
MAIN: 2025-03-31 22:10:48,193 - INFO - duration: 0.6367423889969359
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:11:05,826 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:11:18,084 - INFO - taking picture
MAIN: 2025-03-31 22:11:18,085 - INFO - we take 1882 photos in this while loop
MAIN: 2025-03-31 22:11:18,085 - INFO - /home/pi/Desktop/images/31032025/22/10/image_31032025_22_11_17_29888.jpg
MAIN: 2025-03-31 22:11:18,085 - INFO - duration: 0.6404433269999572
MAIN: 2025-03-31 22:11:18,086 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/11'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:11:48,945 - INFO - taking picture
MAIN: 2025-03-31 22:11:48,946 - INFO - we take 1883 photos in this while loop
MAIN: 2025-03-31 22:11:48,946 - INFO - /home/pi/Desktop/images/31032025/22/11/image_31032025_22_11_48_30802.jpg
MAIN: 2025-03-31 22:11:48,946 - INFO - duration: 0.6983902939973632
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:12:06,381 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:12:19,304 - INFO - taking picture
MAIN: 2025-03-31 22:12:19,305 - INFO - we take 1884 photos in this while loop
MAIN: 2025-03-31 22:12:19,305 - INFO - /home/pi/Desktop/images/31032025/22/11/image_31032025_22_12_18_30368.jpg
MAIN: 2025-03-31 22:12:19,305 - INFO - duration: 0.6894831109966617
MAIN: 2025-03-31 22:12:19,306 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/12'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:12:48,935 - INFO - taking picture
MAIN: 2025-03-31 22:12:48,936 - INFO - we take 1885 photos in this while loop
MAIN: 2025-03-31 22:12:48,936 - INFO - /home/pi/Desktop/images/31032025/22/12/image_31032025_22_12_48_29629.jpg
MAIN: 2025-03-31 22:12:48,936 - INFO - duration: 0.6910210810019635
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:13:06,254 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:13:18,780 - INFO - taking picture
MAIN: 2025-03-31 22:13:18,781 - INFO - we take 1886 photos in this while loop
MAIN: 2025-03-31 22:13:18,781 - INFO - /home/pi/Desktop/images/31032025/22/12/image_31032025_22_13_18_29843.jpg
MAIN: 2025-03-31 22:13:18,781 - INFO - duration: 0.6929402480018325
MAIN: 2025-03-31 22:13:18,781 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/13'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:13:48,331 - INFO - taking picture
MAIN: 2025-03-31 22:13:48,332 - INFO - we take 1887 photos in this while loop
MAIN: 2025-03-31 22:13:48,332 - INFO - /home/pi/Desktop/images/31032025/22/13/image_31032025_22_13_47_29551.jpg
MAIN: 2025-03-31 22:13:48,332 - INFO - duration: 0.6922976970017771
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:14:06,863 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:14:18,346 - INFO - taking picture
MAIN: 2025-03-31 22:14:18,347 - INFO - we take 1888 photos in this while loop
MAIN: 2025-03-31 22:14:18,347 - INFO - /home/pi/Desktop/images/31032025/22/13/image_31032025_22_14_17_30038.jpg
MAIN: 2025-03-31 22:14:18,347 - INFO - duration: 0.6688596829990274
MAIN: 2025-03-31 22:14:18,347 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/14'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:14:49,197 - INFO - taking picture
MAIN: 2025-03-31 22:14:49,197 - INFO - we take 1889 photos in this while loop
MAIN: 2025-03-31 22:14:49,197 - INFO - /home/pi/Desktop/images/31032025/22/14/image_31032025_22_14_48_30877.jpg
MAIN: 2025-03-31 22:14:49,198 - INFO - duration: 0.6415105769992806
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:15:06,734 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:15:19,329 - INFO - taking picture
MAIN: 2025-03-31 22:15:19,329 - INFO - we take 1890 photos in this while loop
MAIN: 2025-03-31 22:15:19,329 - INFO - /home/pi/Desktop/images/31032025/22/14/image_31032025_22_15_18_30129.jpg
MAIN: 2025-03-31 22:15:19,330 - INFO - duration: 0.6440412020019721
MAIN: 2025-03-31 22:15:19,330 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/15'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:15:48,969 - INFO - taking picture
MAIN: 2025-03-31 22:15:48,970 - INFO - we take 1891 photos in this while loop
MAIN: 2025-03-31 22:15:48,970 - INFO - /home/pi/Desktop/images/31032025/22/15/image_31032025_22_15_48_29641.jpg
MAIN: 2025-03-31 22:15:48,970 - INFO - duration: 0.6430170890016598
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:16:06,756 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0

 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)
 zoom  (0, 0, 3840, 2160)MAIN: 2025-03-31 22:16:19,124 - INFO - taking picture
MAIN: 2025-03-31 22:16:19,124 - INFO - we take 1892 photos in this while loop
MAIN: 2025-03-31 22:16:19,124 - INFO - /home/pi/Desktop/images/31032025/22/15/image_31032025_22_16_18_30125.jpg
MAIN: 2025-03-31 22:16:19,125 - INFO - duration: 0.6718503640004201
MAIN: 2025-03-31 22:16:19,125 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/16'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:16:48,822 - INFO - taking picture
MAIN: 2025-03-31 22:16:48,823 - INFO - we take 1893 photos in this while loop
MAIN: 2025-03-31 22:16:48,823 - INFO - /home/pi/Desktop/images/31032025/22/16/image_31032025_22_16_48_29674.jpg
MAIN: 2025-03-31 22:16:48,823 - INFO - duration: 0.6962248909985647
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:17:06,277 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:17:18,745 - INFO - taking picture
MAIN: 2025-03-31 22:17:18,745 - INFO - we take 1894 photos in this while loop
MAIN: 2025-03-31 22:17:18,746 - INFO - /home/pi/Desktop/images/31032025/22/16/image_31032025_22_17_18_29952.jpg
MAIN: 2025-03-31 22:17:18,746 - INFO - duration: 0.6666683360017487
MAIN: 2025-03-31 22:17:18,746 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/17'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:17:48,347 - INFO - taking picture
MAIN: 2025-03-31 22:17:48,347 - INFO - we take 1895 photos in this while loop
MAIN: 2025-03-31 22:17:48,348 - INFO - /home/pi/Desktop/images/31032025/22/17/image_31032025_22_17_47_29569.jpg
MAIN: 2025-03-31 22:17:48,348 - INFO - duration: 0.6990092150008422
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:18:06,770 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:18:18,501 - INFO - taking picture
MAIN: 2025-03-31 22:18:18,502 - INFO - we take 1896 photos in this while loop
MAIN: 2025-03-31 22:18:18,502 - INFO - /home/pi/Desktop/images/31032025/22/17/image_31032025_22_18_18_30170.jpg
MAIN: 2025-03-31 22:18:18,502 - INFO - duration: 0.6827732820020174
MAIN: 2025-03-31 22:18:18,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/18'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:18:48,402 - INFO - taking picture
MAIN: 2025-03-31 22:18:48,403 - INFO - we take 1897 photos in this while loop
MAIN: 2025-03-31 22:18:48,403 - INFO - /home/pi/Desktop/images/31032025/22/18/image_31032025_22_18_48_29886.jpg
MAIN: 2025-03-31 22:18:48,403 - INFO - duration: 0.6975327059990377
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:19:05,465 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:19:18,369 - INFO - taking picture
MAIN: 2025-03-31 22:19:18,369 - INFO - we take 1898 photos in this while loop
MAIN: 2025-03-31 22:19:18,370 - INFO - /home/pi/Desktop/images/31032025/22/18/image_31032025_22_19_17_29964.jpg
MAIN: 2025-03-31 22:19:18,370 - INFO - duration: 0.6990963520001969
MAIN: 2025-03-31 22:19:18,370 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/19'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:19:48,138 - INFO - taking picture
MAIN: 2025-03-31 22:19:48,139 - INFO - we take 1899 photos in this while loop
MAIN: 2025-03-31 22:19:48,139 - INFO - /home/pi/Desktop/images/31032025/22/19/image_31032025_22_19_47_29783.jpg
MAIN: 2025-03-31 22:19:48,139 - INFO - duration: 0.684738023999671
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:20:06,687 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:20:18,443 - INFO - taking picture
MAIN: 2025-03-31 22:20:18,444 - INFO - we take 1900 photos in this while loop
MAIN: 2025-03-31 22:20:18,444 - INFO - /home/pi/Desktop/images/31032025/22/19/image_31032025_22_20_18_30270.jpg
MAIN: 2025-03-31 22:20:18,444 - INFO - duration: 0.7191489539982285
MAIN: 2025-03-31 22:20:18,445 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/20'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:20:49,278 - INFO - taking picture
MAIN: 2025-03-31 22:20:49,278 - INFO - we take 1901 photos in this while loop
MAIN: 2025-03-31 22:20:49,279 - INFO - /home/pi/Desktop/images/31032025/22/20/image_31032025_22_20_48_30916.jpg
MAIN: 2025-03-31 22:20:49,279 - INFO - duration: 0.6374509519955609
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:21:06,261 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:21:18,156 - INFO - taking picture
MAIN: 2025-03-31 22:21:18,157 - INFO - we take 1902 photos in this while loop
MAIN: 2025-03-31 22:21:18,157 - INFO - /home/pi/Desktop/images/31032025/22/20/image_31032025_22_21_17_28858.jpg
MAIN: 2025-03-31 22:21:18,157 - INFO - duration: 0.656878551999398
MAIN: 2025-03-31 22:21:18,157 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/21'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:21:49,122 - INFO - taking picture
MAIN: 2025-03-31 22:21:49,123 - INFO - we take 1903 photos in this while loop
MAIN: 2025-03-31 22:21:49,123 - INFO - /home/pi/Desktop/images/31032025/22/21/image_31032025_22_21_48_30948.jpg
MAIN: 2025-03-31 22:21:49,123 - INFO - duration: 0.6740427670010831
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:22:06,836 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:22:18,068 - INFO - taking picture
MAIN: 2025-03-31 22:22:18,069 - INFO - we take 1904 photos in this while loop
MAIN: 2025-03-31 22:22:18,069 - INFO - /home/pi/Desktop/images/31032025/22/21/image_31032025_22_22_17_28973.jpg
MAIN: 2025-03-31 22:22:18,069 - INFO - duration: 0.6457652229946689
MAIN: 2025-03-31 22:22:18,069 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/22'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:22:49,015 - INFO - taking picture
MAIN: 2025-03-31 22:22:49,015 - INFO - we take 1905 photos in this while loop
MAIN: 2025-03-31 22:22:49,016 - INFO - /home/pi/Desktop/images/31032025/22/22/image_31032025_22_22_48_30899.jpg
MAIN: 2025-03-31 22:22:49,016 - INFO - duration: 0.6932063060012297
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:23:06,584 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:23:18,858 - INFO - taking picture
MAIN: 2025-03-31 22:23:18,858 - INFO - we take 1906 photos in this while loop
MAIN: 2025-03-31 22:23:18,859 - INFO - /home/pi/Desktop/images/31032025/22/22/image_31032025_22_23_18_29862.jpg
MAIN: 2025-03-31 22:23:18,859 - INFO - duration: 0.674039019002521
MAIN: 2025-03-31 22:23:18,859 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/23'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:23:48,524 - INFO - taking picture
MAIN: 2025-03-31 22:23:48,525 - INFO - we take 1907 photos in this while loop
MAIN: 2025-03-31 22:23:48,525 - INFO - /home/pi/Desktop/images/31032025/22/23/image_31032025_22_23_48_29652.jpg
MAIN: 2025-03-31 22:23:48,525 - INFO - duration: 0.6880430259989225
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:24:06,274 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:24:18,718 - INFO - taking picture
MAIN: 2025-03-31 22:24:18,718 - INFO - we take 1908 photos in this while loop
MAIN: 2025-03-31 22:24:18,718 - INFO - /home/pi/Desktop/images/31032025/22/23/image_31032025_22_24_18_30200.jpg
MAIN: 2025-03-31 22:24:18,719 - INFO - duration: 0.6814843309985008
MAIN: 2025-03-31 22:24:18,719 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/24'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:24:48,363 - INFO - taking picture
MAIN: 2025-03-31 22:24:48,363 - INFO - we take 1909 photos in this while loop
MAIN: 2025-03-31 22:24:48,363 - INFO - /home/pi/Desktop/images/31032025/22/24/image_31032025_22_24_47_29642.jpg
MAIN: 2025-03-31 22:24:48,364 - INFO - duration: 0.6837718309980119
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:25:06,485 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:25:18,542 - INFO - taking picture
MAIN: 2025-03-31 22:25:18,542 - INFO - we take 1910 photos in this while loop
MAIN: 2025-03-31 22:25:18,542 - INFO - /home/pi/Desktop/images/31032025/22/24/image_31032025_22_25_18_30170.jpg
MAIN: 2025-03-31 22:25:18,543 - INFO - duration: 0.6919726109990734
MAIN: 2025-03-31 22:25:18,543 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/25'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:25:48,213 - INFO - taking picture
MAIN: 2025-03-31 22:25:48,213 - INFO - we take 1911 photos in this while loop
MAIN: 2025-03-31 22:25:48,213 - INFO - /home/pi/Desktop/images/31032025/22/25/image_31032025_22_25_47_29670.jpg
MAIN: 2025-03-31 22:25:48,214 - INFO - duration: 0.6921589649937232
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:26:06,219 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:26:18,412 - INFO - taking picture
MAIN: 2025-03-31 22:26:18,412 - INFO - we take 1912 photos in this while loop
MAIN: 2025-03-31 22:26:18,413 - INFO - /home/pi/Desktop/images/31032025/22/25/image_31032025_22_26_18_30177.jpg
MAIN: 2025-03-31 22:26:18,413 - INFO - duration: 0.7134457840002142
MAIN: 2025-03-31 22:26:18,413 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/26'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:26:48,165 - INFO - taking picture
MAIN: 2025-03-31 22:26:48,165 - INFO - we take 1913 photos in this while loop
MAIN: 2025-03-31 22:26:48,166 - INFO - /home/pi/Desktop/images/31032025/22/26/image_31032025_22_26_47_29757.jpg
MAIN: 2025-03-31 22:26:48,166 - INFO - duration: 0.7090992740049842
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:27:06,501 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:27:18,375 - INFO - taking picture
MAIN: 2025-03-31 22:27:18,375 - INFO - we take 1914 photos in this while loop
MAIN: 2025-03-31 22:27:18,375 - INFO - /home/pi/Desktop/images/31032025/22/26/image_31032025_22_27_17_30220.jpg
MAIN: 2025-03-31 22:27:18,376 - INFO - duration: 0.6985681829974055
MAIN: 2025-03-31 22:27:18,376 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/27'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:27:49,330 - INFO - taking picture
MAIN: 2025-03-31 22:27:49,331 - INFO - we take 1915 photos in this while loop
MAIN: 2025-03-31 22:27:49,331 - INFO - /home/pi/Desktop/images/31032025/22/27/image_31032025_22_27_48_30984.jpg
MAIN: 2025-03-31 22:27:49,331 - INFO - duration: 0.6699007939969306
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:28:06,755 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:28:18,119 - INFO - taking picture
MAIN: 2025-03-31 22:28:18,120 - INFO - we take 1916 photos in this while loop
MAIN: 2025-03-31 22:28:18,120 - INFO - /home/pi/Desktop/images/31032025/22/27/image_31032025_22_28_17_28806.jpg
MAIN: 2025-03-31 22:28:18,120 - INFO - duration: 0.6520184020046145
MAIN: 2025-03-31 22:28:18,121 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/28'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:28:48,951 - INFO - taking picture
MAIN: 2025-03-31 22:28:48,952 - INFO - we take 1917 photos in this while loop
MAIN: 2025-03-31 22:28:48,952 - INFO - /home/pi/Desktop/images/31032025/22/28/image_31032025_22_28_48_30817.jpg
MAIN: 2025-03-31 22:28:48,952 - INFO - duration: 0.666386575998331
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:29:06,660 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:29:18,878 - INFO - taking picture
MAIN: 2025-03-31 22:29:18,878 - INFO - we take 1918 photos in this while loop
MAIN: 2025-03-31 22:29:18,879 - INFO - /home/pi/Desktop/images/31032025/22/28/image_31032025_22_29_18_29904.jpg
MAIN: 2025-03-31 22:29:18,879 - INFO - duration: 0.6887402180000208
MAIN: 2025-03-31 22:29:18,879 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/29'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:29:48,414 - INFO - taking picture
MAIN: 2025-03-31 22:29:48,415 - INFO - we take 1919 photos in this while loop
MAIN: 2025-03-31 22:29:48,415 - INFO - /home/pi/Desktop/images/31032025/22/29/image_31032025_22_29_48_29531.jpg
MAIN: 2025-03-31 22:29:48,415 - INFO - duration: 0.6937582900063717
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:30:07,621 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:30:18,890 - INFO - taking picture
MAIN: 2025-03-31 22:30:18,891 - INFO - we take 1920 photos in this while loop
MAIN: 2025-03-31 22:30:18,891 - INFO - /home/pi/Desktop/images/31032025/22/29/image_31032025_22_30_18_30466.jpg
MAIN: 2025-03-31 22:30:18,891 - INFO - duration: 0.702983340001083
MAIN: 2025-03-31 22:30:18,892 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/30'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:30:48,511 - INFO - taking picture
MAIN: 2025-03-31 22:30:48,512 - INFO - we take 1921 photos in this while loop
MAIN: 2025-03-31 22:30:48,512 - INFO - /home/pi/Desktop/images/31032025/22/30/image_31032025_22_30_48_29650.jpg
MAIN: 2025-03-31 22:30:48,512 - INFO - duration: 0.6737962110055378
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:31:05,849 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:31:18,364 - INFO - taking picture
MAIN: 2025-03-31 22:31:18,365 - INFO - we take 1922 photos in this while loop
MAIN: 2025-03-31 22:31:18,365 - INFO - /home/pi/Desktop/images/31032025/22/30/image_31032025_22_31_17_29827.jpg
MAIN: 2025-03-31 22:31:18,365 - INFO - duration: 0.6994825590008986
MAIN: 2025-03-31 22:31:18,365 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/31'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:31:49,353 - INFO - taking picture
MAIN: 2025-03-31 22:31:49,353 - INFO - we take 1923 photos in this while loop
MAIN: 2025-03-31 22:31:49,353 - INFO - /home/pi/Desktop/images/31032025/22/31/image_31032025_22_31_48_30985.jpg
MAIN: 2025-03-31 22:31:49,354 - INFO - duration: 0.7030917779993615
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:32:06,362 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:32:18,177 - INFO - taking picture
MAIN: 2025-03-31 22:32:18,177 - INFO - we take 1924 photos in this while loop
MAIN: 2025-03-31 22:32:18,177 - INFO - /home/pi/Desktop/images/31032025/22/31/image_31032025_22_32_17_28835.jpg
MAIN: 2025-03-31 22:32:18,178 - INFO - duration: 0.6915300199980265
MAIN: 2025-03-31 22:32:18,178 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/32'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:32:49,040 - INFO - taking picture
MAIN: 2025-03-31 22:32:49,041 - INFO - we take 1925 photos in this while loop
MAIN: 2025-03-31 22:32:49,041 - INFO - /home/pi/Desktop/images/31032025/22/32/image_31032025_22_32_48_30862.jpg
MAIN: 2025-03-31 22:32:49,041 - INFO - duration: 0.6923770739958854
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:33:06,736 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:33:18,996 - INFO - taking picture
MAIN: 2025-03-31 22:33:18,996 - INFO - we take 1926 photos in this while loop
MAIN: 2025-03-31 22:33:18,996 - INFO - /home/pi/Desktop/images/31032025/22/32/image_31032025_22_33_18_29986.jpg
MAIN: 2025-03-31 22:33:18,997 - INFO - duration: 0.6613933699991321
MAIN: 2025-03-31 22:33:18,997 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/33'
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:33:48,771 - INFO - taking picture
MAIN: 2025-03-31 22:33:48,772 - INFO - we take 1927 photos in this while loop
MAIN: 2025-03-31 22:33:48,772 - INFO - /home/pi/Desktop/images/31032025/22/33/image_31032025_22_33_48_29782.jpg
MAIN: 2025-03-31 22:33:48,772 - INFO - duration: 0.6542349040028057
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:34:07,098 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:34:18,882 - INFO - taking picture
MAIN: 2025-03-31 22:34:18,882 - INFO - we take 1928 photos in this while loop
MAIN: 2025-03-31 22:34:18,883 - INFO - /home/pi/Desktop/images/31032025/22/33/image_31032025_22_34_18_30087.jpg
MAIN: 2025-03-31 22:34:18,883 - INFO - duration: 0.6769491230006679
MAIN: 2025-03-31 22:34:18,883 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/34'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:34:48,504 - INFO - taking picture
MAIN: 2025-03-31 22:34:48,504 - INFO - we take 1929 photos in this while loop
MAIN: 2025-03-31 22:34:48,505 - INFO - /home/pi/Desktop/images/31032025/22/34/image_31032025_22_34_48_29614.jpg
MAIN: 2025-03-31 22:34:48,505 - INFO - duration: 0.684366895002313
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:35:06,849 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:35:18,625 - INFO - taking picture
MAIN: 2025-03-31 22:35:18,625 - INFO - we take 1930 photos in this while loop
MAIN: 2025-03-31 22:35:18,626 - INFO - /home/pi/Desktop/images/31032025/22/34/image_31032025_22_35_18_30134.jpg
MAIN: 2025-03-31 22:35:18,626 - INFO - duration: 0.6704434830026003
MAIN: 2025-03-31 22:35:18,626 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/35'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:35:48,230 - INFO - taking picture
MAIN: 2025-03-31 22:35:48,231 - INFO - we take 1931 photos in this while loop
MAIN: 2025-03-31 22:35:48,231 - INFO - /home/pi/Desktop/images/31032025/22/35/image_31032025_22_35_47_29603.jpg
MAIN: 2025-03-31 22:35:48,231 - INFO - duration: 0.6730380280059762
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:36:05,959 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:36:18,126 - INFO - taking picture
MAIN: 2025-03-31 22:36:18,126 - INFO - we take 1932 photos in this while loop
MAIN: 2025-03-31 22:36:18,126 - INFO - /home/pi/Desktop/images/31032025/22/35/image_31032025_22_36_17_29888.jpg
MAIN: 2025-03-31 22:36:18,126 - INFO - duration: 0.6796077250037342
MAIN: 2025-03-31 22:36:18,127 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/36'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:36:48,967 - INFO - taking picture
MAIN: 2025-03-31 22:36:48,967 - INFO - we take 1933 photos in this while loop
MAIN: 2025-03-31 22:36:48,967 - INFO - /home/pi/Desktop/images/31032025/22/36/image_31032025_22_36_48_30854.jpg
MAIN: 2025-03-31 22:36:48,968 - INFO - duration: 0.6659442590025719
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:37:05,972 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:37:19,114 - INFO - taking picture
MAIN: 2025-03-31 22:37:19,115 - INFO - we take 1934 photos in this while loop
MAIN: 2025-03-31 22:37:19,115 - INFO - /home/pi/Desktop/images/31032025/22/36/image_31032025_22_37_18_30132.jpg
MAIN: 2025-03-31 22:37:19,115 - INFO - duration: 0.6817779069970129
MAIN: 2025-03-31 22:37:19,116 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/37'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:37:48,732 - INFO - taking picture
MAIN: 2025-03-31 22:37:48,732 - INFO - we take 1935 photos in this while loop
MAIN: 2025-03-31 22:37:48,733 - INFO - /home/pi/Desktop/images/31032025/22/37/image_31032025_22_37_48_29604.jpg
MAIN: 2025-03-31 22:37:48,733 - INFO - duration: 0.6942595260043163
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:38:06,385 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:38:18,744 - INFO - taking picture
MAIN: 2025-03-31 22:38:18,744 - INFO - we take 1936 photos in this while loop
MAIN: 2025-03-31 22:38:18,744 - INFO - /home/pi/Desktop/images/31032025/22/37/image_31032025_22_38_18_30030.jpg
MAIN: 2025-03-31 22:38:18,745 - INFO - duration: 0.6755366319994209
MAIN: 2025-03-31 22:38:18,745 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/38'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:38:48,346 - INFO - taking picture
MAIN: 2025-03-31 22:38:48,347 - INFO - we take 1937 photos in this while loop
MAIN: 2025-03-31 22:38:48,347 - INFO - /home/pi/Desktop/images/31032025/22/38/image_31032025_22_38_47_29576.jpg
MAIN: 2025-03-31 22:38:48,347 - INFO - duration: 0.7013617839984363
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:39:06,552 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:39:18,323 - INFO - taking picture
MAIN: 2025-03-31 22:39:18,324 - INFO - we take 1938 photos in this while loop
MAIN: 2025-03-31 22:39:18,324 - INFO - /home/pi/Desktop/images/31032025/22/38/image_31032025_22_39_17_29983.jpg
MAIN: 2025-03-31 22:39:18,324 - INFO - duration: 0.6944352869977592
MAIN: 2025-03-31 22:39:18,324 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/39'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:39:49,172 - INFO - taking picture
MAIN: 2025-03-31 22:39:49,173 - INFO - we take 1939 photos in this while loop
MAIN: 2025-03-31 22:39:49,173 - INFO - /home/pi/Desktop/images/31032025/22/39/image_31032025_22_39_48_30859.jpg
MAIN: 2025-03-31 22:39:49,173 - INFO - duration: 0.6842172300021048
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:40:07,557 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:40:19,243 - INFO - taking picture
MAIN: 2025-03-31 22:40:19,244 - INFO - we take 1940 photos in this while loop
MAIN: 2025-03-31 22:40:19,244 - INFO - /home/pi/Desktop/images/31032025/22/39/image_31032025_22_40_18_30065.jpg
MAIN: 2025-03-31 22:40:19,244 - INFO - duration: 0.6896159859970794
MAIN: 2025-03-31 22:40:19,244 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/40'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:40:48,891 - INFO - taking picture
MAIN: 2025-03-31 22:40:48,891 - INFO - we take 1941 photos in this while loop
MAIN: 2025-03-31 22:40:48,891 - INFO - /home/pi/Desktop/images/31032025/22/40/image_31032025_22_40_48_29661.jpg
MAIN: 2025-03-31 22:40:48,892 - INFO - duration: 0.6755326169950422
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:41:05,879 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:41:18,953 - INFO - taking picture
MAIN: 2025-03-31 22:41:18,954 - INFO - we take 1942 photos in this while loop
MAIN: 2025-03-31 22:41:18,954 - INFO - /home/pi/Desktop/images/31032025/22/40/image_31032025_22_41_18_30041.jpg
MAIN: 2025-03-31 22:41:18,954 - INFO - duration: 0.6965795930009335
MAIN: 2025-03-31 22:41:18,955 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/41'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:41:48,541 - INFO - taking picture
MAIN: 2025-03-31 22:41:48,541 - INFO - we take 1943 photos in this while loop
MAIN: 2025-03-31 22:41:48,541 - INFO - /home/pi/Desktop/images/31032025/22/41/image_31032025_22_41_48_29597.jpg
MAIN: 2025-03-31 22:41:48,542 - INFO - duration: 0.6866241370007629
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:42:05,996 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:42:18,575 - INFO - taking picture
MAIN: 2025-03-31 22:42:18,575 - INFO - we take 1944 photos in this while loop
MAIN: 2025-03-31 22:42:18,576 - INFO - /home/pi/Desktop/images/31032025/22/41/image_31032025_22_42_18_30028.jpg
MAIN: 2025-03-31 22:42:18,576 - INFO - duration: 0.692529715001001
MAIN: 2025-03-31 22:42:18,576 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/42'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:42:48,210 - INFO - taking picture
MAIN: 2025-03-31 22:42:48,211 - INFO - we take 1945 photos in this while loop
MAIN: 2025-03-31 22:42:48,211 - INFO - /home/pi/Desktop/images/31032025/22/42/image_31032025_22_42_47_29658.jpg
MAIN: 2025-03-31 22:42:48,211 - INFO - duration: 0.669586607007659
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:43:06,107 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:43:18,305 - INFO - taking picture
MAIN: 2025-03-31 22:43:18,305 - INFO - we take 1946 photos in this while loop
MAIN: 2025-03-31 22:43:18,306 - INFO - /home/pi/Desktop/images/31032025/22/42/image_31032025_22_43_17_30064.jpg
MAIN: 2025-03-31 22:43:18,306 - INFO - duration: 0.6995935790037038
MAIN: 2025-03-31 22:43:18,306 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/43'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:43:49,140 - INFO - taking picture
MAIN: 2025-03-31 22:43:49,140 - INFO - we take 1947 photos in this while loop
MAIN: 2025-03-31 22:43:49,141 - INFO - /home/pi/Desktop/images/31032025/22/43/image_31032025_22_43_48_30830.jpg
MAIN: 2025-03-31 22:43:49,141 - INFO - duration: 0.7040363429987337
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:44:06,985 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:44:19,376 - INFO - taking picture
MAIN: 2025-03-31 22:44:19,377 - INFO - we take 1948 photos in this while loop
MAIN: 2025-03-31 22:44:19,377 - INFO - /home/pi/Desktop/images/31032025/22/43/image_31032025_22_44_18_30247.jpg
MAIN: 2025-03-31 22:44:19,377 - INFO - duration: 0.6933783850108739
MAIN: 2025-03-31 22:44:19,378 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/44'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:44:48,893 - INFO - taking picture
MAIN: 2025-03-31 22:44:48,893 - INFO - we take 1949 photos in this while loop
MAIN: 2025-03-31 22:44:48,894 - INFO - /home/pi/Desktop/images/31032025/22/44/image_31032025_22_44_48_29525.jpg
MAIN: 2025-03-31 22:44:48,894 - INFO - duration: 0.6839928739937022
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:45:06,860 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:45:18,779 - INFO - taking picture
MAIN: 2025-03-31 22:45:18,779 - INFO - we take 1950 photos in this while loop
MAIN: 2025-03-31 22:45:18,780 - INFO - /home/pi/Desktop/images/31032025/22/44/image_31032025_22_45_18_29890.jpg
MAIN: 2025-03-31 22:45:18,780 - INFO - duration: 0.6792954859993188
MAIN: 2025-03-31 22:45:18,780 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/45'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:45:48,263 - INFO - taking picture
MAIN: 2025-03-31 22:45:48,263 - INFO - we take 1951 photos in this while loop
MAIN: 2025-03-31 22:45:48,263 - INFO - /home/pi/Desktop/images/31032025/22/45/image_31032025_22_45_47_29479.jpg
MAIN: 2025-03-31 22:45:48,263 - INFO - duration: 0.6833074150054017
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:46:06,905 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:46:18,451 - INFO - taking picture
MAIN: 2025-03-31 22:46:18,451 - INFO - we take 1952 photos in this while loop
MAIN: 2025-03-31 22:46:18,452 - INFO - /home/pi/Desktop/images/31032025/22/45/image_31032025_22_46_18_30172.jpg
MAIN: 2025-03-31 22:46:18,452 - INFO - duration: 0.6993725170032121
MAIN: 2025-03-31 22:46:18,452 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/46'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:46:49,376 - INFO - taking picture
MAIN: 2025-03-31 22:46:49,376 - INFO - we take 1953 photos in this while loop
MAIN: 2025-03-31 22:46:49,377 - INFO - /home/pi/Desktop/images/31032025/22/46/image_31032025_22_46_48_30926.jpg
MAIN: 2025-03-31 22:46:49,377 - INFO - duration: 0.698058094989392
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:47:05,786 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:47:19,423 - INFO - taking picture
MAIN: 2025-03-31 22:47:19,424 - INFO - we take 1954 photos in this while loop
MAIN: 2025-03-31 22:47:19,424 - INFO - /home/pi/Desktop/images/31032025/22/46/image_31032025_22_47_19_30005.jpg
MAIN: 2025-03-31 22:47:19,424 - INFO - duration: 0.7406102169916267
MAIN: 2025-03-31 22:47:19,425 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/47'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:47:49,141 - INFO - taking picture
MAIN: 2025-03-31 22:47:49,142 - INFO - we take 1955 photos in this while loop
MAIN: 2025-03-31 22:47:49,142 - INFO - /home/pi/Desktop/images/31032025/22/47/image_31032025_22_47_48_29761.jpg
MAIN: 2025-03-31 22:47:49,142 - INFO - duration: 0.6970331030024681
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:48:06,247 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:48:19,210 - INFO - taking picture
MAIN: 2025-03-31 22:48:19,210 - INFO - we take 1956 photos in this while loop
MAIN: 2025-03-31 22:48:19,210 - INFO - /home/pi/Desktop/images/31032025/22/47/image_31032025_22_48_18_30081.jpg
MAIN: 2025-03-31 22:48:19,211 - INFO - duration: 0.6840394669998204
MAIN: 2025-03-31 22:48:19,211 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/48'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:48:48,804 - INFO - taking picture
MAIN: 2025-03-31 22:48:48,805 - INFO - we take 1957 photos in this while loop
MAIN: 2025-03-31 22:48:48,805 - INFO - /home/pi/Desktop/images/31032025/22/48/image_31032025_22_48_48_29581.jpg
MAIN: 2025-03-31 22:48:48,805 - INFO - duration: 0.6974149320012657
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:49:05,846 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:49:18,627 - INFO - taking picture
MAIN: 2025-03-31 22:49:18,627 - INFO - we take 1958 photos in this while loop
MAIN: 2025-03-31 22:49:18,628 - INFO - /home/pi/Desktop/images/31032025/22/48/image_31032025_22_49_18_29828.jpg
MAIN: 2025-03-31 22:49:18,628 - INFO - duration: 0.6915425430051982
MAIN: 2025-03-31 22:49:18,628 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/49'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:49:48,210 - INFO - taking picture
MAIN: 2025-03-31 22:49:48,211 - INFO - we take 1959 photos in this while loop
MAIN: 2025-03-31 22:49:48,211 - INFO - /home/pi/Desktop/images/31032025/22/49/image_31032025_22_49_47_29576.jpg
MAIN: 2025-03-31 22:49:48,211 - INFO - duration: 0.6986130110017257
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:50:07,166 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:50:18,483 - INFO - taking picture
MAIN: 2025-03-31 22:50:18,483 - INFO - we take 1960 photos in this while loop
MAIN: 2025-03-31 22:50:18,483 - INFO - /home/pi/Desktop/images/31032025/22/49/image_31032025_22_50_18_30272.jpg
MAIN: 2025-03-31 22:50:18,484 - INFO - duration: 0.6983454619912663
MAIN: 2025-03-31 22:50:18,484 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/50'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:50:49,367 - INFO - taking picture
MAIN: 2025-03-31 22:50:49,367 - INFO - we take 1961 photos in this while loop
MAIN: 2025-03-31 22:50:49,368 - INFO - /home/pi/Desktop/images/31032025/22/50/image_31032025_22_50_48_30884.jpg
MAIN: 2025-03-31 22:50:49,368 - INFO - duration: 0.6980023930082098
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:51:06,595 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:51:19,303 - INFO - taking picture
MAIN: 2025-03-31 22:51:19,304 - INFO - we take 1962 photos in this while loop
MAIN: 2025-03-31 22:51:19,304 - INFO - /home/pi/Desktop/images/31032025/22/50/image_31032025_22_51_18_29938.jpg
MAIN: 2025-03-31 22:51:19,304 - INFO - duration: 0.695552447999944
MAIN: 2025-03-31 22:51:19,304 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/51'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:51:48,930 - INFO - taking picture
MAIN: 2025-03-31 22:51:48,930 - INFO - we take 1963 photos in this while loop
MAIN: 2025-03-31 22:51:48,931 - INFO - /home/pi/Desktop/images/31032025/22/51/image_31032025_22_51_48_29631.jpg
MAIN: 2025-03-31 22:51:48,931 - INFO - duration: 0.6906666190043325
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:52:06,637 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:52:18,872 - INFO - taking picture
MAIN: 2025-03-31 22:52:18,872 - INFO - we take 1964 photos in this while loop
MAIN: 2025-03-31 22:52:18,872 - INFO - /home/pi/Desktop/images/31032025/22/51/image_31032025_22_52_18_29930.jpg
MAIN: 2025-03-31 22:52:18,873 - INFO - duration: 0.7022210440045455
MAIN: 2025-03-31 22:52:18,873 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/52'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:52:48,582 - INFO - taking picture
MAIN: 2025-03-31 22:52:48,582 - INFO - we take 1965 photos in this while loop
MAIN: 2025-03-31 22:52:48,582 - INFO - /home/pi/Desktop/images/31032025/22/52/image_31032025_22_52_48_29711.jpg
MAIN: 2025-03-31 22:52:48,583 - INFO - duration: 0.7009034939983394
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:53:05,824 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:53:18,502 - INFO - taking picture
MAIN: 2025-03-31 22:53:18,502 - INFO - we take 1966 photos in this while loop
MAIN: 2025-03-31 22:53:18,502 - INFO - /home/pi/Desktop/images/31032025/22/52/image_31032025_22_53_18_29946.jpg
MAIN: 2025-03-31 22:53:18,502 - INFO - duration: 0.6740164229995571
MAIN: 2025-03-31 22:53:18,503 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/53'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:53:48,151 - INFO - taking picture
MAIN: 2025-03-31 22:53:48,151 - INFO - we take 1967 photos in this while loop
MAIN: 2025-03-31 22:53:48,152 - INFO - /home/pi/Desktop/images/31032025/22/53/image_31032025_22_53_47_29606.jpg
MAIN: 2025-03-31 22:53:48,152 - INFO - duration: 0.7167085449909791
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:54:06,372 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:54:19,394 - INFO - taking picture
MAIN: 2025-03-31 22:54:19,395 - INFO - we take 1968 photos in this while loop
MAIN: 2025-03-31 22:54:19,395 - INFO - /home/pi/Desktop/images/31032025/22/53/image_31032025_22_54_19_31263.jpg
MAIN: 2025-03-31 22:54:19,395 - INFO - duration: 0.6967089700046927
MAIN: 2025-03-31 22:54:19,396 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/54'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:54:48,916 - INFO - taking picture
MAIN: 2025-03-31 22:54:48,916 - INFO - we take 1969 photos in this while loop
MAIN: 2025-03-31 22:54:48,917 - INFO - /home/pi/Desktop/images/31032025/22/54/image_31032025_22_54_48_29525.jpg
MAIN: 2025-03-31 22:54:48,917 - INFO - duration: 0.6926168380014133
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:55:06,334 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:55:18,702 - INFO - taking picture
MAIN: 2025-03-31 22:55:18,703 - INFO - we take 1970 photos in this while loop
MAIN: 2025-03-31 22:55:18,703 - INFO - /home/pi/Desktop/images/31032025/22/54/image_31032025_22_55_18_29774.jpg
MAIN: 2025-03-31 22:55:18,703 - INFO - duration: 0.7039599080017069
MAIN: 2025-03-31 22:55:18,703 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/55'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:55:48,248 - INFO - taking picture
MAIN: 2025-03-31 22:55:48,248 - INFO - we take 1971 photos in this while loop
MAIN: 2025-03-31 22:55:48,248 - INFO - /home/pi/Desktop/images/31032025/22/55/image_31032025_22_55_47_29558.jpg
MAIN: 2025-03-31 22:55:48,249 - INFO - duration: 0.691494237005827
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:56:06,875 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:56:18,492 - INFO - taking picture
MAIN: 2025-03-31 22:56:18,493 - INFO - we take 1972 photos in this while loop
MAIN: 2025-03-31 22:56:18,493 - INFO - /home/pi/Desktop/images/31032025/22/55/image_31032025_22_56_18_30254.jpg
MAIN: 2025-03-31 22:56:18,493 - INFO - duration: 0.681785127002513
MAIN: 2025-03-31 22:56:18,493 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/56'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:56:49,336 - INFO - taking picture
MAIN: 2025-03-31 22:56:49,336 - INFO - we take 1973 photos in this while loop
MAIN: 2025-03-31 22:56:49,337 - INFO - /home/pi/Desktop/images/31032025/22/56/image_31032025_22_56_48_30826.jpg
MAIN: 2025-03-31 22:56:49,337 - INFO - duration: 0.6993738729943288
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:57:05,687 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:57:19,155 - INFO - taking picture
MAIN: 2025-03-31 22:57:19,156 - INFO - we take 1974 photos in this while loop
MAIN: 2025-03-31 22:57:19,156 - INFO - /home/pi/Desktop/images/31032025/22/56/image_31032025_22_57_18_29827.jpg
MAIN: 2025-03-31 22:57:19,156 - INFO - duration: 0.6914398660010193
MAIN: 2025-03-31 22:57:19,156 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/57'
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:57:48,679 - INFO - taking picture
MAIN: 2025-03-31 22:57:48,680 - INFO - we take 1975 photos in this while loop
MAIN: 2025-03-31 22:57:48,680 - INFO - /home/pi/Desktop/images/31032025/22/57/image_31032025_22_57_48_29504.jpg
MAIN: 2025-03-31 22:57:48,680 - INFO - duration: 0.7112801210023463
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Corrupt JPEG data: premature end of data segment
MAIN: 2025-03-31 22:58:05,892 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:58:18,769 - INFO - taking picture
MAIN: 2025-03-31 22:58:18,769 - INFO - we take 1976 photos in this while loop
MAIN: 2025-03-31 22:58:18,769 - INFO - /home/pi/Desktop/images/31032025/22/57/image_31032025_22_58_18_30092.jpg
MAIN: 2025-03-31 22:58:18,770 - INFO - duration: 0.7085449669975787
MAIN: 2025-03-31 22:58:18,770 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/58'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:58:48,421 - INFO - taking picture
MAIN: 2025-03-31 22:58:48,422 - INFO - we take 1977 photos in this while loop
MAIN: 2025-03-31 22:58:48,422 - INFO - /home/pi/Desktop/images/31032025/22/58/image_31032025_22_58_48_29660.jpg
MAIN: 2025-03-31 22:58:48,422 - INFO - duration: 0.7009918980038492
[ WARN:0] global /tmp/pip-wheel-qd18ncao/opencv-python/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
MAIN: 2025-03-31 22:59:05,477 - INFO - cam.read() return no image
Will output and maybe also write in take_pic/pic_log.txt
0
Using /dev/video for video capture ! 
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:59:19,277 - INFO - taking picture
MAIN: 2025-03-31 22:59:19,278 - INFO - we take 1978 photos in this while loop
MAIN: 2025-03-31 22:59:19,278 - INFO - /home/pi/Desktop/images/31032025/22/58/image_31032025_22_59_18_30851.jpg
MAIN: 2025-03-31 22:59:19,279 - INFO - duration: 0.706369084000471
MAIN: 2025-03-31 22:59:19,279 - INFO - [Errno 17] File exists: '/home/pi/Desktop/images/31032025/22/59'
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 22:59:48,867 - INFO - taking picture
MAIN: 2025-03-31 22:59:48,867 - INFO - we take 1979 photos in this while loop
MAIN: 2025-03-31 22:59:48,867 - INFO - /home/pi/Desktop/images/31032025/22/59/image_31032025_22_59_48_29605.jpg
MAIN: 2025-03-31 22:59:48,868 - INFO - duration: 0.6894947159889853
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:00:18,871 - INFO - taking picture
MAIN: 2025-03-31 23:00:18,871 - INFO - we take 1980 photos in this while loop
MAIN: 2025-03-31 23:00:18,871 - INFO - /home/pi/Desktop/images/31032025/22/59/image_31032025_23_00_18_29999.jpg
MAIN: 2025-03-31 23:00:18,871 - INFO - duration: 0.6938909129967215
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:00:48,425 - INFO - taking picture
MAIN: 2025-03-31 23:00:48,425 - INFO - we take 1981 photos in this while loop
MAIN: 2025-03-31 23:00:48,425 - INFO - /home/pi/Desktop/images/31032025/23/00/image_31032025_23_00_48_29558.jpg
MAIN: 2025-03-31 23:00:48,425 - INFO - duration: 0.68949331100157
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:01:18,232 - INFO - taking picture
MAIN: 2025-03-31 23:01:18,233 - INFO - we take 1982 photos in this while loop
MAIN: 2025-03-31 23:01:18,233 - INFO - /home/pi/Desktop/images/31032025/23/00/image_31032025_23_01_17_29807.jpg
MAIN: 2025-03-31 23:01:18,233 - INFO - duration: 0.6892294060089625
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:01:49,052 - INFO - taking picture
MAIN: 2025-03-31 23:01:49,053 - INFO - we take 1983 photos in this while loop
MAIN: 2025-03-31 23:01:49,053 - INFO - /home/pi/Desktop/images/31032025/23/01/image_31032025_23_01_48_30814.jpg
MAIN: 2025-03-31 23:01:49,053 - INFO - duration: 0.6948719049978536
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:02:18,738 - INFO - taking picture
MAIN: 2025-03-31 23:02:18,738 - INFO - we take 1984 photos in this while loop
MAIN: 2025-03-31 23:02:18,738 - INFO - /home/pi/Desktop/images/31032025/23/01/image_31032025_23_02_18_29719.jpg
MAIN: 2025-03-31 23:02:18,739 - INFO - duration: 0.6608099379955092
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:02:48,231 - INFO - taking picture
MAIN: 2025-03-31 23:02:48,232 - INFO - we take 1985 photos in this while loop
MAIN: 2025-03-31 23:02:48,232 - INFO - /home/pi/Desktop/images/31032025/23/02/image_31032025_23_02_47_29462.jpg
MAIN: 2025-03-31 23:02:48,232 - INFO - duration: 0.6917900320113404
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:03:19,182 - INFO - taking picture
MAIN: 2025-03-31 23:03:19,182 - INFO - we take 1986 photos in this while loop
MAIN: 2025-03-31 23:03:19,183 - INFO - /home/pi/Desktop/images/31032025/23/02/image_31032025_23_03_18_30924.jpg
MAIN: 2025-03-31 23:03:19,183 - INFO - duration: 0.7180868470022688
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:03:48,737 - INFO - taking picture
MAIN: 2025-03-31 23:03:48,738 - INFO - we take 1987 photos in this while loop
MAIN: 2025-03-31 23:03:48,738 - INFO - /home/pi/Desktop/images/31032025/23/03/image_31032025_23_03_48_29584.jpg
MAIN: 2025-03-31 23:03:48,738 - INFO - duration: 0.6892715440044412
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:04:18,645 - INFO - taking picture
MAIN: 2025-03-31 23:04:18,645 - INFO - we take 1988 photos in this while loop
MAIN: 2025-03-31 23:04:18,645 - INFO - /home/pi/Desktop/images/31032025/23/03/image_31032025_23_04_18_29894.jpg
MAIN: 2025-03-31 23:04:18,645 - INFO - duration: 0.7016321139963111
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:04:48,312 - INFO - taking picture
MAIN: 2025-03-31 23:04:48,313 - INFO - we take 1989 photos in this while loop
MAIN: 2025-03-31 23:04:48,313 - INFO - /home/pi/Desktop/images/31032025/23/04/image_31032025_23_04_47_29702.jpg
MAIN: 2025-03-31 23:04:48,313 - INFO - duration: 0.6669618660089327
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:05:18,380 - INFO - taking picture
MAIN: 2025-03-31 23:05:18,381 - INFO - we take 1990 photos in this while loop
MAIN: 2025-03-31 23:05:18,381 - INFO - /home/pi/Desktop/images/31032025/23/04/image_31032025_23_05_18_30048.jpg
MAIN: 2025-03-31 23:05:18,381 - INFO - duration: 0.6868170680099865
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:05:49,214 - INFO - taking picture
MAIN: 2025-03-31 23:05:49,215 - INFO - we take 1991 photos in this while loop
MAIN: 2025-03-31 23:05:49,215 - INFO - /home/pi/Desktop/images/31032025/23/05/image_31032025_23_05_48_30828.jpg
MAIN: 2025-03-31 23:05:49,215 - INFO - duration: 0.6921075350110186
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:06:19,232 - INFO - taking picture
MAIN: 2025-03-31 23:06:19,232 - INFO - we take 1992 photos in this while loop
MAIN: 2025-03-31 23:06:19,232 - INFO - /home/pi/Desktop/images/31032025/23/05/image_31032025_23_06_18_30017.jpg
MAIN: 2025-03-31 23:06:19,233 - INFO - duration: 0.6915717389929341
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:06:48,725 - INFO - taking picture
MAIN: 2025-03-31 23:06:48,726 - INFO - we take 1993 photos in this while loop
MAIN: 2025-03-31 23:06:48,726 - INFO - /home/pi/Desktop/images/31032025/23/06/image_31032025_23_06_48_29520.jpg
MAIN: 2025-03-31 23:06:48,726 - INFO - duration: 0.6647070379985962
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:07:18,542 - INFO - taking picture
MAIN: 2025-03-31 23:07:18,543 - INFO - we take 1994 photos in this while loop
MAIN: 2025-03-31 23:07:18,543 - INFO - /home/pi/Desktop/images/31032025/23/06/image_31032025_23_07_18_29782.jpg
MAIN: 2025-03-31 23:07:18,543 - INFO - duration: 0.6999212980008451
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:07:49,302 - INFO - taking picture
MAIN: 2025-03-31 23:07:49,302 - INFO - we take 1995 photos in this while loop
MAIN: 2025-03-31 23:07:49,302 - INFO - /home/pi/Desktop/images/31032025/23/07/image_31032025_23_07_48_30763.jpg
MAIN: 2025-03-31 23:07:49,303 - INFO - duration: 0.695624145999318
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:08:19,140 - INFO - taking picture
MAIN: 2025-03-31 23:08:19,140 - INFO - we take 1996 photos in this while loop
MAIN: 2025-03-31 23:08:19,141 - INFO - /home/pi/Desktop/images/31032025/23/07/image_31032025_23_08_18_29864.jpg
MAIN: 2025-03-31 23:08:19,141 - INFO - duration: 0.6691928780055605
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:08:48,802 - INFO - taking picture
MAIN: 2025-03-31 23:08:48,803 - INFO - we take 1997 photos in this while loop
MAIN: 2025-03-31 23:08:48,803 - INFO - /home/pi/Desktop/images/31032025/23/08/image_31032025_23_08_48_29630.jpg
MAIN: 2025-03-31 23:08:48,803 - INFO - duration: 0.7009566689957865
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:09:18,611 - INFO - taking picture
MAIN: 2025-03-31 23:09:18,611 - INFO - we take 1998 photos in this while loop
MAIN: 2025-03-31 23:09:18,612 - INFO - /home/pi/Desktop/images/31032025/23/08/image_31032025_23_09_18_29874.jpg
MAIN: 2025-03-31 23:09:18,612 - INFO - duration: 0.6351648810086772
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:09:48,172 - INFO - taking picture
MAIN: 2025-03-31 23:09:48,173 - INFO - we take 1999 photos in this while loop
MAIN: 2025-03-31 23:09:48,173 - INFO - /home/pi/Desktop/images/31032025/23/09/image_31032025_23_09_47_29560.jpg
MAIN: 2025-03-31 23:09:48,173 - INFO - duration: 0.636598099998082
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:10:18,381 - INFO - taking picture
MAIN: 2025-03-31 23:10:18,382 - INFO - we take 2000 photos in this while loop
MAIN: 2025-03-31 23:10:18,382 - INFO - /home/pi/Desktop/images/31032025/23/09/image_31032025_23_10_17_30160.jpg
MAIN: 2025-03-31 23:10:18,382 - INFO - duration: 0.6846581420104485
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:10:49,275 - INFO - taking picture
MAIN: 2025-03-31 23:10:49,275 - INFO - we take 2001 photos in this while loop
MAIN: 2025-03-31 23:10:49,275 - INFO - /home/pi/Desktop/images/31032025/23/10/image_31032025_23_10_48_30886.jpg
MAIN: 2025-03-31 23:10:49,276 - INFO - duration: 0.6922617759992136
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:11:19,190 - INFO - taking picture
MAIN: 2025-03-31 23:11:19,191 - INFO - we take 2002 photos in this while loop
MAIN: 2025-03-31 23:11:19,191 - INFO - /home/pi/Desktop/images/31032025/23/10/image_31032025_23_11_18_29904.jpg
MAIN: 2025-03-31 23:11:19,191 - INFO - duration: 0.7032076509931358
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:11:48,943 - INFO - taking picture
MAIN: 2025-03-31 23:11:48,943 - INFO - we take 2003 photos in this while loop
MAIN: 2025-03-31 23:11:48,943 - INFO - /home/pi/Desktop/images/31032025/23/11/image_31032025_23_11_48_29754.jpg
MAIN: 2025-03-31 23:11:48,944 - INFO - duration: 0.7014688389899675
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:12:18,937 - INFO - taking picture
MAIN: 2025-03-31 23:12:18,937 - INFO - we take 2004 photos in this while loop
MAIN: 2025-03-31 23:12:18,938 - INFO - /home/pi/Desktop/images/31032025/23/11/image_31032025_23_12_18_30006.jpg
MAIN: 2025-03-31 23:12:18,938 - INFO - duration: 0.6893464349996066
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:12:48,516 - INFO - taking picture
MAIN: 2025-03-31 23:12:48,516 - INFO - we take 2005 photos in this while loop
MAIN: 2025-03-31 23:12:48,516 - INFO - /home/pi/Desktop/images/31032025/23/12/image_31032025_23_12_48_29577.jpg
MAIN: 2025-03-31 23:12:48,517 - INFO - duration: 0.6911001760017825
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:13:19,373 - INFO - taking picture
MAIN: 2025-03-31 23:13:19,374 - INFO - we take 2006 photos in this while loop
MAIN: 2025-03-31 23:13:19,374 - INFO - /home/pi/Desktop/images/31032025/23/12/image_31032025_23_13_18_30862.jpg
MAIN: 2025-03-31 23:13:19,374 - INFO - duration: 0.6862171459943056
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:13:48,934 - INFO - taking picture
MAIN: 2025-03-31 23:13:48,935 - INFO - we take 2007 photos in this while loop
MAIN: 2025-03-31 23:13:48,935 - INFO - /home/pi/Desktop/images/31032025/23/13/image_31032025_23_13_48_29551.jpg
MAIN: 2025-03-31 23:13:48,935 - INFO - duration: 0.6956057839997811
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:14:18,609 - INFO - taking picture
MAIN: 2025-03-31 23:14:18,609 - INFO - we take 2008 photos in this while loop
MAIN: 2025-03-31 23:14:18,610 - INFO - /home/pi/Desktop/images/31032025/23/13/image_31032025_23_14_18_29718.jpg
MAIN: 2025-03-31 23:14:18,610 - INFO - duration: 0.6519712489971425
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:14:48,267 - INFO - taking picture
MAIN: 2025-03-31 23:14:48,267 - INFO - we take 2009 photos in this while loop
MAIN: 2025-03-31 23:14:48,267 - INFO - /home/pi/Desktop/images/31032025/23/14/image_31032025_23_14_47_29660.jpg
MAIN: 2025-03-31 23:14:48,268 - INFO - duration: 0.6491975959943375
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:15:18,376 - INFO - taking picture
MAIN: 2025-03-31 23:15:18,377 - INFO - we take 2010 photos in this while loop
MAIN: 2025-03-31 23:15:18,377 - INFO - /home/pi/Desktop/images/31032025/23/14/image_31032025_23_15_17_30082.jpg
MAIN: 2025-03-31 23:15:18,377 - INFO - duration: 0.6764882650022628
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:15:49,350 - INFO - taking picture
MAIN: 2025-03-31 23:15:49,351 - INFO - we take 2011 photos in this while loop
MAIN: 2025-03-31 23:15:49,351 - INFO - /home/pi/Desktop/images/31032025/23/15/image_31032025_23_15_48_30949.jpg
MAIN: 2025-03-31 23:15:49,351 - INFO - duration: 0.7010050270037027
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:16:19,283 - INFO - taking picture
MAIN: 2025-03-31 23:16:19,283 - INFO - we take 2012 photos in this while loop
MAIN: 2025-03-31 23:16:19,283 - INFO - /home/pi/Desktop/images/31032025/23/15/image_31032025_23_16_18_29938.jpg
MAIN: 2025-03-31 23:16:19,284 - INFO - duration: 0.6950116359948879
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:16:48,839 - INFO - taking picture
MAIN: 2025-03-31 23:16:48,839 - INFO - we take 2013 photos in this while loop
MAIN: 2025-03-31 23:16:48,839 - INFO - /home/pi/Desktop/images/31032025/23/16/image_31032025_23_16_48_29576.jpg
MAIN: 2025-03-31 23:16:48,840 - INFO - duration: 0.674085124002886
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:17:18,682 - INFO - taking picture
MAIN: 2025-03-31 23:17:18,682 - INFO - we take 2014 photos in this while loop
MAIN: 2025-03-31 23:17:18,683 - INFO - /home/pi/Desktop/images/31032025/23/16/image_31032025_23_17_18_29822.jpg
MAIN: 2025-03-31 23:17:18,683 - INFO - duration: 0.6952071459963918
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:17:48,247 - INFO - taking picture
MAIN: 2025-03-31 23:17:48,247 - INFO - we take 2015 photos in this while loop
MAIN: 2025-03-31 23:17:48,247 - INFO - /home/pi/Desktop/images/31032025/23/17/image_31032025_23_17_47_29568.jpg
MAIN: 2025-03-31 23:17:48,248 - INFO - duration: 0.6914715690072626
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:18:19,239 - INFO - taking picture
MAIN: 2025-03-31 23:18:19,240 - INFO - we take 2016 photos in this while loop
MAIN: 2025-03-31 23:18:19,240 - INFO - /home/pi/Desktop/images/31032025/23/17/image_31032025_23_18_18_30982.jpg
MAIN: 2025-03-31 23:18:19,240 - INFO - duration: 0.7017734380060574
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:18:48,817 - INFO - taking picture
MAIN: 2025-03-31 23:18:48,818 - INFO - we take 2017 photos in this while loop
MAIN: 2025-03-31 23:18:48,818 - INFO - /home/pi/Desktop/images/31032025/23/18/image_31032025_23_18_48_29579.jpg
MAIN: 2025-03-31 23:18:48,818 - INFO - duration: 0.6993874969921308
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:19:18,445 - INFO - taking picture
MAIN: 2025-03-31 23:19:18,446 - INFO - we take 2018 photos in this while loop
MAIN: 2025-03-31 23:19:18,446 - INFO - /home/pi/Desktop/images/31032025/23/18/image_31032025_23_19_18_29646.jpg
MAIN: 2025-03-31 23:19:18,446 - INFO - duration: 0.6814262450061506
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:19:49,320 - INFO - taking picture
MAIN: 2025-03-31 23:19:49,321 - INFO - we take 2019 photos in this while loop
MAIN: 2025-03-31 23:19:49,321 - INFO - /home/pi/Desktop/images/31032025/23/19/image_31032025_23_19_48_30879.jpg
MAIN: 2025-03-31 23:19:49,321 - INFO - duration: 0.6765811899967957
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:20:18,311 - INFO - taking picture
MAIN: 2025-03-31 23:20:18,312 - INFO - we take 2020 photos in this while loop
MAIN: 2025-03-31 23:20:18,312 - INFO - /home/pi/Desktop/images/31032025/23/19/image_31032025_23_20_17_29022.jpg
MAIN: 2025-03-31 23:20:18,312 - INFO - duration: 0.6452965039934497
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:20:49,216 - INFO - taking picture
MAIN: 2025-03-31 23:20:49,216 - INFO - we take 2021 photos in this while loop
MAIN: 2025-03-31 23:20:49,217 - INFO - /home/pi/Desktop/images/31032025/23/20/image_31032025_23_20_48_30858.jpg
MAIN: 2025-03-31 23:20:49,217 - INFO - duration: 0.6918843060120707
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:21:19,187 - INFO - taking picture
MAIN: 2025-03-31 23:21:19,188 - INFO - we take 2022 photos in this while loop
MAIN: 2025-03-31 23:21:19,188 - INFO - /home/pi/Desktop/images/31032025/23/20/image_31032025_23_21_18_29965.jpg
MAIN: 2025-03-31 23:21:19,188 - INFO - duration: 0.6978622690076008
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:21:48,724 - INFO - taking picture
MAIN: 2025-03-31 23:21:48,725 - INFO - we take 2023 photos in this while loop
MAIN: 2025-03-31 23:21:48,725 - INFO - /home/pi/Desktop/images/31032025/23/21/image_31032025_23_21_48_29559.jpg
MAIN: 2025-03-31 23:21:48,725 - INFO - duration: 0.6747176880016923
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:22:18,608 - INFO - taking picture
MAIN: 2025-03-31 23:22:18,609 - INFO - we take 2024 photos in this while loop
MAIN: 2025-03-31 23:22:18,609 - INFO - /home/pi/Desktop/images/31032025/23/21/image_31032025_23_22_18_29873.jpg
MAIN: 2025-03-31 23:22:18,609 - INFO - duration: 0.6850994540000102
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:22:48,177 - INFO - taking picture
MAIN: 2025-03-31 23:22:48,178 - INFO - we take 2025 photos in this while loop
MAIN: 2025-03-31 23:22:48,178 - INFO - /home/pi/Desktop/images/31032025/23/22/image_31032025_23_22_47_29578.jpg
MAIN: 2025-03-31 23:22:48,178 - INFO - duration: 0.6757021619996522
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:23:19,235 - INFO - taking picture
MAIN: 2025-03-31 23:23:19,235 - INFO - we take 2026 photos in this while loop
MAIN: 2025-03-31 23:23:19,236 - INFO - /home/pi/Desktop/images/31032025/23/22/image_31032025_23_23_18_31025.jpg
MAIN: 2025-03-31 23:23:19,236 - INFO - duration: 0.7079425689880736
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:23:48,879 - INFO - taking picture
MAIN: 2025-03-31 23:23:48,880 - INFO - we take 2027 photos in this while loop
MAIN: 2025-03-31 23:23:48,880 - INFO - /home/pi/Desktop/images/31032025/23/23/image_31032025_23_23_48_29672.jpg
MAIN: 2025-03-31 23:23:48,880 - INFO - duration: 0.679010437001125
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:24:18,736 - INFO - taking picture
MAIN: 2025-03-31 23:24:18,737 - INFO - we take 2028 photos in this while loop
MAIN: 2025-03-31 23:24:18,737 - INFO - /home/pi/Desktop/images/31032025/23/23/image_31032025_23_24_18_29856.jpg
MAIN: 2025-03-31 23:24:18,737 - INFO - duration: 0.6803431949956575
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:24:48,384 - INFO - taking picture
MAIN: 2025-03-31 23:24:48,385 - INFO - we take 2029 photos in this while loop
MAIN: 2025-03-31 23:24:48,385 - INFO - /home/pi/Desktop/images/31032025/23/24/image_31032025_23_24_47_29638.jpg
MAIN: 2025-03-31 23:24:48,385 - INFO - duration: 0.6892372010042891
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:25:18,601 - INFO - taking picture
MAIN: 2025-03-31 23:25:18,602 - INFO - we take 2030 photos in this while loop
MAIN: 2025-03-31 23:25:18,602 - INFO - /home/pi/Desktop/images/31032025/23/24/image_31032025_23_25_18_30195.jpg
MAIN: 2025-03-31 23:25:18,602 - INFO - duration: 0.7108691219909815
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:25:48,286 - INFO - taking picture
MAIN: 2025-03-31 23:25:48,287 - INFO - we take 2031 photos in this while loop
MAIN: 2025-03-31 23:25:48,287 - INFO - /home/pi/Desktop/images/31032025/23/25/image_31032025_23_25_47_29694.jpg
MAIN: 2025-03-31 23:25:48,287 - INFO - duration: 0.7017644349980401
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:26:18,551 - INFO - taking picture
MAIN: 2025-03-31 23:26:18,552 - INFO - we take 2032 photos in this while loop
MAIN: 2025-03-31 23:26:18,552 - INFO - /home/pi/Desktop/images/31032025/23/25/image_31032025_23_26_18_30316.jpg
MAIN: 2025-03-31 23:26:18,552 - INFO - duration: 0.6498892350064125
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:26:48,319 - INFO - taking picture
MAIN: 2025-03-31 23:26:48,320 - INFO - we take 2033 photos in this while loop
MAIN: 2025-03-31 23:26:48,320 - INFO - /home/pi/Desktop/images/31032025/23/26/image_31032025_23_26_47_29766.jpg
MAIN: 2025-03-31 23:26:48,320 - INFO - duration: 0.6509090250037843
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:27:18,260 - INFO - taking picture
MAIN: 2025-03-31 23:27:18,261 - INFO - we take 2034 photos in this while loop
MAIN: 2025-03-31 23:27:18,261 - INFO - /home/pi/Desktop/images/31032025/23/26/image_31032025_23_27_17_29955.jpg
MAIN: 2025-03-31 23:27:18,261 - INFO - duration: 0.636798349005403
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:27:49,119 - INFO - taking picture
MAIN: 2025-03-31 23:27:49,120 - INFO - we take 2035 photos in this while loop
MAIN: 2025-03-31 23:27:49,120 - INFO - /home/pi/Desktop/images/31032025/23/27/image_31032025_23_27_48_30819.jpg
MAIN: 2025-03-31 23:27:49,121 - INFO - duration: 0.6761782870016759
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:28:19,221 - INFO - taking picture
MAIN: 2025-03-31 23:28:19,222 - INFO - we take 2036 photos in this while loop
MAIN: 2025-03-31 23:28:19,222 - INFO - /home/pi/Desktop/images/31032025/23/27/image_31032025_23_28_18_30084.jpg
MAIN: 2025-03-31 23:28:19,222 - INFO - duration: 0.6935506779991556
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:28:48,835 - INFO - taking picture
MAIN: 2025-03-31 23:28:48,836 - INFO - we take 2037 photos in this while loop
MAIN: 2025-03-31 23:28:48,836 - INFO - /home/pi/Desktop/images/31032025/23/28/image_31032025_23_28_48_29613.jpg
MAIN: 2025-03-31 23:28:48,836 - INFO - duration: 0.6938013539911481
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:29:18,433 - INFO - taking picture
MAIN: 2025-03-31 23:29:18,434 - INFO - we take 2038 photos in this while loop
MAIN: 2025-03-31 23:29:18,434 - INFO - /home/pi/Desktop/images/31032025/23/28/image_31032025_23_29_18_29595.jpg
MAIN: 2025-03-31 23:29:18,434 - INFO - duration: 0.695893903990509
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:29:49,297 - INFO - taking picture
MAIN: 2025-03-31 23:29:49,298 - INFO - we take 2039 photos in this while loop
MAIN: 2025-03-31 23:29:49,298 - INFO - /home/pi/Desktop/images/31032025/23/29/image_31032025_23_29_48_30851.jpg
MAIN: 2025-03-31 23:29:49,298 - INFO - duration: 0.7085981700074626
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:30:18,169 - INFO - taking picture
MAIN: 2025-03-31 23:30:18,169 - INFO - we take 2040 photos in this while loop
MAIN: 2025-03-31 23:30:18,170 - INFO - /home/pi/Desktop/images/31032025/23/29/image_31032025_23_30_17_28895.jpg
MAIN: 2025-03-31 23:30:18,170 - INFO - duration: 0.6847715609910665
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:30:48,970 - INFO - taking picture
MAIN: 2025-03-31 23:30:48,971 - INFO - we take 2041 photos in this while loop
MAIN: 2025-03-31 23:30:48,971 - INFO - /home/pi/Desktop/images/31032025/23/30/image_31032025_23_30_48_30835.jpg
MAIN: 2025-03-31 23:30:48,972 - INFO - duration: 0.6507343800039962
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:31:18,718 - INFO - taking picture
MAIN: 2025-03-31 23:31:18,719 - INFO - we take 2042 photos in this while loop
MAIN: 2025-03-31 23:31:18,719 - INFO - /home/pi/Desktop/images/31032025/23/30/image_31032025_23_31_18_29748.jpg
MAIN: 2025-03-31 23:31:18,719 - INFO - duration: 0.6499300560099073
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:31:48,358 - INFO - taking picture
MAIN: 2025-03-31 23:31:48,359 - INFO - we take 2043 photos in this while loop
MAIN: 2025-03-31 23:31:48,359 - INFO - /home/pi/Desktop/images/31032025/23/31/image_31032025_23_31_47_29601.jpg
MAIN: 2025-03-31 23:31:48,359 - INFO - duration: 0.688363795998157
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:32:18,412 - INFO - taking picture
MAIN: 2025-03-31 23:32:18,413 - INFO - we take 2044 photos in this while loop
MAIN: 2025-03-31 23:32:18,413 - INFO - /home/pi/Desktop/images/31032025/23/31/image_31032025_23_32_18_30091.jpg
MAIN: 2025-03-31 23:32:18,413 - INFO - duration: 0.6517540649947478
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:32:48,173 - INFO - taking picture
MAIN: 2025-03-31 23:32:48,174 - INFO - we take 2045 photos in this while loop
MAIN: 2025-03-31 23:32:48,174 - INFO - /home/pi/Desktop/images/31032025/23/32/image_31032025_23_32_47_29758.jpg
MAIN: 2025-03-31 23:32:48,174 - INFO - duration: 0.6540202609903645
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:33:18,136 - INFO - taking picture
MAIN: 2025-03-31 23:33:18,137 - INFO - we take 2046 photos in this while loop
MAIN: 2025-03-31 23:33:18,137 - INFO - /home/pi/Desktop/images/31032025/23/32/image_31032025_23_33_17_29975.jpg
MAIN: 2025-03-31 23:33:18,137 - INFO - duration: 0.6417364609951619
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:33:49,063 - INFO - taking picture
MAIN: 2025-03-31 23:33:49,064 - INFO - we take 2047 photos in this while loop
MAIN: 2025-03-31 23:33:49,064 - INFO - /home/pi/Desktop/images/31032025/23/33/image_31032025_23_33_48_30876.jpg
MAIN: 2025-03-31 23:33:49,064 - INFO - duration: 0.6925020210037474
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:34:19,240 - INFO - taking picture
MAIN: 2025-03-31 23:34:19,240 - INFO - we take 2048 photos in this while loop
MAIN: 2025-03-31 23:34:19,240 - INFO - /home/pi/Desktop/images/31032025/23/33/image_31032025_23_34_18_30188.jpg
MAIN: 2025-03-31 23:34:19,241 - INFO - duration: 0.680198742003995
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:34:48,896 - INFO - taking picture
MAIN: 2025-03-31 23:34:48,896 - INFO - we take 2049 photos in this while loop
MAIN: 2025-03-31 23:34:48,897 - INFO - /home/pi/Desktop/images/31032025/23/34/image_31032025_23_34_48_29638.jpg
MAIN: 2025-03-31 23:34:48,897 - INFO - duration: 0.6980980080115842
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:35:18,897 - INFO - taking picture
MAIN: 2025-03-31 23:35:18,898 - INFO - we take 2050 photos in this while loop
MAIN: 2025-03-31 23:35:18,898 - INFO - /home/pi/Desktop/images/31032025/23/34/image_31032025_23_35_18_30022.jpg
MAIN: 2025-03-31 23:35:18,898 - INFO - duration: 0.6771421269950224
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:35:48,504 - INFO - taking picture
MAIN: 2025-03-31 23:35:48,504 - INFO - we take 2051 photos in this while loop
MAIN: 2025-03-31 23:35:48,504 - INFO - /home/pi/Desktop/images/31032025/23/35/image_31032025_23_35_48_29587.jpg
MAIN: 2025-03-31 23:35:48,505 - INFO - duration: 0.6957715489988914
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:36:18,478 - INFO - taking picture
MAIN: 2025-03-31 23:36:18,479 - INFO - we take 2052 photos in this while loop
MAIN: 2025-03-31 23:36:18,479 - INFO - /home/pi/Desktop/images/31032025/23/35/image_31032025_23_36_18_29975.jpg
MAIN: 2025-03-31 23:36:18,479 - INFO - duration: 0.6947720169991953
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:36:49,226 - INFO - taking picture
MAIN: 2025-03-31 23:36:49,226 - INFO - we take 2053 photos in this while loop
MAIN: 2025-03-31 23:36:49,227 - INFO - /home/pi/Desktop/images/31032025/23/36/image_31032025_23_36_48_30801.jpg
MAIN: 2025-03-31 23:36:49,227 - INFO - duration: 0.6407567699934589
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:37:19,138 - INFO - taking picture
MAIN: 2025-03-31 23:37:19,139 - INFO - we take 2054 photos in this while loop
MAIN: 2025-03-31 23:37:19,139 - INFO - /home/pi/Desktop/images/31032025/23/36/image_31032025_23_37_18_29885.jpg
MAIN: 2025-03-31 23:37:19,139 - INFO - duration: 0.6675309290003497
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:37:48,799 - INFO - taking picture
MAIN: 2025-03-31 23:37:48,799 - INFO - we take 2055 photos in this while loop
MAIN: 2025-03-31 23:37:48,799 - INFO - /home/pi/Desktop/images/31032025/23/37/image_31032025_23_37_48_29689.jpg
MAIN: 2025-03-31 23:37:48,800 - INFO - duration: 0.6378709370037541
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:38:18,890 - INFO - taking picture
MAIN: 2025-03-31 23:38:18,891 - INFO - we take 2056 photos in this while loop
MAIN: 2025-03-31 23:38:18,891 - INFO - /home/pi/Desktop/images/31032025/23/37/image_31032025_23_38_18_30044.jpg
MAIN: 2025-03-31 23:38:18,891 - INFO - duration: 0.6849051429890096
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:38:48,546 - INFO - taking picture
MAIN: 2025-03-31 23:38:48,546 - INFO - we take 2057 photos in this while loop
MAIN: 2025-03-31 23:38:48,547 - INFO - /home/pi/Desktop/images/31032025/23/38/image_31032025_23_38_48_29645.jpg
MAIN: 2025-03-31 23:38:48,547 - INFO - duration: 0.6950859210046474
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:39:18,141 - INFO - taking picture
MAIN: 2025-03-31 23:39:18,141 - INFO - we take 2058 photos in this while loop
MAIN: 2025-03-31 23:39:18,141 - INFO - /home/pi/Desktop/images/31032025/23/38/image_31032025_23_39_17_29617.jpg
MAIN: 2025-03-31 23:39:18,142 - INFO - duration: 0.6720010830031242
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:39:48,974 - INFO - taking picture
MAIN: 2025-03-31 23:39:48,975 - INFO - we take 2059 photos in this while loop
MAIN: 2025-03-31 23:39:48,975 - INFO - /home/pi/Desktop/images/31032025/23/39/image_31032025_23_39_48_30809.jpg
MAIN: 2025-03-31 23:39:48,975 - INFO - duration: 0.6957695659948513
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:40:18,925 - INFO - taking picture
MAIN: 2025-03-31 23:40:18,926 - INFO - we take 2060 photos in this while loop
MAIN: 2025-03-31 23:40:18,926 - INFO - /home/pi/Desktop/images/31032025/23/39/image_31032025_23_40_18_29941.jpg
MAIN: 2025-03-31 23:40:18,926 - INFO - duration: 0.7054396160092438
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:40:48,503 - INFO - taking picture
MAIN: 2025-03-31 23:40:48,504 - INFO - we take 2061 photos in this while loop
MAIN: 2025-03-31 23:40:48,504 - INFO - /home/pi/Desktop/images/31032025/23/40/image_31032025_23_40_48_29585.jpg
MAIN: 2025-03-31 23:40:48,504 - INFO - duration: 0.6973645180114545
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:41:18,717 - INFO - taking picture
MAIN: 2025-03-31 23:41:18,717 - INFO - we take 2062 photos in this while loop
MAIN: 2025-03-31 23:41:18,717 - INFO - /home/pi/Desktop/images/31032025/23/40/image_31032025_23_41_18_30196.jpg
MAIN: 2025-03-31 23:41:18,718 - INFO - duration: 0.7141535769915208
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:41:48,483 - INFO - taking picture
MAIN: 2025-03-31 23:41:48,484 - INFO - we take 2063 photos in this while loop
MAIN: 2025-03-31 23:41:48,484 - INFO - /home/pi/Desktop/images/31032025/23/41/image_31032025_23_41_48_29756.jpg
MAIN: 2025-03-31 23:41:48,484 - INFO - duration: 0.724557637993712
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:42:18,489 - INFO - taking picture
MAIN: 2025-03-31 23:42:18,490 - INFO - we take 2064 photos in this while loop
MAIN: 2025-03-31 23:42:18,490 - INFO - /home/pi/Desktop/images/31032025/23/41/image_31032025_23_42_18_30032.jpg
MAIN: 2025-03-31 23:42:18,491 - INFO - duration: 0.6985601479973411
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:42:48,160 - INFO - taking picture
MAIN: 2025-03-31 23:42:48,160 - INFO - we take 2065 photos in this while loop
MAIN: 2025-03-31 23:42:48,161 - INFO - /home/pi/Desktop/images/31032025/23/42/image_31032025_23_42_47_29664.jpg
MAIN: 2025-03-31 23:42:48,161 - INFO - duration: 0.7041979089990491
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:43:19,080 - INFO - taking picture
MAIN: 2025-03-31 23:43:19,081 - INFO - we take 2066 photos in this while loop
MAIN: 2025-03-31 23:43:19,081 - INFO - /home/pi/Desktop/images/31032025/23/42/image_31032025_23_43_18_30939.jpg
MAIN: 2025-03-31 23:43:19,081 - INFO - duration: 0.6852335940056946
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:43:48,672 - INFO - taking picture
MAIN: 2025-03-31 23:43:48,672 - INFO - we take 2067 photos in this while loop
MAIN: 2025-03-31 23:43:48,672 - INFO - /home/pi/Desktop/images/31032025/23/43/image_31032025_23_43_48_29579.jpg
MAIN: 2025-03-31 23:43:48,673 - INFO - duration: 0.6968970290035941
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:44:18,355 - INFO - taking picture
MAIN: 2025-03-31 23:44:18,355 - INFO - we take 2068 photos in this while loop
MAIN: 2025-03-31 23:44:18,356 - INFO - /home/pi/Desktop/images/31032025/23/43/image_31032025_23_44_17_29675.jpg
MAIN: 2025-03-31 23:44:18,356 - INFO - duration: 0.7047861950122751
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:44:49,324 - INFO - taking picture
MAIN: 2025-03-31 23:44:49,325 - INFO - we take 2069 photos in this while loop
MAIN: 2025-03-31 23:44:49,325 - INFO - /home/pi/Desktop/images/31032025/23/44/image_31032025_23_44_48_30996.jpg
MAIN: 2025-03-31 23:44:49,325 - INFO - duration: 0.6782630270026857
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:45:19,279 - INFO - taking picture
MAIN: 2025-03-31 23:45:19,280 - INFO - we take 2070 photos in this while loop
MAIN: 2025-03-31 23:45:19,280 - INFO - /home/pi/Desktop/images/31032025/23/44/image_31032025_23_45_18_29918.jpg
MAIN: 2025-03-31 23:45:19,280 - INFO - duration: 0.714594893011963
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:45:48,945 - INFO - taking picture
MAIN: 2025-03-31 23:45:48,946 - INFO - we take 2071 photos in this while loop
MAIN: 2025-03-31 23:45:48,946 - INFO - /home/pi/Desktop/images/31032025/23/45/image_31032025_23_45_48_29685.jpg
MAIN: 2025-03-31 23:45:48,946 - INFO - duration: 0.695120003001648
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:46:18,814 - INFO - taking picture
MAIN: 2025-03-31 23:46:18,815 - INFO - we take 2072 photos in this while loop
MAIN: 2025-03-31 23:46:18,815 - INFO - /home/pi/Desktop/images/31032025/23/45/image_31032025_23_46_18_29883.jpg
MAIN: 2025-03-31 23:46:18,815 - INFO - duration: 0.6802765189931961
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:46:48,334 - INFO - taking picture
MAIN: 2025-03-31 23:46:48,335 - INFO - we take 2073 photos in this while loop
MAIN: 2025-03-31 23:46:48,335 - INFO - /home/pi/Desktop/images/31032025/23/46/image_31032025_23_46_47_29515.jpg
MAIN: 2025-03-31 23:46:48,335 - INFO - duration: 0.6853225079976255
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:47:19,284 - INFO - taking picture
MAIN: 2025-03-31 23:47:19,285 - INFO - we take 2074 photos in this while loop
MAIN: 2025-03-31 23:47:19,285 - INFO - /home/pi/Desktop/images/31032025/23/46/image_31032025_23_47_18_30985.jpg
MAIN: 2025-03-31 23:47:19,285 - INFO - duration: 0.6498839780106209
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:47:48,844 - INFO - taking picture
MAIN: 2025-03-31 23:47:48,845 - INFO - we take 2075 photos in this while loop
MAIN: 2025-03-31 23:47:48,845 - INFO - /home/pi/Desktop/images/31032025/23/47/image_31032025_23_47_48_29513.jpg
MAIN: 2025-03-31 23:47:48,845 - INFO - duration: 0.6966580799926305
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:48:18,627 - INFO - taking picture
MAIN: 2025-03-31 23:48:18,628 - INFO - we take 2076 photos in this while loop
MAIN: 2025-03-31 23:48:18,628 - INFO - /home/pi/Desktop/images/31032025/23/47/image_31032025_23_48_18_29813.jpg
MAIN: 2025-03-31 23:48:18,628 - INFO - duration: 0.6662966320000123
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:48:48,291 - INFO - taking picture
MAIN: 2025-03-31 23:48:48,291 - INFO - we take 2077 photos in this while loop
MAIN: 2025-03-31 23:48:48,291 - INFO - /home/pi/Desktop/images/31032025/23/48/image_31032025_23_48_47_29646.jpg
MAIN: 2025-03-31 23:48:48,292 - INFO - duration: 0.6835263669927372
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:49:19,212 - INFO - taking picture
MAIN: 2025-03-31 23:49:19,212 - INFO - we take 2078 photos in this while loop
MAIN: 2025-03-31 23:49:19,212 - INFO - /home/pi/Desktop/images/31032025/23/48/image_31032025_23_49_18_30895.jpg
MAIN: 2025-03-31 23:49:19,213 - INFO - duration: 0.709211673005484
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:49:48,802 - INFO - taking picture
MAIN: 2025-03-31 23:49:48,803 - INFO - we take 2079 photos in this while loop
MAIN: 2025-03-31 23:49:48,803 - INFO - /home/pi/Desktop/images/31032025/23/49/image_31032025_23_49_48_29605.jpg
MAIN: 2025-03-31 23:49:48,803 - INFO - duration: 0.6940201679972233
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:50:18,835 - INFO - taking picture
MAIN: 2025-03-31 23:50:18,836 - INFO - we take 2080 photos in this while loop
MAIN: 2025-03-31 23:50:18,836 - INFO - /home/pi/Desktop/images/31032025/23/49/image_31032025_23_50_18_30025.jpg
MAIN: 2025-03-31 23:50:18,836 - INFO - duration: 0.7010647499992047
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:50:48,505 - INFO - taking picture
MAIN: 2025-03-31 23:50:48,505 - INFO - we take 2081 photos in this while loop
MAIN: 2025-03-31 23:50:48,506 - INFO - /home/pi/Desktop/images/31032025/23/50/image_31032025_23_50_48_29668.jpg
MAIN: 2025-03-31 23:50:48,506 - INFO - duration: 0.7027770419954322
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:51:18,290 - INFO - taking picture
MAIN: 2025-03-31 23:51:18,291 - INFO - we take 2082 photos in this while loop
MAIN: 2025-03-31 23:51:18,291 - INFO - /home/pi/Desktop/images/31032025/23/50/image_31032025_23_51_17_29799.jpg
MAIN: 2025-03-31 23:51:18,291 - INFO - duration: 0.6892497539956821
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:51:49,213 - INFO - taking picture
MAIN: 2025-03-31 23:51:49,214 - INFO - we take 2083 photos in this while loop
MAIN: 2025-03-31 23:51:49,214 - INFO - /home/pi/Desktop/images/31032025/23/51/image_31032025_23_51_48_30909.jpg
MAIN: 2025-03-31 23:51:49,214 - INFO - duration: 0.7027367830014555
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:52:19,102 - INFO - taking picture
MAIN: 2025-03-31 23:52:19,102 - INFO - we take 2084 photos in this while loop
MAIN: 2025-03-31 23:52:19,102 - INFO - /home/pi/Desktop/images/31032025/23/51/image_31032025_23_52_18_29892.jpg
MAIN: 2025-03-31 23:52:19,103 - INFO - duration: 0.6993081900000107
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:52:48,745 - INFO - taking picture
MAIN: 2025-03-31 23:52:48,746 - INFO - we take 2085 photos in this while loop
MAIN: 2025-03-31 23:52:48,746 - INFO - /home/pi/Desktop/images/31032025/23/52/image_31032025_23_52_48_29641.jpg
MAIN: 2025-03-31 23:52:48,746 - INFO - duration: 0.7010452209942741
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:53:18,553 - INFO - taking picture
MAIN: 2025-03-31 23:53:18,553 - INFO - we take 2086 photos in this while loop
MAIN: 2025-03-31 23:53:18,554 - INFO - /home/pi/Desktop/images/31032025/23/52/image_31032025_23_53_18_29837.jpg
MAIN: 2025-03-31 23:53:18,554 - INFO - duration: 0.6713216359930811
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:53:48,162 - INFO - taking picture
MAIN: 2025-03-31 23:53:48,163 - INFO - we take 2087 photos in this while loop
MAIN: 2025-03-31 23:53:48,163 - INFO - /home/pi/Desktop/images/31032025/23/53/image_31032025_23_53_47_29579.jpg
MAIN: 2025-03-31 23:53:48,163 - INFO - duration: 0.7008147019951139
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:54:19,387 - INFO - taking picture
MAIN: 2025-03-31 23:54:19,387 - INFO - we take 2088 photos in this while loop
MAIN: 2025-03-31 23:54:19,388 - INFO - /home/pi/Desktop/images/31032025/23/53/image_31032025_23_54_18_31214.jpg
MAIN: 2025-03-31 23:54:19,388 - INFO - duration: 0.7114369390037609
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:54:48,956 - INFO - taking picture
MAIN: 2025-03-31 23:54:48,957 - INFO - we take 2089 photos in this while loop
MAIN: 2025-03-31 23:54:48,957 - INFO - /home/pi/Desktop/images/31032025/23/54/image_31032025_23_54_48_29584.jpg
MAIN: 2025-03-31 23:54:48,957 - INFO - duration: 0.6959232980007073
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:55:18,997 - INFO - taking picture
MAIN: 2025-03-31 23:55:18,997 - INFO - we take 2090 photos in this while loop
MAIN: 2025-03-31 23:55:18,998 - INFO - /home/pi/Desktop/images/31032025/23/54/image_31032025_23_55_18_30044.jpg
MAIN: 2025-03-31 23:55:18,998 - INFO - duration: 0.6920289249974303
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:55:48,579 - INFO - taking picture
MAIN: 2025-03-31 23:55:48,579 - INFO - we take 2091 photos in this while loop
MAIN: 2025-03-31 23:55:48,579 - INFO - /home/pi/Desktop/images/31032025/23/55/image_31032025_23_55_48_29581.jpg
MAIN: 2025-03-31 23:55:48,579 - INFO - duration: 0.6925890290003736
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:56:18,410 - INFO - taking picture
MAIN: 2025-03-31 23:56:18,410 - INFO - we take 2092 photos in this while loop
MAIN: 2025-03-31 23:56:18,411 - INFO - /home/pi/Desktop/images/31032025/23/55/image_31032025_23_56_18_29831.jpg
MAIN: 2025-03-31 23:56:18,411 - INFO - duration: 0.6920354880130617
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:56:49,244 - INFO - taking picture
MAIN: 2025-03-31 23:56:49,244 - INFO - we take 2093 photos in this while loop
MAIN: 2025-03-31 23:56:49,244 - INFO - /home/pi/Desktop/images/31032025/23/56/image_31032025_23_56_48_30829.jpg
MAIN: 2025-03-31 23:56:49,244 - INFO - duration: 0.6961287680023815
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:57:19,025 - INFO - taking picture
MAIN: 2025-03-31 23:57:19,025 - INFO - we take 2094 photos in this while loop
MAIN: 2025-03-31 23:57:19,025 - INFO - /home/pi/Desktop/images/31032025/23/56/image_31032025_23_57_18_29792.jpg
MAIN: 2025-03-31 23:57:19,026 - INFO - duration: 0.684730542008765
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:57:48,633 - INFO - taking picture
MAIN: 2025-03-31 23:57:48,634 - INFO - we take 2095 photos in this while loop
MAIN: 2025-03-31 23:57:48,634 - INFO - /home/pi/Desktop/images/31032025/23/57/image_31032025_23_57_48_29610.jpg
MAIN: 2025-03-31 23:57:48,634 - INFO - duration: 0.6831182510068174
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:58:18,626 - INFO - taking picture
MAIN: 2025-03-31 23:58:18,627 - INFO - we take 2096 photos in this while loop
MAIN: 2025-03-31 23:58:18,627 - INFO - /home/pi/Desktop/images/31032025/23/57/image_31032025_23_58_18_29997.jpg
MAIN: 2025-03-31 23:58:18,627 - INFO - duration: 0.6778417430032277
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:58:48,280 - INFO - taking picture
MAIN: 2025-03-31 23:58:48,281 - INFO - we take 2097 photos in this while loop
MAIN: 2025-03-31 23:58:48,281 - INFO - /home/pi/Desktop/images/31032025/23/58/image_31032025_23_58_47_29638.jpg
MAIN: 2025-03-31 23:58:48,281 - INFO - duration: 0.6930844469898148
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:59:19,371 - INFO - taking picture
MAIN: 2025-03-31 23:59:19,372 - INFO - we take 2098 photos in this while loop
MAIN: 2025-03-31 23:59:19,372 - INFO - /home/pi/Desktop/images/31032025/23/58/image_31032025_23_59_18_31061.jpg
MAIN: 2025-03-31 23:59:19,372 - INFO - duration: 0.7228813659894513
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
Corrupt JPEG data: premature end of data segment
                     brightness 0x00980900 (int)    : min=0 max=64 step=1 default=32 value=32
                       contrast 0x00980901 (int)    : min=0 max=64 step=1 default=34 value=34
                     saturation 0x00980902 (int)    : min=0 max=64 step=1 default=32 value=32
                            hue 0x00980903 (int)    : min=0 max=64 step=1 default=32 value=32
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=0 max=64 step=1 default=32 value=32
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=0
      white_balance_temperature 0x0098091a (int)    : min=2700 max=10000 step=1 default=6500 value=6500 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=64 step=1 default=32 value=32
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=10 max=1250 step=1 default=330 value=330 flags=inactive
                 focus_absolute 0x009a090a (int)    : min=0 max=127 step=1 default=63 value=53 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=16384 step=1 default=0 value=0
MAIN: 2025-03-31 23:59:49,079 - INFO - taking picture
MAIN: 2025-03-31 23:59:49,080 - INFO - we take 2099 photos in this while loop
MAIN: 2025-03-31 23:59:49,080 - INFO - /home/pi/Desktop/images/31032025/23/59/image_31032025_23_59_48_29732.jpg
MAIN: 2025-03-31 23:59:49,080 - INFO - duration: 0.6983804880001117
Corrupt JPEG data: premature end of data segment
