A method for detecting the rotation speed of plum blossom needle of water meter

By optimizing the shape design and image processing of the plum-blossom needle of the water meter, the problems of high water meter plum-blossom needle detection cost and narrow application range in the existing technology are solved, and accurate plum-blossom needle speed detection is achieved and the credibility of water meter readings is improved.

CN113865677BActive Publication Date: 2024-09-24ANHUI EMI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202111188393.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-12
Publication Date
2024-09-24
Estimated Expiration
2041-10-12

Smart Images

  • Figure CN113865677B
    Figure CN113865677B
Patent Text Reader

Abstract

The invention relates to water meter calibration, and in particular to a method for detecting the rotation speed of a plum blossom needle of a water meter. The method comprises the following steps: fixing a water meter and a camera at suitable positions, and adjusting the position of the plum blossom needle on a screen; performing image processing on an image captured by a camera, and locating the actual center point of the plum blossom needle in the processed image; drawing a detection ring with the actual center point of the plum blossom needle as the center of a circle, and detecting and locating a pointed petal on the plum blossom needle and a pointed vertex on the pointed petal based on the detection ring; and calculating the total number of revolutions of the plum blossom needle within a period of time according to the orientation of the pointed vertex in each captured image. The technical solution provided by the invention can effectively overcome the defects of high detection cost and narrow application scope in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to water meter calibration, and in particular to a method for detecting the rotation speed of a plum blossom needle of a water meter. Background Art

[0002] Water meters are widely used in the tap water, heat, chemical and other industries. Enterprises that produce water meters need to perform performance verification of the indication error of water meters according to the regulations formulated by relevant metrology departments. The national metrology verification regulations stipulate that water meters must be verified for error at three flow points: nominal flow, boundary flow, and minimum flow.

[0003] Detecting the rotation speed of the plum blossom needle of a water meter based on a video algorithm is a common method for verifying the rotation speed of a water meter before it leaves the factory. It can be used to verify whether the rotation of the water meter wheel is accurate. However, this method has high requirements on the frame rate of the camera. Generally, a camera with a frame rate of 300fps is required to accurately capture the subtle rotation changes of the plum blossom needle. Contradictory to this, the higher the frame rate of the camera, the higher the cost. If the frame rate of the camera cannot meet the requirements, it will lead to errors in the rotation of the plum blossom needle during the image recording process, affecting the statistics of the rotation data. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method for detecting the rotation speed of a plum blossom needle of a water meter, which can effectively overcome the defects of the prior art such as high detection cost and narrow application scope.

[0006] (II) Technical solution

[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0008] A method for detecting the rotation speed of a plum blossom needle of a water meter comprises the following steps:

[0009] S1. Fix the water meter and camera in a suitable position and adjust the position of the plum blossom needle on the screen;

[0010] S2, performing image processing on the image captured by the camera, and locating the actual center point of the plum blossom needle in the processed image;

[0011] S3, drawing a detection ring with the actual center point of the plum blossom needle as the center of the circle, and detecting and locating the pointed petal on the plum blossom needle and the pointed vertex on the pointed petal based on the detection ring;

[0012] S4. Calculate the total number of revolutions of the plum blossom needle within a period of time according to the orientation of the apex of the tip in each collected image.

[0013] Preferably, drawing a detection ring with the actual center point of the plum blossom needle as the center in S3 includes:

[0014] Take the actual center point of the plum blossom needle as the center of the circle and draw the inner detection circle with reference to the minimum circumscribed circle. The area between the inner detection circle and the minimum circumscribed circle is the detection ring.

[0015] Preferably, the radius of the inner detection circle is 3 / 4 of the radius of the minimum circumscribed circle.

[0016] Preferably, in S3, detecting and locating the pointed petal on the plum blossom needle and the pointed vertex on the pointed petal based on the detection ring includes:

[0017] S31, filtering the foreground area including the plum blossom needle using the detection ring, and retaining only the image inside the detection ring;

[0018] S32, calculating pixels in the area where the pointed petal and the wide petal of the plum blossom needle in the internal image of the detection ring are located, and the part with the least number of pixels is the area where the pointed petal is located;

[0019] S33, extracting the outer contour of the area where the pointed petal is located, and the point farthest from the actual center point of the plum blossom needle is the pointed vertex on the pointed petal.

[0020] Preferably, in S4, calculating the total number of revolutions of the plum blossom needle within a period of time according to the orientation of the apex of the tip in each collected image includes:

[0021] S41, calculating the angles Angle1, Angle2, ..., Angle of the line connecting the cusp vertex on the cusp flap in each collected image and the actual center point of the plum blossom needle N ;

[0022] S42, calculating the rotation angle Δ of the plum blossom needle in each two adjacent frames of images n =Angle n -Angle n-1 ;

[0023] S43, calculate the total rotation angle of the plum blossom needle during this period of time And based on the total rotation angle, the total number of circles the plum blossom needle rotates within a period of time is calculated.

[0024] Preferably, adjusting the position of the plum blossom needle on the screen in S1 includes:

[0025] Adjust the camera so that the center point of the plum blossom needle is at the center of the screen.

