How to Analyze Rice grains

Hi, I m a new user and want to analyze Rice grain attributes like full grain, half break, pin point break, color of grain and count them with help of opencv. Please guide me