An image recognition technique is proposed for determining optimal neck levels for standard metal gauges, in the process of validating pipe provers. A camera-level follow-up control system was designed to achieve automated tracking of fluid levels by a camera, thereby preventing errors from inclined viewing angles. An orange background plate was placed behind the tube to reduce background interference, and highlight scale numbers/lines and concave meniscus. A segmentation algorithm, based on edge detection and K-means clustering, was used to segment indicator tubes and scales in the acquired images. The concave meniscus reconstruction algorithm and curve-fitting algorithm were proposed to better identify the lowest point of the meniscus. A characteristic edge detection model was used to identify centimeter-scale lines corresponding to the meniscus. A binary tree multiclass support vector machine (MCSVM) classifier was then used to identify scale numbers corresponding to scale lines and determine the optimal neck level for standard metal gauges. Experimental results showed that measurement errors were within ±0.1 mm compared to a ground truth acquired manually using Vernier calipers. The recognition time, including follow-up control, was less than 10 s, which is much lower than the switching time required between measuring individual tanks. This automated measurement approach for gauge neck levels can effectively reduce measurement times, decrease manmade errors in liquid level readings, and improve the efficiency of pipe prover validation.
Read full abstract