[0026] Preferably, in S2, image processing is performed on the image captured by the camera, including:

[0027] The image captured by the camera is binarized, the black part of the plum blossom needle is extracted as the foreground area, and the background is turned black.

[0028] Preferably, locating the actual center point of the plum blossom needle in the processed image in S2 includes:

[0029] Contour points are extracted from the foreground area containing the plum blossom needle, and the minimum circumscribed circle is found for all contour points. The center of the minimum circumscribed circle is the actual center point of the plum blossom needle.

[0030] A plum blossom needle for a water meter comprises a plum blossom needle body, a plurality of wide head petals extending outwards based on the plum blossom needle body, and a pointed head petal extending outwards based on the plum blossom needle body for positioning.

[0031] Preferably, the outer contour of the wide-headed flap and the pointed apex of the pointed-headed flap are both on the minimum circumscribed circle.

[0032] (III) Beneficial effects

[0033] Compared with the prior art, the water meter plum blossom needle speed detection method provided by the present invention has the following beneficial effects:

[0034] 1) Based on the optimized design of the plum blossom needle shape of the water meter, the frame rate requirement for the camera is greatly reduced, thereby effectively reducing the detection cost and expanding the scope of application;

[0035] 2) By locating the actual center point of the plum blossom needle, a detection ring is drawn with the actual center point of the plum blossom needle as the center of the circle, and the pointed petal on the plum blossom needle and the pointed vertex on the pointed petal are detected and located based on the detection ring. The total number of circles that the plum blossom needle has rotated within a period of time is calculated according to the orientation of the pointed vertex in each collected image, so that the rotation speed of the plum blossom needle can be accurately detected;

[0036] 3) It can be integrated into smart water meters such as camera water meters to realize self-checking of water meters, effectively improve the credibility of water meter readings, and further expand the scope of application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 It is a schematic diagram of the process of the present invention;

[0039] Figure 2It is a schematic diagram of the structure of the plum blossom needle of the water meter in the present invention;

[0040] Figure 3 It is a schematic diagram of drawing a detection ring with the actual center point of the plum blossom needle as the center of the circle in the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] A method for detecting the rotation speed of a water meter plum blossom needle, such as Figures 1 to 3 As shown, S1. Fix the water meter and camera at appropriate positions, and adjust the position of the plum blossom needle on the screen.

[0043] Among them, adjusting the position of the plum blossom needle on the screen includes:

[0044] Adjust the camera so that the center point of the plum blossom needle is at the center of the screen.

[0045] By adjusting the angle of the camera, the center point of the plum blossom needle is located at the center point of the screen cross in the picture, so that subsequent image processing can proceed normally.

[0046] In the technical solution of the present application, the rotation speed of the plum blossom needle generally does not exceed 15 revolutions / s. When the frame rate of the camera is 30fps, it can be ensured that during the process of the plum blossom needle rotating one circle, at least two images will be captured. In this way, there will be no situation where the plum blossom needle rotates one circle without being monitored, and there will be no errors or omissions in statistics.

[0047] S2. Process the image captured by the camera, and locate the actual center point of the plum blossom needle in the processed image.

[0048] The image collected by the camera is processed, including:

[0049] The image captured by the camera is binarized, the black part of the plum blossom needle is extracted as the foreground area, and the background is turned black.

[0050] Among them, the actual center point of the plum blossom needle is located in the processed image, including:

[0051] Contour points are extracted from the foreground area containing the plum blossom needle, and the minimum circumscribed circle is found for all contour points. The center of the minimum circumscribed circle is the actual center point of the plum blossom needle.

[0052] In the technical solution of the present application, the actual color of the plum blossom needle is black, and the background of the water meter dial is actually white.

[0053] S3. Draw a detection ring with the actual center point of the plum blossom needle as the center of the circle, and detect and locate the pointed petal on the plum blossom needle and the pointed vertex on the pointed petal based on the detection ring.

[0054] like Figure 3 As shown in the figure, a detection ring is drawn with the actual center point of the plum blossom needle as the center, including:

[0055] Take the actual center point of the plum blossom needle as the center of the circle and draw an inner detection circle with reference to the minimum circumscribed circle (the radius of the inner detection circle is 3 / 4 of the radius of the minimum circumscribed circle). The area between the inner detection circle and the minimum circumscribed circle is the detection ring.

[0056] The detection and positioning of the pointed petal on the plum blossom needle and the pointed vertex on the pointed petal based on the detection ring includes:

[0057] S31, filtering the foreground area including the plum blossom needle using the detection ring, and retaining only the image inside the detection ring;

[0058] S32, calculating pixels in the area where the pointed petal and the wide petal of the plum blossom needle in the internal image of the detection ring are located, and the part with the least number of pixels is the area where the pointed petal is located;

[0059] S33, extracting the outer contour of the area where the pointed petal is located, and the point farthest from the actual center point of the plum blossom needle is the pointed vertex on the pointed petal.

[0060] S4, calculating the total number of revolutions of the plum blossom needle within a period of time according to the orientation of the apex of the tip in each collected image, specifically including:

