Replies: 1 comment 8 replies
-
Hello! I'm very interested in rawpy, and have a few questions about its suitability for my application, and how to install it (along with LibRaw if necessary) on an RPi. Briefly, I am designing a color sensor system consisting of an RPi with an RPi camera module (either a V2 or HQ). The functioning of the system is simple: capture an image (with a gray card in the FOV periphery for white balance), and determine the average color of the captured scene (not including the gray card). Ideally all processing will occur on the RPi. The top priority of the system is color accuracy and it's my understanding that I should work with RAW images, and maintain linearity in my processing steps. I have been following this helpful blog post by Jack Hogan on rendering RAW images, which outlines some of the necessary steps: 1) load the RAW image and subtract black levels, 2) white balance, 3) correct linear brightness, 4) clip image data, 5) demosaic, 6) apply color transforms. It seems that at a minimum I could use rawpy to load DNGs output by the RPi libcamera apps into NumPy to then perform these processing steps using basic code I have written myself. However, as outlined in Chapter 5 of the RPi camera algorithm/tuning guide, there are other processing steps that may be necessary to include (e.g. lens shading correction), that are likely too advanced for me to code up myself. A few questions below:
Thank you! |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions