Text this: Development of a fast and accurate positioning system for barrel wear measurements