If you are happy with the zoom/crop and the lower resolution (2x2 binned 3072x 1728 for a 1536 x 864 image) provided by the default preview configuration, then there is no need to define a still configuration, and no need to switch modes before capturing the file.
Replacing thewith should be enough.
Replacing the
Code:
camera.switch_mode_and_capture_file(capture_config, image_path)
Code:
camera.capture_file("image_path")
Statistics: Posted by sandyol — Fri Sep 13, 2024 9:30 pm