I want to have a look at the camera statistics. (esp. frame_count and frames_discarded)
I tried to dig into the topic and it seems that the picamera implementation looks ok.
Maybe someone can commit (Or show me how to read that struct correctly)
Thank you in advance
Axel
from picamera import mmal, mmalobj as mo
camera = mo.MMALCamera()
# reading common parameter SYSTEM_TIME -> OK
sys_time = camera.control.params[mmal.MMAL_PARAMETER_SYSTEM_TIME]
# reading common parameter STATISTICS -> KO
stats_buf = camera.control.params[mmal.MMAL_PARAMETER_STATISTICS]
=== error ===
Traceback (most recent call last):
File "test.py", line 8, in <module>
stats = camera.control.params[mmal.MMAL_PARAMETER_STATISTICS]
File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 1531, in __getitem__
prefix="Failed to get parameter %d" % key)
File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to get parameter 6: Argument is invalid
I want to have a look at the camera statistics. (esp. frame_count and frames_discarded) I tried to dig into the topic and it seems that the picamera implementation looks ok. Maybe someone can commit (Or show me how to read that struct correctly) Thank you in advance Axel
picamera: 1.13
Here's the problem in two lines... === source ===
=== error ===