A rapid detection device, system and detection method for colorimetric analysis of a solution

By using optical dark box and lighting units in solution colorimetric analysis, combined with the image processing and color calibration technology of the smart terminal, the problem of inconsistent reflection and exposure of the imaging quality is solved, and high-precision solution colorimetric analysis is achieved.

CN112964652BActive Publication Date: 2025-06-10JINAN UNIVERSITY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110330640.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-26
Publication Date
2025-06-10
Estimated Expiration
2041-03-26

AI Technical Summary

Technical Problem

The existing solution colorimetric analysis methods based on mobile phones have the problem that the imaging quality is affected by inconsistent reflection and exposure of light sources, and lack effective color calibration methods, resulting in low detection accuracy.

Method used

A rapid detection device and system for colorimetric analysis of solution is designed, using optical dark box and lighting unit. The intelligent terminal obtains the concentration information of the sample through photography and image processing, and performs color calibration by reference reagents to eliminate color errors caused by different exposures.

Benefits of technology

The detection accuracy of solution colorimetric analysis is improved, the light source reflection interference is avoided, the light consistency and exposure consistency are ensured, and the high-precision detection is achieved with portable, low-cost, simple operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112964652B_ABST
    Figure CN112964652B_ABST
Patent Text Reader

Abstract

The present invention discloses a rapid detection device, system and detection method for solution colorimetric analysis with high precision. The device includes an optical dark box. A lighting unit is provided on the rear panel of the optical dark box. A sample vessel is provided in front of the lighting unit inside the optical dark box. An openable window is provided on the upper panel, and the window is directly above the sample vessel. An opening is provided on the front panel, and slide rails are provided between the two sides of the front panel and the left side panel and the right side panel respectively. The center of the opening on the front panel of the dark box, the center of the sample vessel and the center of the lighting unit are on the same horizontal line. In the present invention, the smart phone and the lighting unit are located on both sides of the solution to be measured or the sample solution, and image the transmitted light of the solution to be measured or the sample solution, avoiding the interference caused by the reflected light of the solution to the lighting source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of biochemical sensors, and particularly relates to a rapid detection device, system and detection method for solution colorimetric analysis. Background Art

[0002] Colorimetric analysis is a method of using the color of the test solution itself or the color presented after adding reagents, observing and comparing the color depth of the solution with the naked eye (or visual colorimeter) for qualitative detection, or measuring with a photoelectric colorimeter to determine the concentration of the analyte in the solution. Colorimetric analysis has the advantages of simplicity, rapidity, high sensitivity, etc., and has thus become a widely used method for determining trace and ultra-trace components in aspects such as industrial and agricultural production, medicine and health, environmental protection, and scientific experiments. Almost all inorganic ions and many organic compounds can be directly or indirectly determined by colorimetric methods.

[0003] Currently, due to the popularity of mobile phones, various portable sensors based on mobile phones have been developed. Among them, the optical sensors based on mobile phones can detect all substances that can produce optical changes by using the camera of the intelligent terminal as a detector, such as the transmittance, absorbance, fluorescence, bioluminescence, surface plasmon resonance (SPR), and electrochemiluminescence of substances. The optical sensors based on mobile phones are not only equipped with a high-resolution camera and a powerful processor, but also a fully automated device that can collect optical signals during the sensing process and play the role of a spectrometer or even a microscope. Utilizing the powerful computing advantages of the intelligent terminal, color quantization can be completed through the application program in the intelligent terminal. Without additional equipment or complex detection, it has thus received extensive attention in recent years.

