Automating Agriculture using Machine Vision System