There are several methods for finding and applying corrections from a Gretag–Macbeth style color checker, such as the X-Rite ColorChecker Photo 2, on GitHub. The code in this repository has many hard coded elements but may still be of use outside of my specific needs. Best wishes
Background: https://en.wikipedia.org/wiki/ColorChecker
Fully automatic method?: https://github.com/ryanfb/macduff
Proposed OpenCV improvement: https://github.com/opencv/opencv/wiki/OE-30.-Color-Calibration