Multi-beam refractometer and liquid concentration measuring method thereof
By using a multi-beam refractometer and multiple independent incoming channels in the refractometer, and combining linear equations to calculate the refractive index of the liquid, the problem of insufficient liquid concentration calculation deviation and refractive index accuracy in the prior art is solved, and higher calculation accuracy and wider application are achieved.
Patent Information
- Application Number
- CN202510380421.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-05-30
AI Technical Summary
When measuring the refractive index and concentration of liquids, the deviation of a single measurement is large and cannot be verified by each other, resulting in an increase in the deviation of liquid concentration calculation. At the same time, it is difficult to achieve complete parallelism with the bright lines in the image when the photosensitive element is installed, resulting in distance measurement errors and affecting the accuracy of refractive index calculation.
A multi-beam refractometer is used to adjust the divergence angle of the light beam through the light-transmitting structure and focus lens, combining multiple independent light inlet channels and light source groups, ensuring a clear light-dark separation interface during imaging. At the same time, the coordinate axes of the first and second bright lines are established for each light source group, the bright lines position is calculated through the predefined linear equation, the liquid refractive index is determined, and the concentration is calculated in combination with the liquid temperature.
It improves the calculation accuracy of the liquid refractive index, reduces the deviation in liquid concentration calculation, reduces the requirements for equipment assembly, simplifies the manufacturing process, and makes the application of multi-beam refractive instruments more widely and reliable.
Smart Images

