Freshness measurement based on HSV color mode