[0004] In recent years, many scientific researchers have developed various colorimetric biosensing devices based on intelligent terminals. These devices are for detecting test strips or a certain solution, and can all achieve qualitative or quantitative detection of the analyte. However, there are still some deficiencies in these current methods. Whether it is for detecting test strips or solutions, most use the reflection type, that is, the light source and the mobile phone are on the same side of the sample, and the mobile phone collects the light reflected by the sample from the light source. The biggest drawback of this method is that the photo taken will show the image of the light source itself due to the specular reflection of the light source by the surface of the sample, especially the solution. Since the brightness of the light source itself is much higher than that of the sample itself, it will seriously affect the imaging quality. In order to improve the imaging quality, the mobile phone and the light source are also placed on both sides of the sample, so that the mobile phone collects the transmitted light after the light source passes through the sample. This method is especially suitable for solution colorimetric analysis. However, even in a dark room, the mobile phone cannot ensure consistent light and consistent exposure every time it takes an image. Therefore, even for the same concentration sample, there will be deviations in extracting RGB for different photos, which will affect the final accuracy. However, there are few corresponding color calibration methods proposed in the current colorimetric analysis methods for solutions. Summary of the Invention

[0005] An object of the present invention is to overcome the deficiencies of the above prior art, and provide a rapid detection device, system and detection method for solution colorimetric analysis with high precision.

[0006] The object of the present invention is achieved by the following technical solutions:

[0007] A rapid detection device for solution colorimetric analysis includes: an optical dark box, a lighting unit is provided on the rear panel of the optical dark box, a sample vessel is provided in front of the lighting unit in the optical dark box, a closable window is provided on the upper panel, and the window is directly above the sample vessel; an opening is provided on the front panel, and slide rails are provided between the two sides of the front panel and the left panel and the right panel respectively; the center of the opening on the front panel of the dark box, the center of the sample vessel and the center of the lighting unit are on the same horizontal line.

[0008] Preferably, the lighting unit is a surface light source with uniform light and adjustable brightness, and the lighting unit includes an LED array and a soft light plate, and the soft light plate is arranged outside the LED array.

[0009] Preferably, the sample vessels are two identical square vessels, one square vessel is used to add the reagent to be tested, and the other square vessel is used to add a black soluble reagent as a reference reagent.

[0010] Preferably, the lower part of the square vessel is solid.

[0011] Preferably, the reagent to be tested is any reagent whose color changes with concentration or a reagent whose color changes with concentration after adding a sensing probe, and the reference reagent is black ink.

[0012] A rapid detection system for solution colorimetric analysis includes: an intelligent terminal and the above rapid detection device for solution colorimetric analysis. The intelligent terminal is used to be placed in the opening on the front panel of the optical dark box, take pictures of the reagents in the sample vessel, and process the taken pictures to obtain the concentration of the solution to be tested.

[0013] A rapid detection method for solution colorimetric analysis includes:

[0014] S1, putting a sensing reagent into a solution to be tested with an unknown concentration to obtain a corresponding color-developing reagent; putting the sample vessel containing the color-developing solution of the reagent to be tested and the vessel containing the reference reagent into the optical dark box through the window at the same time, and adjusting the distance between the front panel of the optical dark box and the sample;

[0015] S2, aligning the camera of the intelligent terminal installed with the corresponding application program with the opening on the front panel of the dark box, focusing and taking pictures to obtain a detection image;

[0016] S3, The intelligent terminal automatically cuts out the region of interest ROI1 of the reagent to be tested, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the solution-free area of the sample vessel from the detected image;

[0017] S4, Extract the median values of the R, G, and B color parameter components of all pixels in the images of the region of interest ROI1 of the reagent to be tested, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the solution-free area of the sample vessel. Calibrate the median values of the R, G, and B color parameter components of all pixels in the image of the region of interest ROI1 of the reagent to be tested according to the median values of the R, G, and B color parameter components of all pixels in the images of the region of interest ROI2 of the reference reagent and the region of interest ROI3 of the solution-free area of the sample vessel, and obtain the median values of the calibrated R, G, and B color components of the ROI1 image corresponding to the solution to be tested with unknown concentration;

[0018] S5, Select a calibration curve and convert the median values of the calibrated R, G, and B color components of ROI1 into corresponding color space information;

[0019] S6, Substitute the color space information into the calibration curve of the concentration to be tested to obtain the concentration of the solution to be tested.

