In-line production inspection is measuring the product in the production line and offline inspection is the measurement of the product is carried out by removing from the production line . This can either be retuned to the line, discarded or kept as a rest sample .