Supervised and unsupervised learning for plant and crop row detection in precision agriculture