Robot vision system with self-learning mechanism