[0061] S41, calculating the angles Angle1, Angle2, ..., Angle of the line connecting the cusp vertex on the cusp flap in each collected image and the actual center point of the plum blossom needle N ;

[0062] S42, calculating the rotation angle Δ of the plum blossom needle in each two adjacent frames of images n =Angle n -Angle n-1 ;

[0063] S43, calculate the total rotation angle of the plum blossom needle during this period of time And based on the total rotation angle, the total number of circles the plum blossom needle rotates within a period of time is calculated.

[0064] In the technical solution of the present application, after calculating the total number of revolutions of the plum blossom needle within a period of time, by comparing it with the rotation amount of the water meter letter wheel, it is possible to know whether the water meter reading is accurate.

[0065] A plum blossom needle for a water meter, such as Figure 2 As shown, the plum blossom needle includes a plum blossom needle body, a plurality of wide petals extending outwardly based on the plum blossom needle body, and a pointed petal extending outwardly based on the plum blossom needle body for positioning.

[0066] The outer contour of the broad-headed flap and the apex of the pointed tip on the pointed flap are both on the minimum circumscribed circle.

[0067] In the technical solution of this application, in order to adapt to the above-mentioned water meter plum blossom needle speed detection method, a water meter plum blossom needle structure is proposed, which is different from the existing plum blossom needle in that: a pointed petal for positioning is extended outward based on the plum blossom needle body. The setting of the pointed petal facilitates the subsequent detection algorithm to locate the plum blossom needle in each collected image, and then calculate the total number of turns of the plum blossom needle within a period of time.

[0068] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting the rotation speed of a plum blossom needle of a water meter, characterized in that: The plum blossom needle for water meter comprises a plum blossom needle body, a plurality of wide head petals extending outward based on the plum blossom needle body, and a pointed head petal extending outward based on the plum blossom needle body for positioning, wherein the outer contour of the wide head petal and the pointed vertex of the pointed head petal are both on the minimum circumscribed circle; This method specifically comprises the following steps: S1. Fix the water meter and camera in a suitable position and adjust the position of the plum blossom needle on the screen; S2, performing image processing on the image captured by the camera, and locating the actual center point of the plum blossom needle in the processed image; S3, drawing a detection ring with the actual center point of the plum blossom needle as the center of the circle, and detecting and locating the pointed petal on the plum blossom needle and the pointed vertex on the pointed petal based on the detection ring; S4, calculating the total number of revolutions of the plum blossom needle within a period of time according to the orientation of the apex of the tip in each collected image; In S2, the actual center point of the plum blossom needle is located in the processed image, including: Extract contour points from the foreground area containing the plum blossom needle, and find the minimum circumscribed circle for all contour points. The center of the minimum circumscribed circle is the actual center point of the plum blossom needle. In S3, a detection ring is drawn with the actual center point of the plum blossom needle as the center, including: Take the actual center point of the plum blossom needle as the center of the circle and draw the inner detection circle with reference to the minimum circumscribed circle. The area between the inner detection circle and the minimum circumscribed circle is the detection ring. In S3, the pointed petal on the plum blossom needle and the pointed vertex on the pointed petal are detected and located based on the detection ring, including: S31, filtering the foreground area including the plum blossom needle using the detection ring, and retaining only the image inside the detection ring; S32, calculating pixels in the area where the pointed petal and the wide petal of the plum blossom needle in the internal image of the detection ring are located, and the part with the least number of pixels is the area where the pointed petal is located; S33, extracting the outer contour of the area where the pointed petal is located, and the point farthest from the actual center point of the plum blossom needle is the pointed vertex on the pointed petal; In S4, the total number of revolutions of the plum blossom needle within a period of time is calculated according to the orientation of the apex of the tip in each collected image, including: S41, calculating the angles Angle1, Angle2, ..., Angle of the line connecting the cusp vertex on the cusp flap in each collected image and the actual center point of the plum blossom needle N ; S42, calculating the rotation angle Δ of the plum blossom needle in each two adjacent frames of images n =Angle n -Angle n-1 ; S43, calculate the total rotation angle of the plum blossom needle during this period of time And based on the total rotation angle, the total number of circles the plum blossom needle rotates within a period of time is calculated.

2. The method for detecting the rotation speed of the plum blossom needle of a water meter according to claim 1, characterized in that: The radius of the inner detection circle is 3 / 4 of the radius of the minimum circumscribed circle.

3. The method for detecting the rotation speed of the plum blossom needle of a water meter according to claim 1, characterized in that: Adjust the position of the plum blossom needle on the screen in S1, including: Adjust the camera so that the center point of the plum blossom needle is at the center of the screen.

4. The method for detecting the rotation speed of the plum blossom needle of a water meter according to claim 3, characterized in that: S2 processes the image captured by the camera, including: The image captured by the camera is binarized, the black part of the plum blossom needle is extracted as the foreground area, and the background is turned black.

Citation Information

Cited By

  • Vision-based water meter plum-blossom needle metering detection method

    CN121577132A

  • A visual-based meter plug gauge measurement detection method

    CN121577132B