Figure CN120064208A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of liquid concentration analysis instruments, and particularly to a multi-beam refractometer and a method for measuring the concentration of a liquid using the same. Background Art
[0002] In the prior art, most refractometers only use detection light of the same wavelength for testing, so only a bright line or a dividing line is formed on their imaging systems. However, calculating the refractive index of a liquid based only on the position of a single bright line or dividing line has a large deviation in single measurement and cannot be mutually verified, resulting in an increase in the calculation deviation of the liquid concentration. At the same time, existing refractometers calculate the refractive index and concentration of a liquid to be measured by measuring the position of the bright line on the imaging unit. Among them, traditional algorithms usually assume that the direction of the bright line is strictly parallel to the pixel grid and rely on counting the number of pixel grids to determine the distance change between the bright lines. However, in actual applications, it is very difficult to achieve the ideal state where the photosensitive element is completely parallel to the bright line in the image during installation. Even a very small angular deviation will cause significant errors in the distance measurement based on direct pixel grid counting, thereby affecting the calculation accuracy of the final refractive index. In addition, when using the pixel grid counting method to determine the relative position between two bright lines, taking the pixel grid where the bright line is located as the actual calculation position of the bright line cannot accurately reflect the distance change between the two bright lines, further reducing the calculation accuracy of the refractive index. Summary of the Invention
[0003] Embodiments of the present invention provide a multi-beam refractometer and a method for measuring the concentration of a liquid using the same, so as to improve the calculation accuracy of the refractive index of the liquid and further improve the calculation accuracy of the liquid concentration.
[0004] To achieve the above object, on the one hand, embodiments of the present invention provide a multi-beam refractometer, including: a light-transmitting structure, a prism, a focusing lens, an imaging unit, and a central processing unit. Among them, the light-transmitting structure and the focusing lens are respectively arranged on the light-incident side and the light-emitting side of the prism, and the imaging unit is arranged on the side of the focusing lens away from the prism; a thermometer for detecting its temperature is arranged on the prism; the output end of the imaging unit is connected to the input end of the central processing unit, and the output end of the central processing unit is connected to the input end of the light source group of the light-transmitting structure.
[0005] Preferably, the multi-beam refractometer further includes one or more of the following:
[0006] The prism is a triangular prism or a trapezoidal prism; the thermometer is a thermocouple;
[0007] The imaging unit is a color CMOS sensor, a black-and-white CMOS sensor, or a CCD sensor.
[0008] Preferably, in the multi-beam refractometer, the light-transmitting structure comprises a light-transmitting member and a plurality of light source groups, wherein the wavelengths of light emitted by the plurality of light source groups are different from each other;
[0009] The light-transmitting member has a plurality of independent light-incoming channels, each of which has a light-incoming port and a light-outgoing port, the plurality of light-incoming ports correspond one-to-one to the plurality of light source groups, and the light-outgoing port corresponds to the light-incoming side of the prism of the refractometer;
[0010] The multiple light input channels are spaced apart from each other and are arranged crosswise to adjust the divergence angles of the light beams emitted from the respective light output ports, thereby ensuring that the light beams do not overlap each other after imaging.
[0011] Preferably, in the multi-beam refractometer, the clearance structure further comprises one or more of the following:
[0012] The light source group includes LED lamps, and a plurality of light source groups are electrically connected to form an LED assembly;
[0013] The light-through member is provided with a plurality of light-through slots penetrating through two opposite ends thereof, and the plurality of light-through slots are arranged at intervals and cross-arranged with each other; the light-through slots are the light-incoming channels;
[0014] The light-through groove is a straight groove;
[0015] A light source mounting plate is arranged on a side of the light passing member away from the light outlet thereof, and the light source assembly is mounted on a side of the light source mounting plate facing the light passing member;
[0016] The light entrance of the light-through slot is provided with a receiving slot, and a light-homogenizing sheet is provided in the receiving slot; when the light source mounting plate is assembled on the light-through piece, the light source group is inserted into the corresponding receiving slot, and the light-homogenizing sheet is used to convert the light source group into a surface light source;
[0017] The circumferential wall of the light entrance channel is a light shielding wall.
[0018] On the other hand, an embodiment of the present invention provides a method for measuring liquid concentration, based on the multi-beam refractometer as described above, measuring the liquid concentration of the liquid to be measured, wherein at least one thermocouple is installed on the front and rear sides of the prism of the multi-beam refractometer, and the method comprises:
[0019] S1, taking the lower left corner of the first pixel grid where the first bright line of each light source group passes through the plane of the imaging unit as the first zero point, establishing the first coordinate axis of each light source group;
[0020] Taking the lower left corner of the first pixel grid where the second bright line of each light source group passes below the plane of the imaging unit as the second zero point, a second coordinate axis of each light source group is established;
[0021] Calculate the first bright line and the second bright line of each light source group according to the first coordinate axis and the second coordinate axis through a predefined linear equation;
[0022] The first bright line is: the brightness dividing line formed in the detection image output by each light source group through the imaging unit during initial calibration; the second bright line is: the brightness dividing line formed in the detection image output by each light source group through the imaging unit after dropping the liquid to be measured;
[0023] Among them, the linear equation is:
[0024]
[0025] Among them, i represents the number of pixel cells in any pixel cell group, j represents the number of all pixel cell groups, i 平均 represents the average number of pixel cells in each pixel cell group, i j represents the number of pixel cells in the j-th pixel cell group;
[0026] S2. Calculate the first distance between the first zero point and the second zero point through the number of pixel cells between the first zero point and the second zero point;
[0027] Add the first distance to the value of the first bright line on the x-axis of the first coordinate axis, and then subtract the value of the second bright line on the x-axis of the second coordinate axis to obtain the second distance between the first bright line and the second bright line;
[0028] S3. Calculate the refractive index of each light source group according to the second distance, and calculate the average value of the refractive indices of all light source groups to obtain the liquid refractive index of the liquid to be measured;
[0029] S4. Calculate the liquid concentration of the liquid to be measured according to the liquid refractive index and the liquid temperature of the liquid to be measured; among them, the liquid temperature of the liquid to be measured is obtained by calculating the average value of the temperatures measured by all thermocouples.
[0030] Preferably, in the method for measuring the liquid concentration, in step S1, each column where each pixel cell group is located in the multiple pixel cell groups is different.
[0031] Preferably, in the method for measuring the liquid concentration, in step S1, the initial calibration is pure water calibration.
[0032] Preferably, in the method for measuring the liquid concentration, in step S1, calculating the first bright line and the second bright line of each light source group according to the first coordinate axis and the second coordinate axis through a predefined linear equation includes:
[0033] Calculate the mean of the slope range and the mean of the intercept range of the linear equation, and determine the first bright line of each light source group on the first coordinate axis and the second bright line on the second coordinate axis.
[0034] In another aspect, an embodiment of the present invention provides a device for measuring the concentration of a liquid, which includes a memory and a processor. The memory stores at least one program, and the at least one program is executed by the processor to implement the method for measuring the concentration of a liquid as described in any one of the above.
[0035] In another aspect, an embodiment of the present invention provides a computer-readable storage medium, in which at least one program is stored, and the at least one program is executed by the processor to implement the method for measuring the concentration of a liquid as described in any one of the above.
[0036] In another aspect, an embodiment of the present invention provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, it implements the method for measuring the concentration of a liquid as described in any one of the above.
[0037] The above technical solutions have the following technical effects:
[0038] In the embodiment of the present invention, through a plurality of independent light incident channels of the light passing member and the plurality of light incident channels being spaced apart from each other and intersecting each other, the divergence angle of the light beams emitted from each light outlet of the light passing member can be effectively adjusted so that their images do not overlap after imaging, that is, the bright-dark interface during imaging is relatively clear, thereby ensuring the measurement accuracy of the refractive index of the liquid and also ensuring that the calculation deviation of the liquid concentration is within a reasonable range;
[0039] In another embodiment of the present invention, for each light source group, a first coordinate axis and a second coordinate axis are respectively established based on the first bright line and the second bright line, and the specific positions of the first bright line and the second bright line are calculated by using these coordinate axes and a predefined linear equation to determine the relative distance change between them; then, by comparing the distance between the first zero point and the second zero point and the position difference between the two bright lines on their respective coordinate axes, the degree of light deflection caused by the presence of the liquid, that is, the refractive index, is calculated; further, the refractive index of the liquid to be measured is determined according to the average value of the refractive indices calculated for all light source groups, and the concentration of the liquid is calculated in combination with the liquid temperature, which not only improves the calculation accuracy of the liquid concentration, but also reduces the requirements for equipment assembly, simplifies the manufacturing process, makes the application of the multi-beam refractometer more extensive and reliable, and is especially suitable for occasions where high-precision liquid analysis is required. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a connection schematic diagram of a multi-beam refractometer according to an embodiment of the present invention;
[0041] Figure 2 Exploded view of the light transmission structure of a multi-beam refractometer according to an embodiment of the present invention;
[0042] Figure 3 Schematic flow chart of a method for measuring the concentration of a liquid according to an embodiment of the present invention;
[0043] Figure 4 Schematic diagram of a bright line and a pixel grid obtained by an imaging unit in a method for measuring the concentration of a liquid according to another embodiment of the present invention, wherein the bright line is not parallel to the pixel grid;
[0044] Figure 5 Schematic structural diagram of a device for measuring the concentration of a liquid according to another embodiment of the present invention. Detailed implementation manners
[0045] To further illustrate the embodiments, the present invention provides accompanying drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used to explain the operating principle of the embodiments in conjunction with the relevant descriptions in the specification. With reference to these contents, those of ordinary skill in the art should be able to understand other possible implementation manners and the advantages of the present invention. The components in the drawings are not drawn to scale, and similar component symbols are usually used to represent similar components.
[0046] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation manners.
[0047] Embodiment 1:
[0048] Figure 1 Schematic connection diagram of a multi-beam refractometer according to an embodiment of the present invention. As Figure 1 shown, the multi-beam refractometer includes a prism 3, a focusing lens 4, an imaging unit 5, a central processing unit 6, and the light transmission structure 100 of Embodiment 1.
[0049] The prism 3 is a trapezoidal prism, and temperature measuring instruments for detecting its temperature are respectively arranged on the other two sides of the prism 3 except for the light incident side and the light exit side. The temperature of the prism 3 is the temperature of the liquid to be measured.
[0050] The light transmission structure 100 and the focusing lens 4 are respectively arranged on the light incident side and the light exit side of the prism 3 in the left-right direction, and the imaging unit 5 is arranged on the right side of the focusing lens 4 away from the prism 3.
[0051] The output end of the imaging unit 5 is connected to the input end of the central processing unit 6, and the output end of the central processing unit 6 is connected to the input end of the LED component of the light transmission structure 100.
[0052] In this embodiment, the specific temperature measuring instrument is a thermocouple, and the specific imaging unit 5 is a color CMOS sensor, a black and white CMOS sensor, or a CCD sensor.
[0053] When detecting the liquid concentration, first drop the liquid to be measured on the upper surface of the prism 3. At this time, a contact interface is formed between the liquid and the prism 3. Then, under the control of the central processing unit 6, the LED component is made to emit light. After that, each beam from the light passing structure 100 enters from the incident side surface of the prism 3, then is reflected by the contact interface, and then each beam exits from the light-emitting side surface of the prism 3. Then, after passing through the focusing lens 4, it is irradiated on the imaging unit 5. The imaging unit 5 uses infinity imaging and transmits the imaging data signal and the measured temperature signal collected by the thermocouple to the central processing unit 6 respectively. Then, the positions of multiple bright lines (i.e., the bright-dark interface or dividing line) in the image are analyzed by the central processing unit 6 to calculate the refractive index of the liquid to be measured. Then, based on the mathematical relationship between the refractive index of the liquid to be measured and the temperature of the liquid to be measured, the concentration of the liquid to be measured is further calculated.
[0054] Of course, in other embodiments, the prism 3 can also be a triangular prism.
[0055] Preferably, Figure 2 is an exploded view of the light passing structure of a multi-beam refractometer according to an embodiment of the present invention. As Figure 2 shown, this light passing structure (hereinafter simply referred to as the light passing structure 100) is used to provide suitable detection light for the multi-beam refractometer. The light passing structure 100 includes: a light passing member 2 and three light source groups 1. The light wavelengths emitted by the three light source groups 1 are different from each other. Specifically, each light source group 1 includes four LED lights. The three light source groups 1 are electrically connected to form an LED component, and the LED component is assembled on the right side of the light source mounting plate 11.
[0056] The light passing member 2 has three independent light incident channels 21. Each light incident channel 21 has a light incident port 211 and a light emitting port 212 respectively. The three light incident ports 211 correspond to the three light source groups 1 one by one, and the three light emitting ports 212 correspond to the incident side of the prism of the refractometer. Of course, the set number of the light incident channels 21 depends on the set number of the light source groups 1 and is in a one-to-one correspondence relationship.
[0057] The three light incident channels 21 are spaced apart from each other and are arranged in a crosswise manner to adjust the divergence angle of the beams emitted from each light emitting port 212 so that they do not overlap after imaging.
[0058] In this embodiment, the light passing member 2 is provided with three light passing grooves penetrating through its opposite ends. The light passing grooves are straight grooves. The three light passing grooves are spaced apart from each other and are arranged in a crosswise manner. And the circumferential wall of the light incident channel 21 is a light shielding wall. At this time, the light passing groove is the light incident channel 21.
[0059] In specific implementation, the LED component emits three different beams with wavelength ranges of 440 - 470 nm, 515 - 540 nm, and 610 - 650 nm respectively, and the number of LED lamps corresponding to each wavelength is four. Of course, in other embodiments, the number of LED lamps for each wavelength can also be 1, two, three, or more than five.
[0060] The cross-sectional shape of the light incident channel 21 is a long and narrow rectangle. The three different light incident channels 21 are arranged at an angle to each other, and the light beams in their respective light incident channels 21 cannot enter other light incident channels 21 due to light shielding. Therefore, the light beams in their respective light incident channels 21 can be isolated from each other, that is, mutual interference is avoided.
[0061] After the light beams of the three wavelengths pass through the corresponding independent light incident channels 21 respectively, the divergence angles of the light beams emitted from the light exit ports 212 of each light incident channel 21 also change accordingly, that is, the divergence angles of the light beams emitted from each light exit port 212 are adjusted one by one, or the divergence angles of the light beams emitted from each light exit port 212 are limited one by one, so as to ensure that the images formed by the light beams of different wavelengths do not overlap.
[0062] In addition, the inner length, inner width, and inner height of each light incident channel 21 and the angle between adjacent light incident channels 21 can be obtained through optical simulation. Therefore, it can be ensured that they meet the design requirements, and the emitted light only irradiates on the upper surface side of the prism without any extra stray light, and then the images or patterns formed on the imaging unit do not overlap with each other and cover the photosensitive surface of the imaging unit.
[0063] Through the multiple mutually independent light incident channels 21 of the light passing member 2 and the fact that the multiple light incident channels 21 are spaced apart from each other and cross each other, the divergence angles of the light beams emitted from each light exit port 212 of the light passing member 2 can be effectively adjusted, so as to ensure that they do not overlap after imaging, that is, the bright-dark interface during imaging is relatively clear, and thus the measurement accuracy of the liquid refractive index can be ensured, and the calculation deviation of the liquid concentration can also be ensured within a reasonable range.
[0064] In another preferred embodiment, each light incident port 211 is respectively provided with a receiving groove 222, and a light homogenizing sheet 24 for converting the light source group 1 into a surface light source is arranged in each receiving groove 222.
[0065] In this specific embodiment, the specific light passing member 2 includes a main body 22 and a cover plate 23 that are covered with each other. Three linear grooves 221 extending in the left-right direction are respectively formed on the upper side surface of the main body 22. Three receiving grooves 222 respectively communicating with the corresponding linear grooves 221 are formed on the left side wall of the main body 22, and the right ends of the three linear grooves 221 penetrate through to the right side wall of the main body 22.
[0066] The light source mounting plate 11 is assembled with 3 light source groups 1 on the right side facing the light transmission member 2, and the LED assembly is formed through electrical connection.
[0067] When the light source mounting plate 11 is assembled to the light transmission member 2, the 3 light source groups 1 are inserted into the corresponding receiving grooves 222, and the light homogenizing sheets 24 are respectively arranged at the left slot openings of the corresponding linear slots 221. At this time, the left slot opening of the linear slot 221 is the light inlet 211, the right slot opening of the linear slot 221 is the light outlet 212, and the light homogenizing sheet 24 is located between the light source group 1 and the left slot opening of the linear slot 221. Of course, the light source mounting plate 11 can also be the circuit board of the LED assembly.
[0068] When the cover plate 23 is closed on the upper side of the main body 22, the cover plate 23 completely closes the openings on the upper side of the receiving grooves 222 and the linear slots 221 to form 3 independent light inlet channels 21 with only left and right side openings.
[0069] Of course, the main body 22, the cover plate 23, and the light source mounting plate 11 are all made of opaque light-shielding materials.
[0070] In addition, the light transmission member 2 can also form multiple light inlet channels 21 and receiving grooves 222 through an integral injection molding process.
[0071] Embodiment 2:
[0072] In order to improve the calculation accuracy of the liquid refractive index and further improve the calculation accuracy of the liquid concentration, an embodiment of the present invention provides a method for measuring the liquid concentration. Figure 3 It is a schematic flowchart of the method for measuring the liquid concentration according to an embodiment of the present invention. As Figure 3 shown, based on a multi-beam refractometer to measure the liquid concentration of the liquid to be measured, at least one thermocouple is installed on each of the front and rear surfaces of the prism of the multi-beam refractometer, including:
[0073] S1, taking the lower left corner of the first pixel grid through which the first bright line of each light source group passes from below the plane of the imaging unit as the first zero point, and establishing the first coordinate axis of each light source group;
[0074] Taking the lower left corner of the first pixel grid through which the second bright line of each light source group passes from below the plane of the imaging unit as the second zero point, and establishing the second coordinate axis of each light source group;
[0075] Then, according to the first coordinate axis and the second coordinate axis, calculate the first bright line and the second bright line of each light source group through a predefined linear equation;
[0076] The first bright line is: the brightness dividing line formed in the detection image output by the light source group through the imaging unit during initial calibration; the second bright line is: the brightness dividing line formed in the detection image output by the light source group through the imaging unit after dropping the liquid to be measured;
[0077] Among them, the linear equation is:
[0078]
[0079] Among them, i represents the number of pixel cells in any pixel cell group, j represents the number of all pixel cell groups, and i 平均 represents the average number of pixel cells in each pixel cell group, and i j represents the number of pixel cells in the j-th pixel cell group;
[0080] S2. Calculate the first distance between the first zero point and the second zero point through the number of pixel cells between the first zero point and the second zero point;
[0081] Add the first distance to the value of the first bright line on the x-axis of the first coordinate axis, and then subtract the value of the second bright line on the x-axis of the second coordinate axis to obtain the second distance between the first bright line and the second bright line;
[0082] S3. Calculate the refractive index of each light source group according to the second distance, and calculate the average value of the refractive indices of all light source groups to obtain the liquid refractive index of the liquid to be measured;
[0083] S4. Calculate the liquid concentration of the liquid to be measured according to the liquid refractive index and the liquid temperature of the liquid to be measured; among them, the liquid temperature of the liquid to be measured is obtained by calculating the average value of the temperatures measured by all thermocouples.
[0084] Regarding the problem that the bright line is not parallel to the pixel cell due to the angular deviation in the installation of the photosensitive element, which affects the calculation accuracy of the refractive index and concentration of the liquid to be measured, using the above method of the embodiment of the present invention not only improves the calculation accuracy of the measurement of the refractive index and concentration of the liquid to be measured, but also reduces the requirements for equipment assembly, and can achieve the calculation accuracy of the prior art with a sensor with a lower pixel, further improving the flexibility and economy in practical applications.
[0085] Embodiment Three:
[0086] Figure 4 In the method for measuring the liquid concentration in another embodiment of the present invention, it is a schematic diagram of the bright line and the pixel cell obtained by the imaging unit, where the bright line is not parallel to the pixel cell; among them, the attached reference numerals are: multiple first bright lines 401 obtained through initial calibration, multiple second bright lines 402 obtained through the liquid to be measured, and pixel cells 403 on the imaging unit. In order to solve such as Figure 4Regarding the problem of insufficient calculation accuracy of the concentration of the liquid to be measured due to the non - parallelism between the bright line and the pixel grid as shown, embodiments of the present invention provide a method for measuring the concentration of a liquid. This method measures the concentration of the liquid to be measured based on a multi - beam refractometer. At least one thermocouple is installed on the front and back surfaces of the prism of the multi - beam refractometer, including:
[0087] 1. Taking the lower - left corner of the first pixel grid through which the first bright line of each light source group passes from below the plane of the imaging unit as the first zero point, establish the first coordinate axis of each light source group;
[0088] Taking the lower - left corner of the first pixel grid through which the second bright line of each light source group passes from below the plane of the imaging unit as the second zero point, establish the second coordinate axis of each light source group;
[0089] Then calculate the first bright line and the second bright line of each light source group according to the first coordinate axis and the second coordinate axis through a predefined linear equation;
[0090] The first bright line is: the boundary line of the brightness mutation formed in the detection image output by the light source group through the imaging unit during initial calibration; the second bright line is: the boundary line of the brightness mutation formed in the detection image output by the light source group through the imaging unit after dropping the liquid to be measured;
[0091] Among them, the linear equation is:
[0092]
[0093] Among them, i represents the number of pixel grids in any pixel grid group, j represents the number of all pixel grid groups, i 平均 represents the average number of pixel grids in each pixel grid group, i j represents the number of pixel grids in the j - th pixel grid group;
[0094] Preferably, the columns where each pixel grid group is located in multiple pixel grid groups are different.
[0095] Preferably, the initial calibration is pure - water calibration.
[0096] Preferably, calculating the first bright line and the second bright line of each light source group according to the first coordinate axis and the second coordinate axis through a predefined linear equation includes: calculating the mean of the slope range and the mean of the intercept range of the linear equation, and determining the first bright line of each light source group on the first coordinate axis and the second bright line on the second coordinate axis.
[0097] 2. Calculate the first distance between the first zero point and the second zero point through the number of pixel grids between the first zero point and the second zero point;
[0098] Add the first distance to the value of the first bright line on the x-axis of the first coordinate axis, and then subtract the value of the second bright line on the x-axis of the second coordinate axis to obtain the second distance between the first bright line and the second bright line;
[0099] Preferably, the number of pixel grids between the first zero point and the second zero point calculates the first distance between the first zero point and the second zero point, including: calculating the number of pixel grids between the first zero point and the second zero point, and calculating the first distance between the first zero point and the second zero point through the number of pixel grids and the predetermined size of each pixel grid.
[0100] 3. Calculate the refractive index of each light source group according to the second distance, and calculate the average value of the refractive indices of all light source groups to obtain the liquid refractive index of the liquid to be measured;
[0101] 4. Calculate the liquid concentration of the liquid to be measured according to the liquid refractive index and the liquid temperature of the liquid to be measured; wherein, the liquid temperature of the liquid to be measured is obtained by calculating the average value of the temperatures measured by all thermocouples.
[0102] In a specific embodiment, the first range of the first bright line of each light source group and the second range of the second bright line of each light source group are calculated by a linear equation according to each bright line passing through multiple pixel grid groups in the corresponding coordinate axis; when the first range or the second range is the range between the zero point (0, 0) and the predetermined point (0, 1), the first range or the second range is:
[0103]
[0104] d represents the first range or the second range.
[0105] Preferably, when k takes the minimum value, the first range or the second range is the maximum value, that is, the maximum deviation value of the position of the corresponding first bright line or second bright line, where,
[0106]
[0107] d max represents the maximum value of the first range or the second range, and D represents the number of longitudinal pixel grids.
[0108] According to historical experimental data, let D = 1000, 2 ≤ j ≤ 20, then d max is 1 / 50 to 1 / 500 pixel grid widths, and the existing distance calculation accuracy is 1 pixel grid. Therefore, through the method of the embodiment of the present invention, the calculation accuracy of the liquid concentration to be measured is greatly improved, and the existing calculation accuracy can be achieved by a cmos sensor with a lower number of pixels.
[0109] Example 4:
[0110] The present invention also provides a device for measuring the concentration of a liquid, such as Figure 5 shown. The device includes a processor 501, a memory 502, a bus 503, and a computer program stored in the memory 502 and executable on the processor 501. The processor 501 includes one or more processing cores. The memory 502 is connected to the processor 501 through the bus 503. The memory 502 is used to store program instructions. When the processor 501 executes the computer program, the steps in the above method embodiment of Embodiment 1 of the present invention are implemented.
[0111] Further, as an executable solution, the device for measuring the concentration of a liquid may be a computer unit, and the computer unit may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The computer unit may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above composition structure of the computer unit is only an example of the computer unit and does not constitute a limitation on the computer unit. It may include more or fewer components than the above, or combine some components, or different components. For example, the computer unit may further include input / output devices, network access devices, a bus, etc. The embodiments of the present invention do not make any limitations in this regard.
[0112] Further, as an executable solution, the so-called processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The processor is the control center of the computer unit and connects various parts of the entire computer unit through various interfaces and lines.
[0113] The memory can be used to store the computer program and / or modules. By running or executing the computer program and / or modules stored in the memory, and calling the data stored in the memory, the processor realizes various functions of the computer unit. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store the operating system and application programs required for at least one function; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disks, memory, plug-in hard disks, smart media cards (SMC), secure digital (SD) cards, flash cards, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
[0114] Embodiment Five:
[0115] The present invention also provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements the steps of the method in the above embodiments of the present invention.
[0116] If the modules / units integrated in the computer unit are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above embodiment methods of the present invention, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0117] Embodiment Six:
[0118] The present invention also provides a computer program product including a computer program, which when executed by a processor, implements the steps of the method as described above.
[0119] Although the present invention has been specifically shown and described in connection with preferred embodiments, those skilled in the art should understand that various changes in form and detail may be made to the present invention without departing from the spirit and scope of the present invention as defined by the appended claims, and all such changes are within the scope of protection of the present invention.
Claims
1. A multi-beam refractometer, characterized in that: include: A light transmission structure, a prism, a focusing lens, an imaging unit and a central processing unit, wherein: The light-transmitting structure and the focusing lens are respectively arranged on the light-entry side and the light-exit side of the prism, and the imaging unit is arranged on the side of the focusing lens away from the prism; The light-through structure includes a light-through component and a plurality of light source groups, wherein the wavelengths of light emitted by the plurality of light source groups are different from each other; the light-through component has a plurality of independent light-inlet channels, each of which has a light-inlet port and a light-outlet port, the plurality of light-inlet ports correspond to the plurality of light source groups one by one, and the light-outlet ports correspond to the light-inlet side of the prism of the refractometer; the plurality of light-inlet channels are spaced apart from each other and arranged crosswise to adjust the divergence angles of the light beams emitted by the respective light-outlet ports so that they do not overlap each other after imaging; The prism is provided with a thermometer for detecting its temperature; The output end of the imaging unit is connected to the input end of the central processing unit, and the output end of the central processing unit is connected to the input end of the light source group of the light-transmitting structure.
2. The multi-beam refractometer according to claim 1, characterized in that: Also includes one or more of the following: The prism is a triangular prism or a trapezoidal prism; the temperature measuring instrument is a thermocouple; The imaging unit is a color CMOS sensor, a black-and-white CMOS sensor or a CCD sensor.
3. The multi-beam refractometer according to claim 1, characterized in that: The customs clearance structure also includes one or more of the following: The light source group includes LED lamps, and a plurality of light source groups are electrically connected to form an LED assembly; The light-through member is provided with a plurality of light-through slots penetrating through two opposite ends thereof, and the plurality of light-through slots are arranged at intervals and cross-arranged with each other; the light-through slots are the light-incoming channels; The light-through groove is a straight groove; A light source mounting plate is arranged on a side of the light passing member away from the light outlet thereof, and the light source assembly is mounted on a side of the light source mounting plate facing the light passing member; The light entrance of the light-through slot is provided with a receiving slot, and a light-homogenizing sheet is provided in the receiving slot; when the light source mounting plate is assembled on the light-through piece, the light source group is inserted into the corresponding receiving slot, and the light-homogenizing sheet is used to convert the light source group into a surface light source; The circumferential wall of the light entrance channel is a light shielding wall.
4. A method for measuring liquid concentration, based on the multi-beam refractometer according to any one of claims 1 to 3, wherein at least one thermocouple is installed on the front and back sides of the prism of the multi-beam refractometer, characterized in that: include: S1, taking the lower left corner of the first pixel grid where the first bright line of each light source group passes through the plane of the imaging unit as the first zero point, establishing the first coordinate axis of each light source group; Taking the lower left corner of the first pixel grid where the second bright line of each light source group passes below the plane of the imaging unit as the second zero point, a second coordinate axis of each light source group is established; Then, calculating a first bright line and a second bright line of each light source group according to the first coordinate axis and the second coordinate axis by using a predefined linear equation; The first bright line is: a brightness boundary line formed by each light source group in the detection image output by the imaging unit during initial calibration; the second bright line is: a brightness boundary line formed by each light source group in the detection image output by the imaging unit after the liquid to be tested is dropped; Wherein, the linear equation is: Where i represents the number of pixels in any pixel grid group, j represents the number of all pixel grid groups, and i 平均 represents the average number of pixels in each pixel group, i j represents the number of pixels in the jth pixel grid group; S2, calculating a first distance between the first zero point and the second zero point according to the number of pixel grids between the first zero point and the second zero point; Add the first distance to the value of the first bright line on the x-axis of the first coordinate axis, and subtract the value of the second bright line on the x-axis of the second coordinate axis to obtain a second distance between the first bright line and the second bright line; S3, calculating the refractive index of each light source group according to the second distance, and calculating the average refractive index of all light source groups to obtain the liquid refractive index of the liquid to be tested; S4, calculating the liquid concentration of the liquid to be measured according to the liquid refractive index and the liquid temperature of the liquid to be measured; wherein the liquid temperature of the liquid to be measured is obtained by calculating the average value of the temperatures measured by all thermocouples.
5. The method for measuring liquid concentration according to claim 1, characterized in that: In step S1 , each pixel grid group in the plurality of pixel grid groups is located in a different column.
6. The method for measuring liquid concentration according to claim 1, characterized in that: In step S1, the initial calibration is pure water calibration.
7. The method for measuring liquid concentration according to claim 1, characterized in that: In step S1, the first bright line and the second bright line of each light source group are calculated according to the first coordinate axis and the second coordinate axis by using a predefined linear equation, including: The mean of the slope range and the mean of the intercept range of the linear equation are calculated to determine a first bright line on the first coordinate axis and a second bright line on the second coordinate axis of each light source group.
8. A device for measuring liquid concentration, characterized in that: The method comprises a memory and a processor, wherein the memory stores at least one program, and the at least one program is executed by the processor to implement the method for measuring liquid concentration as claimed in any one of claims 4 to 7.
9. A computer-readable storage medium, characterized in that: At least one program is stored in the storage medium, and the at least one program is executed by the processor to implement the method for measuring liquid concentration as described in any one of claims 4 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for measuring liquid concentration as claimed in any one of claims 4 to 7 is implemented.