<p>A line following system comprising a matrix generating optical scanning device which produces a matrix representing a portion of a line being followed and a computer which locates points on said line from said matrixes and directs the optical scanning device to proceed along the line based on a course indicated by vectors between previously located points.</p>