Python - White balance check on a YCbCr image

301 views Asked by At

long-time reader first-time poster. I do test engineering for medical cameras and I was curious if there was a way to check if a YCbCr image was white balanced using python code. I know there are multiple options to perform white balance but I'm more interested in checking two images and determining if the white balance was done.

The results specs are "6504 Kelvin color temperature recommended by D65 standard color temperature", so I figure I can calculate the temperature of the image and use that. However, all the algorithms I found are algorithms for finding kelvin from RGB and I'm worried if I color map to RGB I'll lose some data I want to keep.

My ideal workflow is capturing an image from the medical camera, performing white balance, and capturing a new image. I'm trying to keep this in python so it integrates better with my other tests.

Not looking for explicit code, just some direction and if it's even feasible. Thank you!

0

There are 0 answers