Go to advanced search

by schoolpost
Thu Aug 13, 2020 10:38 pm
Forum: Camera board
Topic: Pi Camera V2 raw bayer data
Replies: 72
Views: 32847

Re: Pi Camera V2 raw bayer data

I could easily modify my code so that I load the pi-cam's raw and extract a bayer array (either with picamraw or something else (could PyDNG do this?)). What I'd then like to do is, once I've created a new numpy array with my code, is pass that array to PyDNG and have it output the fancy raw/dng fi...
by schoolpost
Wed Aug 12, 2020 10:21 pm
Forum: Camera board
Topic: Pi Camera V2 raw bayer data
Replies: 72
Views: 32847

Re: Pi Camera V2 raw bayer data

This may seem like a weird thing to want to do. But my goal is to be able to do some manipulation to the "Bayer jpeg" and then develop that to a final image. What kind of manipulation are you attempting to do to the RAW data? You can skip the whole "Saving to JPEG" by just accessing the RAW data as...
by schoolpost
Fri Jul 24, 2020 6:54 am
Forum: Camera board
Topic: PyDNG convert all files in folder?
Replies: 12
Views: 517

Re: PyDNG convert all files in folder?

Hi, message for Schoolpost... I've been trying to message you on the subject of PyDNG but I'm not sure if they're reaching you. Maybe the email address registered against your username is no longer current? Anyway, I'd be grateful if you could maybe just check it for me. Thanks and best regards Dav...
by schoolpost
Mon Jul 20, 2020 8:37 pm
Forum: Camera board
Topic: PyDNG convert all files in folder?
Replies: 12
Views: 517

Re: PyDNG convert all files in folder?

