Alcohol concentration non-contact measurement method and device, cloud equipment and computer device

Through infrared transmission spectrum analysis and least squares fitting, the problem of small application range and low accuracy of alcohol concentration measurement in the prior art is solved, and high accuracy measurement of alcohol concentration is achieved.

CN119125057APending Publication Date: 2024-12-13CHENGDU TECH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410354339.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing non-contact measurement methods for alcohol concentration have a small scope of application, large interior space of the vehicle and other molecules that affect alcohol molecules, resulting in low measurement accuracy.

Method used

The infrared transmission spectrum analysis method is used to preheat the equipment, collect infrared transmission images, process characteristic parameters, and fit the alcohol concentration mapping equation using the least squares method to output the alcohol concentration.

Benefits of technology

It improves the accuracy and scope of application of alcohol concentration measurement, and realizes non-contact measurement of alcohol concentration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119125057A_ABST
    Figure CN119125057A_ABST
Patent Text Reader

Abstract

The invention relates to the field of alcohol concentration measurement, in particular to an alcohol concentration non-contact measurement method, an alcohol concentration non-contact measurement device, cloud equipment and a computer device, realizes alcohol concentration non-contact measurement, and improves the application range and the accuracy of a measurement result. According to the technical scheme, the method comprises the steps that equipment is preheated, environment characteristic parameter values are measured under the condition that an alcohol sample is not discharged, when the environment characteristic parameter values reach an environment threshold value, preheating is completed, and after the equipment is stable, the environment threshold value reaches a stable value of an air measurement environment gray value; placing an alcohol sample, and collecting an infrared transmission image of the alcohol sample to be detected; processing the infrared transmission image of the to-be-detected alcohol sample to obtain characteristic parameters of the to-be-detected alcohol sample; and substituting the characteristic parameters of the to-be-detected alcohol sample into the alcohol concentration mapping equation, and outputting the to-be-detected alcohol concentration. The method is suitable for non-contact measurement of the alcohol concentration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of alcohol concentration measurement, and in particular to a non-contact alcohol concentration measurement method, device, cloud equipment and computer device. Background Art

[0002] Existing non-contact measurement of alcohol concentration, such as a portable non-contact laser alcohol measurement device and method disclosed in CN107478603A, includes a DSP processing circuit, a TDLAS driving and modulation circuit, a semiconductor laser, an optical system, a photodetector, a low-noise preamplifier circuit, an extremely weak signal extraction circuit, and an instrument setting input and data output display screen. The measurement method of the measuring device is as follows: the specific steps are: 1) fitting of the calibration curve; 2) input of measurement parameters; 3) excitation and emission of the emitted laser; 4) reception of the return light signal; 5) measurement of the alcohol gas molecule concentration of the vehicle to be measured; 6) display and alarm of the alcohol gas molecule concentration; the present invention realizes the rapid and accurate measurement of the alcohol molecule content inside the vehicle passing by on the road.

[0003] Although the above scheme realizes non-contact measurement of alcohol concentration, it is only applicable to the rapid and accurate measurement of the alcohol molecule content inside the vehicle passing by on the road, and its application scope is relatively small. The space inside the vehicle is large, and there are many other molecules that affect the alcohol molecules. Therefore, the accuracy of measuring the alcohol molecule content by this scheme is not high. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a non-contact measurement method, device, cloud device and computer device for alcohol concentration, which realizes non-contact measurement of alcohol concentration and improves the scope of application and the accuracy of measurement results.

[0005] The present invention adopts the following technical solutions to achieve the above-mentioned purpose. In a first aspect, the present invention provides a non-contact measurement method for alcohol concentration, the measurement method comprising:

[0006] S1. Preheat the device and measure the environmental characteristic parameter value without placing an alcohol sample. When the environmental characteristic parameter value reaches the environmental threshold, the preheating is completed. The environmental threshold is the stable value reached by the grayscale value of the empty measurement environment after the device is stable.

[0007] S2, placing an alcohol sample and collecting an infrared transmission image of the alcohol sample to be tested;

[0008] S3, processing the infrared transmission image of the alcohol sample to be tested to obtain characteristic parameters of the alcohol sample to be tested;

[0009] S4. Substitute the characteristic parameters of the alcohol sample to be tested into the alcohol concentration mapping equation and output the alcohol concentration to be tested.

[0010] Furthermore, collecting the infrared transmission image of the alcohol sample to be tested specifically includes:

[0011] Use a syringe to take the alcohol to be tested and inject it into the test container cuvette, put the cuvette into the fixed card slot of the device, seal the cuvette, and take multiple infrared transmission images of the alcohol sample to be tested. Among them, the infrared perspective image refers to the infrared light of a specific band that passes through the alcohol sample, then passes through the filter, and finally is captured by the infrared camera.

[0012] Furthermore, the infrared transmission image of the alcohol sample to be tested is processed to obtain characteristic parameters of the alcohol sample to be tested, specifically including:

[0013] Take N infrared transmission images of the alcohol sample to be tested, and process a single image: convert the RGB image into a grayscale image, traverse each pixel of the grayscale image, mark all pixels with grayscale values ​​greater than or equal to the grayscale threshold as the target area, and calculate the average grayscale value k within the target area. n ;

[0014] The average gray value k of N images n Sort from small to large to get the array {k i}, i = 1, 2, ..., N, remove the d grayscale values ​​with the highest average grayscale and the d grayscale values ​​with the lowest average grayscale, and average the grayscale values ​​of the remaining n-2d pixels to obtain the characteristic parameter K of the alcohol sample to be tested.

[0015] Furthermore, the method for obtaining the alcohol concentration mapping equation includes: setting a plurality of samples with equal intervals between different alcohol concentrations, obtaining the characteristic parameters of the corresponding alcohol samples to be tested through S3, and then using the least squares method for linear fitting to obtain the alcohol concentration mapping equation.

[0016] In a second aspect, the present invention provides a non-contact alcohol concentration measurement device for implementing the above-mentioned non-contact alcohol concentration measurement method, the measurement device comprising:

[0017] The equipment preheating module measures the environmental characteristic parameter value without placing an alcohol sample. When the environmental characteristic parameter value reaches the environmental threshold, the preheating is completed. The environmental threshold is the stable value reached by the grayscale value of the empty measurement environment after the equipment is stable.

[0018] An image acquisition module is used to place an alcohol sample and collect an infrared transmission image of the alcohol sample to be tested;

[0019] The characteristic parameter acquisition module processes the infrared transmission image of the alcohol sample to be tested to obtain the characteristic parameters of the alcohol sample to be tested;

[0020] The alcohol concentration output module brings the characteristic parameters of the alcohol sample to be tested into the alcohol concentration mapping equation and outputs the alcohol concentration to be tested.

[0021] Furthermore, the image acquisition module is specifically used to use a syringe to take the alcohol to be tested and inject it into a test container cuvette, place the cuvette into a fixed card slot of the device, seal the cuvette, and take multiple infrared transmission images of the alcohol sample to be tested, wherein the infrared perspective image refers to an image in which infrared light of a specific band passes through the alcohol sample, then passes through a filter, and is finally captured by an infrared camera.

[0022] Furthermore, the characteristic parameter acquisition module is specifically used to take N infrared transmission images of the alcohol sample to be tested, and process a single image: convert the RGB image into a grayscale image, traverse each pixel of the grayscale image, mark all pixels with grayscale values ​​greater than or equal to the grayscale threshold as the target area, and calculate the average grayscale value k in the target area. n ;

[0023] The average gray value k of N images n Sort from small to large to get the array {k i}, i = 1, 2, ..., N, remove the d grayscale values ​​with the highest average grayscale and the d grayscale values ​​with the lowest average grayscale, and average the grayscale values ​​of the remaining n-2d pixels to obtain the characteristic parameter K of the alcohol sample to be tested.

[0024] Furthermore, the alcohol concentration output module is specifically used to set a plurality of samples with equal intervals between different alcohol concentrations, obtain the characteristic parameters of the corresponding alcohol samples to be tested through the characteristic parameter acquisition module, and then use the least squares method to perform linear fitting to obtain the alcohol concentration mapping equation.

[0025] In a third aspect, the present invention provides a cloud device, which includes a server, and the above-mentioned non-contact alcohol concentration measurement device is installed on the server.

[0026] In a fourth aspect, the present invention provides a computer device, comprising a memory, wherein the memory stores program instructions, and when the program instructions are run, the non-contact alcohol concentration measurement method as described above is executed.

[0027] The beneficial effects of the present invention are:

[0028] The present invention utilizes near-infrared light transmission spectrum analysis to achieve non-contact measurement of alcohol concentration, has a wide range of applications, and improves the accuracy of measurement results. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a flow chart of a non-contact alcohol concentration measurement method provided by an embodiment of the present invention;

[0030] Figure 2 is a structural block diagram of a non-contact alcohol concentration measurement device provided by an embodiment of the present invention;

[0031] Figure 3 It is a schematic diagram of the structure of a measuring device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0033] The present invention provides a non-contact measurement method for alcohol concentration, such as Figure 1 As shown, specifically including:

[0034] S1. Equipment preheating;

[0035] The environmental characteristic parameter value is measured without placing an alcohol sample. When the environmental characteristic parameter value reaches the environmental threshold, the preheating is completed. The environmental threshold is the stable value reached by the grayscale value of the empty measurement environment after the device is stable.

[0036] S2, placing an alcohol sample and collecting an infrared transmission image of the alcohol sample to be tested;

[0037] Use a syringe to take the alcohol to be tested and inject it into the test container cuvette, put the cuvette into the fixed card slot of the device, seal the cuvette, and take multiple infrared transmission images of the alcohol sample to be tested, where the infrared perspective image refers to the image captured by the infrared camera after the infrared light of a specific band passes through the alcohol sample, passes through the filter, and is finally captured;

[0038] S3, processing the infrared transmission image of the alcohol sample to be tested to obtain a characteristic parameter K of the alcohol sample to be tested;

[0039] Take N infrared transmission images of the alcohol sample to be tested, and process a single image: convert the RGB image into a grayscale image, traverse each pixel of the grayscale image, mark all pixels with grayscale values ​​greater than or equal to the grayscale threshold as the target area, and calculate the average grayscale value k within the target area. n ;

[0040] The average gray value k of N images n Sort from small to large to get the array {k i}, i = 1, 2, ..., N, remove the d grayscale values ​​with the highest average grayscale and the d grayscale values ​​with the lowest average grayscale, and average the grayscale values ​​of the remaining n-2d pixels to obtain the characteristic parameter K of the alcohol sample to be tested.

[0041] S4, bringing the characteristic parameters of the alcohol sample to be tested into the alcohol concentration mapping equation, and outputting the alcohol concentration to be tested;

[0042] A plurality of samples with equal intervals between different alcohol concentrations (30%-80%) are set, and the characteristic parameters of the corresponding alcohol samples to be tested are obtained through S3, and then the alcohol concentration mapping equation is obtained by linear fitting using the least squares method.

[0043] The present invention provides a non-contact alcohol concentration measuring device, which is used to implement the non-contact alcohol concentration measuring method of the present invention. Figure 2 As shown, the measuring device comprises:

[0044] The equipment preheating module measures the environmental characteristic parameter value without placing an alcohol sample. When the environmental characteristic parameter value reaches the environmental threshold, the preheating is completed. The environmental threshold is the stable value reached by the grayscale value of the empty measurement environment after the equipment is stable.

[0045] An image acquisition module is used to place an alcohol sample and collect an infrared transmission image of the alcohol sample to be tested;

[0046] The characteristic parameter acquisition module processes the infrared transmission image of the alcohol sample to be tested to obtain the characteristic parameters of the alcohol sample to be tested;

[0047] The alcohol concentration output module brings the characteristic parameters of the alcohol sample to be tested into the alcohol concentration mapping equation and outputs the alcohol concentration to be tested.

[0048] In one embodiment of the present invention, the image acquisition module is specifically used to use a syringe to take the alcohol to be tested and inject it into a test container cuvette, place the cuvette into a fixed card slot of the device, seal the cuvette, and take multiple infrared transmission images of the alcohol sample to be tested, wherein the infrared perspective image refers to an image in which infrared light of a specific band passes through the alcohol sample, then passes through a filter, and is finally captured by an infrared camera.

[0049] In one embodiment of the present invention, the characteristic parameter acquisition module is specifically used to take N infrared transmission images of the alcohol sample to be tested, and process a single image: convert the RGB image into a grayscale image, traverse each pixel of the grayscale image, mark all pixels with grayscale values ​​greater than or equal to the grayscale threshold as the target area, and calculate the average grayscale value k within the target area. n ;

[0050] The average gray value k of N images n Sort from small to large to get the array {k i}, i = 1, 2, ..., N, remove the d grayscale values ​​with the highest average grayscale and the d grayscale values ​​with the lowest average grayscale, and average the grayscale values ​​of the remaining n-2d pixels to obtain the characteristic parameter K of the alcohol sample to be tested.

