from what I can see the video showed that machine separates ripe grapes in good color and shape from the rest of the mix. did you see the machine taste wine and go back to tune up its sorting algorithm?:)
I'm no domain expert but there's graphs for all sorts of things when it comes to food (usually used for quality control). You can probably just run computer vision over said graphs and get somewhere reasonable.