Merely an Attempt to Think Outside the Box . . .
Problems:
Outside marks could be rubbed off.
Outside marks may not be in right position to read, without positioner rotation device at each inspection station.
Magnetic markers may not be easy to read on outside of pipe due to magnetic interference from pipe itself.
Thoughts:
What about marking the ENDS some way? Make up some "inserts" (plugs, stoppers, forms) that will stick into the end of a pipe, with a barcode on each one. This insert fits flush, no projections, but it should have two or more holes, to be used for removal at the end of the line. At the first inspection station, the operator sticks one of these into the front end of the pipe and also enters the tag number into the system database. As the pipe enters the next station, a multi-directional bar code scanner mounted just above the pipe, scanning down and into the pipe inner diameter, reads the label and knows which pipe it is working on.
Don't have an operator at the first station? Well, there are robots that can do this job. You probably would need a second one at the last station (or at the shipping dock) to remove the tag inserts.