PiDNG
PiDNG copied to clipboard
RPICAM2DNG for RaspberryPiHqCamera is broken
The latest code expects the "fmt" dictionary to be present in camera's "model", while it is a string, hence the below AttributeError is raised:
File "/project/PiDNG/src/pidng/core.py", line 120, in convert
unpacked = self.__unpack_pixels__(image)
File "/project/PiDNG/src/pidng/core.py", line 173, in __unpack_pixels__
if "CSI2P" in self.model.fmt.get("format", ""):
AttributeError: 'RaspberryPiHqCamera' object has no attribute 'fmt'
Seeing the same error, looks like the format was changed to accommodate the newer picamera2 but not backward compatible...
Hello,
I can't commit to an exact timeframe, but I will try to address this soon.
I submitted Pull request #74 to fix this.