Hello! I’m very interested in RT, and have a few questions about its suitability for my application, and how to install it 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). Image processing will occur automatically via scripts (i.e. not a GUI), and ideally will all 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. 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, defective pixel removal). A few questions below:
-
If I supply a DNG file, can RT be scripted via the CLI to automate all of the above steps? One piece I am having trouble understanding is how (or if it’s possible) to automate in RT the white balance based on the gray card in the FOV for each image.
-
Alternatively, I think I can code up in NumPy steps #1-6 listed in the blog post above - could I then hand off this semi-processed image to RT for additional processing (e.g. lens shading correction, defective pixel removal)?
-
Can RT be installed on an RPi (in particular I am hoping to use an RPi Zero W), and are there instructions specific to the RPi and Raspbian for how to perform the installation?
Thank you!
Mike