[0051] In one embodiment of the present invention, the alcohol concentration output module is specifically used to set a plurality of samples with equal intervals between different alcohol concentrations, obtain the characteristic parameters of the corresponding alcohol samples to be tested through the characteristic parameter acquisition module, and then use the least squares method to perform linear fitting to obtain the alcohol concentration mapping equation.

[0052] The present invention provides a cloud device, which includes a server. The non-contact alcohol concentration measurement device of the present invention is installed on the server.

[0053] The present invention provides a computer device, which includes a memory. The memory stores program instructions. When the program instructions are run, the non-contact alcohol concentration measurement method described in the present invention is executed.

[0054] like Figure 3 As shown, the measuring device of the present invention comprises a voltage stabilizer, a light-proof container, a light source, an alcohol container, a camera and a computer device. The voltage stabilizer is used to stabilize the voltage, and by stabilizing the voltage, the light source is indirectly controlled to be stable, so that the grayscale image is stable.

[0055] The light-proof container is a black test container made of ordinary resin, which is used to eliminate the interference of ambient light. The light source, alcohol container and camera are fixed in the container in sequence.

[0056] By analyzing the absorption characteristics of alcohol to infrared spectrum, the experiment proves that the best infrared transmission wavelength is obtained, so the infrared light source uses an LED lamp with a wavelength of 1310nm.

[0057] In order to make the infrared light penetrate the alcohol solution better, the present invention selects a 10mm acid-alkali resistant glass cuvette as the alcohol container. The camera adopts an industrial camera with a focal length of 2.8-12mm.

[0058] In one embodiment of the present invention, the camera, light source and alcohol container need to be at the same height and on the same horizontal line, the height is 3 cm, the distance between the light source and the alcohol container is 5.8 cm, and the imaging effect is best when the distance between the camera and the alcohol container is 3 cm, and the higher the accuracy of the prediction value.

[0059] The specific measurement steps include:

[0060] To collect pictures, an infrared LED lamp with a fixed wavelength is used as the light source. By adding a filter in front of the camera, infrared light transmission pictures of different concentrations of alcohol in a fixed band are collected. The collected light intensity information is used to describe the absorption characteristics of different concentrations of alcohol for fixed wavelength infrared light.

[0061] Taking into account the situation that the camera needs to be preheated, resulting in unstable imaging of the captured image, the present invention selects each concentration of alcohol sample to continuously shoot 10 pictures at a time interval of 0.5, and takes the middle six pictures as the pictures required by the present invention.

[0062] Processing pictures includes converting infrared light transmission pictures into grayscale images and selecting grayscale eigenvalues. Converting infrared light transmission pictures into grayscale images:

[0063] Using matlab technology, the grayscale value data of the image is obtained by grayscale processing the collected image to reflect the information of the alcohol transmission light intensity.

[0064] Select grayscale eigenvalues:

[0065] In order to make the alcohol concentration prediction value more accurate, the present invention selects a rectangular target area with a width of 7 pixels and a height of 5 pixels, with the pixel point with the largest grayscale value in the grayscale image as the center. The grayscale average value of the target area is called the average grayscale eigenvalue.

[0066] Predicting alcohol concentration: Since alcohol's absorption of infrared light of a fixed wavelength is linearly related to alcohol concentration, infrared light transmission images of alcohols of different concentrations can be measured and analyzed, and a mathematical model between light intensity and image grayscale value data can be established using the least squares method to predict alcohol concentration.

[0067] The grayscale feature values ​​of the six collected pictures of different alcohol concentrations are averaged, and a regression equation is obtained by linear fitting using the least squares method (for n data points (x1, y1), (x2, y2) ..... (xn, yn), fitting linear model y = ax + b).

[0068] Substituting the obtained average grayscale characteristic value into the regression equation, the alcohol concentration value can be obtained, where the average grayscale characteristic value represents the characteristic parameter value of the alcohol sample to be tested.

[0069] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. Non-contact measurement method of alcohol concentration, It is characterized in that The measuring method comprises: S1, equipment preheating, measuring environmental characteristic parameter values, when the environmental characteristic parameter value reaches the environmental threshold value, the preheating is completed. The environmental threshold value is the stable value reached by the gray value of the empty measurement environment after the equipment is stable; S2, placing an alcohol sample and collecting an infrared transmission image of the alcohol sample to be tested; S3, processing the infrared transmission image of the alcohol sample to be tested to obtain characteristic parameters of the alcohol sample to be tested; S4. Substitute the characteristic parameters of the alcohol sample to be tested into the alcohol concentration mapping equation and output the alcohol concentration to be tested.

