Skip to content
/ PiDNG Public
forked from schoolpost/PiDNG

Create Adobe DNG RAW files using Python. Works with any Bayer RAW Data including native support for Raspberry Pi cameras.

Notifications You must be signed in to change notification settings

Inqbus/PiDNG

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiDNG

Create Adobe DNG RAW files using Python.

Features

  • 8,10,12,14,16-bit precision
  • Lossless compression
  • DNG Tags ( extensible )

Works with any Bayer RAW Data including native support for Raspberry Pi cameras.

  • OV5467 ( Raspberry Pi Camera Module V1 )
  • IMX219 ( Raspberry Pi Camera Module V2 )
  • IMX477( Raspberry Pi High Quality Camera )

Raspberry Pi High Quality Camera examples below ( DNG top, JPEG bottom )


Instructions

Requires:

  • Python3
  • Numpy
  • ExifRead

Install

From PyPI:

python3 -mpip install PiDNG 

Latest version from GitHub:

python3 -mpip install  git+https://github.com/schoolpost/PiDNG.git

Install via Poetry:

Per command line in your poetry environment:

poetry add PiDNG 

Or add in to your pyproject.toml file:

[tool.poetry.dependencies]
...
PiDNG = "^3.4.5"

How to use:


# examples
from pidng.core import RPICAM2DNG

# use file string input to the jpeg+raw file. 
d = RPICAM2DNG()
d.convert('imx477.jpg')


# the included command line utility can be used as shown below
Utility.py:
  python3 examples/utility.py <options> <inputFilename> 
  python3 examples/utility.py imx477.jpg  


TODO

  • SUB IFDS/THUMBNAILS

Credits

Source referenced from:

CanPi ( Jack ) | color-matrices

Waveform80 | picamera

Krontech | chronos-utils

Andrew Baldwin | MLVRawViewer

About

Create Adobe DNG RAW files using Python. Works with any Bayer RAW Data including native support for Raspberry Pi cameras.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 52.1%
  • Python 47.4%
  • Makefile 0.5%