A 3-D printer powered by machine vision and artificial intelligence