Quantcast
Viewing all articles
Browse latest Browse all 4860

Camera board • Re: PiCamera2/libcamera, now suddenly more logs being written?

The full code repo is here: https://github.com/eat-sleep-code/camera.timelapse

For this code, it should write a single line to the log like: 2024-01-30 08:15:44: INFO: Capturing /home/pi/dcim/20240130/00002532.jpg ...

Code:

console.info('Capturing ' + str(filePath) + ' ...')request = camera.switch_mode_and_capture_request(stillConfiguration)request.save('main', filePath)request.release()
However, it writes a total of nine lines, this is:

Code:

2024-01-30 08:15:44: INFO: Capturing /home/pi/dcim/20240130/00002532.jpg ...2024-01-30 08:15:44: INFO: Camera stopped2024-01-30 08:15:44: INFO: Configuration successful!2024-01-30 08:15:44: INFO: Camera started2024-01-30 08:15:44: INFO: Camera stopped2024-01-30 08:15:44: INFO: Configuration successful!2024-01-30 08:15:44: INFO: Camera started2024-01-30 08:15:44: INFO: Saved <picamera2.request.Helpers object at 0x7f72d66e10> to file /home/pi/dcim/20240130/00002532.jpg.2024-01-30 08:15:44: INFO: Time taken for encode: 78.95803399998158 ms.
Only the first line of the above 9 lines is from my code. The other appears to be getting set by picamera2 or maybe libcamera -- hard to tell?

Statistics: Posted by eat-sleep-code — Thu Feb 01, 2024 1:15 am



Viewing all articles
Browse latest Browse all 4860

Trending Articles