Metering device convenient for reading metering data
By integrating camera and machine vision technology in the metrology device, real-time identification and calculation of the scale marks and volume of liquids in the measuring cup, the problem of difficulty for users to read data at different angles is solved, and high-precision and flexible reading of metrology data is achieved , improving user experience and measurement accuracy.
Patent Information
- Application Number
- CN202411370703.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-12-10
AI Technical Summary
The existing metering device is difficult to read liquid data when the user is in the upward and top-down states, and it is difficult to read data accurately when the liquid is between two scale lines.
A measurement device is designed to facilitate reading of metrological data. The camera module is used to capture the scale image on the measuring cup in real time, and combine the horizontal detection module, image processing module, machine vision module, data analysis module and accurate calculation module to identify the scale and liquid level, calculate liquid volume data, and provide user interface display to ensure the accuracy and flexibility of metering.
Users can easily read data without looking at the head, reducing operational difficulty, improving measurement accuracy, avoiding errors during manual reading, and providing detailed history and flexible data output methods.
Smart Images

Figure CN119104130A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of metering devices, and in particular to a metering device that is convenient for reading metering data. Background Art
[0002] A measuring device is a type of equipment used to calculate and measure objects or substances. Common measuring devices include scales for measuring weight, rulers for measuring length, measuring cups for measuring liquid volume, etc. When measuring data, the measuring cup is used to pour the liquid into the cup, and then the measurement data is read through the scale lines on the cup. The accuracy of the measuring device is extremely important and often determines the accuracy of related experimental and research results.
[0003] After searching, the invention patent with Chinese patent number CN118464144A discloses a measuring cup;
[0004] Compared with the prior art, the invention patent with Chinese patent number CN118464144A can fold the lower plate onto the locking plate when the measuring cup needs to be transferred during the medical clinical research process, reducing the space occupied by the measuring cup to facilitate the storage and carrying of the measuring cup. The structure is simple and easy to implement, suitable for use in the existing medical clinical research process, and the cost of use is low, which can improve the benefits.
[0005] However, in actual use of the above-mentioned device, when reading the liquid data in the measuring cup, it is often necessary to read it with the horizontal sight. If the user is looking up or down, it is difficult to read the liquid data. In addition, if the usage scenario requires high precision, it is difficult to accurately read the liquid data when the liquid is between two scale lines. Therefore, a measuring device that is easy to read measurement data is proposed. Summary of the invention
[0006] The purpose of the present invention is to solve the shortcomings in the prior art that it is difficult to read liquid data when looking up or looking down, and it is difficult to accurately read liquid data when the liquid is between two scale lines, and to propose a metering device that is easy to read metering data.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A measuring device for conveniently reading measuring data, comprising a measuring cup, a slide rail is installed on the outer side of the measuring cup, a support frame is slidably arranged on the inner side of the slide rail, a reading system for the measuring cup is arranged on the support frame, and the reading system comprises:
[0009] A camera module is responsible for capturing the image of the scale lines on the measuring cup in real time;
[0010] A level detection module is used to detect the tilt angle of the measuring cup and determine the horizontal state of the measuring cup;
[0011] An image processing module is used to pre-process the image captured by the camera module to improve the clarity and contrast of the scale lines;
[0012] A machine vision module is used to identify the scale lines from the processed image and calculate the scale values corresponding to the liquid level;
[0013] The data analysis module calculates the volume data of the liquid according to the scale value corresponding to the liquid level;
[0014] An accurate calculation module, used for accurately calculating the volume data of the liquid when the liquid is between two scale lines;
[0015] The user interface module is used to display the volume data of the liquid and the liquid level change image and provide user interaction.
[0016] The above technical solution further includes:
[0017] The horizontal detection module includes a tilt sensor unit, a data processing and judgment unit and a feedback output unit. The tilt sensor unit measures the tilt angle of the measuring cup in real time through a tilt sensor. The data processing and judgment unit receives data from the tilt sensor unit to judge the horizontal state of the measuring cup. The feedback output unit transmits the horizontal state of the measuring cup to the user interface module.
[0018] The image processing module includes a grayscale unit, a filtering and denoising unit and a binarization processing unit. The grayscale unit converts a color image into a grayscale image to reduce the complexity and processing time of image data. The filtering and denoising unit removes noise in the image, improves image quality, and reduces the interference of noise on subsequent processing steps. The binarization processing unit converts a grayscale image into a binary image to simplify the image and make edge detection and contour extraction easier.
[0019] The machine vision module includes an edge detection unit, a contour extraction unit and a position calculation unit. The edge detection unit identifies edge information of scale lines and liquid levels in an image, the contour extraction unit separates the contours of the liquid level and scale lines, and the position calculation unit determines the position of the liquid level on the scale lines.
[0020] The edge detection unit performs detection by using the Roberts operator, and the algorithm formula of the Roberts operator is:
[0021] G(x,y)=\text{abs}(f(x,y)-f(x+1,y+1))+\text{abs}(f(x+1,y)-f(x,y+1))
[0022] Among them, f(a,b) represents the grayscale value of the image at point (a,b).
[0023] The contour extraction unit extracts contours through findContours, and the extraction process of findContours is:
[0024] Contour marking: In an image, a contour is defined as the boundary of a connected region with the same pixel value. The findContours function traverses the pixels in the image and marks the connected region and its boundary.
[0025] Contour extraction: determine the connected area and its boundaries, findContours extracts the boundaries as contours, and returns them as a point set;
[0026] Contour classification: findContours classifies contours according to their nested relationships, i.e., identifies outer and inner contours;
[0027] The calculation process of the position calculation unit is as follows:
[0028] Geometric transformation: converting pixel positions in an image into coordinates in real space;
[0029] Scale calculation: Calculate the proportional relationship between the pixels in the image and the actual size based on the objects of known size in the image;
[0030] Contour position analysis: Analyze the extracted contour position, find the contour corresponding to the liquid level, and calculate the scale value corresponding to the liquid level based on the position of the scale line.
[0031] The data analysis module includes a scale calibration unit and a scale matching unit. The scale calibration unit pre-measures and calibrates the corresponding relationship between the scale lines and the volumes. The scale matching unit finds the scale line closest to the liquid level and determines the corresponding volume value.
[0032] The scale matching unit searches for the scale line closest to the liquid level through a linear interpolation algorithm. The linear interpolation formula is:
[0033] f(x)≈f(x0)+x-xf(x)-f(x)(x-x0)
[0034] Where x0 and x1 are two known data points, f(x0) and f(x1) are the corresponding function values, and x is the interpolation point.
[0035] The calculation steps of the precise calculation module are as follows:
[0036] Determine the scale value: Determine the scale value corresponding to two adjacent scale lines A and B, A is 10mL, B is 20mL;
[0037] Measuring relative position:
[0038] Measure the relative position between the liquid and the scale lines A and B. The ratio of the distance of the liquid from A to the total distance from A to B is p (0≤p≤1);
[0039] Calculate volume: Use the linear interpolation formula to calculate the volume of the liquid:
[0040] V=VA+p×(VB-VA)
[0041] Where V is the volume of the liquid, VA and VB are the volumes corresponding to the scale lines A and B respectively.
[0042] The image display unit, information display unit and user interaction unit, the image display unit displays the image captured by the camera module in real time, provides intuitive visual feedback, and allows the user to observe the changes in the liquid level and scale lines. The information display unit user interface displays the liquid level position, scale value, volume information and the horizontal state of the measuring cup. The user interaction unit allows the user to control the camera module to turn on and off, adjust parameters, and save liquid level data.
[0043] The present invention has the following beneficial effects:
[0044] 1. In the present invention, the position of the liquid on the measuring cup is detected and converted into the volume data of the liquid in real time for display, so that the user can easily read the data without looking straight, which reduces the difficulty of operation, improves the user experience, avoids the errors that may occur when reading the scale manually, and improves the accuracy of measurement.
[0045] 2. In the present invention, by calculating the precise position of the liquid level between two scale lines, it is possible to provide a measurement result with higher accuracy than traditional scale reading, and also to obtain ordinary data of the liquid level close to the scale lines, and to output a variety of data as needed. This flexibility allows users to choose the appropriate data output method according to different application scenarios or needs.
[0046] 3. In the present invention, the level detection module can ensure that the measuring cup is in a level state, thereby ensuring the accuracy of measurement and avoiding calculation errors caused by the tilt of the measuring cup.
[0047] 4. In the present invention, liquid data and corresponding time information can be saved, providing users with detailed historical records to facilitate subsequent data analysis and tracing. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of the overall structure of a metering device for facilitating reading of metering data proposed by the present invention;
[0049] Figure 2It is a schematic diagram of the system block in the present invention.
[0050] In the figure: 1. Camera module; 2. Level detection module; 3. Image processing module; 4. Machine vision; 5. Data analysis module; 6. Precision calculation module; 7. Measuring cup; 8. Slide rail; 9. Support frame; 10. User interface module.
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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. Embodiment 1
[0052] like Figure 1-Figure 2 As shown, the present invention proposes a metering device for conveniently reading metering data, comprising a measuring cup 7, a slide rail 8 is installed on the outer side of the measuring cup 7, a support frame 9 is slidably arranged on the inner side of the slide rail 8, and a reading system for the measuring cup 7 is arranged on the support frame 9, and the reading system comprises;
[0053] The camera module 1 is responsible for capturing the image of the scale lines on the measuring cup 7 in real time;
[0054] The horizontal detection module 2 is used to detect the tilt angle of the measuring cup 7 and determine the horizontal state of the measuring cup 7;
[0055] The image processing module 3 is used to pre-process the image captured by the camera module 1;
[0056] The machine vision module 4 is used to identify the scale line from the processed image and calculate the scale value corresponding to the liquid level;
[0057] Data analysis module 5, calculating the volume data of the liquid according to the scale value corresponding to the liquid level;
[0058] An accurate calculation module 6, used for accurately calculating the volume data of the liquid between two scale lines;
[0059] The user interface module 10 is used to display the volume data of the liquid and the image of the liquid level change and provide user interaction.
[0060] In this embodiment, when it is necessary to measure data, first, the support frame 9 can be slid on the slide rail 8 according to the current position, so that the support frame 9 is in a convenient viewing position, and then the liquid is poured into the measuring cup 7. At this time, the camera module 1 can be turned on through the user interface module 10. At this time, the camera module 1 captures the image of the scale line on the measuring cup 7 in real time, and at the same time, the horizontal detection module 2 measures the inclination angle of the measuring cup 7 in real time to determine the horizontal state of the measuring cup 7, and then transmits the horizontal state of the measuring cup 7 to the user interface module 10 for display to ensure that the measuring cup 7 is in a horizontal state during measurement. Then, after obtaining the image of the scale line on the measuring cup 7, the camera module 1 transmits the image to the image processing module 3, and the image processing module 3 pre-processes the image, including graying, filtering and denoising, and binarization, to reduce the complexity and processing time of the image data, improve the image quality, reduce the interference of noise on subsequent processing steps, simplify the image, and make the recognition of the machine vision module 4 easier;
[0061] The machine vision module 4 identifies the edge information of the scale lines and the liquid level in the image, separates the contours of the liquid level and the scale lines, and determines the position of the liquid level on the scale lines. Then, the data analysis module 5 finds the scale line closest to the liquid level according to the pre-calibrated correspondence, and determines the corresponding volume value. The precise data when the liquid level is between two scale lines can also be calculated according to the usage scenario by the precise calculation module 6, so that the volume data of the liquid can be displayed, so that the user can easily read the data without looking straight, and avoids the errors that may occur when manually reading the scale, improves the accuracy of measurement, and can output multiple data as needed. This flexibility allows users to choose a suitable data output method according to different application scenarios or needs.
[0062] During the inspection, the image captured by the camera module 1 can be displayed in real time through the user interface module 10, providing intuitive visual feedback, allowing the user to observe the changes in the liquid level and scale lines, and display the liquid level position, scale value, volume information and the horizontal state of the measuring cup 7. At the same time, each liquid level data and the corresponding time can be saved, providing the user with a detailed historical record, which is convenient for subsequent data analysis and tracing.
[0063] In one embodiment, the horizontal detection module 2 includes a tilt sensor unit, a data processing and judgment unit, and a feedback output unit. The tilt sensor unit measures the tilt angle of the measuring cup 7 in real time through a tilt sensor. The data processing and judgment unit receives data from the tilt sensor unit and judges the horizontal state of the measuring cup 7. The feedback output unit transmits the horizontal state of the measuring cup 7 to the user interface module 10.
[0064] In one embodiment, the image processing module 3 includes a grayscale unit, a filtering and denoising unit and a binarization processing unit. The grayscale unit converts a color image into a grayscale image, the filtering and denoising unit removes noise in the image, and the binarization processing unit converts the grayscale image into a binary image.
[0065] In one embodiment, the machine vision module 4 includes an edge detection unit, a contour extraction unit and a position calculation unit. The edge detection unit identifies the edge information of the scale lines and liquid levels in the image, the contour extraction unit separates the contours of the liquid level and the scale lines, and the position calculation unit determines the position of the liquid level on the scale lines.
[0066] In one embodiment, the edge detection unit performs detection through the Roberts operator, and the algorithm formula of the Roberts operator is:
[0067] G(x,y)=\text{abs}(f(x,y)-f(x+1,y+1))+\text{abs}(f(x+1,y)-f(x,y+1))
[0068] Among them, f(a,b) represents the grayscale value of the image at point (a,b).
[0069] 7. In one embodiment, the contour extraction unit extracts the contour through findContours, and the extraction process of findContours is:
[0070] Contour marking: In an image, a contour is defined as the boundary of a connected region with the same pixel value. The findContours function traverses the pixels in the image and marks the connected region and its boundary.
[0071] Contour extraction: determine the connected area and its boundaries, findContours extracts the boundaries as contours, and returns them as a point set;
[0072] Contour classification: findContours classifies contours according to their nested relationships, i.e., identifies outer and inner contours;
[0073] The calculation process of the position calculation unit is as follows:
[0074] Geometric transformation: converting pixel positions in an image into coordinates in real space;
[0075] Scale calculation: Calculate the proportional relationship between the pixels in the image and the actual size based on the objects of known size in the image;
[0076] Contour position analysis: Analyze the extracted contour position, find the contour corresponding to the liquid level, and calculate the scale value corresponding to the liquid level based on the position of the scale line.
[0077] In one embodiment, the data analysis module 5 includes a scale calibration unit and a scale matching unit. The scale calibration unit pre-measures and calibrates the correspondence between the scale lines and the volumes. The scale matching unit finds the scale line closest to the liquid level and determines the corresponding volume value.
[0078] In one embodiment, the scale matching unit searches for the scale line closest to the liquid level through a linear interpolation algorithm. The linear interpolation formula is:
[0079] f(x)≈f(x0)+x-xf(x)-f(x)(x-x0)
[0080] Where x0 and x1 are two known data points, f(x0) and f(x1) are the corresponding function values, and x is the interpolation point.
[0081] In one embodiment, the calculation steps of the precise calculation module are as follows:
[0082] Determine the scale value: Determine the scale value corresponding to two adjacent scale lines A and B, A is 10mL, B is 20mL;
[0083] Measuring relative position:
[0084] Measure the relative position between the liquid and the scale lines A and B. The ratio of the distance of the liquid from A to the total distance from A to B is p (0≤p≤1);
[0085] Calculate volume: Use the linear interpolation formula to calculate the volume of the liquid:
[0086] V=VA+p×(VB-VA)
[0087] Where V is the volume of the liquid, VA and VB are the volumes corresponding to the scale lines A and B respectively.
[0088] In one embodiment, the image display unit, the information display unit and the user interaction unit, the image display unit displays the image captured by the camera module 1 in real time, the information display unit user interface displays the liquid level position, scale value, volume information and the horizontal state of the measuring cup 7, and the user interaction unit user controls the camera module 1 to turn on and off, adjust parameters, and save liquid level data operations.
[0089] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A measuring device for facilitating reading of measuring data, comprising a measuring cup (7), characterized in that: A slide rail (8) is installed on the outer side of the measuring cup (7), a support frame (9) is slidably arranged on the inner side of the slide rail (8), and a reading system for the measuring cup (7) is arranged on the support frame (9), and the reading system comprises: A camera module (1) is responsible for capturing an image of the scale lines on the measuring cup (7) in real time; A level detection module (2) is used to detect the tilt angle of the measuring cup (7) and determine the level state of the measuring cup (7); An image processing module (3) is used to pre-process the image captured by the camera module (1); A machine vision module (4), used for identifying scale lines from the processed image and calculating scale values corresponding to the liquid level; A data analysis module (5) calculates the volume data of the liquid according to the scale value corresponding to the liquid level; An accurate calculation module (6), used for accurately calculating the volume data of the liquid when the liquid is between two scale lines; The user interface module (10) is used to display liquid volume data and liquid level change images and provide user interaction.
2. A metering device for facilitating reading of metering data according to claim 1, characterized in that: The horizontal detection module (2) comprises a tilt sensor unit, a data processing and judgment unit and a feedback output unit. The tilt sensor unit measures the tilt angle of the measuring cup (7) in real time through a tilt sensor. The data processing and judgment unit receives data from the tilt sensor unit and judges the horizontal state of the measuring cup (7). The feedback output unit transmits the horizontal state of the measuring cup (7) to the user interface module (10).
3. A metering device for facilitating reading of metering data according to claim 1, characterized in that: The image processing module (3) comprises a grayscale unit, a filtering and denoising unit and a binarization processing unit. The grayscale unit converts a color image into a grayscale image. The filtering and denoising unit removes noise in the image. The binarization processing unit converts the grayscale image into a binary image.
4. A metering device for facilitating reading of metering data according to claim 1, characterized in that: The machine vision module (4) comprises an edge detection unit, a contour extraction unit and a position calculation unit, wherein the edge detection unit identifies edge information of scale lines and liquid levels in an image, the contour extraction unit separates the contours of the liquid level and scale lines, and the position calculation unit determines the position of the liquid level on the scale lines.
5. A metering device for facilitating reading of metering data according to claim 4, characterized in that: The edge detection unit performs detection by using the Roberts operator, and the algorithm formula of the Roberts operator is: G(x,y)=\text{abs}(f(x,y)-f(x+1,y+1))+\text{abs}(f(x+1,y)-f(x,y+1)) Among them, f(a,b) represents the grayscale value of the image at point (a,b).
6. A metering device for facilitating reading of metering data according to claim 4, characterized in that: The contour extraction unit extracts contours through findContours, and the extraction process of findContours is: Contour marking: In an image, a contour is defined as the boundary of a connected region with the same pixel value. The findContours function traverses the pixels in the image and marks the connected region and its boundary. Contour extraction: determine the connected area and its boundaries, findContours extracts the boundaries as contours, and returns them as a point set; Contour classification: findContours classifies contours according to their nested relationships, i.e., identifies outer and inner contours; The calculation process of the position calculation unit is as follows: Geometric transformation: converting pixel positions in an image into coordinates in real space; Scale calculation: Calculate the proportional relationship between the pixels in the image and the actual size based on the objects of known size in the image; Contour position analysis: Analyze the extracted contour position, find the contour corresponding to the liquid level, and calculate the scale value corresponding to the liquid level based on the position of the scale line.
7. A metering device for facilitating reading of metering data according to claim 1, characterized in that: The data analysis module (5) comprises a scale calibration unit and a scale matching unit. The scale calibration unit pre-measures and calibrates the corresponding relationship between the scale lines and the volumes. The scale matching unit finds the scale line closest to the liquid level and determines the corresponding volume value.
8. A metering device for facilitating reading of metering data according to claim 7, characterized in that: The scale matching unit searches for the scale line closest to the liquid level through a linear interpolation algorithm. The linear interpolation formula is: f(x)≈f(x0)+x-xf(x)-f(x)(x-x0) Where x0 and x1 are two known data points, f(x0) and f(x1) are the corresponding function values, and x is the interpolation point.
9. A metering device for facilitating reading of metering data according to claim 1, characterized in that: The calculation steps of the precise calculation module are as follows: Determine the scale value: Determine the scale value corresponding to two adjacent scale lines A and B, A is 10mL, B is 20mL; Measuring relative position: Measure the relative position between the liquid and the scale lines A and B. The ratio of the distance of the liquid from A to the total distance from A to B is p (0≤p≤1); Calculate volume: Use the linear interpolation formula to calculate the volume of the liquid: V=VA+p×(VB-VA) Where V is the volume of the liquid, VA and VB are the volumes corresponding to the scale lines A and B respectively.
10. A metering device for facilitating reading of metering data according to claim 1, characterized in that: The image display unit, the information display unit and the user interaction unit, the image display unit displays the image captured by the camera module (1) in real time, the information display unit user interface displays the liquid level position, scale value, volume information and the horizontal state of the measuring cup (7), and the user interaction unit user controls the camera module (1) to turn on and off, adjust parameters, and save liquid level data.
Citation Information
Patent Citations
Measuring cup
CN118464144A