2. The non-contact alcohol concentration measurement method according to claim 1, It is characterized in that The infrared transmission image of the alcohol sample to be tested is collected specifically including: Use a syringe to take the alcohol to be tested and inject it into the test container cuvette, put the cuvette into the fixed card slot of the device, seal the cuvette, and take multiple infrared transmission images of the alcohol sample to be tested. Among them, the infrared perspective image refers to the infrared light of a specific band that passes through the alcohol sample, then passes through the filter, and finally is captured by the infrared camera.

3. The non-contact alcohol concentration measurement method according to claim 1, It is characterized in that The infrared transmission image of the alcohol sample to be tested is processed to obtain characteristic parameters of the alcohol sample to be tested, including: Take N infrared transmission images of the alcohol sample to be tested, and process a single image: convert the RGB image into a grayscale image, traverse each pixel of the grayscale image, mark all pixels with grayscale values ​​greater than or equal to the grayscale threshold as the target area, and calculate the average grayscale value k within the target area. n ; The average gray value k of N images n Sort from small to large to get the array {k i }, i = 1, 2, ..., N, remove the d grayscale values ​​with the highest average grayscale and the d grayscale values ​​with the lowest average grayscale, and average the grayscale values ​​of the remaining n-2d pixels to obtain the characteristic parameter K of the alcohol sample to be tested.

4. The non-contact alcohol concentration measurement method according to claim 1, It is characterized in that The method for obtaining the alcohol concentration mapping equation includes: setting a plurality of samples with equal intervals between different alcohol concentrations, obtaining the characteristic parameters of the corresponding alcohol sample to be tested through S3, and then using the least squares method for linear fitting to obtain the alcohol concentration mapping equation.

5. A non-contact alcohol concentration measuring device, used to implement the non-contact alcohol concentration measuring method according to any one of claims 1 to 4, It is characterized in that The measuring device comprises: The equipment preheating module measures the environmental characteristic parameter value without placing an alcohol sample. When the environmental characteristic parameter value reaches the environmental threshold, the preheating is completed. The environmental threshold is the stable value reached by the grayscale value of the empty measurement environment after the equipment is stable. An image acquisition module is used to place an alcohol sample and collect an infrared transmission image of the alcohol sample to be tested; The characteristic parameter acquisition module processes the infrared transmission image of the alcohol sample to be tested to obtain the characteristic parameters of the alcohol sample to be tested; The alcohol concentration output module brings the characteristic parameters of the alcohol sample to be tested into the alcohol concentration mapping equation and outputs the alcohol concentration to be tested.

6. The non-contact alcohol concentration measuring device according to claim 5, It is characterized in that The image acquisition module is specifically used to take the alcohol to be tested with a syringe and inject it into the test container cuvette, place the cuvette into the fixed card slot of the device, seal the cuvette, and take multiple infrared transmission images of the alcohol sample to be tested, wherein the infrared perspective image refers to the image captured by the infrared camera after infrared light of a specific band passes through the alcohol sample, passes through a filter, and is finally captured.

7. The non-contact alcohol concentration measuring device according to claim 5, It is characterized in that The characteristic parameter acquisition module is specifically used to take N infrared transmission images of the alcohol sample to be tested, and process a single image: convert the RGB image into a grayscale image, traverse each pixel of the grayscale image, mark all pixels with grayscale values ​​greater than or equal to the grayscale threshold as the target area, and calculate the average grayscale value k within the target area. n ; The average gray value k of N images n Sort from small to large to get the array {k i }, i = 1, 2, ..., N, remove the d grayscale values ​​with the highest average grayscale and the d grayscale values ​​with the lowest average grayscale, and average the grayscale values ​​of the remaining n-2d pixels to obtain the characteristic parameter K of the alcohol sample to be tested.

8. The non-contact alcohol concentration measuring device according to claim 5, It is characterized in that The alcohol concentration output module is specifically used to set multiple samples with equal intervals between different alcohol concentrations, obtain the characteristic parameters of the corresponding alcohol samples to be tested through the characteristic parameter acquisition module, and then use the least squares method to perform linear fitting to obtain the alcohol concentration mapping equation.

9. A cloud device, comprising a server, It is characterized in that The non-contact alcohol concentration measuring device as described in any one of claims 5 to 8 is installed on the server.

10. A computer device, comprising a memory, wherein the memory stores program instructions, It is characterized in that When the program instructions are executed, the non-contact alcohol concentration measurement method as described in any one of claims 1 to 4 is executed.