Pipe automatic labeling system