I have a small writeup here: https://lamroger.com/blog/2024-03-10-coffee-roasting-tech/ and the video here: https://www.youtube.com/watch?v=shMMuNuH3cE
But short answer is I finetuned a model with the help of Roboflow, grabbed the pixel values in the bounding box and avg'ed the values.