[0020] Preferably, step S4 further includes: converting the images of the region of interest ROI1 of the reagent to be tested, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the solution-free area of the sample vessel into bitmaps, extracting the R, G, and B color parameter components of each pixel in the images of ROI1, ROI2, and ROI3, and respectively obtaining the median values of the R, G, and B color parameter components of all pixels in the images of ROI1, ROI2, and ROI3.

[0021] Preferably, the formula for calibrating the median values of the R, G, and B color parameter components of all pixels in the image of the region of interest ROI1 of the reagent to be tested according to the median values of the R, G, and B color parameter components of all pixels in the images of the region of interest ROI2 of the reference reagent and the region of interest ROI3 of the solution-free area of the sample vessel in step S4 is:

[0022]

[0023] Among them, is the median value of the R, G, and B color parameter components of all pixels in the image of the region of interest ROI1 of the reagent to be tested, is the median value of the R, G, and B color parameter components of all pixels in the image of the region of interest ROI2 of the reference reagent, is the median value of the R, G, and B color parameter components of all pixels in the image of the region of interest ROI3 of the solution-free area of the sample vessel, is the median value of the color parameter components of the reference reagent ROI2 obtained by taking a photo before this detection, is the median value of the color parameter components of the transparent glass ROI3 obtained by taking a photo before this detection, where i = 1, 2, 3, ….

[0024] Preferably, drawing a calibration curve includes: preparing a sensing reagent that can make the sample solution develop color, putting the sensing reagent into N sample solutions with known concentrations to obtain corresponding colored sample solutions; N > 1; the sample solution and the solution to be measured are the same solution; sequentially putting the N colored sample solutions into an intermediate sample container, collecting images through the camera of the intelligent terminal for detection, recording data and performing analysis and processing to obtain the calibration curves of each component of all pixels of the detected image after calibration with respect to the concentration of the sample solution, where each component includes R, G, B, H, S, V, L, C, M, Y, and K.

[0025] Preferably, the steps of collecting images through the camera of the intelligent terminal for detection, recording data and performing analysis and processing include:

[0026] S01, putting the sample container containing the colored sample solution and the reference reagent container into the dark box through the window at the same time, adjusting the distance between the front panel of the dark box and the sample; the camera of the intelligent terminal is aligned with the opening on the front panel of the dark box for focusing and taking pictures to obtain a detection image;

[0027] S02, the intelligent terminal automatically cuts out the region of interest ROI1 of the reagent to be tested, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the area without solution in the sample container from the taken photo;

[0028] S03, converting the images of ROI1, ROI2, and ROI3 into bitmaps, extracting the R, G, B color parameter components of each pixel in the images of ROI1, ROI2, and ROI3, respectively obtaining the median values of the R, G, B color parameter components of all pixels in the images of ROI1, ROI2, and ROI3, and then calibrating the median values of the R, G, B color parameter components of all pixels in the image of ROI1 according to the median values of the R, G, B color parameter components of all pixels in the images of the reference reagent region of interest ROI2 and the region of interest ROI3 of the area without solution in the sample container to obtain the median values of the calibrated R, G, B color components of all pixels in the image of ROI1;

[0029] S04, converting the median values of the calibrated R, G, B color components of all pixels in the image of ROI1 into the HSV, HSL, or CMYK color space through calculation, respectively obtaining the median values of the calibrated H, S, V, L, C, M, Y, K color parameter components of all pixels in the image of ROI1, and finally fitting the calibration curves of R, G, B, H, S, V, L, C, M, Y, K with respect to the concentration of the sample solution by the least squares method respectively;

[0030] S05. Sequentially place N color-developing sample solutions in the middle sample container, and repeat steps S01 - S04 to obtain N calibration curves for the sample solution concentration. Take the calibration curve with the best linearity as the calibration curve for sample reagent detection.

[0031] The present invention has the following advantages over the prior art:

[0032] In the present invention, the smart phone and the lighting unit are located on both sides of the solution to be measured or the sample solution, and image the transmitted light of the solution to be measured or the sample solution, avoiding the interference caused by the reflected light of the solution to the lighting source. The sample containers are two identical square containers. The left square container is used to add the reagent to be tested, and the right square container is used to add a black soluble reagent as a reference reagent to eliminate the color parameter component error caused by different exposures in the images obtained from different times of photographing. In addition, the bottom of the sample container is solid, which can reduce the reagent consumption. The smart phone of the present invention realizes functions such as taking pictures, automatically intercepting the region of interest, drawing calibration curves, and displaying the reagent concentration. More importantly, it can calibrate the reagent colors with different exposures, eliminate the color errors caused by different exposures, and improve the detection accuracy. In actual use, put the reagent to be tested into the sample container, and the concentration of the reagent to be tested can be displayed after taking a picture with the mobile phone APP. The present invention can be used for quantitative analysis of various reagents based on colorimetry, and has the advantages of low cost, portability, simple operation, high precision, and stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The specification drawings forming a part of this application are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:

[0034] Figure 1 is a structural diagram of the solution colorimetric analysis rapid detection device of the present invention.

[0035] Figure 2 is a schematic flow chart of the solution colorimetric analysis rapid detection method of the present invention.

[0036] FIG. 3(a) is a schematic diagram of the colors corresponding to ferric chloride solutions with different concentrations.

[0037] FIG. 3(b) is a calibration curve diagram obtained before color calibration.

[0038] FIG. 3(c) is a fitted straight line diagram obtained after color calibration using the calibration method of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0039] The present invention will be further described below in conjunction with the drawings and embodiments.

[0040] See Figure 1, One A rapid detection device for colorimetric analysis of solutions, comprising: an optical dark box 1, a lighting unit 3 is provided on the rear panel of the optical dark box 1, a sample vessel 2 is provided in front of the lighting unit 3 in the optical dark box 1, a closable window 4 is provided on the upper panel, and the window 4 is directly above the sample vessel 2; there is a circular opening 5 at the center of the front panel of the dark box, and slide rails 6 are provided between the two sides of the front panel and the left side panel and the right side panel respectively; the center of the opening 5 on the front panel of the dark box, the center of the sample vessel 2 and the center of the lighting unit 3 are on the same horizontal line.

[0041] A rapid detection system for colorimetric analysis of solutions, comprising: a smart terminal and the above-mentioned rapid detection device for colorimetric analysis of solutions, a smart phone, which is used to be placed in the opening 5 of the front panel of the optical dark box 1, take pictures of the reagent in the sample vessel 2, and process the taken pictures to obtain the concentration of the solution to be measured.

[0042] In this embodiment, an APP (application program) is installed in the smart terminal. The smart terminal realizes functions such as taking pictures, automatically intercepting the region of interest, drawing a calibration curve, and displaying the reagent concentration. More importantly, it can calibrate the colors of the reagents with different exposures, eliminate the color errors caused by different exposures, and improve the detection accuracy. In actual use, the reagent to be tested is placed in the sample vessel 2, and after taking pictures with the mobile phone APP, the concentration of the reagent to be tested can be displayed.

[0043] In this embodiment, the optical dark box 1 is an opaque cuboid box. The dark box is made of opaque material, and the window 4 on the dark box is also made of opaque material. The window 4 is closed during taking pictures to ensure the dark environment of the entire dark box. The size of the dark box is 4cm * 4cm * 8cm. In addition, a convex lens can be placed directly in front of the camera of the smart phone, so that the width of the dark box can be reduced. The size of the window 4 on the upper panel of the dark box is 1cm * 2cm, and the diameter of the circular opening 5 is 1cm.

[0044] In this embodiment, the lighting unit 3 is a surface light source with uniform light and adjustable brightness. The lighting unit 3 includes an LED array 7 and a light diffusing plate made of PMMA. The light diffusing plate is arranged outside the LED array 7, and an adjustable power supply is provided to control the luminous brightness of the lighting unit 3. The size of the surface light source is 4cm * 4cm * 1cm, and the size of the light diffusing plate is 4cm * 4cm * 0.1cm. The light emitted by the LED lamp becomes evenly illuminated on the sample after passing through the light diffusing plate, and the transmitted light reaches the camera of the mobile phone. Slide rails 6 are provided between the two sides of the front panel and the left side panel and the right side panel respectively, and the front panel can slide freely to adapt to mobile phones with different focal lengths for taking pictures. The smart phone and the lighting unit 3 are located on both sides of the solution to be measured or the sample solution, and image the transmitted light of the solution to be measured or the sample solution, avoiding the interference caused by the reflected light of the solution to the illumination light source.

[0045] In this embodiment, the sample vessels 2 are two identical square vessels. The left square vessel is used to add the reagent to be tested, and the right square vessel is used to add a black soluble reagent as a reference reagent. To reduce the amount of reagent used and align the camera to take pictures in the middle of the reagent, 1 / 3 of the lower part of the square vessel is solid, and the test solution or sample solution is filled up to the middle 1 / 3. The sample vessels 22 are made of light-transmitting glass, such as polymethyl methacrylate (PMMA), and two identical square vessels are placed side by side. The sample vessels 22 are made of light-transmitting glass with dimensions of 1 cm * 0.5 cm * 4 cm.

[0046] In this embodiment, the reagent to be tested is any reagent whose color changes with concentration or a reagent whose color changes with concentration after adding a sensing probe, and the reference reagent is black ink.

[0047] See Figure 2 , a solution colorimetric analysis rapid detection method for a solution colorimetric analysis rapid detection device, including:

[0048] S1, putting the sensing reagent into the test solution of unknown concentration to obtain the corresponding color-developing reagent; putting the sample vessel 2 containing the color-developing solution of the reagent to be tested and the vessel containing the reference reagent into the optical dark box 1 through the window 4 at the same time, and adjusting the distance between the front panel of the optical dark box 1 and the sample;

[0049] S2, aligning the camera of the smart terminal installed with the corresponding application program to the opening 5 on the front panel of the dark box, focusing and taking pictures to obtain a detection image;

[0050] S3, the smart terminal automatically cuts out the region of interest ROI1 of the reagent to be tested, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the area without solution in the sample vessel 2 from the detection image; the pixel ranges of ROI1, ROI2, and ROI3 are 10 * 10 respectively.

[0051] S4. Extract the median values of the R (red), G (green), and B (blue) color parameter components of all pixels in the ROI1 of the reagent to be tested, the ROI2 of the reference reagent, and the ROI3 of the solution-free area of the sample vessel 2. Calibrate the median values of the R, G, and B color parameter components of all pixels in the ROI1 image of the reagent to be tested according to the median values of the R, G, and B color parameter components of all pixels in the ROI2 of the reference reagent and the ROI3 of the solution-free area of the sample vessel 2, to obtain the median values of the calibrated R, G, and B color components of the ROI1 image corresponding to the solution to be tested with an unknown concentration. Step S4 also includes: converting the images of the ROI1 of the reagent to be tested, the ROI2 of the reference reagent, and the ROI3 of the solution-free area of the sample vessel 2 into bitmaps (Bitmap format), extracting the R, G, and B color parameter components of each pixel in the ROI1, ROI2, and ROI3 images, and respectively obtaining the median values of the R, G, and B color parameter components of all pixels in the ROI1, ROI2, and ROI3 images.

[0052] In this embodiment, the calibration formula for calibrating the median values of the R, G, and B color parameter components of all pixels in the ROI1 image of the reagent to be tested according to the median values of the R, G, and B color parameter components of all pixels in the ROI2 of the reference reagent and the ROI3 of the solution-free area of the sample vessel 2 is as follows:

[0053]

[0054] Wherein, is the median value of the R, G, and B color parameter components of all pixels in the ROI1 image of the reagent to be tested, is the median value of the R, G, and B color parameter components of all pixels in the ROI2 image of the reference reagent, is the median value of the R, G, and B color parameter components of all pixels in the ROI3 image of the solution-free area of the sample vessel, is the median value of the color parameter components of the reference reagent ROI2 obtained by taking a photo before this detection, is the median value of the color parameter components of the transparent glass ROI3 obtained by taking a photo before this detection, i = 1, 2, 3,....

[0055] Therefore, this system realizes color calibration by adding a black reagent with a constant concentration. When extracting the values of each color parameter component in different color spaces, the calibration method calibrates the reagent color information obtained by different exposures by combining the color information of the black reagent and the sample vessel 2, and can eliminate the color parameter component error caused by different exposures for each image taken.

[0056] S5. Select the calibration curve and convert the median values of the calibrated R, G, and B color components in ROI1 into corresponding color space information.

[0057] S6. Substitute the color space information into the calibration curve of the concentration to be measured to obtain the concentration of the solution to be measured.

[0058] In this embodiment, drawing the calibration curve includes: preparing a sensing reagent that can make the sample solution develop color, putting the sensing reagent into N sample solutions with known concentrations to obtain corresponding colored sample solutions; N > 1; the sample solution and the solution to be measured are the same solution; sequentially placing the N colored sample solutions in the middle sample container 2, collecting images through the camera of the intelligent terminal for detection, recording data and performing analysis and processing to obtain the calibration curve of each component of all pixels of the detected image after calibration with respect to the concentration of the sample solution, where each component includes R (red), G (green), B (blue), H (hue), S (saturation), V (brightness), L (luminance), C (cyan), M (magenta), Y (yellow), K (black).

[0059] Furthermore, the steps of collecting images through the camera of the intelligent terminal for detection, recording data and performing analysis and processing include:

[0060] S01. Put the sample container 2 containing the colored sample solution and the container containing the reference reagent into the dark box through the window 4 at the same time, and adjust the distance between the front panel of the dark box and the sample; the camera of the intelligent terminal is aligned with the opening 5 on the front panel of the dark box for focusing and taking pictures to obtain the detection image.

[0061] S02. The intelligent terminal automatically cuts out the region of interest ROI1 of the reagent to be tested, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the area without solution in the sample container 2 from the taken picture.

[0062] S03. Convert the images of ROI1, ROI2, and ROI3 into bitmaps, extract the R, G, and B color parameter components of each pixel in the images of ROI1, ROI2, and ROI3, respectively obtain the median values of the R, G, and B color parameter components of all pixels in the images of ROI1, ROI2, and ROI3, and then calibrate the median values of the R, G, and B color parameter components of all pixels in the image of ROI1 according to the median values of the R, G, and B color parameter components of all pixels in the images of the reference reagent region of interest ROI2 and the region of interest ROI3 of the area without solution in the sample container 2 to obtain the median values of the calibrated R, G, and B color components of all pixels in the image of ROI1.

[0063] S04. Convert the median values of the calibrated R, G, and B color components of all pixels in the ROI1 image into the HSV, HSL, or CMYK color spaces through calculation, respectively obtaining the median values of the calibrated H (hue), S (saturation), V (brightness), L (lightness), C (cyan), M (magenta), Y (yellow), and K (black) color parameter components of all pixels in the ROI1 image. Finally, use the least squares method to fit the calibration curves of R (red), G (green), B (blue), H (hue), S (saturation), V (brightness), L (lightness), C (cyan), M (magenta), Y (yellow), and K (black) with respect to the concentration of the sample solution;

[0064] S05. Place N color-developed sample solutions in the middle sample container 2 in sequence, and repeat steps S01 - S04 to obtain N calibration curves for the concentration of the sample solution. Take the calibration curve with the best linearity as the calibration curve for sample reagent detection.

[0065] Experimental data

[0066] To verify the effectiveness of this calibration method, prepare solutions with different concentrations using ferric chloride reagent, take pictures with this system and draw calibration curves. The concentration of the ferric chloride solution is 0.05 - 1 mol / L, and the corresponding color of the reagent is shown in Fig. 3(a). By conducting three groups of parallel experiments and performing linear fitting on all the data, the calibration curve obtained before color calibration is shown in Fig. 3(b), where R 2 = 0.98708. The fitted straight line obtained after calibrating the color using the calibration method of the present invention is shown in Fig. 3(c), where R 2 = 0.99047. It can be seen that as the concentration increases, the change value of the G-channel intensity shows a linearly increasing trend, and the fitting accuracy after calibration is higher, indicating that colorimetric analysis can be performed using this system and this calibration method.

[0067] The above specific embodiments are the preferred embodiments of the present invention and cannot limit the present invention. Any other changes or other equivalent replacement methods made without departing from the technical solution of the present invention are included within the protection scope of the present invention.

Claims

1. A rapid detection method for solution colorimetric analysis, characterized in that, there is a rapid detection device for solution colorimetric analysis, including: an optical dark box, a lighting unit is arranged on the rear panel of the optical dark box, a sample vessel is arranged in front of the lighting unit in the optical dark box, a closable window is arranged on the upper panel, and the window is directly above the sample vessel; an opening is arranged on the front panel, and slide rails are arranged between the two sides of the front panel and the left side panel and the right side panel respectively; the center of the opening on the front panel of the dark box, the center of the sample vessel and the center of the lighting unit are on the same horizontal line; including: S1, Put the sensing reagent into the test solution with unknown concentration to obtain the corresponding color-developing reagent; put the sample vessel containing the color-developing solution of the test reagent and the vessel containing the reference reagent into the optical dark box through the window at the same time, and adjust the distance between the front panel of the optical dark box and the sample. S2, Align the camera of the smart terminal installed with the corresponding application program with the opening on the front panel of the dark box, focus and take pictures to obtain a detection image. S3, The smart terminal automatically cuts out the region of interest ROI1 of the test reagent, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the solution-free area of the sample vessel from the detection image. S4, Extract the median values of the R, G, and B color parameter components of all pixels in the images of the region of interest ROI1 of the test reagent, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the solution-free area of the sample vessel. Calibrate the median values of the R, G, and B color parameter components of all pixels in the image of the region of interest ROI1 of the test reagent according to the median values of the R, G, and B color parameter components of all pixels in the images of the region of interest ROI2 of the reference reagent and the region of interest ROI3 of the solution-free area of the sample vessel, and obtain the calibrated median values of the R, G, and B color components of the ROI1 image corresponding to the test solution with unknown concentration. The calibration formula for calibrating the median values of the R, G, and B color parameter components of all pixels in the image of the region of interest ROI1 of the test reagent according to the median values of the R, G, and B color parameter components of all pixels in the images of the region of interest ROI2 of the reference reagent and the region of interest ROI3 of the solution-free area of the sample vessel in step S4 is: Among them, is the median of the R, G, and B color parameter components of all pixels in the ROI1 image of the reagent to be tested, is the median of the R, G, and B color parameter components of all pixels in the ROI2 image of the reference reagent, is the median of the R, G, and B color parameter components of all pixels in the ROI3 image of the solvent-free area of the sample vessel, is the median of the color parameter components of the reference reagent ROI2 obtained by taking a photo before this detection, is the median of the color parameter components of the transparent glass ROI3 obtained by taking a photo before this detection, i = 1, 2, 3...; S5, Select a calibration curve and convert the calibrated median values of the R, G, and B color components of ROI1 into corresponding color space information. S6, Substitute the color space information into the calibration curve of the concentration to be measured to obtain the concentration of the test solution.

2. The rapid detection method for solution colorimetric analysis according to claim 1, characterized in that, Step S4 further includes: converting the images of the region of interest ROI1 of the test reagent, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the solution-free area of the sample vessel into bitmaps, extracting the R, G, and B color parameter components of each pixel in the ROI1, ROI2, and ROI3 images, and respectively obtaining the median values of the R, G, and B color parameter components of all pixels in the ROI1, ROI2, and ROI3 images.

