Plant grading by vision using neural networks and statistics