You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behaviour
DNG file full.dng is generated.
Console Output, Screenshots
Traceback (most recent call last):
File "/home/pi5/rpi-data-acquisition-v2/ov9281-test.py", line 58, in <module>
picam2.switch_mode_and_capture_file(capture_config, "full.dng", name="raw")
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1467, in switch_mode_and_capture_file
return self.dispatch_functions(functions, wait, signal_function, immediate=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1363, in dispatch_functions
return job.get_result(timeout=timeout) if wait else job
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/job.py", line 79, in get_result
return self._future.result(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/lib/python3/dist-packages/picamera2/job.py", line 48, in execute
done, result = self._functions[0]()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1457, in capture_and_switch_back_
done, result = self.capture_file_(file_output, name, format=format, exif_data=exif_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1401, in capture_file_
request.save_dng(file_output)
File "/usr/lib/python3/dist-packages/picamera2/request.py", line 178, in save_dng
return self.picam2.helpers.save_dng(self.make_buffer(name), self.get_metadata(), self.config[name], file_output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/picamera2/request.py", line 320, in save_dng
camera = Picamera2Camera(config, metadata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pidng/camdefs.py", line 42, in __init__
self.__settings__()
File "/usr/lib/python3/dist-packages/pidng/camdefs.py", line 69, in __settings__
ccm = self.metadata["ColourCorrectionMatrix"]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'ColourCorrectionMatrix'
QObject::startTimer: Timers can only be used with threads started with QThread
Segmentation fault
Hardware :
Raspberry Pi 5 Model B Rev 1.0
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
Hi, and thanks for the report. As has been commented elsewhere, we don't make any monochrome sensors ourselves, so this kind of thing is a bit hard for us to write code for and to test. Nonetheless, if you wanted a quick workaround, you might try the following:
Whilst that might "work", I'm not sure it's really correct. It's still masquerading as a (colour) Bayer image when it's not, and we should really be reflecting that. We save DNGs using PiDNG which is a third party library, but I can reach out to the author and see if they know anything about this topic.
Finally, the segfault is almost certainly caused by Qt. It really objects to not being the main application thread, and causes nasty errors like this. I expect turning of any Qt-based previews would probably make it go away (but disclaimer: I know nothing about GUI toolkits).
Describe the bug
Unable to save a DNG image with the monochrome image sensor OV9281. Missing
ColourCorrectionMatrix
from metadata.To Reproduce
Expected behaviour
DNG file
full.dng
is generated.Console Output, Screenshots
Hardware :
Raspberry Pi 5 Model B Rev 1.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: