WO2023023964A1 - Refractometer, smart cup, and refractive index measurement method - Google Patents

Refractometer, smart cup, and refractive index measurement method Download PDF

Info

Publication number
WO2023023964A1
WO2023023964A1 PCT/CN2021/114432 CN2021114432W WO2023023964A1 WO 2023023964 A1 WO2023023964 A1 WO 2023023964A1 CN 2021114432 W CN2021114432 W CN 2021114432W WO 2023023964 A1 WO2023023964 A1 WO 2023023964A1
Authority
WO
WIPO (PCT)
Prior art keywords
total reflection
brightness
liquid
module
refractometer
Prior art date
Application number
PCT/CN2021/114432
Other languages
French (fr)
Chinese (zh)
Inventor
吴泳智
Original Assignee
深圳市流数科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市流数科技有限公司 filed Critical 深圳市流数科技有限公司
Priority to PCT/CN2021/114432 priority Critical patent/WO2023023964A1/en
Priority to PCT/CN2022/085257 priority patent/WO2023024523A1/en
Priority to CN202280002123.1A priority patent/CN115298536A/en
Publication of WO2023023964A1 publication Critical patent/WO2023023964A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/41Refractivity; Phase-affecting properties, e.g. optical path length
    • G01N21/43Refractivity; Phase-affecting properties, e.g. optical path length by measuring critical angle

Definitions

  • the invention belongs to the field of liquid refractive index measurement, and in particular relates to a refractometer, a smart cup and a method for detecting the refractive index.
  • a refractometer is a device that measures the refractive index of liquids. Because the solid soluble matter will increase the refractive index of the liquid after dissolving, the measurement of the solid soluble matter content can be achieved by measuring the refractive index, so the refractometer can be used to measure the solid soluble matter content in the liquid.
  • the solid soluble matter in the aqueous solution is usually sugar, so the refractometer is also called a sugar meter when measuring beverages (such as fruit juice, coffee, etc.).
  • Fig. 1 is a structural schematic diagram of an existing refractometer.
  • the refractometer includes an LED light source 2', a triangular prism 4', a one-dimensional sensitive line array 3' and a processor (not shown).
  • the principle of the refractometer utilizes the fact that the total reflection angle is determined by the refractive index of the two materials at the interface.
  • the part where the incident angle is greater than the total reflection angle undergoes total reflection, and when the incident angle is smaller than the total reflection angle, transmission and reflection coexist, and the brightness of reflection is smaller than that of total reflection. Therefore, in the image formed by the one-dimensional photosensitive line array 3 ′, an obvious brightness change interface can be seen near the incident pixel corresponding to the total reflection angle.
  • the processor can measure the total reflection angle through this interface, and calculate the refractive index n of the liquid to be measured from this.
  • An existing refractometer is provided with a slit 1' located on the outgoing light path of the LED light source 2', so that the light source is a very small point light source in the direction parallel to the sensitive line array 3', which is very good
  • the angle of each beam of light hitting the sensitive line array 3' is defined.
  • the LED light source 2' is equivalent to multiple point light sources emitting light at the same time, then the light from different point light sources at different angles may be incident on the same point on the sensitive line array 3', As a result, it is impossible to distinguish the angle of these lights, which is very important in determining the total reflection angle.
  • the essence of the slit 1' is to decouple the position and direction of the light, so that the refractometer only needs to detect the direction of the light without being disturbed by the position of the light.
  • this design will result in a very large size of the sensitive line array 3 ′, especially in the case where the measurement range of the refractive index is required to be relatively large. The specific reasons are as follows.
  • the size of the sensitive line array 3' is 2*tan( ⁇ /2)*d
  • d represents the optical path distance from the LED light source 2' to the sensitive line array 3'
  • is the LED light source 2 'The overall opening angle of the outgoing light.
  • the measurement range of the refractive index is required to be relatively large (for example, to measure liquids with different refractive indices)
  • needs to have a larger value, so the size of the sensitive line array 3' also needs to be increased accordingly. This is not conducive to miniaturization of the refractometer.
  • the sensitive line array 3' generally uses a linear CCD, but the linear CCD is expensive, requires high installation accuracy, and cannot be automatically corrected when the optical path deviates (caused by thermal expansion and contraction, impact or mechanical deformation, etc.), and is easily affected by ambient light. Or the influence of stray light, causing the measurement to be biased.
  • the object of the present invention is to provide a refractometer with low cost, small volume, large measurement range and good robustness, a smart cup with the refractometer and a method for detecting the refractive index to solve the above problems.
  • a refractometer including a light source module, a reflection module, a lens module, a photosensitive array, a control module and a processor, wherein,
  • the control module is used to control the light beam emitted by the light source module
  • the reflection module is used to receive the light beam from the light source module, the reflection module includes a total reflection interface, when the incident angle of the light beam from the light source module on the total reflection interface satisfies a certain condition, the The light beam of the light source module is totally reflected on the total reflection interface, and enters the lens module;
  • the lens module is used to converge the light beam from the total reflection interface onto the focal plane of the lens module;
  • the photosensitive surface array is located on the focal plane of the lens module, and the control module is also used to control the photosensitive surface array to detect the received light beam and output a detection image;
  • a processor configured to determine a boundary line of a sudden brightness change in the detection image according to the detection image, and determine a side of the total reflection interface facing away from the light source module according to at least one pixel point in the sudden change boundary line of brightness
  • the refractive index of the medium configured to determine a boundary line of a sudden brightness change in the detection image according to the detection image, and determine a side of the total reflection interface facing away from the light source module according to at least one pixel point in the sudden change boundary line of brightness The refractive index of the medium.
  • the present invention also provides a smart cup, comprising:
  • Cup lid and cup body Cup lid and cup body
  • the above-mentioned refractometer is arranged at the cup cover and is used to detect the refractive index of the liquid in the cup;
  • a micro air pressure sensor arranged in the enclosed space, for detecting the volume of the liquid in the cup
  • a calculation module arranged in the confined space, is used to calculate the calorie of the liquid according to the volume and refractive index of the liquid.
  • the present invention also provides a method for detecting the refractive index, comprising:
  • the light beam reflected by the total reflection interface is converged to the photosensitive array on the focal plane of the lens module through the lens module;
  • the refractive index of the medium located outside the total reflection interface is determined according to the total reflection angle.
  • the refractometer of the present invention arranges the photosensitive surface array on the focal plane of the image side of the lens module, and the lens module adopts the infinity focus imaging method, so that a non-point light source can be used as the light source, so that the photosensitive surface array can be shared by the size of the light source.
  • the size of the photosensitive area makes the size of the photosensitive area very small, which has the advantages of low cost, small size, large measurement range, and good robustness; moreover, the refractometer uses an area array CMOS detection image sensor, which has lower cost and higher accuracy High, reducing installation requirements, and can achieve many things that one-dimensional sensors cannot do, such as improving accuracy, improving anti-interference ability, adding other measurement functions, etc.
  • Fig. 1 is the structural representation of a kind of existing refractometer
  • Fig. 2 is a schematic diagram of the side where the photosensitive line array is equivalent to the liquid surface in Fig. 1;
  • Fig. 3 is a kind of structural representation of the refractometer in the present application.
  • Fig. 4 is a schematic diagram of the imaging principle of the lens unit using infinity focusing
  • Fig. 5 is the detection image formed by the light beam received by the photosensitive surface array when the refractometer detects the liquid to be measured;
  • Fig. 6 is a schematic diagram of the change of the detection image formed by the light beam received by the photosensitive surface array pair when the refractometer detects three kinds of media to be measured with different refractive indices;
  • Fig. 7 is the schematic diagram that the photosensitive array in the refractometer shown in Fig. 3 is equivalent to the side of the liquid surface;
  • FIG. 8 and FIG. 9 are structural schematic diagrams of refractometers using light source modules and lens modules of different sizes in this application, respectively;
  • the left side of Figure 10 is the pixel value curve of a pixel row on the detection image formed by the photosensitive surface array to the received light beam, and the right side is the pixel value curve obtained after averaging the pixel value of the row and the pixel values of the upper and lower rows .
  • Fig. 11 is a schematic diagram of an embodiment of the method for detecting the refractive index of the liquid to be measured by using a refractometer in the present application.
  • Fig. 3 is a structural schematic diagram of a refractometer in the present application.
  • the refractometer includes a light source module 1 , a reflection module 2 , a lens module 3 , a photosensitive array 4 , a control module (not shown in the figure) and a processor (not shown in the figure).
  • the control module is used for controlling the light beam emitted by the light source module 1 and for controlling the photosensitive surface array 4 to perform light detection.
  • the control module includes a light source controller and a photosensitive controller for controlling the light source module 1 and the photosensitive array 4 respectively.
  • the reflection module 2 is used for receiving the light beam from the light source module 1 .
  • the reflection module 2 includes a total reflection interface 21.
  • the incident angle of the light beam from the light source module 1 on the total reflection interface 21 and the refractive index of the medium on both sides of the total reflection interface 21 meet the conditions of total reflection, the The light beam of the light source module 1 is totally reflected on the total reflection interface 21 and enters the lens module 3 .
  • the reflection module 2 includes a prism
  • the prism 2 includes a light incident surface 22 , a total reflection interface 21 and a light exit surface 23 .
  • the light beam from the light source module 1 is incident into the prism 2 from the light incident surface 22, and is incident on the total reflection interface 21.
  • the prism 2 is a triangular prism.
  • the prism 2 is an isosceles prism, such as an isosceles rectangular prism, so that the structure of the prism is more compact, making the overall structure smaller.
  • anti-reflection coatings are provided on the light incident surface 22 and the light exit surface 23 of the prism 2 to increase the transmittance of light beams.
  • the prism 2 can be made of glass material, or can also be made of other transparent materials such as plastic and resin.
  • the size of the total reflection interface 21 of the prism 2 matches the divergence angle of the outgoing light of the light source module 1, so that the light spot formed by the outgoing light on the total reflection interface 21 just covers the total reflection interface 21 or is slightly smaller than The total reflection interface 21 is beneficial to the miniaturization of the refractometer.
  • the reflective module 2 may also be other optical elements with a high refractive index, or be made of other media with a high refractive index.
  • the lens module 3 is used to converge the light beam from the total reflection interface 21 onto the focal plane of the lens module 3 .
  • the lens module 3 may be a lens, and the focal plane of the lens module 3 is the focal plane of the lens.
  • the lens module 3 includes a lens group consisting of at least two lens elements, so that an additional lens can be used to reduce imaging aberration and distortion through optical design.
  • the focal plane of the lens module 3 is the equivalent focal plane of the lens group.
  • the function of the lens module will be explained below by taking the lens module as an example with reference to FIG. 4 .
  • the converging point of the parallel light on the focal plane is unique, extending from the optical center of the lens in the direction of the parallel light Intersection with the focal plane.
  • the convergence point is only related to the direction of the light, not the position of the light.
  • the photosensitive surface array 4 is located on the focal plane of the lens module 3 and is used for detecting the received light beam.
  • the refractive index of the medium 5 outside the total reflection interface 21 of the reflection module 2 is lower than the refractive index of the reflection module 2, among the light beams incident on the total reflection interface 21 of the reflection module 2, the light beam with an incident angle greater than the total reflection angle It is totally reflected to the lens module 3, and converges to the photosensitive array on the focal plane through the lens module 3; in the light beam whose incident angle is smaller than the total reflection angle, part of the light beam is transmitted through the total reflection interface 21, and part is reflected on the total reflection interface 21 to the lens module 3 , and is converged by the lens module 3 to the photosensitive array on the focal plane.
  • Fig. 5 is a detection image formed by the light beam received by the photosensitive surface array when the refractometer detects a liquid to be measured.
  • the refractometer is placed in the liquid 5 to be tested, so that after the total reflection interface in the reflection module 2 contacts the liquid 5 to be tested, the photosensitive array 4 forms a detection image.
  • the detection image 8 includes a reflective area 81 and a non-reflective area 82 surrounding the reflective area 81 .
  • the reflection area 81 includes a total reflection area 811 and a non-total reflection area 812 .
  • the total reflection area 81 refers to the area in the reflection area 81 of the detection image 8 where the light beam totally reflected by the total reflection interface 21 of the reflection module 2 is incident
  • the non-total reflection area 812 refers to the area in the detection image 8 that is less than
  • the total reflection angle is the incident area of the reflected light beam when incident on the total reflection interface 21 of the reflection module 2 . Since the reflected part of the non-totally reflected light beam suddenly drops in brightness compared with the fully reflected light beam, an obvious brightness mutation boundary 813 is formed at the junction of the total reflection area 812 and the non-total reflection area 811, and the brightness mutation boundary 813 Corresponding to the incident light beam at the total reflection angle at the total reflection interface 21 .
  • FIG. 6 is a schematic diagram of changes in detection images formed by the light beams received by the photosensitive surface array when the refractometer detects three kinds of media to be measured with different refractive indices. It can be seen that when corresponding to the medium to be tested with different refractive indices, the brightness mutation boundary in the detection image formed by the photosensitive array has obvious movement. Due to the setting of the lens module, different pixel positions in the detection image correspond to beams emitted from the total reflection interface at different angles, so the processor can determine the brightness mutation boundary by obtaining the position of at least one pixel point in the brightness mutation boundary The corresponding total reflection angle, and then calculate the refractive index of the medium to be measured according to the total reflection angle.
  • the processor may separately calculate the brightness gradient change of each pixel row in the reflection area in the detection image, and determine the pixel point with the largest gradient change in each row of pixels as the point on the boundary line of the sudden brightness change.
  • the processor may also acquire the position of the boundary line of sudden brightness changes through methods such as edge detection, template matching, and machine learning.
  • the processor may also obtain the current temperature and/or the boundary deviation caused by the assembly tolerance, and compare the obtained brightness sudden change boundary according to the current temperature and/or the boundary deviation position to compensate.
  • the processor can look up the corresponding relationship table between the boundary line of sudden change in brightness and the refractive index that has been calibrated in advance to obtain the corresponding refractive index.
  • the viewing angle of the lens is determined by the focal length f and the aperture size d of the lens.
  • the angle range of the light beam that the final lens can receive is determined by the size of the light source and the size of the lens.
  • the angle range ⁇ that can be detected by the photosensitive array 4 is defined by two lines on the edge: the light r1 from the uppermost end of the light-emitting surface of the light source module 1 to the lowermost end of the clear aperture of the lens 3, and the light source r1 Light r2 from the lowermost end of the light-emitting surface of the module 1 to the uppermost end of the clear aperture of the lens.
  • the angle range ⁇ is determined by three variables: the size of the light emitting surface of the light source module 1 , the clear aperture of the lens 3 , and the distance between the light emitting surface of the light source module 1 and the lens 3 .
  • the aperture of the light emitting surface of the light source module 1 is greater than or equal to the aperture of the lens module 3 .
  • the diameter of the light-emitting surface of the light source module 1 is the same as the aperture of the lens module 3 or the difference is less than 1/5 of the diameter of the light-emitting surface.
  • the aperture of the photosensitive surface array in the refractometer of the present application is half of the aperture of the photosensitive surface array of the refractometer in the prior art, can reduce the number of refractometers. cost and difficulty in mass production.
  • FIG. 8 the diameter of the light-emitting surface of the light source module 1 is the same as the aperture of the lens module 3 or the difference is less than 1/5 of the diameter of the light-emitting surface.
  • the aperture of the light emitting surface of the light source module 1 is larger than twice the aperture of the lens module 3 .
  • the size of the aperture of the photosensitive surface array in the refractometer of the present application can be made very small.
  • the cost and difficulty of mass production required by the size of the array are much lower, and the cost and difficulty of mass production can be reduced to a greater extent by allowing the light source module 1 to bear more dimensions.
  • the reflection properties of the total reflection surface interface need to be consistent within the range of the liquid surface. Since the light direction can be directly measured in this application, even if there are bubbles or the medium to be measured at the total reflection interface In the case that the total reflection interface is not completely covered, the boundaries of sudden changes in brightness are still clearly distinguishable.
  • the detection angle range ⁇ of the photosensitive surface array 4 covers the total reflection angle range of the lens module 3, wherein the total reflection angle range of the lens module 3 refers to the total reflection that can occur on the total reflection interface of the lens module 3 All angles to ensure the large refractive index detection range of the refractometer.
  • the reflection module 2 uses a medium with a high refractive index to reduce the total reflection angle range of the lens module 3 .
  • the refractometer may use a light source module with a narrow wavelength bandwidth, or set a narrow-band filter on the outgoing light path of the light source module to reduce the wavelength bandwidth of the outgoing light from the light source module to reduce dispersion.
  • the outgoing light of the light source module or the outgoing light filtered by the narrow-band filter is a light beam with a full width at half maximum of 5 nm or less.
  • the lens module since the lens module is added in front of the photosensitive array to decouple the position and direction of the light, the light source module does not need to be small, as long as there is light at a corresponding angle, it can be focused on the corresponding sensor position. Compared with the prior art, the light source module in the present application does not need to bear the function of distinguishing angles and positions.
  • the divergence angle of the light source module since the divergence angle of the light source module is required to be relatively large, but the divergence angle of the LED light source itself is not very large, it is necessary to find a specially-made LED light source with a large angle and a small light-emitting surface in the solution of the prior art.
  • the requirements for the light source module 1 are much relaxed, and the large-angle light-emitting range can be realized by multiple LEDs+light-diffusing panels.
  • the light source module 1 further includes a dodging sheet 6 located on one side of the light emitting surface. Since the photosensitive array perceives beams from different directions, the homogenization sheet can improve the uniformity of the beams in each direction, thereby improving the uniformity of the image formed by the photosensitive array, and can also avoid the measurement accuracy caused by inconsistent light intensities at different angles. Lowering the problem.
  • the light source module 1 includes an LED light bar, or includes a light source composed of a plurality of LED light beads by patching or packaging.
  • the wavelength of the LED needs to be compatible with the wavelength response of the CMOS photosensitive array.
  • the wavelength can be between 300nm and 1000nm, for example, the wavelength can be between 400nm and 500nm, or between 500nm and 600nm, or between 600nm and 700nm. Either between 700nm and 800nm, or between 800nnm and 900nm.
  • the wavelength of the LED is in the green light band, for example, the central wavelength is between 500nm and 600nm.
  • CMOS sensor with a Bayer pattern of RGGB
  • this type of photosensitive area array has a higher resolution and is more sensitive to the G channel. Using the green light band can better communicate with the photosensitive surface. array with.
  • an optical filter 7 matching the outgoing light of the light source module 1 is provided on the optical path between the total reflection interface 21 of the reflective module 2 and the photosensitive array 4 for transmitting the light from the light source module. 1 and reflected beams of other wavelength bands to reduce the interference of background light on the detection results.
  • the output light of the light source module 1 is of a single wavelength, so that it is easier to match a narrow-band filter to eliminate background light.
  • the photosensitive surface array 4 may be a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS) sensor array.
  • CMOS complementary Metal Oxide Semiconductor
  • the photosensitive surface array 4 can also be realized by using other photoelectric sensors such as CCD image sensors.
  • the processor counts the brightness of the detection image according to the detection image, and calculates the refractive index according to the detection image only after the brightness of the detection image satisfies a preset condition.
  • the preset condition includes that the absolute value of the difference between the detected image brightness and the preset target brightness is greater than a threshold.
  • the use of CMOS sensor area arrays can not only greatly reduce the installation requirements, but also add many things that the previous one-dimensional arrays could not do through the nature of the two-dimensional array.
  • the processor before calculating the refractive index based on a frame of detection image detected by the photosensitive surface array, the processor can perform noise filtering based on the pixel values measured by multiple rows of sensors corresponding to the photosensitive surface array in a frame of detection image to improve the signal-to-noise ratio.
  • the processor may perform noise filtering on the frame detection image in the space domain or the transformation domain.
  • the processor can perform noise filtering based on window sliding average filtering.
  • the width of the filtering window can be a value between 1 and the width of the detected image, and the height can be a value between 1 and the height of the detected image.
  • the processor may perform weighting processing (for example, averaging processing) on the pixel values detected by the multi-row sensors to obtain a noise-filtered result, and then calculate the refractive index of the medium to be detected according to the noise-filtered result.
  • the processor may also adopt other noise filtering methods, for example, adopting a machine learning method to filter noise of the frame detection image.
  • the left side of Figure 10 is the pixel value curve of a pixel row on the detection image formed by the light beam received by the photosensitive surface array, and the right side is the average of the pixel value of the row and the pixel values of the upper and lower rows From the pixel value curve obtained afterwards, it can be seen that the influence of noise can be reduced after averaging processing with the pixel values of multiple rows.
  • the use of a photosensitive area array in this application can increase the accuracy of measurement.
  • the processor when calculating the refractive index of the medium to be measured based on multiple rows of pixel values in the reflection area in the detection image, can eliminate one or more rows of pixel values affected by stray light, or reduce the pixel values affected by stray light. Influence weights for row or rows of pixel values.
  • a line of measurement results less affected by stray light can be selected from a frame of detection images to calculate the refractive index of the medium to be measured.
  • Stray light is the interference light formed in the optical system due to surface wear, dirt, fog condensation or device position deviation. The presence of stray light will reduce the calculation accuracy of the refractive index.
  • the processor can determine the pixel row affected by stray light by comparing and analyzing the brightness of multiple rows of pixel rows. Compared with the linear sensor in the prior art, the photosensitive area array in this application can improve the accuracy of refractive index measurement.
  • the processor can also determine the pixel rows affected by stray light by comparing and analyzing multiple frames of detection images. This is more robust for refractive index measurements in the presence of stray light.
  • the processor may also perform noise filtering according to multiple frames of detection images. For example, after the photosensitive array collects multiple frames of detection images, the processor can perform weighted sum processing on the multiple frames of detection images to synthesize a frame of detection images, and then use the synthesized detection images to calculate the refractive index.
  • the processor may also use the single-frame noise filtering method described above to perform further noise filtering on the synthesized detection image.
  • the refractometer also has a standby mode and/or a low power mode.
  • the control module In this standby mode, the control module is in a sleep standby state, the light source module and the photosensitive array are both powered off, and the overall power consumption of the refractometer is at the uW level.
  • the control module In the low power consumption mode, the control module is used to control the light source module and the photosensitive array to strobe synchronously, the power-on time is extremely short, and the overall power consumption of the refractometer is at the mW level.
  • control module controls the light source module 1 and the photosensitive array, it can synchronously trigger a pulse width modulation (PWM, Pulse Width Modulation) signal according to the frame signal of the photosensitive array to realize dimming of the light source module.
  • PWM pulse width modulation
  • Pulse Width Modulation Pulse Width Modulation
  • control module can also obtain brightness information of the current measurement environment, and adjust the detection image quality of the photosensitive area array according to the brightness information, so as to obtain a better measurement quality.
  • control module can adjust at least one of the following items according to the brightness information: the output light intensity of the light source module, the exposure time of the photosensitive array, the analog gain of the photosensitive array, and the digital gain of the photosensitive array.
  • the photosensitive surface array can be used to measure the ambient light in a time period other than measuring the total reflected light, or other sensors for measuring the brightness information of the current environment are provided in the detection module.
  • the refractometer further includes a first temperature sensor disposed inside the reflective module or on a surface of the reflective module on an area outside the optical path for detecting the temperature of the reflective module.
  • the refractometer further includes a second temperature sensor, which is arranged on the surface of the total reflection interface of the reflection module facing the medium to be measured, for detecting the temperature of the medium to be measured.
  • the first temperature sensor and the second temperature sensor may not be in direct contact with the reflective module or the medium to be measured, but through a material with better thermal conductivity as a medium.
  • the refractive index of the liquid is related to the temperature of the liquid, and the temperature of the prism determines the ratio of thermal expansion and contraction of the prism, and the temperature of the prism will cause the deviation of the incident and outgoing angles of the beam, therefore, through the pre-established
  • the relationship model between the temperature of the liquid to be measured, the temperature of the reflection module and the refractive index of the liquid to be measured is calculated according to the obtained temperature of the liquid to be measured, the temperature of the reflection module and the relationship model when calculating the refractive index of the liquid to be measured. Measuring the refractive index of liquid can improve the accuracy of refractive index calculation.
  • the processor can also calculate the turbidity of the liquid to be tested according to the detection image output by the photosensitive array.
  • the light beam transmitted from the total reflection interface 21 of the reflection module 2 to the liquid to be measured will be scattered when encountering suspended particles in the liquid to be measured, and part of the scattered light will be transmitted through the total reflection interface 21 Then incident on the photosensitive array. Scattering is divided into Rayleigh scattering, Mie scattering, and refraction with different angular components according to the size of the scattering particles.
  • the processor can obtain the light intensity distribution of the detection image, and obtain the size and properties of the scattering particles according to the light intensity distribution, and then judge the turbidity of the liquid.
  • the processor can calculate the particle concentration of the liquid from the brightness on this non-reflective area.
  • the non-reflection area includes a total reflection area and a non-total reflection area, In FIG.
  • the total reflection area of the non-reflection area is located on the upper and lower sides of the total reflection area of the reflection area
  • the non-total reflection area of the non-reflection area is located on the upper and lower sides of the non-total reflection area of the reflection area. Since the light beam scattered by the particles in the liquid to be measured can only re-enter the reflection module at an angle within the total reflection angle, only the area corresponding to the area smaller than the total reflection angle will appear in the detection image formed by the photosensitive surface array. That is, the scattered light beam will only appear in the non-total reflection area in the detection image.
  • the processor may calculate the scattered brightness according to the brightness of the non-total reflection area in the non-reflection area on the detection image.
  • the processor may also use the brightness of the total reflection area in the non-reflection area as a reference value to calculate the absolute value of the scattering brightness.
  • the processor may subtract the brightness of the total reflection area in the non-reflection area from the brightness of the non-total reflection area in the non-reflection area on the detection image to obtain the absolute value of the scattering brightness.
  • the processor can obtain the corresponding turbidity of the liquid to be measured according to the pre-established corresponding relationship model between the scattering brightness and the liquid turbidity.
  • the processor when it determines the brightness of the total reflection area in the non-reflection area, it may perform weighted average processing on the brightness of at least some pixels in the area to obtain the brightness of the total reflection area. Similarly, when determining the brightness of the non-total reflection area in the non-reflection area, weighted average processing may be performed on the brightness of at least some pixels in the area to obtain the brightness of the non-total reflection area. This reduces calculation errors.
  • a slit is provided on the incident light path of the lens module or on the surface of the lens module. Since the width of the reflection area in the detection image is determined by the width of the light source module and the light aperture of the lens module, by setting a slit on the incident light path of the lens module or on the surface of the lens module, the reflection area and A clearer boundary line is formed between non-reflective areas, which is beneficial to improve the accuracy of turbidity calculation.
  • the scattering caused by particles close to the total reflection interface of the reflection module will cause the boundary line of the brightness change in the reflection area in the detection image to be blurred, so the processor can also obtain the photosensitive surface array detection
  • the degree of fuzziness of the sudden change boundary of brightness on the detected image is determined, and the turbidity in the liquid to be tested is determined according to the degree of fuzziness.
  • the processor can look up a table according to the corresponding relationship between the fuzzy degree of the pre-calibrated brightness mutation boundary and the turbidity of the liquid to obtain the corresponding turbidity of the liquid to be measured.
  • the processor is used to calculate the turbidity of the liquid according to the brightness on the non-reflection area in the detection image when the concentration of the liquid to be tested is lower than a preset concentration, and when the concentration of the liquid to be tested is higher than a preset concentration
  • the turbidity of the liquid is calculated according to the fuzzy degree of the boundary line of the sudden change in brightness on the detection image.
  • the turbidity of the liquid to be tested has a good linear relationship with the brightness of the non-reflective area in the detection image, and the calculation of turbidity according to the brightness of the non-reflective area can have higher accuracy , when the concentration of the liquid to be measured is high, the linear relationship decreases, and it is more accurate to calculate the turbidity through the fuzziness of the brightness mutation boundary.
  • refractometers can be used to perform compositional testing of liquids.
  • a refractometer can simultaneously measure the refractive index and turbidity of a liquid to determine its properties.
  • a refractometer can measure the refractive index and turbidity of a liquid (such as coffee) at the same time, and judge the sugar content and milk content of the liquid.
  • a refractometer can simultaneously measure the refractive index and turbidity of a liquid (such as fruit juice) to determine the sugar content and pulp content of the liquid.
  • a refractometer can measure the refractive index and turbidity in the clear liquid of the sensor, which can be used to determine whether the sensor is dirty.
  • the dirty judgment result can be used to decide whether to continue cleaning.
  • the refractometer can be used for cleaning machines (such as dishwashers, washing machines, etc.), and detect the refractive index and turbidity of the liquid after cleaning the object to judge the cleanliness of the cleaned object.
  • refractometers can be used for water quality detection. The judgment result of the refractometer can be displayed to the user through the interactive module.
  • the processor is also used to calculate the turbidity of the liquid to be measured according to the pre-calibrated turbidity
  • the influence relationship of the refractive index is used to correct the refractive index of the liquid to be measured.
  • the ratio of milk and sugar in the liquid to be tested can be distinguished by measuring the turbidity and sugar content of the liquid to be tested simultaneously to obtain Accurate milk volume and brix values can then more accurately calculate the calorie content of the liquid to be tested.
  • the refractometer further includes at least one of the following: a colorimeter for detecting the color of the liquid to be tested, an impedance meter for detecting the content of ions (such as acid ions) in the liquid to be tested, and an impedance meter for detecting the color of the liquid to be tested.
  • a colorimeter for detecting the color of the liquid to be tested
  • an impedance meter for detecting the content of ions (such as acid ions) in the liquid to be tested
  • an impedance meter for detecting the color of the liquid to be tested.
  • a PH value meter for measuring the acidity value of the liquid, so that the processor can assist in determining the type of the liquid to be tested based on the information.
  • the refractometer also includes a wireless communication module, which is used to send at least one of the refractive index, turbidity, and temperature of the liquid to be measured obtained by the processor to other clients (such as small programs in mobile phones, application, computer client, server, etc.), so that the client can display or analyze the collected data from one or more refractometers.
  • the refractometer further includes an interactive module for displaying the detected data to the user.
  • the present application also provides a smart cup, the smart cup is provided with the above-mentioned refractometer for detecting the refractive index and/or turbidity of the liquid in the water cup.
  • the smart cup is also provided with a micro-pressure sensor and a computing module.
  • the micro-pressure sensor is used to detect the volume of the liquid in the water cup
  • the calculation module is used to calculate the calorie of the liquid in the water cup according to the refractive index and/or turbidity of the liquid measured by the refractometer.
  • the refractometer is fixed on the lid of the smart level for easy installation.
  • the micro-air pressure sensor is arranged in a closed space formed between the bottom of the cup body and the diaphragm arranged on the bottom.
  • the present application also provides an intelligent animal urine detector (mat, etc.), which is provided with the above-mentioned refractometer, and the refractive index of animal urine is measured by the refractometer.
  • FIG. 11 is a schematic diagram of an embodiment of a method for detecting the refractive index of a liquid to be measured by using a refractometer in the present application.
  • the method includes:
  • S1102. Converge the light beam reflected by the total reflection interface to the photosensitive array located on the focal plane of the lens module through the lens module.
  • step S1105 before step S1105 determining the boundary line of a sudden change in brightness in the detection image according to the detection image, the method further includes: determining that an absolute value of a difference between the brightness of the detection image and a preset brightness is greater than a threshold.
  • determining the boundary line of abrupt brightness change in the detection image according to the detection image further includes: filtering the target pixel row according to at least part of the pixel rows above and below the target pixel row in the detection image noise.
  • performing noise filtering on the target pixel row according to at least part of the upper and lower pixel rows of the target pixel row in the detection image includes: according to the pixel value of the target pixel row and the at least part of the pixel row The weighted average of the pixel values of is used as the noise-filtered pixel value of the target pixel row.
  • determining the boundary line of sudden brightness change in the detection image according to the detection image further includes: determining the pixel rows affected by stray light in the detection image, wherein the pixels affected by stray light The row is not used to determine the refractive index of the medium on the side of the total reflection interface facing away from the light source module.
  • the detection image is obtained by weighted summation of multiple frames of images acquired by the photosensitive array.
  • the method further includes: obtaining the temperature of the medium located outside the total reflection interface and the temperature of the total reflection interface; according to the pre-stored temperature of the medium to be measured, the temperature of the total reflection interface and the temperature The relationship model of the refractive index of the measured medium, and the obtained temperature of the medium outside the total reflection interface and the temperature of the total reflection interface are used to calculate the refractive index of the medium.
  • the method further includes: calculating the turbidity of the medium located outside the total reflection interface according to the detection image.
  • the detection image includes a non-reflection area; calculating the turbidity of the medium located outside the total reflection interface according to the detection image includes:
  • the non-total reflection area in the non-reflection area corresponds to the brightness less than the total After the reflection angle is incident on the total reflection interface, it is incident on the area of the photosensitive surface array; the turbidity is calculated according to the scattering brightness of the non-total reflection area in the non-reflection area and/or the fuzziness of the brightness mutation boundary line .
  • the non-reflective area further includes a total reflective area located on one side of the non-total reflective area; the acquiring the scattering brightness of the non-total reflective area in the non-reflective area includes: using the non-reflective area The brightness of the total reflection area in is used as a reference value to calculate the scattering brightness of the non-reflection area and the non-total reflection area in the detection image.
  • calculating the turbidity according to the brightness distribution of the non-reflective area and/or the fuzziness of the sudden brightness boundary line includes: when the concentration of the liquid to be tested is lower than a preset concentration, according to the Calculate the turbidity of the liquid to be tested according to the scattering brightness of the non-total reflection area on the non-reflective area; when the concentration of the liquid to be tested is higher than the preset concentration, according to the fuzzy degree of the brightness mutation boundary line on the detection image To calculate the turbidity of the liquid to be tested.
  • the medium located outside the total reflection interface is the liquid to be tested; the method further includes: obtaining the volume of the liquid to be tested; calculating the Calories of the liquid to be measured.
  • the medium located outside the total reflection interface is the liquid to be tested; the method further includes: using auxiliary equipment to obtain auxiliary information, wherein the auxiliary equipment includes a colorimeter, and the auxiliary information includes the measure the color of the liquid; or, the auxiliary equipment includes an impedance meter, and the auxiliary information includes the ion content of the liquid to be tested; or, the auxiliary equipment includes a pH meter, and the auxiliary information includes the liquid to be tested the acidity value; determine the type of the liquid to be tested according to the auxiliary information and the refractive index and/or turbidity of the liquid to be tested.
  • the method before emitting the light beam to the total reflection interface in the refractometer, it also includes: emitting liquid to clean the target object, and the medium located outside the total reflection interface is the liquid after cleaning the target object; the method It also includes: judging the cleanliness of the target object according to the refractive index of the liquid after cleaning the target object.
  • the method further includes: judging whether to continue cleaning the target object according to the cleanliness of the target object.

Abstract

A refractometer, a smart cup, and a refractive index measurement method, which relate to the field of liquid refractive index measurement. The refractometer comprises a light source module (1), a reflective module (2), a lens module (3), a photosensitive area array (4), a control module, and a processor, wherein the reflective module (2) is used to receive a light beam from the light source module (1), the reflective module (2) comprises a total reflection interface (21), and when the incident angle of the light beam from the light source module (1) on the total reflection interface (21) meets a certain condition, the light beam from the light source module (1) is totally reflected on the total reflection interface (21) and is incident to the lens module (3); the lens module (3) is used to converge the light beam from the total reflection interface (21) onto a focal plane of the lens module (3); and the photosensitive area array (4) is located on the focal plane of the lens module (3). The refractometer has the advantages of being low in cost, of a small size, and having a large measurement range and good robustness.

Description

一种折光仪、智能杯和探测折射率的方法A refractometer, smart cup and method for detecting refractive index 技术领域technical field
本发明属于液体折射率测量领域,具体地涉及一种折光仪、智能杯和探测折射率的方法。The invention belongs to the field of liquid refractive index measurement, and in particular relates to a refractometer, a smart cup and a method for detecting the refractive index.
背景技术Background technique
折光仪是一种测量液体折射率的装置。因为固体可溶物溶解后会增加液体的折射率,通过折射率测量可以达到固体可溶物含量的测量,因此折光仪可以用来测量液体中的固体可溶物的含量。水溶液中的固体可溶物通常是糖,所以折光仪在测量饮料(例如果汁、咖啡等)时也被称为糖度计。A refractometer is a device that measures the refractive index of liquids. Because the solid soluble matter will increase the refractive index of the liquid after dissolving, the measurement of the solid soluble matter content can be achieved by measuring the refractive index, so the refractometer can be used to measure the solid soluble matter content in the liquid. The solid soluble matter in the aqueous solution is usually sugar, so the refractometer is also called a sugar meter when measuring beverages (such as fruit juice, coffee, etc.).
图1是一种现有的折光仪的结构示意图。该折光仪包括LED光源2′、三角棱镜4′、一维的感光线阵3′和处理器(图未示)。折光仪的原理利用了全反射角是由界面两种材质的折射率决定的。在折光仪置于待测液体内时,若待测液体的折射率低于三棱镜4′的折射率,根据折射定律sin(α 折射角)*n 待测液体=sin(α 入射角)*n 三棱镜可知,光束在三角棱镜4′内与液体相接的一面5′上的入射角满足
Figure PCTCN2021114432-appb-000001
时发生全反射。也即在入射至面5′的光束中,入射角大于全反射角的部分发生全反射,而入射角小于全反射角时,透射和反射并存,且反射的亮度比全反射时的亮度小。因此,可以在一维的感光线阵3′所成的图像中,对应于全反射角入射的像素附近看到一个明显的亮度变化界面。处理器通过这个界面可以测到全反射角,并由此算出计算出待测液体的折射率n 待测液体
Fig. 1 is a structural schematic diagram of an existing refractometer. The refractometer includes an LED light source 2', a triangular prism 4', a one-dimensional sensitive line array 3' and a processor (not shown). The principle of the refractometer utilizes the fact that the total reflection angle is determined by the refractive index of the two materials at the interface. When the refractometer is placed in the liquid to be measured, if the refractive index of the liquid to be measured is lower than that of the prism 4′, according to the law of refraction sin (α refraction angle )*n liquid to be measured =sin (α incident angle )*n It can be seen from the triangular prism that the incident angle of the light beam on the side 5 ' that is in contact with the liquid in the triangular prism 4 ' satisfies
Figure PCTCN2021114432-appb-000001
total reflection occurs. That is to say, among the light beams incident on the surface 5', the part where the incident angle is greater than the total reflection angle undergoes total reflection, and when the incident angle is smaller than the total reflection angle, transmission and reflection coexist, and the brightness of reflection is smaller than that of total reflection. Therefore, in the image formed by the one-dimensional photosensitive line array 3 ′, an obvious brightness change interface can be seen near the incident pixel corresponding to the total reflection angle. The processor can measure the total reflection angle through this interface, and calculate the refractive index n of the liquid to be measured from this.
现有的一种折光仪中设置了一个狭缝1′位于LED光源2′的出射光路上,使得光源在平行于感光线阵3′的方向上是很小的点光源,这样子很好地定义了打到感光线阵3′上每束光的角度。在不采用狭缝1′的情况下,LED光源2′的相当于多个点光源同时发光,那么不同点光源发出的不同角度的光可能会入射到感光线阵3′上的同一个点,导致从而无法区分出这些光的角度,而这个角度在确定全反射角时是非常重要的。狭缝1′的本质上是解耦了光线的位置和方向,使得折光仪只需探测光线的方向而不被光线的位置干扰。但该设计会导致感光线阵3′的尺寸非常大,尤其在对折射率测量范围要求比较大的情况下。具体原因如下。An existing refractometer is provided with a slit 1' located on the outgoing light path of the LED light source 2', so that the light source is a very small point light source in the direction parallel to the sensitive line array 3', which is very good The angle of each beam of light hitting the sensitive line array 3' is defined. In the case of not using the slit 1', the LED light source 2' is equivalent to multiple point light sources emitting light at the same time, then the light from different point light sources at different angles may be incident on the same point on the sensitive line array 3', As a result, it is impossible to distinguish the angle of these lights, which is very important in determining the total reflection angle. The essence of the slit 1' is to decouple the position and direction of the light, so that the refractometer only needs to detect the direction of the light without being disturbed by the position of the light. However, this design will result in a very large size of the sensitive line array 3 ′, especially in the case where the measurement range of the refractive index is required to be relatively large. The specific reasons are as follows.
如图2所示,感光线阵3′的尺寸为2*tan(α/2)*d,d代表的是从LED光源2′到感光线阵3′的光程距离,α是LED光源2′的出射光的整体张角。在对折 射率测量范围要求比较大的情况下(比如要测量不同折射率的液体),α需要具有较大的数值,因此感光线阵3′的尺寸也需要跟着变大。这不利于折光仪的小型化。As shown in Figure 2, the size of the sensitive line array 3' is 2*tan(α/2)*d, d represents the optical path distance from the LED light source 2' to the sensitive line array 3', and α is the LED light source 2 'The overall opening angle of the outgoing light. In the case where the measurement range of the refractive index is required to be relatively large (for example, to measure liquids with different refractive indices), α needs to have a larger value, so the size of the sensitive line array 3' also needs to be increased accordingly. This is not conducive to miniaturization of the refractometer.
另外,感光线阵3′一般采用线性CCD,但线性CCD具有昂贵、安装精度要求高、在光路出现偏差时(热胀冷缩、冲击或机械变形等引起)无法自动修正,而且容易被环境光或者杂散光影响,导致测量出现偏差。In addition, the sensitive line array 3' generally uses a linear CCD, but the linear CCD is expensive, requires high installation accuracy, and cannot be automatically corrected when the optical path deviates (caused by thermal expansion and contraction, impact or mechanical deformation, etc.), and is easily affected by ambient light. Or the influence of stray light, causing the measurement to be biased.
发明内容Contents of the invention
本发明的目的在于为解决上述问题而提供一种成本低,体积小,测量范围大,鲁棒性好的折光仪、具有该折光仪的智能杯和探测折射率的方法。The object of the present invention is to provide a refractometer with low cost, small volume, large measurement range and good robustness, a smart cup with the refractometer and a method for detecting the refractive index to solve the above problems.
为实现上述目的,本发明采用的技术方案为:一种折光仪,包括光源模块、反射模块、透镜模块、感光面阵、控制模块和处理器,其中,In order to achieve the above object, the technical solution adopted by the present invention is: a refractometer, including a light source module, a reflection module, a lens module, a photosensitive array, a control module and a processor, wherein,
所述控制模块用于控制所述光源模块出射光束;The control module is used to control the light beam emitted by the light source module;
所述反射模块用于接收来自所述光源模块的光束,所述反射模块包括全反射界面,当来自所述光源模块的光束在所述全反射界面上的入射角满足一定条件时,来自所述光源模块的光束在所述全反射界面上发生全反射,并入射至所述透镜模块;The reflection module is used to receive the light beam from the light source module, the reflection module includes a total reflection interface, when the incident angle of the light beam from the light source module on the total reflection interface satisfies a certain condition, the The light beam of the light source module is totally reflected on the total reflection interface, and enters the lens module;
所述透镜模块用于将来自所述全反射界面的光束汇聚至所述透镜模块的焦平面上;The lens module is used to converge the light beam from the total reflection interface onto the focal plane of the lens module;
所述感光面阵位于所述透镜模块的焦平面上,所述控制模块还用于控制所述感光面阵对接收到的光束进行探测并输出探测图像;The photosensitive surface array is located on the focal plane of the lens module, and the control module is also used to control the photosensitive surface array to detect the received light beam and output a detection image;
处理器,用于根据所述探测图像确定所述探测图像中的亮度突变界线,以及根据所述亮度突变界线中的至少一个像素点确定位于所述全反射界面背向所述光源模块的一侧的介质的折射率。A processor, configured to determine a boundary line of a sudden brightness change in the detection image according to the detection image, and determine a side of the total reflection interface facing away from the light source module according to at least one pixel point in the sudden change boundary line of brightness The refractive index of the medium.
本发明还提供了一种智能杯,包括:The present invention also provides a smart cup, comprising:
杯盖和杯体;Cup lid and cup body;
上述折光仪,设置在所述杯盖处,用于探测所述杯体内的液体的折射率;The above-mentioned refractometer is arranged at the cup cover and is used to detect the refractive index of the liquid in the cup;
薄膜,设置在所述杯体的底部之上,与所述杯体底部之间形成有密闭空间;a thin film disposed on the bottom of the cup, forming a closed space with the bottom of the cup;
微气压传感器,设置在所述密闭空间之内,用于探测所述杯体内的液体的体积;a micro air pressure sensor, arranged in the enclosed space, for detecting the volume of the liquid in the cup;
计算模块,设置在所述密闭空间内,用于根据所述液体的体积和折射率计算所述液体的卡路里。A calculation module, arranged in the confined space, is used to calculate the calorie of the liquid according to the volume and refractive index of the liquid.
本发明还提供了一种利探测折射率的方法,包括:The present invention also provides a method for detecting the refractive index, comprising:
向折光仪内的全反射界面发射光束;Sending a beam of light towards a total reflection interface within the refractometer;
通过透镜模块将被所述全反射界面反射的光束汇聚至位于所述透镜模块的 焦平面上的感光阵列;The light beam reflected by the total reflection interface is converged to the photosensitive array on the focal plane of the lens module through the lens module;
利用所述感光阵列对接收的光束成像,生成探测图像;Using the photosensitive array to image the received light beam to generate a detection image;
根据所述探测图像确定所述探测图像中的亮度突变界线;determining a boundary line of a sudden change in brightness in the detection image according to the detection image;
根据所述亮度突变界线在所述探测图像中的位置确定所述光束在所述全反射界面上的全反射角;determining the total reflection angle of the light beam on the total reflection interface according to the position of the brightness mutation boundary line in the detection image;
根据所述全反射角确定位于全反射界面外侧的介质的折射率。The refractive index of the medium located outside the total reflection interface is determined according to the total reflection angle.
本发明的折光仪通过将感光面阵设置在透镜模块的像方焦平面上,透镜模块采用无穷远对焦成像方式,使得可以采用非点光源来作为光源,从而由光源的尺寸来分担感光面阵的尺寸,使得感光面阵的尺寸可以很小,具有成本低,体积小,测量范围大,鲁棒性好的优点;而且,折光仪采用面阵CMOS探测图像传感器,成本更低,精准度更高,降低安装的要求,且可以实现许多一维传感器无法做到的事情,如提高精准度、提升抗干扰能力、增加其它测量功能等。The refractometer of the present invention arranges the photosensitive surface array on the focal plane of the image side of the lens module, and the lens module adopts the infinity focus imaging method, so that a non-point light source can be used as the light source, so that the photosensitive surface array can be shared by the size of the light source. The size of the photosensitive area makes the size of the photosensitive area very small, which has the advantages of low cost, small size, large measurement range, and good robustness; moreover, the refractometer uses an area array CMOS detection image sensor, which has lower cost and higher accuracy High, reducing installation requirements, and can achieve many things that one-dimensional sensors cannot do, such as improving accuracy, improving anti-interference ability, adding other measurement functions, etc.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为是一种现有的折光仪的结构示意图;Fig. 1 is the structural representation of a kind of existing refractometer;
图2为将图1中将感光线阵等效到液面那一侧的示意图;Fig. 2 is a schematic diagram of the side where the photosensitive line array is equivalent to the liquid surface in Fig. 1;
图3是本申请中的折光仪的一种结构示意图;Fig. 3 is a kind of structural representation of the refractometer in the present application;
图4为透镜单元采用无穷远对焦的成像原理示意图;Fig. 4 is a schematic diagram of the imaging principle of the lens unit using infinity focusing;
图5是折光仪在探测待测液体时感光面阵对所接收到的光束所成的探测图像;Fig. 5 is the detection image formed by the light beam received by the photosensitive surface array when the refractometer detects the liquid to be measured;
图6是折光仪在探测三种不同折射率的待测介质时感光面阵对所接收到的光束所成探测图像的变化的一个示意图;Fig. 6 is a schematic diagram of the change of the detection image formed by the light beam received by the photosensitive surface array pair when the refractometer detects three kinds of media to be measured with different refractive indices;
图7为将图3所示折光仪中的感光面阵等效到液面那一侧的示意图;Fig. 7 is the schematic diagram that the photosensitive array in the refractometer shown in Fig. 3 is equivalent to the side of the liquid surface;
图8和图9分别为本申请中采用不同尺寸的光源模块和透镜模块的折光仪的结构示意图;FIG. 8 and FIG. 9 are structural schematic diagrams of refractometers using light source modules and lens modules of different sizes in this application, respectively;
图10左侧是感光面阵对接收的光束所成的探测图像上的一个像素行的像素值曲线,右侧是对该行像素值及其上下多行像素值进行平均之后得到的像素值曲线。The left side of Figure 10 is the pixel value curve of a pixel row on the detection image formed by the photosensitive surface array to the received light beam, and the right side is the pixel value curve obtained after averaging the pixel value of the row and the pixel values of the upper and lower rows .
图11为本申请中的利用折光仪探测待测液体的折射率的方法的一个实施例的示意图。Fig. 11 is a schematic diagram of an embodiment of the method for detecting the refractive index of the liquid to be measured by using a refractometer in the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施例并不代表与本实用新型相一致的所有实施例。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.
在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本实用新型。在本发明和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used herein and in the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本发明可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another.
图3是本申请中的折光仪的一种结构示意图。如图3所示,折光仪包括光源模块1、反射模块2、透镜模块3、感光面阵4、控制模块(图未示)和处理器(图未示)。其中,控制模块用于控制光源模块1出射光束,以及用于控制感光面阵4进行光探测。可选的,控制模块中包括光源控制器和感光控制器,用于分别控制光源模块1和感光面阵4。反射模块2用于接收来自光源模块1的光束。其中,反射模块2包括全反射界面21,当来自光源模块1的光束在该全反射界面21上的入射角以及该全反射界面21两侧的介质的折射率满足全反射的条件时,来自该光源模块1的光束在该全反射界面21上发生全反射,并入射至透镜模块3。Fig. 3 is a structural schematic diagram of a refractometer in the present application. As shown in FIG. 3 , the refractometer includes a light source module 1 , a reflection module 2 , a lens module 3 , a photosensitive array 4 , a control module (not shown in the figure) and a processor (not shown in the figure). Wherein, the control module is used for controlling the light beam emitted by the light source module 1 and for controlling the photosensitive surface array 4 to perform light detection. Optionally, the control module includes a light source controller and a photosensitive controller for controlling the light source module 1 and the photosensitive array 4 respectively. The reflection module 2 is used for receiving the light beam from the light source module 1 . Wherein, the reflection module 2 includes a total reflection interface 21. When the incident angle of the light beam from the light source module 1 on the total reflection interface 21 and the refractive index of the medium on both sides of the total reflection interface 21 meet the conditions of total reflection, the The light beam of the light source module 1 is totally reflected on the total reflection interface 21 and enters the lens module 3 .
在一个示例中,该反射模块2包括棱镜,该棱镜2包括光入射面22、全反射界面21和光出射面23。来自光源模块1的光束从光入射面22入射至棱镜2内,并入射至全反射界面21上,当棱镜2外侧的介质5的折射率低于棱镜的折射率,且光束在全反射界面21上的入射角满足一定条件时,光束在棱镜2内的全反射界面21上发生全反射,并从光出射面23出射。可选的,该棱镜2为三棱镜。可选的,该棱镜2为等腰棱镜,例如为等腰直角棱镜,这样棱镜结构更紧凑,使得整体结构更小型化。可选的,该棱镜2的光入射面22和光出射面23上设置有增透膜,以提高光束的透射率。棱镜2可以采用玻璃材料制成,或者,也可以采用塑料、树脂等其它透明材料制成。可选的,该棱镜2的全反射界面21的大小与光源模块1的出射光的发散角匹配,使得该出射光在该全反射界面21上形成的光斑恰好覆盖该全反射界面21或者稍小于该全反射界面21,以有利于折光仪的小型化。在其他示例中,该反射模块2也可以是其他具有高折射率的光学元件,或者由其他具有高折射率的介质构成。In one example, the reflection module 2 includes a prism, and the prism 2 includes a light incident surface 22 , a total reflection interface 21 and a light exit surface 23 . The light beam from the light source module 1 is incident into the prism 2 from the light incident surface 22, and is incident on the total reflection interface 21. When the incident angle above satisfies a certain condition, the light beam is totally reflected on the total reflection interface 21 inside the prism 2, and exits from the light exit surface 23. Optionally, the prism 2 is a triangular prism. Optionally, the prism 2 is an isosceles prism, such as an isosceles rectangular prism, so that the structure of the prism is more compact, making the overall structure smaller. Optionally, anti-reflection coatings are provided on the light incident surface 22 and the light exit surface 23 of the prism 2 to increase the transmittance of light beams. The prism 2 can be made of glass material, or can also be made of other transparent materials such as plastic and resin. Optionally, the size of the total reflection interface 21 of the prism 2 matches the divergence angle of the outgoing light of the light source module 1, so that the light spot formed by the outgoing light on the total reflection interface 21 just covers the total reflection interface 21 or is slightly smaller than The total reflection interface 21 is beneficial to the miniaturization of the refractometer. In other examples, the reflective module 2 may also be other optical elements with a high refractive index, or be made of other media with a high refractive index.
透镜模块3用于将来自该全反射界面21的光束汇聚至透镜模块3的焦平面上。该透镜模块3可以是一个透镜,该透镜模块3的焦平面是该透镜的焦平面。或者,该透镜模块3包括由至少两个透镜元件组成的透镜组,这样可以通过光 学设计用额外的镜片来减少成像的像差和畸变。在透镜模块3包括至少两个透镜元件的情况中,透镜模块3的焦平面则是该透镜组的等效焦平面。The lens module 3 is used to converge the light beam from the total reflection interface 21 onto the focal plane of the lens module 3 . The lens module 3 may be a lens, and the focal plane of the lens module 3 is the focal plane of the lens. Alternatively, the lens module 3 includes a lens group consisting of at least two lens elements, so that an additional lens can be used to reduce imaging aberration and distortion through optical design. In case the lens module 3 comprises at least two lens elements, the focal plane of the lens module 3 is the equivalent focal plane of the lens group.
下面结合图4以透镜模块是一个透镜为例对透镜模块的作用进行解释。如图4所示,由于平行光经过透镜模块3可以被汇聚在焦平面上,在理想情况下,平行光在焦平面上的汇聚点是唯一的,是从透镜光心按该平行光方向延伸与焦平面的交点。该汇聚点只跟光线的方向有关,与光线的位置无关。利用该原理,通过在感光阵列前方增加透镜模块,就可以解耦光线的位置和方向,而不需要在光源处定义一个狭缝或者小孔来解耦。The function of the lens module will be explained below by taking the lens module as an example with reference to FIG. 4 . As shown in Figure 4, since the parallel light can be converged on the focal plane after passing through the lens module 3, under ideal conditions, the converging point of the parallel light on the focal plane is unique, extending from the optical center of the lens in the direction of the parallel light Intersection with the focal plane. The convergence point is only related to the direction of the light, not the position of the light. Using this principle, by adding a lens module in front of the photosensitive array, the position and direction of the light can be decoupled without defining a slit or a small hole at the light source for decoupling.
感光面阵4位于透镜模块3的焦平面上,用于对接收到的光束进行探测。当位于反射模块2的全反射界面21外侧的介质5的折射率低于反射模块2的折射率时,入射至反射模块2的全反射界面21上的光束中,入射角度大于全反射角的光束被全反射至透镜模块3,经透镜模块3汇聚至焦平面上的感光阵列;入射角度小于全反射角的光束中,部分透射全反射界面21,部分在全反射界面21上反射至透镜模块3,并被透镜模块3汇聚至焦平面上的感光阵列。The photosensitive surface array 4 is located on the focal plane of the lens module 3 and is used for detecting the received light beam. When the refractive index of the medium 5 outside the total reflection interface 21 of the reflection module 2 is lower than the refractive index of the reflection module 2, among the light beams incident on the total reflection interface 21 of the reflection module 2, the light beam with an incident angle greater than the total reflection angle It is totally reflected to the lens module 3, and converges to the photosensitive array on the focal plane through the lens module 3; in the light beam whose incident angle is smaller than the total reflection angle, part of the light beam is transmitted through the total reflection interface 21, and part is reflected on the total reflection interface 21 to the lens module 3 , and is converged by the lens module 3 to the photosensitive array on the focal plane.
如图5所示,图5是折光仪在探测一种待测液体时感光面阵对所接收到的光束所成的探测图像。折光仪被放置在待测液体5中,使得反射模块2中的全反射界面与待测液体5相接触后,感光面阵4形成探测图像。如图5所示,该探测图像8中包括反射区域81和包围该反射区域81的非反射区域82。反射区域81包括全反射区域811和非全反射区域812。其中,全反射区域81指的是探测图像8的反射区域81中,被反射模块2的全反射界面21全反射的光束所入射的区域,非全反射区域812指的是探测图像8中以小于全反射角入射至反射模块2的全反射界面21时被反射的光束所入射的区域。由于未被全反射的光束中被反射的部分相比被全反射的光束亮度突降,全反射区域812和非全反射区域811的交界处形成有明显的亮度突变界线813,该亮度突变界线813对应在全反射界面21处以全反射角入射的光束。As shown in Fig. 5, Fig. 5 is a detection image formed by the light beam received by the photosensitive surface array when the refractometer detects a liquid to be measured. The refractometer is placed in the liquid 5 to be tested, so that after the total reflection interface in the reflection module 2 contacts the liquid 5 to be tested, the photosensitive array 4 forms a detection image. As shown in FIG. 5 , the detection image 8 includes a reflective area 81 and a non-reflective area 82 surrounding the reflective area 81 . The reflection area 81 includes a total reflection area 811 and a non-total reflection area 812 . Wherein, the total reflection area 81 refers to the area in the reflection area 81 of the detection image 8 where the light beam totally reflected by the total reflection interface 21 of the reflection module 2 is incident, and the non-total reflection area 812 refers to the area in the detection image 8 that is less than The total reflection angle is the incident area of the reflected light beam when incident on the total reflection interface 21 of the reflection module 2 . Since the reflected part of the non-totally reflected light beam suddenly drops in brightness compared with the fully reflected light beam, an obvious brightness mutation boundary 813 is formed at the junction of the total reflection area 812 and the non-total reflection area 811, and the brightness mutation boundary 813 Corresponding to the incident light beam at the total reflection angle at the total reflection interface 21 .
如图6所示,图6是折光仪在探测三种不同折射率的待测介质时感光面阵对所接收到的光束所成探测图像的变化的一个示意图。可以看到对应着不同折射率的待测介质时,感光阵列所成探测图像中的亮度突变界线有明显的移动。由于透镜模块的设置,探测图像中不同的像素位置对应着以不同角度从全反射界面出射的光束,因此处理器可以通过获取该亮度突变界线中的至少一个像素点的位置来确定该亮度突变界线对应的全反射角,继而根据该全反射角计算待测介质的折射率。As shown in FIG. 6 , FIG. 6 is a schematic diagram of changes in detection images formed by the light beams received by the photosensitive surface array when the refractometer detects three kinds of media to be measured with different refractive indices. It can be seen that when corresponding to the medium to be tested with different refractive indices, the brightness mutation boundary in the detection image formed by the photosensitive array has obvious movement. Due to the setting of the lens module, different pixel positions in the detection image correspond to beams emitted from the total reflection interface at different angles, so the processor can determine the brightness mutation boundary by obtaining the position of at least one pixel point in the brightness mutation boundary The corresponding total reflection angle, and then calculate the refractive index of the medium to be measured according to the total reflection angle.
处理器确定探测图像中的亮度突变界线的位置的方法有多种。例如,处理器可以分别计算探测图像中的反射区域中的各像素行的亮度梯度变化,将每行像素中梯度变化最大的像素点确定为亮度突变界线上的点。或者,处理器也可以通过边缘检测、模板匹配、机器学习等方法获取亮度突变界线的位置。可选的,在获取亮度突变界线的位置的过程中,处理器还可以获取当前温度和/或由装配公差导致的界线偏差,并根据该当前温度和/或界线偏差对获取到的亮度突 变界线的位置进行补偿。确定亮度突变界线后,处理器可以在预先标定好的亮度突变界线和折射率的对应关系表中查表得到对应的折射率。There are a number of ways for the processor to determine the location of the abrupt brightness boundary in the detected image. For example, the processor may separately calculate the brightness gradient change of each pixel row in the reflection area in the detection image, and determine the pixel point with the largest gradient change in each row of pixels as the point on the boundary line of the sudden brightness change. Alternatively, the processor may also acquire the position of the boundary line of sudden brightness changes through methods such as edge detection, template matching, and machine learning. Optionally, in the process of obtaining the position of the sudden brightness change boundary, the processor may also obtain the current temperature and/or the boundary deviation caused by the assembly tolerance, and compare the obtained brightness sudden change boundary according to the current temperature and/or the boundary deviation position to compensate. After determining the boundary line of abrupt change in brightness, the processor can look up the corresponding relationship table between the boundary line of sudden change in brightness and the refractive index that has been calibrated in advance to obtain the corresponding refractive index.
本申请中,透镜的视场角由透镜的焦距f和孔径大小d决定。然而折光仪要实现大折射率探测范围不仅仅取决于透镜的视场角,还需要确保该视场角内的光线能被全反射界面21反射并入射到透镜中,因此需相应的增加发光光源的尺寸。最终透镜能够收到的光束的角度范围由光源的尺寸和透镜的尺寸共同决定。下面结合图7所示的等效光学系统进行详细解释。在该等效光学系统中,透镜模块3、感光面阵4和处理器被镜像到全反射界面21背向光源模块1的一侧,透镜模块3以一个透镜为例进行示例。In this application, the viewing angle of the lens is determined by the focal length f and the aperture size d of the lens. However, to achieve a large refractive index detection range for a refractometer not only depends on the viewing angle of the lens, but also needs to ensure that the light within the viewing angle can be reflected by the total reflection interface 21 and enter the lens, so it is necessary to increase the light source accordingly size of. The angle range of the light beam that the final lens can receive is determined by the size of the light source and the size of the lens. A detailed explanation will be given below in conjunction with the equivalent optical system shown in FIG. 7 . In this equivalent optical system, the lens module 3 , the photosensitive surface array 4 and the processor are mirrored on the side of the total reflection interface 21 facing away from the light source module 1 , and the lens module 3 takes a lens as an example.
如图7所示,感光面阵4能够探测的角度范围α由边缘的两条线所定义:光源模块1的发光面的最上端到透镜3的通光孔径的最下端的光线r1,和光源模块1的发光面的最下端到透镜的通光孔径的最上端的光线r2。该角度范围α由光源模块1的发光面的尺寸、透镜3的通光孔径、光源模块1的发光面与透镜3之间的距离这三个变量决定。因此,在感光面阵4的探测角度范围α相同的情况下,相比图1所示的采用狭缝设计的折光仪,本申请中感光面阵的尺寸可以由光源模块1的发光面的尺寸和透镜的通光孔径一同分担。也即在感光面阵的探测角度范围α相同的情况下,图1所示折光仪中的感光面阵的口径=本申请中的光源模块1的发光面的口径+透镜的通光孔径。As shown in Figure 7, the angle range α that can be detected by the photosensitive array 4 is defined by two lines on the edge: the light r1 from the uppermost end of the light-emitting surface of the light source module 1 to the lowermost end of the clear aperture of the lens 3, and the light source r1 Light r2 from the lowermost end of the light-emitting surface of the module 1 to the uppermost end of the clear aperture of the lens. The angle range α is determined by three variables: the size of the light emitting surface of the light source module 1 , the clear aperture of the lens 3 , and the distance between the light emitting surface of the light source module 1 and the lens 3 . Therefore, in the case that the detection angle range α of the photosensitive surface array 4 is the same, compared with the refractometer with a slit design shown in FIG. Shared with the clear aperture of the lens. That is to say, when the detection angle range α of the photosensitive array is the same, the aperture of the photosensitive array in the refractometer shown in FIG. 1 = the aperture of the light emitting surface of the light source module 1 in this application + the clear aperture of the lens.
在一种示例中,光源模块1的发光面的口径大于或者等于透镜模块3的通光孔径。例如,如图8所示,光源模块1的发光面的口径和透镜模块3的通光孔径相同或者相差小于该发光面的口径的1/5。这样,在感光面阵4的探测角度范围α相同的情况下,本申请的折光仪中的感光面阵的口径上现有技术中的折光仪的感光面阵的口径的一半,可以减少折光仪的成本和量产难度。又例如,如图9所示,光源模块1的发光面的口径大于透镜模块3的通光孔径的2倍。这样,在感光面阵的探测角度范围α相同的情况下,本申请的折光仪中的感光面阵的口径的尺寸可以做到非常小,由于增大光源模块1的尺寸相比增大感光面阵的尺寸所需成本和量产难度要低得多,通过让光源模块1承担更多的尺寸可以更大程度降低成本和量产难度。而且,相比图1所示折光仪中则需要在液面范围内全反射面界面的反射性质保持一致,由于本申请中可以直接测量光线方向,即使在全反射界面处有气泡或者待测介质没有完全覆盖全反射界面的情况下,亮度突变界线仍然清晰可分辨。In an example, the aperture of the light emitting surface of the light source module 1 is greater than or equal to the aperture of the lens module 3 . For example, as shown in FIG. 8 , the diameter of the light-emitting surface of the light source module 1 is the same as the aperture of the lens module 3 or the difference is less than 1/5 of the diameter of the light-emitting surface. Like this, under the same situation that the detection angle range α of photosensitive surface array 4 is the same, the aperture of the photosensitive surface array in the refractometer of the present application is half of the aperture of the photosensitive surface array of the refractometer in the prior art, can reduce the number of refractometers. cost and difficulty in mass production. For another example, as shown in FIG. 9 , the aperture of the light emitting surface of the light source module 1 is larger than twice the aperture of the lens module 3 . In this way, under the condition that the detection angle range α of the photosensitive surface array is the same, the size of the aperture of the photosensitive surface array in the refractometer of the present application can be made very small. The cost and difficulty of mass production required by the size of the array are much lower, and the cost and difficulty of mass production can be reduced to a greater extent by allowing the light source module 1 to bear more dimensions. Moreover, compared to the refractometer shown in Figure 1, the reflection properties of the total reflection surface interface need to be consistent within the range of the liquid surface. Since the light direction can be directly measured in this application, even if there are bubbles or the medium to be measured at the total reflection interface In the case that the total reflection interface is not completely covered, the boundaries of sudden changes in brightness are still clearly distinguishable.
可选的,感光面阵4的探测角度范围α覆盖透镜模块3的全反射角范围,其中该透镜模块3的全反射角范围指的是在透镜模块3的全反射界面上可以发生全反射的所有角度,以保证折光仪的大折射率探测范围。可选的,反射模块2采用高折射率的介质,以减小透镜模块3的全反射角范围。然而,由于高折射率的玻璃色散较为严重,这是因为不同波长的光线透过玻璃的时候,高折射率的反射模块会导致不同波长的光束的折射率变化较大,进而导致感光面阵获取到的探测图像中全反射边界会产生模糊现象,会降低全反射角的探测精度。 一个示例中,折光仪可采用波长带宽较窄的光源模块,或者在光源模块的出射光路上设置窄带滤光片,以降低光源模块的出射光的波长带宽,以减少色散现象。例如,光源模块的出射光或者经窄带滤光片滤波后的出射光为具有5nm以下半高宽的光束。Optionally, the detection angle range α of the photosensitive surface array 4 covers the total reflection angle range of the lens module 3, wherein the total reflection angle range of the lens module 3 refers to the total reflection that can occur on the total reflection interface of the lens module 3 All angles to ensure the large refractive index detection range of the refractometer. Optionally, the reflection module 2 uses a medium with a high refractive index to reduce the total reflection angle range of the lens module 3 . However, due to the serious dispersion of high refractive index glass, this is because when light of different wavelengths passes through the glass, the reflective module with high refractive index will cause a large change in the refractive index of light beams of different wavelengths, which in turn will cause the photosensitive array to obtain The total reflection boundary in the detected detection image will produce blurring, which will reduce the detection accuracy of the total reflection angle. In an example, the refractometer may use a light source module with a narrow wavelength bandwidth, or set a narrow-band filter on the outgoing light path of the light source module to reduce the wavelength bandwidth of the outgoing light from the light source module to reduce dispersion. For example, the outgoing light of the light source module or the outgoing light filtered by the narrow-band filter is a light beam with a full width at half maximum of 5 nm or less.
本申请中由于通过在感光阵列前方增加透镜模块解耦光线的位置和方向,因此不需要光源模块很小,只要有对应角度的光就能聚焦在对应的传感器位置上。相比现有技术,本申请中的光源模块不需要负担区分角度和位置的功能。现有技术中由于需要光源模块的发散角较大,但LED光源的发散角本身不是很大,因此采用现有技术的方案需要找特制的大角度小发光面的LED光源。但本申请由于对光源模块1的要求放松很多,大角度的发光范围可以由多个LED+匀光板实现。在一个示例中,如图3所示,光源模块1还包括位于发光面一侧的匀光片6。由于感光面阵感知的是来自不同方向的光束,匀光片可以提高各方向的光束的均匀度,进而提高感光面阵所成像的均匀度,也可以避免因不同角度的光强不一致导致测量精度降低的问题。In this application, since the lens module is added in front of the photosensitive array to decouple the position and direction of the light, the light source module does not need to be small, as long as there is light at a corresponding angle, it can be focused on the corresponding sensor position. Compared with the prior art, the light source module in the present application does not need to bear the function of distinguishing angles and positions. In the prior art, since the divergence angle of the light source module is required to be relatively large, but the divergence angle of the LED light source itself is not very large, it is necessary to find a specially-made LED light source with a large angle and a small light-emitting surface in the solution of the prior art. However, in this application, the requirements for the light source module 1 are much relaxed, and the large-angle light-emitting range can be realized by multiple LEDs+light-diffusing panels. In one example, as shown in FIG. 3 , the light source module 1 further includes a dodging sheet 6 located on one side of the light emitting surface. Since the photosensitive array perceives beams from different directions, the homogenization sheet can improve the uniformity of the beams in each direction, thereby improving the uniformity of the image formed by the photosensitive array, and can also avoid the measurement accuracy caused by inconsistent light intensities at different angles. Lowering the problem.
在一个示例中,光源模块1包括LED灯条,或者包括由多个LED灯珠通过贴片或者封装的方式组合而成的光源。LED的波长需要能够兼容CMOS感光阵列的波长响应,该波长可以位于300nm至1000nm之间,例如该波长可以位于400nm至500nm之间,或者位于500nm至600nm之间,或者位于600nm至700nm之间,或者位于700nm至800nm之间,或者位于800nnm至900nm之间。可选的,LED的波长为绿光波段,例如中心波长位于500nm至600nm之间。由于市面上一种常见的感光面阵是贝尔图形(Bayer pattern)为RGGB的CMOS传感器,这类感光面阵对于G通道会分辨率更高更敏感,采用绿光波段可以更好地与感光面阵配合。In one example, the light source module 1 includes an LED light bar, or includes a light source composed of a plurality of LED light beads by patching or packaging. The wavelength of the LED needs to be compatible with the wavelength response of the CMOS photosensitive array. The wavelength can be between 300nm and 1000nm, for example, the wavelength can be between 400nm and 500nm, or between 500nm and 600nm, or between 600nm and 700nm. Either between 700nm and 800nm, or between 800nnm and 900nm. Optionally, the wavelength of the LED is in the green light band, for example, the central wavelength is between 500nm and 600nm. Since a common photosensitive area array on the market is a CMOS sensor with a Bayer pattern of RGGB, this type of photosensitive area array has a higher resolution and is more sensitive to the G channel. Using the green light band can better communicate with the photosensitive surface. array with.
在一个示例中,如图3所示,反射模块2的全反射界面21到感光阵列4之间的的光路上设有匹配光源模块1的出射光的滤光片7,用于透射该光源模块1的出射光以及反射其他波段的光束,以降低背景光对探测结果的干扰。可选的,光源模块1的出射光是单波长的,以便更容易匹配窄带滤光片做背景光消除。In one example, as shown in FIG. 3 , an optical filter 7 matching the outgoing light of the light source module 1 is provided on the optical path between the total reflection interface 21 of the reflective module 2 and the photosensitive array 4 for transmitting the light from the light source module. 1 and reflected beams of other wavelength bands to reduce the interference of background light on the detection results. Optionally, the output light of the light source module 1 is of a single wavelength, so that it is easier to match a narrow-band filter to eliminate background light.
在一个示例中,感光面阵4可以是互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS)传感器阵列。当然,感光面阵4也可以采用CCD图像传感器等其它光电传感器来实现。可选的,感光面阵4输出探测图像之后,处理器根据该探测图像统计探测图像亮度,当探测图像亮度满足预设条件之后才根据该探测图像计算折射率。该预设条件可以有多种,例如,该预设条件包括探测图像亮度与预设目亮度相差数值的绝对值大于阈值。In one example, the photosensitive surface array 4 may be a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS) sensor array. Of course, the photosensitive surface array 4 can also be realized by using other photoelectric sensors such as CCD image sensors. Optionally, after the photosensitive surface array 4 outputs the detection image, the processor counts the brightness of the detection image according to the detection image, and calculates the refractive index according to the detection image only after the brightness of the detection image satisfies a preset condition. There may be various preset conditions. For example, the preset condition includes that the absolute value of the difference between the detected image brightness and the preset target brightness is greater than a threshold.
相比现有技术中采用线阵作为感光阵列,采用CMOS传感器面阵不仅可以大幅降低安装的要求,还可以通过二维阵列的性质增加许多以前一维阵列无法做到的事情。例如,在根据感光面阵探测到的一帧探测图像计算折射率之前,处理器可以根据一帧探测图像中对应感光面阵上多行传感器测的像素值来进行 滤噪,提高信噪比。其中,处理器可以对该帧探测图像在空间域或变换域上进行滤噪。在滤噪时,处理器可以基于窗口滑动平均滤波的方式进行滤噪,该滤波窗口的宽度可以是1至探测图像宽度之间的数值,高度可以是1至探测图像高度之间的数值。在一个具体例子中,处理器可以对多行传感器探测得到的像素值进行加权处理(例如平均处理),得到滤噪后的结果,再根据该滤噪后的结果计算待检测介质的折射率。当然,处理器还可以采用其他滤噪的方法,例如采用机器学习的方法对该帧探测图像滤噪。Compared with the use of linear arrays as photosensitive arrays in the prior art, the use of CMOS sensor area arrays can not only greatly reduce the installation requirements, but also add many things that the previous one-dimensional arrays could not do through the nature of the two-dimensional array. For example, before calculating the refractive index based on a frame of detection image detected by the photosensitive surface array, the processor can perform noise filtering based on the pixel values measured by multiple rows of sensors corresponding to the photosensitive surface array in a frame of detection image to improve the signal-to-noise ratio. Wherein, the processor may perform noise filtering on the frame detection image in the space domain or the transformation domain. When filtering noise, the processor can perform noise filtering based on window sliding average filtering. The width of the filtering window can be a value between 1 and the width of the detected image, and the height can be a value between 1 and the height of the detected image. In a specific example, the processor may perform weighting processing (for example, averaging processing) on the pixel values detected by the multi-row sensors to obtain a noise-filtered result, and then calculate the refractive index of the medium to be detected according to the noise-filtered result. Certainly, the processor may also adopt other noise filtering methods, for example, adopting a machine learning method to filter noise of the frame detection image.
如图10所示,图10左侧是感光面阵对接收的光束所成的探测图像上的一个像素行的像素值曲线,右侧是对该行像素值及其上下多行像素值进行平均之后得到的像素值曲线,可以看出在利用多行像素值进行平均处理后可以降低噪声的影响。相比现有技术中仅有一行像素值(也即只有线阵传感器的探测结果),本申请中采用感光面阵可以增加测量的精准度。As shown in Figure 10, the left side of Figure 10 is the pixel value curve of a pixel row on the detection image formed by the light beam received by the photosensitive surface array, and the right side is the average of the pixel value of the row and the pixel values of the upper and lower rows From the pixel value curve obtained afterwards, it can be seen that the influence of noise can be reduced after averaging processing with the pixel values of multiple rows. Compared with the prior art where there is only one line of pixel values (that is, only the detection results of the line array sensor), the use of a photosensitive area array in this application can increase the accuracy of measurement.
又例如,在根据探测图像中的反射区域中的多行像素值计算待测介质的折射率时,处理器可以剔除受杂散光影响的一行或多行像素值,或者降低受杂散光影响的该行或多行像素值的影响权重。For another example, when calculating the refractive index of the medium to be measured based on multiple rows of pixel values in the reflection area in the detection image, the processor can eliminate one or more rows of pixel values affected by stray light, or reduce the pixel values affected by stray light. Influence weights for row or rows of pixel values.
可以从一帧探测图像中选择受杂散光影响较小的一行测量结果来计算待测介质的折射率。杂散光是光学系统中由于表面磨损、脏污、雾气凝结或者器件位置偏移等原因形成的干扰光。杂散光的存在会降低折射率的计算准确度。采用感光面阵,处理器可通过对多行像素行的亮度进行比较分析,来确定受杂散光的像素行。相比现有技术中的线性传感器,本申请中采用感光面阵可以提高折射率测量的准确度。可选的,处理器还可以通过对多帧探测图像进行比较分析,来确定受杂散光的像素行。这样对于有杂散光影响时的折射率测量来说更加鲁棒。A line of measurement results less affected by stray light can be selected from a frame of detection images to calculate the refractive index of the medium to be measured. Stray light is the interference light formed in the optical system due to surface wear, dirt, fog condensation or device position deviation. The presence of stray light will reduce the calculation accuracy of the refractive index. Using the photosensitive area array, the processor can determine the pixel row affected by stray light by comparing and analyzing the brightness of multiple rows of pixel rows. Compared with the linear sensor in the prior art, the photosensitive area array in this application can improve the accuracy of refractive index measurement. Optionally, the processor can also determine the pixel rows affected by stray light by comparing and analyzing multiple frames of detection images. This is more robust for refractive index measurements in the presence of stray light.
在一个示例中,处理器在计算折射率之前,还可以根据多帧探测图像进行滤噪。举例来说,感光面阵在采集到多帧探测图像后,处理器可以对该多帧探测图像进行加权求和处理以合成一帧探测图像,再利用该合成的探测图像计算折射率。可选的,在计算折射率之前,处理器还可以采用上面描述的单帧滤噪的方法对该合成的探测图像进行进一步滤噪。In an example, before calculating the refractive index, the processor may also perform noise filtering according to multiple frames of detection images. For example, after the photosensitive array collects multiple frames of detection images, the processor can perform weighted sum processing on the multiple frames of detection images to synthesize a frame of detection images, and then use the synthesized detection images to calculate the refractive index. Optionally, before calculating the refractive index, the processor may also use the single-frame noise filtering method described above to perform further noise filtering on the synthesized detection image.
在一个示例中,折光仪还具有待机模式和/或低功耗模式。在该待机模式中,控制模块于休眠待机状态,光源模块和感光面阵均断电,折光仪整体耗电位于uW级别。在低功耗模式下,控制模块用于控制光源模块和感光面阵同步频闪,通电时间极短,折光仪整体耗电处于mW级别。具体的,控制模块在控制光源模块1和感光面阵时,可以根据感光面阵的帧信号同步触发脉冲宽度调制(PWM,Pulse Width Modulation)信号实现对光源模块调光。In one example, the refractometer also has a standby mode and/or a low power mode. In this standby mode, the control module is in a sleep standby state, the light source module and the photosensitive array are both powered off, and the overall power consumption of the refractometer is at the uW level. In the low power consumption mode, the control module is used to control the light source module and the photosensitive array to strobe synchronously, the power-on time is extremely short, and the overall power consumption of the refractometer is at the mW level. Specifically, when the control module controls the light source module 1 and the photosensitive array, it can synchronously trigger a pulse width modulation (PWM, Pulse Width Modulation) signal according to the frame signal of the photosensitive array to realize dimming of the light source module.
在一个示例中,控制模块还可以获取当前测量环境的亮度信息,并根据该亮度信息来调整感光面阵的探测图像画质,以获取一个更优的测量画质。其中,控制模块可以根据该亮度信息调节以下至少一项:光源模块的出射光强度、感光面阵的曝光时长、感光面阵的模拟增益、感光面阵的数字增益。其中,可以 利用感光面阵在测量全反射光以外的时间段内测量环境光,或者,探测模块内还设有其他用于测量当前环境的亮度信息的传感器。In an example, the control module can also obtain brightness information of the current measurement environment, and adjust the detection image quality of the photosensitive area array according to the brightness information, so as to obtain a better measurement quality. Wherein, the control module can adjust at least one of the following items according to the brightness information: the output light intensity of the light source module, the exposure time of the photosensitive array, the analog gain of the photosensitive array, and the digital gain of the photosensitive array. Wherein, the photosensitive surface array can be used to measure the ambient light in a time period other than measuring the total reflected light, or other sensors for measuring the brightness information of the current environment are provided in the detection module.
在一个示例中,折光仪还包括第一温度传感器,设置在反射模块内部或者反射模块的表面上位于光路之外的区域上,用于检测反射模块的温度。可选的,折光仪还包括第二温度传感器,设置在反射模块的全反射界面面向待测介质的一侧的表面上,用于探测待测介质的温度。或者,第一温度传感器和第二温度传感器也可以不是直接与反射模块或者待测介质接触,而是通过导热性能较好的材料作为媒介接触。由于液体的折射率与液体的温度有关,而棱镜的温度决定了棱镜的热胀冷缩的比例,且棱镜的温度会导致光束的入射和出射角的偏移,因此,通过预先建立好的待测液体的温度、反射模块的温度与待测液体的折射率的关系模型,在计算待测液体的折射率时根据获取到的待测液体的温度和反射模块的温度和该关系模型来计算待测液体的折射率,可以提高折射率计算的准确度。In one example, the refractometer further includes a first temperature sensor disposed inside the reflective module or on a surface of the reflective module on an area outside the optical path for detecting the temperature of the reflective module. Optionally, the refractometer further includes a second temperature sensor, which is arranged on the surface of the total reflection interface of the reflection module facing the medium to be measured, for detecting the temperature of the medium to be measured. Alternatively, the first temperature sensor and the second temperature sensor may not be in direct contact with the reflective module or the medium to be measured, but through a material with better thermal conductivity as a medium. Since the refractive index of the liquid is related to the temperature of the liquid, and the temperature of the prism determines the ratio of thermal expansion and contraction of the prism, and the temperature of the prism will cause the deviation of the incident and outgoing angles of the beam, therefore, through the pre-established The relationship model between the temperature of the liquid to be measured, the temperature of the reflection module and the refractive index of the liquid to be measured is calculated according to the obtained temperature of the liquid to be measured, the temperature of the reflection module and the relationship model when calculating the refractive index of the liquid to be measured. Measuring the refractive index of liquid can improve the accuracy of refractive index calculation.
在一个示例中,处理器还可以根据感光面阵输出的探测图像计算待测液体的浊度。光源模块1的出射光中,从反射模块2的全反射界面21透射至待测液体的光束中遇到待测液体中的颗粒悬浮物会发生散射,其中部分散射光会透射该全反射界面21后入射到感光阵列上。散射按照散射颗粒的大小分为具有不同的角度分量的瑞利散射、米氏散射以及折射。通过对感光面阵探测到的探测图像分析,处理器可以获取探测图像光强分配,并根据该光强分布获取散射颗粒的大小及性质,进而判断液体的浊度。In an example, the processor can also calculate the turbidity of the liquid to be tested according to the detection image output by the photosensitive array. Among the outgoing light from the light source module 1, the light beam transmitted from the total reflection interface 21 of the reflection module 2 to the liquid to be measured will be scattered when encountering suspended particles in the liquid to be measured, and part of the scattered light will be transmitted through the total reflection interface 21 Then incident on the photosensitive array. Scattering is divided into Rayleigh scattering, Mie scattering, and refraction with different angular components according to the size of the scattering particles. By analyzing the detection image detected by the photosensitive area array, the processor can obtain the light intensity distribution of the detection image, and obtain the size and properties of the scattering particles according to the light intensity distribution, and then judge the turbidity of the liquid.
例如,如图5所示,由液体中的颗粒导致的散射会导致不应该出现亮度的非反射区域上出现亮度值。因此,处理器可以根据该非反射区域上的亮度计算液体的颗粒浓度。具体的,由于探测图像中的不同像素位置对应在全反射界面上以不同角度入射的光束,在探测图像中的非反射区域上,可以理解该非反射区域包括全反射区域和非全反射区域,其中图5中该非反射区域的全反射区域位于反射区域的全反射区域的上下两侧,该非反射区域的非全反射区域位于反射区域的非全反射区域的上下两侧。由于被待测液体中的颗粒所散射的光束只能以全反射角以内的角度重新进入反射模块,因此感光面阵所成的探测图像中只有对应小于全反射角的区域上会出现散射光斑,也即被散射的光束只会出现在探测图像中的非全反射区域。For example, as shown in Figure 5, scattering caused by particles in the liquid can cause luminance values to appear on non-reflective areas where luminance should not be present. Thus, the processor can calculate the particle concentration of the liquid from the brightness on this non-reflective area. Specifically, since different pixel positions in the detection image correspond to light beams incident at different angles on the total reflection interface, on the non-reflection area in the detection image, it can be understood that the non-reflection area includes a total reflection area and a non-total reflection area, In FIG. 5 , the total reflection area of the non-reflection area is located on the upper and lower sides of the total reflection area of the reflection area, and the non-total reflection area of the non-reflection area is located on the upper and lower sides of the non-total reflection area of the reflection area. Since the light beam scattered by the particles in the liquid to be measured can only re-enter the reflection module at an angle within the total reflection angle, only the area corresponding to the area smaller than the total reflection angle will appear in the detection image formed by the photosensitive surface array. That is, the scattered light beam will only appear in the non-total reflection area in the detection image.
因此,在一个示例中,处理器可以根据探测图像上非反射区域中的非全反射区域的亮度来计算散射亮度。可选的,处理器还可以以非反射区域中的全反射区域的亮度作为基准值来计算散射亮度的绝对值。例如,处理器可以将探测图像上非反射区域中的非全反射区域的亮度减去非反射区域中的全反射区域的亮度,得到散射亮度的绝对值。获取到散射亮度后,处理器可以根据预先建立好的散射亮度和液体浊度的对应关系模型,得到对应的待测液体的浊度。Therefore, in an example, the processor may calculate the scattered brightness according to the brightness of the non-total reflection area in the non-reflection area on the detection image. Optionally, the processor may also use the brightness of the total reflection area in the non-reflection area as a reference value to calculate the absolute value of the scattering brightness. For example, the processor may subtract the brightness of the total reflection area in the non-reflection area from the brightness of the non-total reflection area in the non-reflection area on the detection image to obtain the absolute value of the scattering brightness. After obtaining the scattering brightness, the processor can obtain the corresponding turbidity of the liquid to be measured according to the pre-established corresponding relationship model between the scattering brightness and the liquid turbidity.
可选的,处理器在确定非反射区域中的全反射区域的亮度时,可以对该区域中的至少部分像素的亮度进行加权平均处理,得到该全反射区域的亮度。同 理,在确定非反射区域中的非全反射区域的亮度时,可以对该区域中的至少部分像素的亮度进行加权平均处理,得到该非全反射区域的亮度。这样可以降低计算误差。Optionally, when the processor determines the brightness of the total reflection area in the non-reflection area, it may perform weighted average processing on the brightness of at least some pixels in the area to obtain the brightness of the total reflection area. Similarly, when determining the brightness of the non-total reflection area in the non-reflection area, weighted average processing may be performed on the brightness of at least some pixels in the area to obtain the brightness of the non-total reflection area. This reduces calculation errors.
可选的,透镜模块的入射光路上或者透镜模块的表面上设置有狭缝。由于探测图像中的反射区域的宽度由光源模块的宽度以及透镜模块的通光口径决定,通过在透镜模块的入射光路上或者透镜模块的表面上设置有狭缝,可以在探测图像上反射区域和非反射区域之间形成更加清晰的边界线,有利于提高浊度计算的准确度。Optionally, a slit is provided on the incident light path of the lens module or on the surface of the lens module. Since the width of the reflection area in the detection image is determined by the width of the light source module and the light aperture of the lens module, by setting a slit on the incident light path of the lens module or on the surface of the lens module, the reflection area and A clearer boundary line is formed between non-reflective areas, which is beneficial to improve the accuracy of turbidity calculation.
又例如,如图5所示,由接近反射模块的全反射界面的颗粒导致的散射会导致探测图像中的反射区域中的亮度突变界线被模糊掉了,因此处理器还可以获取感光面阵探测到的探测图像上的亮度突变界线的模糊程度,并根据该模糊程度来确定待测液体中的浊度。其中,处理器可以根据预先标定好的亮度突变界线的模糊程度和液体浊度的对应关系查表,得到对应的待测液体的浊度。For another example, as shown in Figure 5, the scattering caused by particles close to the total reflection interface of the reflection module will cause the boundary line of the brightness change in the reflection area in the detection image to be blurred, so the processor can also obtain the photosensitive surface array detection The degree of fuzziness of the sudden change boundary of brightness on the detected image is determined, and the turbidity in the liquid to be tested is determined according to the degree of fuzziness. Wherein, the processor can look up a table according to the corresponding relationship between the fuzzy degree of the pre-calibrated brightness mutation boundary and the turbidity of the liquid to obtain the corresponding turbidity of the liquid to be measured.
在一些示例中,处理器用于在待测液体的浓度低于预设浓度时根据探测图像中的非反射区域上的亮度计算液体的浊度,在该待测液体的浓度高于预设浓度时根据探测图像上的亮度突变界线的模糊程度来计算液体的浊度。在待测液体浓度较低时,该待测液体的浊度和探测图像中的非反射区域的亮度具有较好的线性关系,根据非反射区的亮度来计算浊度可以具有更高的准确率,在待测液体的浓度较高时该线性关系下降,通过亮度突变界线的模糊程度来计算浊度可以更加准确。In some examples, the processor is used to calculate the turbidity of the liquid according to the brightness on the non-reflection area in the detection image when the concentration of the liquid to be tested is lower than a preset concentration, and when the concentration of the liquid to be tested is higher than a preset concentration The turbidity of the liquid is calculated according to the fuzzy degree of the boundary line of the sudden change in brightness on the detection image. When the concentration of the liquid to be tested is low, the turbidity of the liquid to be tested has a good linear relationship with the brightness of the non-reflective area in the detection image, and the calculation of turbidity according to the brightness of the non-reflective area can have higher accuracy , when the concentration of the liquid to be measured is high, the linear relationship decreases, and it is more accurate to calculate the turbidity through the fuzziness of the brightness mutation boundary.
折光仪计算浊度可以有许多应用场景。一些示例中,折光仪可以用于对液体进行成分检测。例如,折光仪可以同时测量液体的折射率和浊度,判定液体性质。又例如,折光仪可以同时测量液体(例如咖啡)的折射率和浊度,判断液体的含糖量和含奶量。又例如,折光仪可以同时测量液体(例如果汁)的折射率和浊度,判断液体的含糖量和果肉含量。又例如,折光仪可以测量传感器的清晰液体中的折射率和浊度,该折射率和浊度可以用于判断该传感器是否有脏污。可选的,该脏污判断结果可以用于决策是否需要继续清洁。在一个应用场景中,折光仪可以用于清洁机器(例如洗碗机、洗衣机等),对清洁物体后的液体探测折射率和浊度,来判断被清洁物体的清洁度。在一个应用场景中,折光仪可以用于水质量检测。折光仪的判断结果可以通过交互模块显示给用户。Calculating turbidity with a refractometer can have many applications. In some examples, refractometers can be used to perform compositional testing of liquids. For example, a refractometer can simultaneously measure the refractive index and turbidity of a liquid to determine its properties. For another example, a refractometer can measure the refractive index and turbidity of a liquid (such as coffee) at the same time, and judge the sugar content and milk content of the liquid. As another example, a refractometer can simultaneously measure the refractive index and turbidity of a liquid (such as fruit juice) to determine the sugar content and pulp content of the liquid. As another example, a refractometer can measure the refractive index and turbidity in the clear liquid of the sensor, which can be used to determine whether the sensor is dirty. Optionally, the dirty judgment result can be used to decide whether to continue cleaning. In one application scenario, the refractometer can be used for cleaning machines (such as dishwashers, washing machines, etc.), and detect the refractive index and turbidity of the liquid after cleaning the object to judge the cleanliness of the cleaned object. In one application scenario, refractometers can be used for water quality detection. The judgment result of the refractometer can be displayed to the user through the interactive module.
由于待测液体的浊度改变时也会影响该待测液体的折射率,在一些示例中,处理器还用于在计算出待测液体的浊度后,根据该预先标定好的浊度对折射率的影响关系,来对该待测液体的折射率进行修正。例如,在一种应用场景中,折光仪一起测量待测液体的浊度和糖度时,通过同时测量待测液体的浊度和糖度可以区分该待测液体中的奶和糖的比例从而得出准确的奶量和糖度值,继而可以更加准确地计算该待测液体的卡路里含量。Since the change of the turbidity of the liquid to be measured will also affect the refractive index of the liquid to be measured, in some examples, the processor is also used to calculate the turbidity of the liquid to be measured according to the pre-calibrated turbidity The influence relationship of the refractive index is used to correct the refractive index of the liquid to be measured. For example, in an application scenario, when the refractometer measures the turbidity and sugar content of the liquid to be tested together, the ratio of milk and sugar in the liquid to be tested can be distinguished by measuring the turbidity and sugar content of the liquid to be tested simultaneously to obtain Accurate milk volume and brix values can then more accurately calculate the calorie content of the liquid to be tested.
在一些示例中,折光仪还包括以下至少一种:用于探测待测液体的颜色的色度计、用于探测待测液体中的离子(例如酸性离子)含量的阻抗计、用于探 测待测液体的酸度值的PH值计,以便处理器根据这些信息来辅助确定该待测液体的种类。In some examples, the refractometer further includes at least one of the following: a colorimeter for detecting the color of the liquid to be tested, an impedance meter for detecting the content of ions (such as acid ions) in the liquid to be tested, and an impedance meter for detecting the color of the liquid to be tested. A PH value meter for measuring the acidity value of the liquid, so that the processor can assist in determining the type of the liquid to be tested based on the information.
在一个示例中,折光仪还包括无线通信模块,用于将处理器所得到的待测液体的折射率、浊度、温度中的至少一项发送给其他客户端(例如手机中的小程序、应用程序、电脑客户端、服务器等),以便客户端根据所收集到的来自一个或多个折光仪的数据进行显示或者分析。在一个示例中,折光仪还包括交互模块,用于将所探测得到的数据显示给用户。In one example, the refractometer also includes a wireless communication module, which is used to send at least one of the refractive index, turbidity, and temperature of the liquid to be measured obtained by the processor to other clients (such as small programs in mobile phones, application, computer client, server, etc.), so that the client can display or analyze the collected data from one or more refractometers. In one example, the refractometer further includes an interactive module for displaying the detected data to the user.
本申请中还提供一种智能杯,该智能杯内设置有上述折光仪,用于探测水杯内的液体的折射率和/或浊度。可选的,该智能杯还设置有微气压传感器和计算模块。该微气压传感器用于探测水杯内的液体体积,该计算模块用于根据折光仪所测得的液体折射率和/或浊度计算水杯内的液体的卡路里。可选的,该折光仪固定在该智能水平的杯盖处,可以方便安装。在需要测量液体折射率时用户只需将盖上杯盖的水杯倒转即刻实现测量。可选的,该微气压传感器设置在由杯体的底部和设置在底部之上的隔膜之间形成的密闭空间内。The present application also provides a smart cup, the smart cup is provided with the above-mentioned refractometer for detecting the refractive index and/or turbidity of the liquid in the water cup. Optionally, the smart cup is also provided with a micro-pressure sensor and a computing module. The micro-pressure sensor is used to detect the volume of the liquid in the water cup, and the calculation module is used to calculate the calorie of the liquid in the water cup according to the refractive index and/or turbidity of the liquid measured by the refractometer. Optionally, the refractometer is fixed on the lid of the smart level for easy installation. When it is necessary to measure the refractive index of a liquid, the user only needs to invert the water cup covered with the lid to realize the measurement immediately. Optionally, the micro-air pressure sensor is arranged in a closed space formed between the bottom of the cup body and the diaphragm arranged on the bottom.
本申请中还提供一种智能动物尿液检测仪(垫子等),设有上述的折光仪,通过折光仪测量动物尿液的折射率。The present application also provides an intelligent animal urine detector (mat, etc.), which is provided with the above-mentioned refractometer, and the refractive index of animal urine is measured by the refractometer.
本申请还提供一种利用折光仪探测待测液体的折射率的方法。如图11所示,图11为本申请中的利用折光仪探测待测液体的折射率的方法的一个实施例的示意图。该方法包括:The present application also provides a method for detecting the refractive index of the liquid to be measured by using a refractometer. As shown in FIG. 11 , FIG. 11 is a schematic diagram of an embodiment of a method for detecting the refractive index of a liquid to be measured by using a refractometer in the present application. The method includes:
S1101,向折光仪内的全反射界面发射光束。S1101, sending a light beam to a total reflection interface in the refractometer.
S1102,通过透镜模块将被所述全反射界面反射的光束汇聚至位于所述透镜模块的焦平面上的感光阵列。S1102. Converge the light beam reflected by the total reflection interface to the photosensitive array located on the focal plane of the lens module through the lens module.
S1103,利用所述感光阵列对接收的光束成像,生成探测图像。S1103, using the photosensitive array to image the received light beam to generate a detection image.
S1104,识别所述探测图像上的亮度突变界线。S1104. Identify a boundary line of a sudden change in brightness on the detection image.
S1105,根据所述亮度突变界线在所述探测图像中的位置确定所述光束在所述全反射界面上的全反射角。S1105. Determine the total reflection angle of the light beam on the total reflection interface according to the position of the brightness mutation boundary in the detection image.
S1106,根据所述全反射角确定位于全反射界面外侧的介质的折射率。S1106. Determine the refractive index of the medium outside the total reflection interface according to the total reflection angle.
一个示例中,在步骤S1105根据所述探测图像确定所述探测图像中的亮度突变界线之前还包括:确定所述探测图像的亮度与预设亮度的差值的绝对值大于阈值。In an example, before step S1105 determining the boundary line of a sudden change in brightness in the detection image according to the detection image, the method further includes: determining that an absolute value of a difference between the brightness of the detection image and a preset brightness is greater than a threshold.
一个示例中,在步骤S1105根据所述探测图像确定所述探测图像中的亮度突变界线之前还包括:根据所述探测图像中的目标像素行的上下至少部分像素行对所述目标像素行进行滤噪。其中,可选的,根据所述探测图像中的目标像素行的上下至少部分像素行对所述目标像素行进行滤噪,包括:根据所述目标像素行的像素值和所述至少部分像素行的像素值的加权平均值作为所述目标像素行滤噪后的像素值。In one example, before step S1105, determining the boundary line of abrupt brightness change in the detection image according to the detection image further includes: filtering the target pixel row according to at least part of the pixel rows above and below the target pixel row in the detection image noise. Wherein, optionally, performing noise filtering on the target pixel row according to at least part of the upper and lower pixel rows of the target pixel row in the detection image includes: according to the pixel value of the target pixel row and the at least part of the pixel row The weighted average of the pixel values of is used as the noise-filtered pixel value of the target pixel row.
一个示例中,在步骤S1105根据所述探测图像确定所述探测图像中的亮度 突变界线之前还包括:确定所述探测图像中受杂散光影响的像素行,其中,所述受杂散光影响的像素行未用于确定位于所述全反射界面背向所述光源模块的一侧的介质的折射率。In an example, before step S1105, determining the boundary line of sudden brightness change in the detection image according to the detection image further includes: determining the pixel rows affected by stray light in the detection image, wherein the pixels affected by stray light The row is not used to determine the refractive index of the medium on the side of the total reflection interface facing away from the light source module.
一个示例中,所述探测图像是根据所述感光面阵获取到的多帧图像进行加权求和得到的。In an example, the detection image is obtained by weighted summation of multiple frames of images acquired by the photosensitive array.
一个示例中,所述方法还包括:获取所述位于全反射界面外侧的介质的温度和所述全反射界面的温度;根据预先存储的待测介质的温度、所述全反射界面的温度与待测介质的折射率的关系模型,以及所述获取的位于全反射界面外侧的介质的温度和所述全反射界面的温度计算所述介质的折射率。In an example, the method further includes: obtaining the temperature of the medium located outside the total reflection interface and the temperature of the total reflection interface; according to the pre-stored temperature of the medium to be measured, the temperature of the total reflection interface and the temperature The relationship model of the refractive index of the measured medium, and the obtained temperature of the medium outside the total reflection interface and the temperature of the total reflection interface are used to calculate the refractive index of the medium.
一个示例中,所述方法还包括:根据所述探测图像计算位于所述全反射界面外侧的介质的浊度。In an example, the method further includes: calculating the turbidity of the medium located outside the total reflection interface according to the detection image.
一个示例中,所述探测图像包括非反射区域;根据所述探测图像计算位于所述全反射界面外侧的介质的浊度,包括:In an example, the detection image includes a non-reflection area; calculating the turbidity of the medium located outside the total reflection interface according to the detection image includes:
获取所述非反射区域中的非全反射区域的散射亮度和/或所述亮度突变界线的模糊程度;其中,所述非反射区域中的非全反射区域对应所述非反射区域中以小于全反射角入射所述全反射界面后入射至所述感光面阵的区域;根据所述非反射区域中的非全反射区域的散射亮度和/或所述亮度突变界线的模糊程度计算所述浊度。可选的,所述非反射区域还包括位于所述非全反射区域一侧的全反射区域;所述获取所述非反射区域中的非全反射区域的散射亮度包括:以所述非反射区域中的全反射区域的亮度为基准值计算所述探测图像中的非反射区域的非全反射区域的散射亮度。Obtaining the scattered brightness of the non-total reflection area in the non-reflection area and/or the blurring degree of the sudden change boundary of the brightness; wherein, the non-total reflection area in the non-reflection area corresponds to the brightness less than the total After the reflection angle is incident on the total reflection interface, it is incident on the area of the photosensitive surface array; the turbidity is calculated according to the scattering brightness of the non-total reflection area in the non-reflection area and/or the fuzziness of the brightness mutation boundary line . Optionally, the non-reflective area further includes a total reflective area located on one side of the non-total reflective area; the acquiring the scattering brightness of the non-total reflective area in the non-reflective area includes: using the non-reflective area The brightness of the total reflection area in is used as a reference value to calculate the scattering brightness of the non-reflection area and the non-total reflection area in the detection image.
一个示例中,根据所述非反射区域的亮度分布和/或所述亮度突变界线的模糊程度计算所述浊度,包括:在待测液体的浓度低于预设浓度时根据所述探测图像中的非反射区域上的非全反射区域的散射亮度计算所述待测液体的浊度;在所述待测液体的浓度高于预设浓度时根据所述探测图像上的亮度突变界线的模糊程度来计算所述待测液体的浊度。In an example, calculating the turbidity according to the brightness distribution of the non-reflective area and/or the fuzziness of the sudden brightness boundary line includes: when the concentration of the liquid to be tested is lower than a preset concentration, according to the Calculate the turbidity of the liquid to be tested according to the scattering brightness of the non-total reflection area on the non-reflective area; when the concentration of the liquid to be tested is higher than the preset concentration, according to the fuzzy degree of the brightness mutation boundary line on the detection image To calculate the turbidity of the liquid to be tested.
一个示例中,所述位于全反射界面外侧的介质为待测液体;所述方法还包括:获取所述待测液体的体积;根据所述待测液体的折射率、浊度和体积计算所述待测液体的卡路里。In one example, the medium located outside the total reflection interface is the liquid to be tested; the method further includes: obtaining the volume of the liquid to be tested; calculating the Calories of the liquid to be measured.
一个示例中,所述位于全反射界面外侧的介质为待测液体;所述方法还包括:利用辅助设备获取辅助信息,其中,所述辅助设备包括色度计,所述辅助信息包括所述待测液体的颜色;或者,所述辅助设备包括阻抗计,所述辅助信息包括所述待测液体的离子含量;或者,所述辅助设备包括PH值计,所述辅助信息包括所述待测液体的酸度值;根据所述辅助信息和所述待测液体的折射率和/或浊度确定所述待测液体的种类。In one example, the medium located outside the total reflection interface is the liquid to be tested; the method further includes: using auxiliary equipment to obtain auxiliary information, wherein the auxiliary equipment includes a colorimeter, and the auxiliary information includes the measure the color of the liquid; or, the auxiliary equipment includes an impedance meter, and the auxiliary information includes the ion content of the liquid to be tested; or, the auxiliary equipment includes a pH meter, and the auxiliary information includes the liquid to be tested the acidity value; determine the type of the liquid to be tested according to the auxiliary information and the refractive index and/or turbidity of the liquid to be tested.
一个示例中,所述向所述折光仪内的全反射界面发射光束之前还包括:发射液体对目标物体进行清洗,所述位于全反射界面外侧的介质为清洗目标物体后的液体;所述方法还包括:根据所述清洗目标物体后的液体的折射率判断所 述目标物体的清洁度。In an example, before emitting the light beam to the total reflection interface in the refractometer, it also includes: emitting liquid to clean the target object, and the medium located outside the total reflection interface is the liquid after cleaning the target object; the method It also includes: judging the cleanliness of the target object according to the refractive index of the liquid after cleaning the target object.
一个示例中,所述方法还包括;根据所述目标物体的清洁度判断是否需要对所述目标物体继续清洗。In an example, the method further includes: judging whether to continue cleaning the target object according to the cleanliness of the target object.
尽管结合优选实施方案具体展示和介绍了本发明,但所属领域的技术人员应该明白,在不脱离所附权利要求书所限定的本发明的精神和范围内,在形式上和细节上可以对本发明做出各种变化,均为本发明的保护范围。Although the present invention has been particularly shown and described in conjunction with preferred embodiments, it will be understood by those skilled in the art that changes in form and details may be made to the present invention without departing from the spirit and scope of the invention as defined by the appended claims. Making various changes is within the protection scope of the present invention.

Claims (41)

  1. 一种折光仪,其特征在于,包括光源模块、反射模块、透镜模块、感光面阵、控制模块和处理器,其中,A refractometer, characterized in that it includes a light source module, a reflection module, a lens module, a photosensitive array, a control module and a processor, wherein,
    所述控制模块用于控制所述光源模块出射光束;The control module is used to control the light beam emitted by the light source module;
    所述反射模块用于接收来自所述光源模块的光束,所述反射模块包括全反射界面,当来自所述光源模块的光束在所述全反射界面上的入射角满足一定条件时,来自所述光源模块的光束在所述全反射界面上发生全反射,并入射至所述透镜模块;The reflection module is used to receive the light beam from the light source module, the reflection module includes a total reflection interface, when the incident angle of the light beam from the light source module on the total reflection interface satisfies a certain condition, the The light beam of the light source module is totally reflected on the total reflection interface, and enters the lens module;
    所述透镜模块用于将来自所述全反射界面的光束汇聚至所述透镜模块的焦平面上;The lens module is used to converge the light beam from the total reflection interface onto the focal plane of the lens module;
    所述感光面阵位于所述透镜模块的焦平面上,所述控制模块还用于控制所述感光面阵对接收到的光束进行探测并输出探测图像;The photosensitive surface array is located on the focal plane of the lens module, and the control module is also used to control the photosensitive surface array to detect the received light beam and output a detection image;
    处理器,用于根据所述探测图像确定所述探测图像中的亮度突变界线,以及根据所述亮度突变界线中的至少一个像素点确定位于所述全反射界面背向所述光源模块的一侧的介质的折射率。A processor, configured to determine a boundary line of a sudden brightness change in the detection image according to the detection image, and determine a side of the total reflection interface facing away from the light source module according to at least one pixel point in the sudden change boundary line of brightness The refractive index of the medium.
  2. 根据权利要求1所述的折光仪,其特征在于,所述光源模块的发散角与所述全反射界面匹配。The refractometer according to claim 1, wherein the divergence angle of the light source module matches the total reflection interface.
  3. 根据权利要求1所述的折光仪,其特征在于,所述光源模块的发光面的口径和所述透镜模块的通光口径相同或者相差小于所述发光面的口径的1/5,The refractometer according to claim 1, wherein the aperture of the light emitting surface of the light source module is the same as the aperture of the lens module or the difference is less than 1/5 of the aperture of the light emitting surface,
    或者,所述光源模块的的发光面的口径大于所述透镜模块的通光口径的2倍。Alternatively, the aperture of the light emitting surface of the light source module is greater than twice the light aperture of the lens module.
  4. 根据权利要求1所述的折光仪,其特征在于,所述感光面阵的探测角度范围覆盖所述透镜模块的全反射角范围。The refractometer according to claim 1, wherein the detection angle range of the photosensitive surface array covers the total reflection angle range of the lens module.
  5. 根据权利要求1所述的折光仪,其特征在于,所述光源模块的出射光的半高宽小于5nm,或者,所述光源模块的出射光路上设置有窄带滤光片,经所述窄带滤光片滤波后的出射光的半高宽小于5nm。The refractometer according to claim 1, wherein the half maximum width of the outgoing light of the light source module is less than 5nm, or a narrow-band filter is arranged on the outgoing light path of the light source module, and the light passing through the narrow-band filter The full width at half maximum of the outgoing light after optical sheet filtering is less than 5nm.
  6. 根据权利要求1所述的折光仪,其特征在于,所述光源模块的出射光路上设置有匀光片。The refractometer according to claim 1, wherein a dodging sheet is arranged on the outgoing light path of the light source module.
  7. 根据权利要求1所述的折光仪,其特征在于,所述光源模块的出射光为绿光波段,且所述感光面阵为采用贝尔图形为RGGB的CMOS传感器。The refractometer according to claim 1, wherein the emitted light of the light source module is in the green light band, and the photosensitive area array is a CMOS sensor with a Bell pattern of RGGB.
  8. 根据权利要求1所述的折光仪,其特征在于,所述处理器还用于在根据所述探测图像确定所述探测图像中的亮度突变界线之前,确定所述探测图像的亮度与预设亮度的差值的绝对值大于阈值。The refractometer according to claim 1, wherein the processor is further configured to determine the brightness of the detection image and the preset brightness before determining the boundary line of a sudden change in brightness in the detection image according to the detection image The absolute value of the difference is greater than the threshold.
  9. 根据权利要求1所述的折光仪,其特征在于,所述处理器还用于在根据所述探测图像确定所述探测图像中的亮度突变界线之前,根据所述探测图像中 的目标像素行的上下至少部分像素行对所述目标像素行进行滤噪。The refractometer according to claim 1, wherein the processor is further configured to, before determining the boundary line of a sudden change in brightness in the detection image according to the detection image, according to the target pixel row in the detection image Noise filtering is performed on the target pixel row at least part of the upper and lower pixel rows.
  10. 根据权利要求9所述的折光仪,其特征在于,所述处理器用于根据所述目标像素行的像素值和所述至少部分像素行的像素值的加权平均值作为所述目标像素行滤噪后的像素值。The refractometer according to claim 9, wherein the processor is configured to use the weighted average of the pixel values of the target pixel row and the pixel values of at least some of the pixel rows as the target pixel row for noise filtering After the pixel value.
  11. 根据权利要求1所述的折光仪,其特征在于,所述处理器还用于确定所述探测图像中受杂散光影响的像素行,其中,所述受杂散光影响的像素行未用于确定位于所述全反射界面背向所述光源模块的一侧的介质的折射率。The refractometer according to claim 1, wherein the processor is further configured to determine pixel rows affected by stray light in the detection image, wherein the pixel rows affected by stray light are not used for determining The refractive index of the medium on the side of the total reflection interface facing away from the light source module.
  12. 根据权利要求11所述的折光仪,其特征在于,所述处理器还用于根据多行像素行的亮度对比结果和/或多帧探测图像的亮度对比结果确定所述探测图像中受杂散光影响的像素行。The refractometer according to claim 11, wherein the processor is further configured to determine the intensity of stray light in the detection image according to the brightness comparison results of multiple rows of pixel rows and/or the brightness comparison results of multiple frames of detection images. The affected pixel row.
  13. 根据权利要求1所述的折光仪,其特征在于,所述探测图像是根据所述感光面阵获取到的多帧图像进行加权求和得到的。The refractometer according to claim 1, wherein the detection image is obtained by weighted summation of multiple frames of images acquired by the photosensitive surface array.
  14. 根据权利要求1所述的折光仪,其特征在于,所述处理器还用于根据所述探测图像计算位于所述全反射界面背向所述光源模块的一侧的介质的浊度。The refractometer according to claim 1, wherein the processor is further configured to calculate the turbidity of the medium on the side of the total reflection interface facing away from the light source module according to the detection image.
  15. 根据权利要求14所述的折光仪,其特征在于,所述探测图像包括非反射区域,所述处理器用于获取所述非反射区域中的非全反射区域的散射亮度和/或所述亮度突变界线的模糊程度,以及根据所述非反射区域中的非全反射区域的散射亮度和/或所述亮度突变界线的模糊程度计算所述浊度;The refractometer according to claim 14, wherein the detection image includes a non-reflection area, and the processor is configured to obtain the scattering brightness and/or the sudden change in brightness of a non-total reflection area in the non-reflection area the degree of fuzziness of the boundary line, and calculating the turbidity according to the scattered brightness of the non-total reflection region in the non-reflection region and/or the fuzziness degree of the boundary line of the sudden change in brightness;
    其中,所述非反射区域中的非全反射区域对应所述非反射区域中以小于全反射角入射所述全反射界面后入射至所述感光面阵的区域。Wherein, the non-total reflection area in the non-reflection area corresponds to the area in the non-reflection area that is incident on the total reflection interface at an angle smaller than the total reflection angle and then incident on the photosensitive array.
  16. 根据权利要求15所述的折光仪,其特征在于,所述非反射区域还包括位于所述非全反射区域一侧的全反射区域;The refractometer according to claim 15, wherein the non-reflection area further includes a total reflection area located on one side of the non-total reflection area;
    所述处理器用于以所述非反射区域中的全反射区域的亮度为基准值计算所述探测图像中的非反射区域的非全反射区域的散射亮度。The processor is configured to use the brightness of the total reflection area in the non-reflection area as a reference value to calculate the scattering brightness of the non-total reflection area of the non-reflection area in the detection image.
  17. 根据权利要求15所述的折光仪,其特征在于,所述处理器用于在待测液体的浓度低于预设浓度时根据所述探测图像中的非反射区域上的非全反射区域的散射亮度计算所述待测液体的浊度,在所述待测液体的浓度高于预设浓度时根据所述探测图像上的亮度突变界线的模糊程度来计算所述待测液体的浊度。The refractometer according to claim 15, wherein the processor is configured to use the scattering brightness of the non-total reflection area on the non-reflection area in the detection image when the concentration of the liquid to be measured is lower than the preset concentration The turbidity of the liquid to be tested is calculated, and the turbidity of the liquid to be tested is calculated according to the degree of fuzziness of the boundary line of sudden brightness changes on the detection image when the concentration of the liquid to be tested is higher than a preset concentration.
  18. 根据权利要求14所述的折光仪,其特征在于,所述透镜模块的入射光路上或者透镜模块的表面上设置有狭缝。The refractometer according to claim 14, wherein a slit is arranged on the incident light path of the lens module or on the surface of the lens module.
  19. 根据权利要求1所述的折光仪,其特征在于,所述折光仪具有待机模式;The refractometer according to claim 1, wherein the refractometer has a standby mode;
    在所述待机模式中,所述控制模块于休眠待机状态,所述光源模块和所述感光面阵处于断电状态。In the standby mode, the control module is in a dormant standby state, and the light source module and the photosensitive array are in a power-off state.
  20. 根据权利要求1所述的折光仪,其特征在于,所述折光仪具有低功耗 模式下,The refractometer according to claim 1, wherein the refractometer has a low power consumption mode,
    在所述低功耗模式中,所述控制模块用于控制所述光源模块和所述感光面阵同步频闪。In the low power consumption mode, the control module is used to control the light source module and the photosensitive array to flash synchronously.
  21. 根据权利要求20所述的折光仪,其特征在于,所述控制模块用于根据所述感光面阵的帧信号同步触发脉冲宽度调制信号对所述光源模块控制。The refractometer according to claim 20, wherein the control module is configured to synchronously trigger a pulse width modulation signal to control the light source module according to the frame signal of the photosensitive array.
  22. 根据权利要求1所述的折光仪,其特征在于,所述控制模块还用于获取当前环境的亮度信息,以及根据所述亮度信息调整所述感光面阵的探测图像画质。The refractometer according to claim 1, wherein the control module is further configured to obtain brightness information of the current environment, and adjust the detection image quality of the photosensitive surface array according to the brightness information.
  23. 根据权利要求22所述的折光仪,其特征在于,所述控制模块用于通过调整以下至少一项来调整所述感光面阵的探测图像画质:The refractometer according to claim 22, wherein the control module is used to adjust the detection image quality of the photosensitive surface array by adjusting at least one of the following:
    所述光源模块的出射光强度、所述感光面阵的曝光时长、所述感光面阵的模拟增益、所述感光面阵的数字增益。The emitted light intensity of the light source module, the exposure time of the photosensitive array, the analog gain of the photosensitive array, and the digital gain of the photosensitive array.
  24. 根据权利要求1所述的折光仪,其特征在于,所述折光仪还包括第一温度传感器和第二温度传感器,所述第一温度传感器设置在反射模块内部或者反射模块的表面上位于光路之外的区域上,用于检测反射模块的温度;所述第二温度传感器,设置在反射模块的全反射界面面向待测介质的一侧的表面上,用于探测待测介质的温度;The refractometer according to claim 1, wherein the refractometer further comprises a first temperature sensor and a second temperature sensor, and the first temperature sensor is arranged inside the reflection module or on the surface of the reflection module and is located between the optical path The outer area is used to detect the temperature of the reflection module; the second temperature sensor is arranged on the surface of the total reflection interface of the reflection module facing the side of the medium to be measured, and is used to detect the temperature of the medium to be measured;
    所述处理器内预先存储有待测液体的温度、反射模块的温度与待测液体的折射率的关系模型,所述处理器还用于根据所述第一温度传感器和所述第二温度传感器获取到的温度和所述关系模型来计算待测液体的折射率。The temperature of the liquid to be measured, the relationship model between the temperature of the reflection module and the refractive index of the liquid to be measured are pre-stored in the processor, and the processor is also used to The obtained temperature and the relationship model are used to calculate the refractive index of the liquid to be measured.
  25. 根据权利要求1至24任一项所述的折光仪,其特征在于,所述感光面阵为面阵CMOS图像传感器。The refractometer according to any one of claims 1 to 24, wherein the photosensitive area array is an area array CMOS image sensor.
  26. 一种探测折射率的方法,其特征在于,包括:A method for detecting a refractive index, comprising:
    向折光仪内的全反射界面发射光束;Sending a beam of light toward a total reflection interface within the refractometer;
    通过透镜模块将被所述全反射界面反射的光束汇聚至位于所述透镜模块的焦平面上的感光阵列;converging the light beam reflected by the total reflection interface to the photosensitive array located on the focal plane of the lens module through the lens module;
    利用所述感光阵列对接收的光束成像,生成探测图像;Using the photosensitive array to image the received light beam to generate a detection image;
    根据所述探测图像确定所述探测图像中的亮度突变界线;determining a boundary line of a sudden change in brightness in the detection image according to the detection image;
    根据所述亮度突变界线在所述探测图像中的位置确定所述光束在所述全反射界面上的全反射角;determining the total reflection angle of the light beam on the total reflection interface according to the position of the brightness mutation boundary line in the detection image;
    根据所述全反射角确定位于全反射界面外侧的介质的折射率。The refractive index of the medium located outside the total reflection interface is determined according to the total reflection angle.
  27. 根据权利要求26所述的方法,其特征在于,在所述根据所述探测图像确定所述探测图像中的亮度突变界线之前还包括:The method according to claim 26, further comprising:
    确定所述探测图像的亮度与预设亮度的差值的绝对值大于阈值。It is determined that the absolute value of the difference between the brightness of the detection image and the preset brightness is greater than a threshold.
  28. 根据权利要求26所述的方法,其特征在于,在根据所述探测图像确定所述探测图像中的亮度突变界线之前还包括:The method according to claim 26, further comprising:
    根据所述探测图像中的目标像素行的上下至少部分像素行对所述目标像素行进行滤噪。Noise filtering is performed on the target pixel row according to at least part of the upper and lower pixel rows of the target pixel row in the detection image.
  29. 根据权利要求26所述的方法,其特征在于,所述根据所述探测图像中的目标像素行的上下至少部分像素行对所述目标像素行进行滤噪,包括:The method according to claim 26, wherein the noise filtering of the target pixel row according to at least part of the upper and lower pixel rows of the target pixel row in the detection image comprises:
    根据所述目标像素行的像素值和所述至少部分像素行的像素值的加权平均值作为所述目标像素行滤噪后的像素值。A weighted average of the pixel values of the target pixel row and the pixel values of at least some of the pixel rows is used as the noise-filtered pixel value of the target pixel row.
  30. 根据权利要求26所述的方法,其特征在于,在根据所述探测图像确定所述探测图像中的亮度突变界线之前还包括:The method according to claim 26, further comprising:
    确定所述探测图像中受杂散光影响的像素行,determining rows of pixels in said probe image that are affected by stray light,
    其中,所述受杂散光影响的像素行未用于确定位于所述全反射界面背向所述光源模块的一侧的介质的折射率。Wherein, the pixel rows affected by stray light are not used to determine the refractive index of the medium located on the side of the total reflection interface facing away from the light source module.
  31. 根据权利要求26所述的方法,其特征在于,所述探测图像是根据所述感光面阵获取到的多帧图像进行加权求和得到的。The method according to claim 26, wherein the detection image is obtained by weighted summation of multiple frames of images acquired by the photosensitive array.
  32. 根据权利要求26所述的方法,其特征在于,所述方法还包:The method according to claim 26, wherein the method also includes:
    获取所述位于全反射界面外侧的介质的温度和所述全反射界面的温度;acquiring the temperature of the medium outside the total reflection interface and the temperature of the total reflection interface;
    根据预先存储的待测介质的温度、所述全反射界面的温度与待测介质的折射率的关系模型,以及所述获取的位于全反射界面外侧的介质的温度和所述全反射界面的温度计算所述介质的折射率。According to the pre-stored temperature of the medium to be measured, the relationship model between the temperature of the total reflection interface and the refractive index of the medium to be measured, and the acquired temperature of the medium outside the total reflection interface and the temperature of the total reflection interface Compute the refractive index of the medium.
  33. 根据权利要求26所述的方法,其特征在于,还包括:The method according to claim 26, further comprising:
    根据所述探测图像计算位于所述全反射界面外侧的介质的浊度。Calculating the turbidity of the medium located outside the total reflection interface according to the detection image.
  34. 根据权利要求33所述的方法,其特征在于,所述探测图像包括非反射区域;The method of claim 33, wherein the probe image includes non-reflective regions;
    根据所述探测图像计算位于所述全反射界面外侧的介质的浊度,包括:Calculating the turbidity of the medium located outside the total reflection interface according to the detection image, including:
    获取所述非反射区域中的非全反射区域的散射亮度和/或所述亮度突变界线的模糊程度;其中,所述非反射区域中的非全反射区域对应所述非反射区域中以小于全反射角入射所述全反射界面后入射至所述感光面阵的区域;Obtaining the scattered brightness of the non-total reflection area in the non-reflection area and/or the blurring degree of the sudden change boundary of the brightness; wherein, the non-total reflection area in the non-reflection area corresponds to the brightness less than the total After the reflection angle is incident on the total reflection interface, it is incident on the area of the photosensitive surface array;
    根据所述非反射区域中的非全反射区域的散射亮度和/或所述亮度突变界线的模糊程度计算所述浊度。The turbidity is calculated according to the scattering luminance of the non-total reflection area in the non-reflection area and/or the fuzziness of the boundary line of the sudden change in luminance.
  35. 根据权利要求34所述的方法,其特征在于,所述非反射区域还包括位于所述非全反射区域一侧的全反射区域;The method according to claim 34, wherein the non-reflective area further comprises a total reflection area located on one side of the non-total reflection area;
    所述获取所述非反射区域中的非全反射区域的散射亮度,包括:The acquisition of the scattered brightness of the non-total reflection area in the non-reflection area includes:
    以所述非反射区域中的全反射区域的亮度为基准值计算所述探测图像中的非反射区域的非全反射区域的散射亮度。The scattering brightness of the non-total reflection area of the non-reflection area in the detection image is calculated by using the brightness of the total reflection area in the non-reflection area as a reference value.
  36. 根据权利要求34所述的方法,其特征在于,所述根据所述非反射区域中的非全反射区域的散射亮度和/或所述亮度突变界线的模糊程度计算所述浊度,包括:The method according to claim 34, wherein the calculation of the turbidity according to the scattering brightness of the non-total reflection area in the non-reflection area and/or the fuzzy degree of the boundary line of the sudden change in brightness comprises:
    在待测液体的浓度低于预设浓度时根据所述探测图像中的非反射区域上的非全反射区域的散射亮度计算所述待测液体的浊度;calculating the turbidity of the liquid to be tested according to the scattering brightness of the non-total reflection area on the non-reflection area in the detection image when the concentration of the liquid to be tested is lower than the preset concentration;
    在所述待测液体的浓度高于预设浓度时根据所述探测图像上的亮度突变界线的模糊程度来计算所述待测液体的浊度。When the concentration of the liquid to be tested is higher than a preset concentration, the turbidity of the liquid to be tested is calculated according to the fuzzy degree of the boundary line of sudden brightness change on the detection image.
  37. 根据权利要求33所述的方法,其特征在于,所述位于全反射界面外侧的介质为待测液体;所述方法还包括:The method according to claim 33, wherein the medium positioned outside the total reflection interface is the liquid to be measured; the method also includes:
    获取所述待测液体的体积;Obtain the volume of the liquid to be tested;
    根据所述待测液体的折射率、浊度和体积计算所述待测液体的卡路里。The calorie of the liquid to be tested is calculated according to the refractive index, turbidity and volume of the liquid to be tested.
  38. 根据权利要求33所述的方法,其特征在于,所述位于全反射界面外侧的介质为待测液体;所述方法还包括:The method according to claim 33, wherein the medium positioned outside the total reflection interface is the liquid to be measured; the method also includes:
    利用辅助设备获取辅助信息,其中,所述辅助设备包括色度计,所述辅助信息包括所述待测液体的颜色;或者,所述辅助设备包括阻抗计,所述辅助信息包括所述待测液体的离子含量;或者,所述辅助设备包括PH值计,所述辅助信息包括所述待测液体的酸度值;Use auxiliary equipment to obtain auxiliary information, wherein, the auxiliary equipment includes a colorimeter, and the auxiliary information includes the color of the liquid to be tested; or, the auxiliary equipment includes an impedance meter, and the auxiliary information includes the color of the liquid to be tested. The ion content of the liquid; or, the auxiliary equipment includes a pH meter, and the auxiliary information includes the acidity value of the liquid to be tested;
    根据所述辅助信息和所述待测液体的折射率和/或浊度确定所述待测液体的种类。The type of the liquid to be tested is determined according to the auxiliary information and the refractive index and/or turbidity of the liquid to be tested.
  39. 根据权利要求1所述的方法,其特征在于,所述向所述折光仪内的全反射界面发射光束之前还包括:The method according to claim 1, characterized in that before launching a light beam to the total reflection interface in the refractometer, further comprising:
    发射液体对目标物体进行清洗,所述位于全反射界面外侧的介质为清洗目标物体后的液体;Emitting liquid to clean the target object, the medium located outside the total reflection interface is the liquid after cleaning the target object;
    所述方法还包括:The method also includes:
    根据所述清洗目标物体后的液体的折射率判断所述目标物体的清洁度。The cleanliness of the target object is judged according to the refractive index of the liquid after cleaning the target object.
  40. 根据权利要求39所述的方法,其特征在于,所述方法还包括;The method according to claim 39, further comprising;
    根据所述目标物体的清洁度判断是否需要对所述目标物体继续清洗。Whether to continue cleaning the target object is judged according to the cleanliness of the target object.
  41. 一种智能杯,其特征在于,包括:A smart cup, characterized by comprising:
    杯盖和杯体;Cup lid and cup body;
    如权利要求1至25任一项所述的折光仪,设置在所述杯盖处,用于探测所述杯体内的液体的折射率;The refractometer according to any one of claims 1 to 25, arranged at the cup cover, for detecting the refractive index of the liquid in the cup;
    薄膜,设置在所述杯体的底部之上,与所述杯体底部之间形成有密闭空间;a thin film disposed on the bottom of the cup, forming a closed space with the bottom of the cup;
    微气压传感器,设置在所述密闭空间之内,用于探测所述杯体内的液体的体积;a micro air pressure sensor, arranged in the enclosed space, for detecting the volume of the liquid in the cup;
    计算模块,设置在所述密闭空间内,用于根据所述液体的体积和折射率计算所述液体的卡路里。A calculation module, arranged in the confined space, is used to calculate the calorie of the liquid according to the volume and refractive index of the liquid.