3. The rapid detection method for solution colorimetric analysis according to claim 1, characterized in that, Drawing a calibration curve includes: Prepare a sensing reagent that can make the sample solution develop color, and place the sensing reagent into N sample solutions with known concentrations to obtain corresponding colored sample solutions; N > 1; the sample solution and the solution to be measured are the same solution; Place the N colored sample solutions in the middle sample vessel in sequence, collect images through the camera of the intelligent terminal for detection, record data and perform analysis and processing to obtain calibration curves of each component of all pixels of the detected image after calibration with respect to the concentration of the sample solution, where each component includes R, G, B, H, S, V, L, C, M, Y, and K; The steps of collecting images through the camera of the intelligent terminal for detection, recording data and performing analysis and processing include: S01, Place the sample vessel containing the colored sample solution and the reference reagent vessel through the window into the dark box at the same time, and adjust the distance between the front panel of the dark box and the sample; the camera of the intelligent terminal is aligned with the opening on the front panel of the dark box for focusing and taking pictures to obtain a detection image; S02, The intelligent terminal automatically cuts out the region of interest ROI1 of the reagent to be tested, the region of interest ROI2 of the reference reagent, and the region of interest ROI3 of the area without solution in the sample vessel from the taken photo; S03, Convert the images of ROI1, ROI2, and ROI3 into bitmaps, extract the R, G, B color parameter components of each pixel in the images of ROI1, ROI2, and ROI3, respectively obtain the median values of the R, G, B color parameter components of all pixels in the images of ROI1, ROI2, and ROI3, and then calibrate the median values of the R, G, B color parameter components of all pixels in the image of ROI1 according to the median values of the R, G, B color parameter components of all pixels in the images of the reference reagent region of interest ROI2 and the region of interest ROI3 of the area without solution in the sample vessel to obtain the median values of the calibrated R, G, B color components of all pixels in the image of ROI1; S04, Convert the median values of the calibrated R, G, B color components of all pixels in the image of ROI1 into the HSV, HSL, or CMYK color space through calculation, respectively obtain the median values of the calibrated H, S, V, L, C, M, Y, K color parameter components of all pixels in the image of ROI1, and finally use the least squares method to fit the calibration curves of R, G, B, H, S, V, L, C, M, Y, K with respect to the concentration of the sample solution; S05, Place the N colored sample solutions in the middle sample vessel in sequence, repeat steps S01 - S04, obtain N calibration curves with respect to the concentration of the sample solution, and use the calibration curve with the best linearity as the calibration curve for sample reagent detection.

4. The rapid detection method for solution colorimetric analysis according to claim 1, characterized in that, The lighting unit is a surface light source with uniform illumination and adjustable brightness, and the lighting unit includes an LED array and a diffuser plate, and the diffuser plate is arranged outside the LED array.

5. The rapid detection method for solution colorimetric analysis according to claim 1, characterized in that, The sample vessels are two identical square vessels, one square vessel is used to add the reagent to be tested, and the other square vessel is used to add a black soluble reagent as a reference reagent.

6. The rapid detection method for solution colorimetric analysis according to claim 5, characterized in that, the lower part of the square vessel is solid.

7. The rapid detection method for solution colorimetric analysis according to claim 5, characterized in that, the reagent to be tested is any reagent whose color changes with concentration or a reagent whose color changes with concentration after adding a sensing probe, and the reference reagent is black ink.

Citation Information

Patent Citations

  • Fast-field high-precision quantitative pH detection device and method based on intelligent equipment

    CN107727651A

  • Test device and test method for forward looking camera ADAS algorithm

    CN109163889A

  • Portable multi-channel spectrophotometer based on smart phone, and method for measuring absorbance

    CN109632666A

  • Method for detecting phospholipase A2 based on colorimetric principle and application thereof

    CN111504995A

  • Solution colorimetric analysis rapid detection device and system

    CN214584857U