This is my error. >>> %Run DNG_FS.py Traceback (most recent call last): File "/home/pi/Desktop/DNG_FS.py", line 32, in <module> RPICAM2DNG().convert(file, process=channelSplit) File "/home/pi/.local/lib/python3.7/site-packages/pydng/core.py", line 242, in convert rawFrame = self.__process__(image, ...
by schoolpost
Mon Jul 20, 2020 7:11 am
Forum: Camera board
Topic: camera hq raspberry pink / purple effect
Replies: 9
Views: 426

Re: camera hq raspberry pink / purple effect

Looks like optical characteristic. ( probably chromatic aberration. ) Extracted the RAW into a DNG and, aside from an adjustment to the highlights to better to see the bright part of the image they both appear to have the same artifact. So I don't think this is an issue on the processing/software si...
by schoolpost
Mon Jul 20, 2020 6:04 am
Forum: Camera board
Topic: PyDNG convert all files in folder?
Replies: 12
Views: 517

Re: PyDNG convert all files in folder?

To achieve this you can use PyDNG's "Process Pipeline" to execute your own processing on the RAW data before it gets saved to DNG. In this instance we aren't actually manipulating the RAW data but we do want access to it so we can save the channels separately. The code below will convert to DNG and ...
by schoolpost
Sat Jul 18, 2020 8:16 pm
Forum: Camera board
Topic: PyDNG convert all files in folder?
Replies: 12
Views: 517

Re: PyDNG convert all files in folder?

Yes, The only way I can get PyDNG to work is if I type the recommended command for each file for it to work on. With lots a files this seems painful. It looks like I need to directly modify the utility scrip to know what a filename is and use that to name the file it sends to the other scripts. But...
by schoolpost
Mon Jul 13, 2020 10:54 pm
Forum: Camera board
Topic: Is picamraw or dcraw the best raw image extraction tool for the HQ camera?
Replies: 14
Views: 541

Re: Is picamraw or dcraw the best raw image extraction tool for the HQ camera?

You could always try to save in another format? maybe TIFF? keeping in mind you will want it to be a 16-bit capable format unless you are ok with scaling down to 8 bit. That piece of code I linked above works plenty fine on my machine. ( Ubuntu 18.04 through WSL )
by schoolpost
Sun Jul 12, 2020 6:40 pm
Forum: Camera board
Topic: PyDNG - RPI Camera RAW to DNG
Replies: 14
Views: 3984

Re: PyDNG - RPI Camera RAW to DNG

Funny to see version 3.4. I was just trying to get Saturdays version 3.3 working and I still have errors. To install version 3.3 I needed to delete these lines from setup file: ext_modules = [ljpeg92], python_requires='>=3.5', Otherwise it wouldn't install and gave a you have python 2.x.x error eve...
by schoolpost
Sun Jul 12, 2020 5:22 am
Forum: Camera board
Topic: PyDNG - RPI Camera RAW to DNG
Replies: 14
Views: 3984

Re: PyDNG - RPI Camera RAW to DNG

New Version Release, 3.4.0 with new features and bug fixes. https://github.com/schoolpost/PyDNG Raspberry Pi HQ Camera Calibrated Color Matrices. ( much better color! ) Processing Pipeline to manipulate the bayer data before writing to file ( for custom application like hot pixel correction, dark f...
by schoolpost
Sun Jul 12, 2020 1:28 am
Forum: Camera board
Topic: Is picamraw or dcraw the best raw image extraction tool for the HQ camera?
Replies: 14
Views: 541

Re: Is picamraw or dcraw the best raw image extraction tool for the HQ camera?

Thanks very much, Schoolpost. :D Can I ask, please, if you experimented with dcraw (or similar) to compare the outputs? I will give your code a try but would also, for interest, like to test one of the tools that is popular here, to see if it works with my HQ sensor. my understanding is dcraw does ...
by schoolpost
Sun Jul 12, 2020 12:38 am
Forum: Camera board
Topic: Is picamraw or dcraw the best raw image extraction tool for the HQ camera?
Replies: 14
Views: 541

Re: Is picamraw or dcraw the best raw image extraction tool for the HQ camera?

Below is a rather minimal way you can do it with Python3 ( just need Numpy and Pillow installed ). Saves each color channel into 16-bit PNG. I may have the red/blue channels mislabeled, but you get all 4 color channels. ( 2 green, 1 red, 1 blue as you'd expect with bayer. ) import numpy as np import...
by schoolpost
Sat Jul 11, 2020 8:41 am
Forum: Camera board
Topic: HQ Camera RAWs = green photos
Replies: 34
Views: 1604

Re: HQ Camera RAWs = green photos

So far as I know, those AsShotNeutral values that we have should represent exactly the same white balance values as the JPEG used. So perhaps there's some interaction with the other tags, such as the calibration illuminants? Perhaps it would help to see the tags for this DNG, such as reported by so...
by schoolpost
Sat Jul 11, 2020 7:56 am
Forum: Camera board
Topic: HQ Camera RAWs = green photos
Replies: 34
Views: 1604

Re: HQ Camera RAWs = green photos

RealDavid, if you don't want to use the full profile, you can try the following matrices that should be able to live on their own. They are going to look bland on a monitor, so you will have to add a tone curve manually ('contrast' on most raw converters). What we call D65 below is really 500K off,...
by schoolpost
Sat Jul 11, 2020 7:46 am
Forum: Camera board
Topic: Raspberry Pi Camera Gallery
Replies: 23
Views: 1177

Re: Raspberry Pi Camera Gallery

Ok me first! :lol: Shot on: Raspberry Pi High Quality Camera + 6mm Lens https://i.imgur.com/PVE6aVF.jpg follow the links to download the originals (JPEG+RAW) https://live.staticflickr.com/65535/50099982462_e1d712f404.jpg https://live.staticflickr.com/65535/50099754761_6b165d7dc9.jpg https://live.sta...
by schoolpost
Sat Jul 11, 2020 7:41 am
Forum: Camera board
Topic: Raspberry Pi Camera Gallery
Replies: 23
Views: 1177

Raspberry Pi Camera Gallery

Hello! Did a quick search on the forum to see if this was done already, but to my surprise I didn't quite find what I was looking for. ( maybe I missed it? :oops: ) Thought It would be a great to currate a gallery of images taken from all different types of Pi Cameras. Serves as a neat showcase and ...
by schoolpost
Tue Jul 07, 2020 8:52 pm
Forum: Camera board
Topic: HQ Camera RAWs = green photos
Replies: 34
Views: 1604

Re: HQ Camera RAWs = green photos

Ok, thanks. I took the DNG converted images captured at 2860K and 5960K and tried to open them: For some reason RT 5.8 just showed black images, while CS5 opened them fine. However, for getting a set of matrices and luts to get schoolpost started they should be fine as a first approximation. So sch...
by schoolpost
Fri Jul 03, 2020 7:01 pm
Forum: Camera board
Topic: HQ Camera RAWs = green photos
Replies: 34
Views: 1604

Re: HQ Camera RAWs = green photos

Grand. I am away from my computer until Monday night, so I am afraid it will have to wait till then. If in the meantime schoolpost could take the raw files closest to a halogen/tungsten StandardLight A (2860k David?), the one closest to D65 (5930k?) and the one at 9000k, convert them to DNG and sha...
by schoolpost
Thu Jul 02, 2020 8:57 pm
Forum: Camera board
Topic: HQ Camera RAWs = green photos
Replies: 34
Views: 1604

Re: HQ Camera RAWs = green photos

Hi! Thanks for your feedback, and for the update. My issue is that I have to completely max out the tint in the magentas and the hue/saturation of several colors to get something more or less usable, and that's in relatively OK lighting conditions. It gives me no more room to play with those settin...
by schoolpost
Thu Jul 02, 2020 1:33 am
Forum: Camera board
Topic: PyDNG - RPI Camera RAW to DNG
Replies: 14
Views: 3984

Re: PyDNG - RPI Camera RAW to DNG

New Version Release, 3.1.0 with a bunch of fixes. More info and download here:
https://github.com/schoolpost/PyDNG
by schoolpost
Thu Jul 02, 2020 1:32 am
Forum: Camera board
Topic: PyDNG - RPI Camera RAW to DNG
Replies: 14
Views: 3984

Re: PyDNG - RPI Camera RAW to DNG

Thanks for your work! On Debian 10, I didn't manage to get PyDNG installed - first, the installer complains that Python is not version 3 (indeed Debian symlinks /usr/bin/python to Python 2.6 even when Python 3 is installed): pydng requires Python '>=3.5' but the running Python is 2.7.16 ...which I ...
by schoolpost
Thu Jul 02, 2020 1:26 am
Forum: Camera board
Topic: HQ Camera RAWs = green photos
Replies: 34
Views: 1604

Re: HQ Camera RAWs = green photos

I just updated PyDNG to now use the R/B gains from the makernote of the JPEG file. Thanks for explaining how to use in DNG format.

https://github.com/schoolpost/PyDNG
by schoolpost
Wed Jul 01, 2020 8:13 pm
Forum: Camera board
Topic: HQ Camera RAWs = green photos
Replies: 34
Views: 1604

Re: HQ Camera RAWs = green photos

Hi Reiep, Cool to hear about your project, timelapse is actually one of the main things that drew me to raspberry pi cams many years ago and pushed me to create PyDNG as a photographer myself. PyDNG is applying a matrices that I found from a DJI Mavic Air, which upon some investigation supposedly us...
by schoolpost
Thu May 28, 2020 1:53 am
Forum: Camera board
Topic: High Quality Camera RAW Examples
Replies: 18
Views: 1982

Re: High Quality Camera RAW Examples

Hi, I'm experimenting with PyDNG Context: I'm looking for a better solution to scan films (my project is the development of the Gugusse Roller) Camera: the Raspberry Pi HQ camera. Samples: 20 frames (dng): www.deniscarl.com/samples/exposedok.zip 20 frames (dng, from same film but slightly overexpos...
by schoolpost
Tue May 12, 2020 6:23 pm
Forum: Camera board
Topic: High Quality Camera RAW Examples
Replies: 18
Views: 1982

Re: High Quality Camera RAW Examples

As a sanity check, I'm looking for clarification on bitpacking scheme for the 12 bit RAW image data. My understanding currently puts 2 pixels of image data into 3 bytes in this order: AAAAAAAA BBBBBBBB AAAABBBB However given the nature of the least significant bits and their influence on the image I...

Go to advanced search