PCT/CN2021/114432 2021-08-25 2021-08-25 Refractometer, smart cup, and refractive index measurement method WO2023023964A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2021/114432 WO2023023964A1 (en) 2021-08-25 2021-08-25 Refractometer, smart cup, and refractive index measurement method
PCT/CN2022/085257 WO2023024523A1 (en) 2021-08-25 2022-04-06 Refractometer, detection apparatus, and method for detecting refractive index
CN202280002123.1A CN115298536A (en) 2021-08-25 2022-04-06 Refractometer, detection device and method for detecting refractive index

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/114432 WO2023023964A1 (en) 2021-08-25 2021-08-25 Refractometer, smart cup, and refractive index measurement method

Publications (1)

Publication Number Publication Date
WO2023023964A1 true WO2023023964A1 (en) 2023-03-02

Family

ID=85321506

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2021/114432 WO2023023964A1 (en) 2021-08-25 2021-08-25 Refractometer, smart cup, and refractive index measurement method
PCT/CN2022/085257 WO2023024523A1 (en) 2021-08-25 2022-04-06 Refractometer, detection apparatus, and method for detecting refractive index

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085257 WO2023024523A1 (en) 2021-08-25 2022-04-06 Refractometer, detection apparatus, and method for detecting refractive index

Country Status (1)

Country Link
WO (2) WO2023023964A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3650631A (en) * 1969-05-13 1972-03-21 Bayer Ag Arrangement and process for measuring the refractive index of liquids
US5565978A (en) * 1993-04-15 1996-10-15 Japan Energy Corporation Total-reflection type refractive index sensor
US5742382A (en) * 1993-09-07 1998-04-21 Janeksko Oy Refractometer
JP2000019110A (en) * 1998-06-29 2000-01-21 Res:Kk Refractive index measuring apparatus
CN102967583A (en) * 2012-11-11 2013-03-13 华中科技大学 Measuring apparatus and method used for measuring liquid phase gas refraction index
US20130242115A1 (en) * 2012-03-13 2013-09-19 Ut-Battelle, Llc Imaging based refractometer for hyperspectral refractive index detection
CN104792732A (en) * 2015-04-04 2015-07-22 华中科技大学 Refractometer for self-reference of light source distribution
WO2020200691A1 (en) * 2019-04-02 2020-10-08 Endress+Hauser Process Solutions (Deutschland) GmbH Refractometer and method for determining the refractive index of a process medium using a refractometer
CN214622308U (en) * 2021-03-19 2021-11-05 深圳市流数科技有限公司 Refractometer and intelligent cup

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106918575A (en) * 2017-01-19 2017-07-04 上海胤飞自动化科技有限公司 A kind of online refractometer optical image security method and system
CN215727691U (en) * 2021-06-25 2022-02-01 深圳市流数科技有限公司 Refractometer

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3650631A (en) * 1969-05-13 1972-03-21 Bayer Ag Arrangement and process for measuring the refractive index of liquids
US5565978A (en) * 1993-04-15 1996-10-15 Japan Energy Corporation Total-reflection type refractive index sensor
US5742382A (en) * 1993-09-07 1998-04-21 Janeksko Oy Refractometer
JP2000019110A (en) * 1998-06-29 2000-01-21 Res:Kk Refractive index measuring apparatus
US20130242115A1 (en) * 2012-03-13 2013-09-19 Ut-Battelle, Llc Imaging based refractometer for hyperspectral refractive index detection
US9194798B2 (en) * 2012-03-13 2015-11-24 Ut-Battelle, Llc Imaging based refractometer for hyperspectral refractive index detection
CN102967583A (en) * 2012-11-11 2013-03-13 华中科技大学 Measuring apparatus and method used for measuring liquid phase gas refraction index
CN104792732A (en) * 2015-04-04 2015-07-22 华中科技大学 Refractometer for self-reference of light source distribution
WO2020200691A1 (en) * 2019-04-02 2020-10-08 Endress+Hauser Process Solutions (Deutschland) GmbH Refractometer and method for determining the refractive index of a process medium using a refractometer
CN214622308U (en) * 2021-03-19 2021-11-05 深圳市流数科技有限公司 Refractometer and intelligent cup

