Fixing green tint and orientation
Stereo cameras, once connected to the hat, must be calibrated before use. I encountered a couple of issues while calibrating. The first issue was a green tint on both sensors (IMX 219), and the second was an incorrect orientation. However, an error message appeared while running the calibration code: 'mmal: Failed to fix lens shading, use the default mode!' Interestingly, the code ran just fine despite this warning. There were several modes to choose from; I went with mode 7, which provided a resolution of 1280 x 480.
I had my camera setup exactly as shown here.
To fix the orientation, I appended these lines after fmt = camera.get_format() in the main function:
camera.set_control(0x00980914,1)
camera.set_control(0x00980915,1)
This seemed to solve the problem, although this was the solution for a different case (specifically, if the cameras were reversed in the first place), which was not my situation.
The green tint was solved by enabling Automatic White Balance (AWB) via the API.
camera.software_auto_white_balance(enable = True)
However, there is a pink tint on the IR camera, which seems to be a common issue I am currently facing. Hopefully, that will also be resolved soon.