schoolpost / PiDNG

Create Adobe DNG RAW files using Python. Works with any Bayer RAW Data including native support for Raspberry Pi cameras.
MIT License
199 stars 37 forks source link

RPICAM2DNG for RaspberryPiHqCamera is broken #63

Open RostakaGmfun opened 2 years ago

RostakaGmfun commented 2 years ago

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'
Tschucker commented 2 years ago

Seeing the same error, looks like the format was changed to accommodate the newer picamera2 but not backward compatible...

schoolpost commented 2 years ago

Hello,

I can't commit to an exact timeframe, but I will try to address this soon.

mcnalu commented 1 year ago

I submitted Pull request #74 to fix this.