Also Published As

Publication number Publication date
WO2023024523A1 (en) 2023-03-02

Similar Documents

Publication Publication Date Title
CN105376469A (en) Drive automatic focusing method used for biometric features recognition mobile terminal
EP2201373A1 (en) Two dimensional imaging of reacted areas on a reagent
KR20140011258A (en) Method of detection of defects and defects detection device
JP2016529483A (en) Aqueous environmental water parameter test system and method
WO2004086016A1 (en) Optical inspection system and method for displaying imaged objects in greater than two dimensions
US20170316632A1 (en) Paper currency fold recognition apparatus and method
US9970868B2 (en) Nephelometry method and apparatus for determining the concentration of suspended particles in an array of sample containers
CN113607676B (en) Milk component rapid detection method based on special-shaped cuvette and near-infrared image
CN104374743A (en) Turbidity sensor and turbidity measurement device
CN107356596B (en) Underwater spotting imaging device and optical imagery method water turbidity online test method
WO2023023964A1 (en) Refractometer, smart cup, and refractive index measurement method
CN107966412B (en) Image defogging method based on orthogonal polarization image stretching and polarization degree correlation
CN110570412B (en) Part error vision judgment system
EP3554223B1 (en) Milking system
CN114008485B (en) Passive three-dimensional image sensing based on spatial filtering
CN211877766U (en) Water turbidity measuring device based on infrared camera shooting
US20100231927A1 (en) Method and device for measuring the position of the edge of a material web
CN103364404A (en) Camera detection method and camera
EP3121588B1 (en) Optical characteristic measuring apparatus
CN115298536A (en) Refractometer, detection device and method for detecting refractive index
CN214622308U (en) Refractometer and intelligent cup
CN209433009U (en) Laser triangulation system
CN207036673U (en) A kind of window structure for preventing light source from reflecting being used in vision-based detection module
US20220327325A1 (en) Object presence detection using raw images
CN106990046B (en) Optical system of multi-angle gloss meter and implementation method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21954505

Country of ref document: EP

Kind code of ref document: A1