Files
ExoMy_Cuno/scripts/cam_test.py
T
2026-05-26 08:10:59 +02:00

12 lines
291 B
Python

from picamera import PiCamera
from time import sleep
'''
This script helps to test the functionality of the Raspberry Pi camera.
The script must be run dicrectly on the Raspberry Pi (not in the Docker container)
'''
camera = PiCamera()
camera.start_preview()
sleep(5)
camera.stop_preview()