A liquid refractive index measurement method, device, system and readable storage medium
By generating a target light spot on the camera imaging surface and reading the current value of the electronically controlled zoom lens, and combining this with the width of the cuvette liquid trough to calculate the liquid refractive index, the problem of large measurement error in the prior art is solved, and high-precision and convenient liquid refractive index measurement is achieved.
Patent Information
- Application Number
- CN202211404887.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-10
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2042-11-10
AI Technical Summary
Existing methods for measuring the refractive index of liquids suffer from large measurement errors and cumbersome operation.
By controlling the laser to emit a laser beam to generate a target spot on the camera's imaging surface, reading the target current value of the electronically controlled zoom lens, and combining this with the width of the cuvette's liquid trough to calculate the refractive index of the liquid being tested, errors caused by camera movement are avoided.
It achieves high-precision liquid refractive index measurement, reduces errors, and improves ease of operation.
Smart Images

Figure CN115711865B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of refractive index measurement technology, and in particular to a liquid refractive index measurement method, apparatus, system, and readable storage medium. Background Technology
[0002] Refractive index is one of the important optical parameters reflecting the properties of a material. The measurement of liquid refractive index is widely used in food, pharmaceutical, and chemical industries, and is a commonly used process control indicator. Common methods for measuring refractive index include the Abbe method, V-prism method, interferometry, and refraction method. Among these, the refraction method utilizes the principle of parallel plate imaging. An incident beam with an arbitrary angle to the plate passes through a parallel plate containing liquids with different refractive indices, resulting in different axial displacements of the outgoing light. The refractive index of the liquid being measured is calculated by calculating these axial displacements. Axial displacement is typically obtained by moving the camera and observing changes in the focused spot position. However, this method requires camera movement, has a large error in calculating the axial displacement, and the mechanical movement affects the stability of the measurement system. Summary of the Invention
[0003] The main objective of this invention is to provide a liquid refractive index measurement method, apparatus, system, and readable storage medium, which can at least solve the problems of large liquid refractive index measurement errors and cumbersome operation in related technologies.
[0004] To achieve the above objectives, a first aspect of the present invention provides a method for measuring the refractive index of a liquid, applied to a liquid refractive index measurement system. The liquid refractive index measurement system includes a laser, an electrically controlled zoom lens, a cuvette, and a camera. The method includes:
[0005] After detecting that the user has poured the liquid to be tested into the cuvette's liquid tank, the laser is controlled to emit a laser beam toward the camera;
[0006] When the laser emitted by the laser generates a target spot on the imaging surface of the camera, the target current value of the electronically controlled zoom lens is read.
[0007] Calculate the refractive index of the liquid to be tested by combining the target current value and the width of the cuvette's liquid trough.
[0008] A second aspect of this application provides a liquid refractive index measuring device, applied to a liquid refractive index measuring system. The liquid refractive index measuring system includes a laser, an electrically controlled zoom lens, a cuvette, and a camera, comprising:
[0009] The emission module is used to control the laser to emit a laser towards the camera after detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette;
[0010] The reading module is used to read the target current value of the electronically controlled zoom lens when the laser emitted by the laser generates a target spot on the imaging surface of the camera;
[0011] The calculation module is used to calculate the refractive index of the liquid to be tested by combining the target current value and the width of the cuvette's liquid trough.
[0012] A third aspect of this application provides a liquid refractive index measurement system, comprising: a laser, a beam expander lens, a collimating lens, an electrically controlled zoom lens, a cuvette, a camera, a memory, and a processor. The laser emits a laser beam; the beam expander expands the laser beam emitted by the laser; the collimating lens collimates the expanded laser beam; the electrically controlled zoom lens converts the expanded and collimated laser beam into a converging beam; the cuvette holds the liquid to be measured; the camera generates a target light spot; and the processor executes a computer program stored in the memory. When the processor executes the computer program, it implements the steps of the liquid refractive index measurement method provided in the first aspect of this application.
[0013] The fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the steps of the liquid refractive index measurement method provided in the first aspect of this application.
[0014] As can be seen from the above, according to the liquid refractive index measurement method, apparatus, system, and readable storage medium provided in this application, after detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette, the laser is controlled to emit a laser beam towards the camera; when the laser beam emitted by the laser generates a target spot on the imaging surface of the camera, the target current value of the electronically controlled zoom lens is read; combined with the target current value and the width of the liquid tank of the cuvette, the refractive index of the liquid to be tested is calculated. Through the implementation of this application, without moving the camera, the laser beam emitted by the laser is controlled to generate a target spot on the imaging surface of the camera, and the refractive index of the liquid to be tested is accurately calculated based on the target current value of the electronically controlled zoom lens when the target spot is obtained. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a basic flowchart illustrating a liquid refractive index measurement method provided in the first embodiment of the present invention.
[0017] Figure 2 This is a schematic diagram showing the relative positions of a liquid refractive index measuring device according to the first embodiment of the present invention;
[0018] Figure 3 This is a current-focal length relationship curve provided in the first embodiment of the present invention;
[0019] Figure 4 This is a schematic diagram of the verification experiment results provided in the first embodiment of the present invention;
[0020] Figure 5 A detailed flowchart illustrating a liquid refractive index measurement method provided in the first embodiment of the present invention;
[0021] Figure 6 A schematic diagram of the program modules of the liquid refractive index measuring device provided in the third embodiment of this application;
[0022] Figure 7 This is a schematic diagram of the liquid refractive index measurement system provided in the fourth embodiment of this application. Detailed Implementation
[0023] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0024] In the description of the embodiments of this application, it should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. They are only for the convenience of describing the embodiments of this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting the present invention.
[0025] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0026] In the embodiments of this application, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0027] The first embodiment of this application provides a method for measuring the refractive index of a liquid, which is applied to a liquid refractive index measurement system. For example... Figure 1 This is a basic flowchart illustrating the liquid refractive index measurement method provided in this embodiment. The liquid refractive index measurement method includes the following steps:
[0028] Step 101: After detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette, control the laser to emit a laser beam towards the camera.
[0029] Specifically, in this embodiment, the camera can be a CMOS (Daheng, MER-500-14GM / C) camera. After detecting that the user has injected a certain amount of the liquid to be tested into the cuvette's liquid reservoir, the laser is controlled to emit a laser. In some embodiments of this embodiment, after detecting that the user has injected the liquid to be tested into the cuvette's liquid reservoir, it is determined whether the volume of the liquid to be tested injected by the user into the cuvette exceeds a preset threshold. If the determination result is that the volume of the liquid to be tested injected by the user into the cuvette exceeds the preset threshold, an alarm is issued or an operation error reminder message is sent to the user terminal.
[0030] In one embodiment of this invention, the liquid refractive index measurement system includes a laser, a beam expander lens, a collimating lens, an electrically controlled zoom lens, a cuvette, and a camera. The laser emitted by the laser sequentially passes through the beam expander lens and the collimating lens, transforming into a parallel beam. The parallel beam then passes through the electrically controlled zoom lens, transforming into a converging beam. The converging beam passes through the cuvette and reaches the camera. Further, before the step of reading the target current value of the electrically controlled zoom lens when the laser emitted by the laser generates a target spot on the imaging surface of the camera, the system further includes: when the parallel beam is detected to reach the electrically controlled zoom lens, controlling the electrically controlled zoom lens to transform the parallel beam into a target converging beam focused on the imaging surface of the camera; determining the spot generated by the target converging beam on the imaging surface as the target spot; and determining the current value of the electrically controlled zoom lens when the target spot is generated as the target current value.
[0031] Specifically, an electrically controlled zoom lens (ETL) is a type of liquid lens. Its basic principle is to change the distribution or shape of the liquid by controlling its external driving current, thereby changing the optical power and achieving a zoom effect. The electrically controlled zoom lens used in this embodiment is model EL-10-30-Ci-VIS-LD-MV, with a current output range of 0mA to 292mA. The laser in this embodiment can be a He-Ne laser. Figure 2 This is a schematic diagram of the relative positions of a physical device provided in this embodiment. The laser, beam expander lens, collimating lens, electronically controlled zoom lens, cuvette, and camera are located on the same horizontal plane. After the laser emits a beam of light of a preset wavelength horizontally, the beam is expanded and collimated by the beam expander lens and the collimating lens to generate a parallel beam. The parallel beam is transformed into a converging beam after passing through the electronically controlled zoom lens. The converging beam is deflected at a certain angle when passing through the cuvette (the factors causing the deflection include the cuvette itself and the liquid to be tested), and finally reaches the camera and generates a light spot on the imaging surface of the camera.
[0032] In one embodiment of this example, the step of controlling the electronically controlled zoom lens to transform a parallel beam into a target converging beam focused on the imaging surface of the camera includes: after the electronically controlled zoom lens transforms the parallel beam into an initial converging beam, obtaining the spot radius corresponding to the initial spot generated by the initial converging beam on the imaging surface of the camera; determining whether the initial converging beam is focused on the imaging surface of the camera based on the spot radius; and determining the initial converging beam as the target converging beam when the initial converging beam is focused on the imaging surface of the camera.
[0033] In one embodiment of this example, the step of determining whether the initial converging beam is focused on the imaging surface of the camera based on the spot radius includes: comparing the spot radius with a preset minimum equivalent spot radius; when the spot radius is less than or equal to the preset minimum equivalent spot radius, determining that the initial converging beam is focused on the imaging surface of the camera; when the spot radius is greater than the preset minimum equivalent spot radius, determining that the initial converging beam is focused outside the imaging surface of the camera.
[0034] Specifically, when the converging beam generates a spot on the camera's imaging surface, the CMOS sensor records the generated spot on the camera plane, and the changes in the image are observed through the Galaxy Viewer software to obtain the corresponding spot radius. When the spot radius corresponding to the initial spot on the camera's imaging surface is less than or equal to a preset minimum equivalent spot radius, the position of the initial spot can be determined as the equivalent focal point corresponding to the initial converging beam. That is, it is determined that the initial converging beam is focused on the camera's imaging surface, and the focal point coincides with the initial spot generated on the camera's imaging surface. This initial spot can then be identified as the target spot.
[0035] In one embodiment of this example, after the step of determining whether the initial converging beam is focused on the imaging surface of the camera based on the spot radius, the method further includes: when the initial converging beam is focused outside the imaging surface of the camera, adjusting the current value of the electronically controlled zoom lens to move the focal point corresponding to the converging beam toward the imaging surface of the camera; when the focal point moves to the imaging surface of the camera, determining the converging beam corresponding to the focal point as the target converging beam.
[0036] Specifically, the electronically controlled zoom lens in this embodiment can be an electronically controlled zoom lens with built-in Lens Driver Controller software, which can adjust the current value of the electronically controlled zoom lens. When the initial spot radius is greater than the preset minimum equivalent spot radius, it indicates that the initial converging beam is focused outside the camera's imaging plane. After determining that the initial converging beam is focused outside the camera's imaging plane, it is further determined whether the initial converging beam is focused within the area between the camera's imaging plane and the electronically controlled zoom lens. If the initial converging beam is focused within the area between the camera's imaging plane and the electronically controlled zoom lens, it indicates that the current focal length of the electronically controlled zoom lens is too small. It is necessary to reduce the current value to control the electronically controlled zoom lens to increase the focal length value so that the converging beam is focused on the camera's imaging plane. The spot generated by the converging beam on the camera's imaging plane is determined as the target spot. (In actual application, while gradually reducing the current value, the spot radius corresponding to the spot generated on the camera's imaging plane is obtained in real time. When the spot radius is detected to be less than or equal to the preset minimum equivalent spot radius, the current value of the electronically controlled zoom lens is controlled to stop changing, and the spot generated by the converging beam on the camera's imaging plane is determined as the target spot.) Conversely, if the initial converging beam is not focused in the area between the camera's imaging surface and the electronically controlled zoom lens, the current value is increased to control the electronically controlled zoom lens to decrease the focal length value, so that the converging beam is focused on the camera's imaging surface, and the light spot generated by the converging beam on the camera's imaging surface is determined as the target light spot.
[0037] Step 102: When the laser emitted by the laser generates the target spot on the imaging surface of the camera, read the target current value of the electronically controlled zoom lens.
[0038] Specifically, when the radius of the light spot generated on the imaging surface of the camera is less than or equal to the preset minimum equivalent light spot radius, the current value corresponding to the electronically controlled zoom lens is read and the current value is determined as the target current value.
[0039] Step 103: Calculate the refractive index of the liquid to be tested by combining the target current value and the width of the cuvette's liquid trough.
[0040] Specifically, the distance between the two transparent glass panes of the liquid reservoir wall of the cuvette. In this embodiment, the width of the liquid reservoir can be measured using calipers or other length measuring tools, and then substituted into the calculation formula. Alternatively, the liquid reservoir widths of different cuvette sizes can be pre-stored in the system database. When the system performs refractive index measurement, it directly retrieves the corresponding liquid reservoir width value from the database based on the size of the cuvette selected by the user for calculation.
[0041] In one embodiment of this invention, before calculating the refractive index of the liquid to be tested by combining the target current value and the width of the cuvette's liquid trough, the method further includes: controlling a laser to emit a laser beam towards the imaging surface of a camera when the cuvette is not filled with the liquid to be tested; when the laser beam emitted by the laser generates a target spot on the imaging surface of the camera, reading the reference current value of the electronically controlled zoom lens; substituting the reference current value into a first calculation formula to calculate the reference focal length value for the reference current value, the first calculation formula being expressed as:
[0042] f = 6 × 10 7 X 4 -0.0005X 3 +0.1695X 2 -23.149X+1206
[0043] Where X represents the current value and f represents the focal length value.
[0044] The steps described above for calculating the refractive index of the liquid to be tested by combining the target current value and the width of the cuvette's liquid trough include: calculating the refractive index of the liquid to be tested by combining the target current value, the width of the cuvette's liquid trough, and the reference focal length value.
[0045] Specifically, the first calculation formula mentioned above is a conversion formula between the current value and the focal length value of the electronically controlled zoom lens. Within the range of the current of the electronically controlled zoom lens, the corresponding focal length value can be calculated using the first calculation formula for each set current value. To confirm the accuracy of the first calculation formula, the focal length value of the electronically controlled zoom lens corresponding to different currents can be measured using a direct measurement method. That is, based on the lens imaging principle, a parallel beam of light is perpendicularly irradiated onto the electronically controlled zoom lens and converged to the focal point. The focal length position of the electronically controlled zoom lens under different current driving conditions is moved and recorded using CMOS. Combined with the spot radius obtained using Galaxy View software, the corresponding focal length value is measured. Furthermore, a graph is plotted with the current value on the x-axis and the focal length value on the y-axis, as shown below. Figure 3 The current-focal length relationship curve shown indicates that... Figure 3 The coordinate parameters of each point satisfy the first calculation formula mentioned above.
[0046] In another embodiment of this example, the system pre-stores the reference focal length values of cuvettes of different sizes when they are not filled with liquid. After determining the specification parameters of the cuvette selected by the user for measuring the liquid to be tested, the reference focal length value corresponding to the cuvette is directly retrieved from the memory.
[0047] In one embodiment of this invention, the step of calculating the refractive index of the liquid to be tested by combining the target current value, the width of the cuvette's liquid trough, and the reference focal length value includes: substituting the target current value into a first calculation formula to obtain a target focal length value corresponding to the target current value; and substituting the target focal length value, the width of the cuvette's liquid trough, and the reference focal length value into a second calculation formula to calculate the refractive index of the liquid to be tested. The second calculation formula is expressed as follows:
[0048]
[0049] Where f1 represents the reference focal length, f2 represents the target focal length, Δσ2 represents the focal length shift caused by the laser emitted by the laser passing through the liquid under test, and n represents the refractive index of the liquid under test.
[0050] Based on the technical solution of the above-described embodiments of this application, after detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette, the laser is controlled to emit a laser beam towards the camera; when the laser beam emitted by the laser generates a target spot on the imaging surface of the camera, the target current value of the electronically controlled zoom lens is read; combined with the target current value and the width of the liquid tank of the cuvette, the refractive index of the liquid to be tested is calculated. Through the implementation of the solution of this application, without moving the camera, the laser beam emitted by the laser is controlled to generate a target spot on the imaging surface of the camera, and the refractive index of the liquid to be tested is accurately calculated based on the target current value of the electronically controlled zoom lens when the target spot is obtained.
[0051] Furthermore, to verify the accuracy of the refractive index measurement method provided in this application, the refractive indices of water, oil, and 75% alcohol were measured using the method provided in this application, and the refractive indices of water, oil, and 75% alcohol were calibrated using an Abbe refractometer, thereby obtaining the following results: Figure 4 The diagram shows the verification experiment results. From... Figure 4 The data results show that, compared with the refractive index measured by the method provided in this application, the relative errors of the refractive index measurements for water, 75% alcohol, and blended oil are 0.0037, 0.0046, and 0.0097, respectively. This indicates that the relative error between the refractive index measured by the system and the refractive index measured by the Abbe refractometer is small, and the measurement method provided in this application can accurately measure the refractive index of liquids.
[0052] Figure 5The method described in the second embodiment of this application is a refined method for measuring the refractive index of a liquid. It is applied to a liquid refractive index measurement system, which includes a laser, an electrically controlled zoom lens, a cuvette, and a camera. The method for measuring the refractive index of a liquid includes:
[0053] 501. After detecting that the user has injected the liquid to be tested into the cuvette's liquid tank, obtain the width of the cuvette's liquid tank and the corresponding reference focal length value of the cuvette, and control the laser to emit a laser to the camera.
[0054] 502. Based on the conversion relationship between the current value of the electronically controlled zoom lens and the focal length of the electronically controlled zoom lens, the electronically controlled zoom lens is controlled to transform the parallel beam into a target converging beam focused on the imaging surface of the camera.
[0055] Specifically, the radius of the light spot generated by the camera's imaging surface is used to determine whether the converging beam will converge on the camera's imaging surface. When the converging beam is focused outside the camera's imaging surface, the current value of the electronically controlled zoom lens is adjusted so that the focal point corresponding to the converging beam moves toward the camera's imaging surface. When the light spot radius is greater than the preset minimum equivalent light spot radius, it is determined that the focal point has moved to the camera's imaging surface, and the converging beam corresponding to the focal point is then identified as the target converging beam.
[0056] 503. The spot generated by the convergent beam on the imaging surface is defined as the target spot, and the current value of the electronically controlled zoom lens when the target spot is generated is defined as the target current value.
[0057] 504. Substitute the target current value into the first calculation formula to calculate the target focal length value corresponding to the target current value.
[0058] Specifically, there is a conversion relationship between the current value and the focal length of the electronically controlled zoom lens, as shown in the first calculation formula, which is expressed as follows:
[0059] f = 6 × 10 7 X 4 -0.0005X 3 +0.1695X 2 -23.149X+1206
[0060] Where X represents the current value and f represents the focal length value.
[0061] 505. Substitute the target focal length, the width of the cuvette's liquid trough, and the reference focal length into the second calculation formula to calculate the refractive index of the liquid to be tested.
[0062] Specifically, the second calculation formula is expressed as follows:
[0063]
[0064] Where f1 represents the reference focal length, f2 represents the target focal length, Δσ2 represents the focal length shift caused by the laser emitted by the laser passing through the liquid under test, and n represents the refractive index of the liquid under test.
[0065] 506. Output the refractive index of the liquid to be tested.
[0066] It should be understood that the sequence number of each step in this embodiment does not imply the order in which the steps are executed. The execution order of each step should be determined by its function and internal logic, and should not constitute a unique limitation on the implementation process of this application embodiment.
[0067] By implementing the above-described liquid refractive index measurement method, the current adjustment of the focal length of the electronically controlled zoom lens is controlled to focus the light beam passing through the liquid to be measured onto the imaging surface of the camera. At the same time, the corresponding target current value is read, and the corresponding target focal length value is calculated based on the target current value. Furthermore, the refractive index of the liquid to be measured is directly calculated from the target focal length value. This avoids the error caused by adjusting the camera or other devices to make the focus fall on the imaging surface of the camera when using traditional methods. This not only reduces the measurement error of liquid refractive index, but also improves the ease of operation of liquid refractive index measurement.
[0068] Figure 6 A liquid refractive index measuring device is provided in the third embodiment of this application, applied to a liquid refractive index measuring system, which includes a laser, an electrically controlled zoom lens, a cuvette, and a camera. This liquid refractive index measuring device can be applied to the aforementioned liquid refractive index measuring method. Figure 7 As shown, the liquid refractive index measuring device mainly includes:
[0069] The emission module is used to control the laser to emit a laser towards the camera after detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette;
[0070] The reading module is used to read the target current value of the electronically controlled zoom lens when the laser emitted by the laser generates a target spot on the imaging surface of the camera;
[0071] The calculation module is used to calculate the refractive index of the liquid to be tested by combining the target current value and the width of the cuvette's liquid trough.
[0072] In some embodiments of this example, the liquid refractive index measurement system further includes a beam expander and a collimating lens; the laser emitted by the laser passes sequentially through the beam expander and collimating lens to be converted into a parallel beam, the parallel beam passes through an electrically controlled zoom lens to be converted into a converging beam, and the converging beam passes through a cuvette to reach the camera. The liquid refractive index measurement device also includes a determination module, which is specifically used to: when the parallel beam is detected to reach the electrically controlled zoom lens, control the electrically controlled zoom lens to convert the parallel beam into a target converging beam focused on the imaging surface of the camera; determine the light spot generated by the target converging beam on the imaging surface as the target light spot, and determine the current value of the electrically controlled zoom lens when the target light spot is generated as the target current value.
[0073] Furthermore, in some embodiments of this example, when the aforementioned determining module performs the function of controlling the electronically controlled zoom lens to transform the parallel beam into a target converging beam focused on the imaging surface of the camera, it is specifically used to: after the electronically controlled zoom lens transforms the parallel beam into an initial converging beam, obtain the spot radius corresponding to the initial spot generated by the initial converging beam on the imaging surface of the camera; determine whether the initial converging beam is focused on the imaging surface of the camera based on the spot radius; when the initial converging beam is focused on the imaging surface of the camera, the initial converging beam is determined to be the target converging beam.
[0074] Furthermore, in some embodiments of this example, when the above-mentioned determining module performs the function of determining whether the initial converging beam is focused on the imaging surface of the camera based on the spot radius, it is specifically used to: compare the spot radius with a preset minimum equivalent spot radius; when the spot radius is less than or equal to the preset minimum equivalent spot radius, determine that the initial converging beam is focused on the imaging surface of the camera; when the spot radius is greater than the preset minimum equivalent spot radius, determine that the initial converging beam is focused outside the imaging surface of the camera.
[0075] Furthermore, in some other embodiments of this example, after determining whether the initial converging beam is focused on the imaging surface of the camera, the determination module is further configured to: when the initial converging beam is focused outside the imaging surface of the camera, adjust the current value of the electronically controlled zoom lens to move the focal point corresponding to the converging beam toward the imaging surface of the camera; when the focal point moves to the imaging surface of the camera, determine the converging beam corresponding to the focal point as the target converging beam.
[0076] In some other embodiments of this example, the reading module is further used to: read the reference current value of the electronically controlled zoom lens when the laser emitted by the laser generates a target light spot on the imaging surface of the camera and the cuvette does not contain the liquid to be tested.
[0077] In other embodiments of this example, the calculation module is specifically used to: substitute the reference current value into the first calculation formula to calculate the reference focal length value for the reference current value, wherein the first calculation formula is expressed as:
[0078] f = 6 × 10 7 X 4 -0.0005X 3 +0.1695X 2 -23.149X+1206
[0079] Where X represents the current value and f represents the focal length. The target current value is substituted into the first calculation formula to obtain the target focal length value corresponding to the target current value; the target focal length value, the width of the cuvette's liquid trough, and the reference focal length value are substituted into the second calculation formula to calculate the refractive index of the liquid to be tested. The second calculation formula is expressed as:
[0080]
[0081] Where f1 represents the reference focal length, f2 represents the target focal length, Δσ2 represents the focal length shift caused by the laser emitted by the laser passing through the liquid under test, and n represents the refractive index of the liquid under test.
[0082] According to the liquid refractive index measuring device provided in this embodiment, after detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette, the laser is controlled to emit a laser beam towards the camera; when the laser beam emitted by the laser generates a target spot on the imaging surface of the camera, the target current value of the electronically controlled zoom lens is read; combined with the target current value and the width of the liquid tank of the cuvette, the refractive index of the liquid to be tested is calculated. Through the implementation of this application solution, without moving the camera, the laser beam emitted by the laser is controlled to generate a target spot on the imaging surface of the camera, and the refractive index of the liquid to be tested is accurately calculated based on the target current value of the electronically controlled zoom lens when the target spot is obtained.
[0083] Figure 7 This application provides a liquid refractive index measurement system according to a fourth embodiment. This system can be used to implement the liquid refractive index measurement method described in the foregoing embodiments, and mainly includes: a laser 701, a beam expander lens 702, a collimating lens 703, an electrically controlled zoom lens 704, a cuvette 705, a camera 706, a memory 707, and a processor 708, wherein:
[0084] A laser 701 is used to emit laser light; a beam expander 702 is used to expand the laser light emitted by the laser; a collimating lens 703 is used to collimate the expanded laser light; an electrically controlled zoom lens 704 is used to convert the expanded and collimated laser beam into a converging beam; a cuvette 705 is used to hold the liquid to be tested; a camera 706 is used to generate the target light spot; a computer program 709 is stored in a memory 707, which can run on a processor 708. The memory 707 and the processor 708 are connected through communication. When the processor 708 executes the computer program 709, it implements the method in the first or second embodiment described above. The number of processors can be one or more.
[0085] The memory 707 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk drive. The memory 707 is used to store executable program code, and the processor 708 is coupled to the memory 707.
[0086] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the aforementioned electronic device, and the computer-readable storage medium may be as described above. Figure 7 The memory in the illustrated embodiment.
[0087] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the liquid refractive index measurement method described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be a USB flash drive, a portable hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk, or any other medium capable of storing program code.
[0088] It should be understood that the structural diagram of the liquid refractive index measurement system provided in this embodiment is only used to show the device composition and some communication connection relationships in the liquid refractive index measurement system, and does not limit the specific installation location of each device or equipment.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0090] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0091] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0092] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0093] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0094] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0095] The above is a description of a liquid refractive index measurement method, apparatus, system, and readable storage medium provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for measuring the refractive index of a liquid, characterized in that, An application is made in a liquid refractive index measurement system, the liquid refractive index measurement system comprising a laser, an electrically controlled zoom lens, a cuvette, and a camera, and the liquid refractive index measurement method comprising: When the cuvette is not filled with the liquid to be tested, the laser is controlled to emit a laser beam toward the imaging surface of the camera; When the laser emitted by the laser generates a target light spot on the imaging surface of the camera, the reference current value of the electronically controlled zoom lens is read. Substituting the reference current value into the first calculation formula, the reference focal length value for the reference current value is calculated. The first calculation formula is expressed as follows: f=6×10 7 X 4 -0.0005X 3 +0.1695X 2 -23.149X+1206 Where X represents the current value and f represents the focal length value. After detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette, the laser is controlled to emit a laser beam toward the camera; When the laser emitted by the laser generates a target spot on the imaging surface of the camera, the target current value of the electronically controlled zoom lens is read. Substitute the target current value into the first calculation formula to calculate the target focal length value corresponding to the target current value; Substituting the target focal length, the width of the cuvette's liquid trough, and the reference focal length into the second calculation formula, the refractive index of the liquid to be tested is calculated. The second calculation formula is expressed as follows: Where f1 represents the reference focal length, f2 represents the target focal length, Δσ2 represents the focal length shift caused by the laser emitted by the laser passing through the liquid under test, and n represents the refractive index of the liquid under test.
2. The liquid refractive index measurement method according to claim 1, characterized in that, The liquid refractive index measurement system further includes a beam expander and a collimating lens; the laser emitted by the laser passes sequentially through the beam expander and the collimating lens to be converted into a parallel beam, the parallel beam passes through the electronically controlled zoom lens to be converted into a converging beam, and the converging beam passes through the cuvette to reach the camera; Before the step of reading the target current value of the electronically controlled zoom lens when the laser emitted by the laser generates a target spot on the imaging surface of the camera, the method further includes: When the parallel beam is detected to arrive at the electronically controlled zoom lens, the electronically controlled zoom lens is controlled to transform the parallel beam into a target converging beam focused on the imaging surface of the camera; The spot generated by the target converging beam on the imaging surface is defined as the target spot, and the current value of the electronically controlled zoom lens when the target spot is generated is defined as the target current value.
3. The liquid refractive index measurement method according to claim 2, characterized in that, The step of controlling the electronically controlled zoom lens to transform the parallel beam into a target converging beam focused on the imaging plane of the camera includes: After the electronically controlled zoom lens converts the parallel beam into an initial converging beam, the radius of the initial spot corresponding to the initial spot generated by the initial converging beam on the camera imaging surface is obtained. Based on the spot radius, determine whether the initial converging beam is focused on the imaging surface of the camera; When the initial converging beam is focused on the imaging plane of the camera, the initial converging beam is determined to be the target converging beam.
4. The liquid refractive index measurement method according to claim 3, characterized in that, The step of determining whether the initial converging beam is focused on the imaging plane of the camera based on the spot radius includes: The light spot radius is compared with the preset minimum equivalent light spot radius; When the spot radius is less than or equal to the preset minimum equivalent spot radius, the initial converging beam is focused on the imaging surface of the camera. When the light spot radius is greater than the preset minimum equivalent light spot radius, it is determined that the initial converging beam is focused outside the imaging plane of the camera.
5. The liquid refractive index measurement method according to claim 3 or 4, characterized in that, After the step of determining whether the initial converging beam is focused on the imaging surface of the camera based on the spot radius, the method further includes: When the initial converging beam is focused outside the imaging plane of the camera, the current value of the electronically controlled zoom lens is adjusted so that the focal point corresponding to the converging beam moves toward the imaging plane of the camera. When the focal point moves to the imaging plane of the camera, the converging beam corresponding to the focal point is determined as the target converging beam.
6. A liquid refractive index measuring device, characterized in that, An application is made in a liquid refractive index measurement system, the liquid refractive index measurement system comprising a laser, an electrically controlled zoom lens, a cuvette, and a camera, and the liquid refractive index measurement device comprising: The emission module is used to control the laser to emit a laser towards the imaging surface of the camera when the cuvette is not filled with the liquid to be tested; The reading module is used to read the reference current value of the electronically controlled zoom lens when the laser emitted by the laser generates a target light spot on the imaging surface of the camera; The calculation module is used to substitute the reference current value into a first calculation formula to calculate the reference focal length value for the reference current value. The first calculation formula is expressed as: f=6×10 7 X 4 -0.0005X 3 +0.1695X 2 -23.149X+1206 Where X represents the current value and f represents the focal length value. The emission module is also used to control the laser to emit a laser towards the camera after detecting that the user has injected the liquid to be tested into the liquid tank of the cuvette; The reading module is also used to read the target current value of the electronically controlled zoom lens when the laser emitted by the laser generates a target light spot on the imaging surface of the camera; The calculation module is further configured to substitute the target current value into the first calculation formula to calculate the target focal length value corresponding to the target current value; and to substitute the target focal length value, the width of the liquid trough of the cuvette, and the reference focal length value into a second calculation formula to calculate the refractive index of the liquid to be tested, wherein the second calculation formula is expressed as: Where f1 represents the reference focal length, f2 represents the target focal length, Δσ2 represents the focal length shift caused by the laser emitted by the laser passing through the liquid under test, and n represents the refractive index of the liquid under test.
7. A liquid refractive index measurement system, characterized in that, include: Laser, beam expander, collimating lens, electrically controlled zoom lens, cuvette, camera, memory and processor, among which: The laser is used to emit laser light; The beam-expanding lens is used to expand the laser beam emitted by the laser. The collimating lens is used to collimate the laser beam after it has been expanded. The electronically controlled zoom lens is used to convert the laser beam that has undergone beam expansion and collimation into a converging beam. The cuvette is used to hold the liquid to be tested; The camera is used to generate target light spots; The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Transparent liquid refractometry device based on laser irradiation
CN204556500U
System and method for testing miscibility of biomass-based blended fuel
WO2019144576A1