It might seem trivial at first, but there is some clever stuff going on. First of all, the tomatoes are not identical and some are obscured, but they are still recognised (object recognition analytics). Only when the tomatoes turn red do they get counted (colour recognition) and only when more than 90% of the tomatoes ripen (occupancy analytics) does the notification occur. That's the kind of 'and-and-or' logic we can apply to analytics these days!
Object AND colour AND occupancy/quantity equals event.