Mercury ion concentration detection method, device, system and electronic equipment
By combining fluorescent test strips and image analysis technology with the correlation between color values and mercury ion concentration, a portable method for detecting mercury ion concentration is provided, which solves the problem of bulky fluorescence spectrophotometers and enables rapid and low-cost on-site detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG PHARMA UNIV
- Filing Date
- 2023-07-04
- Publication Date
- 2026-05-29
AI Technical Summary
In the existing technology, fluorescence spectrophotometers are bulky and unsuitable for on-site detection of mercury ion concentration, and there is a lack of portable, low-cost detection methods.
The system uses fluorescent test strips and a target light source, combined with an image acquisition unit and a calculation unit, to detect mercury ion concentration by analyzing the color values of the colorimetric image. The system then uses the correspondence between color values and mercury ion concentration for on-site detection.
It enables rapid and low-cost detection of mercury ion concentration, making it suitable for field applications.
Smart Images

Figure CN116818736B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mercury ion detection technology, and more specifically, to a method, apparatus, system, and electronic device for detecting mercury ion concentration. Background Technology
[0002] Mercury is a highly toxic heavy metal that can enter the human body through the food chain or the environment, causing extremely serious harm. Currently, fluorescence spectrophotometers are generally used to detect mercury ions in the test solution. However, fluorescence spectrophotometers are bulky and unsuitable for on-site detection. Therefore, providing a solution that facilitates on-site detection of mercury ion concentration has become a technical problem that needs to be solved in this field. Summary of the Invention
[0003] This application provides a method, system, device, electronic device, and readable storage medium for detecting mercury ion concentration, which can quickly detect the mercury ion concentration of the test solution on-site at a low cost.
[0004] The embodiments of this application can be implemented as follows:
[0005] In a first aspect, embodiments of this application provide a method for detecting mercury ion concentration, the method comprising:
[0006] Obtain a colorimetric image of a test card with a test solution added under the illumination of a target light source, wherein the test card includes fluorescent test paper and the test solution is added to the fluorescent test paper;
[0007] The target color value corresponding to the color displayed by the fluorescent test strip is obtained based on the color development image analysis, wherein the target color value includes the value corresponding to each of the different color channels;
[0008] Based on the correspondence between the obtained color value and the mercury ion concentration, and the target color value, the target mercury ion concentration of the test solution is obtained.
[0009] Secondly, embodiments of this application provide a mercury ion concentration detection system, the system comprising a target light source, a detection box, an image acquisition unit, and a calculation unit.
[0010] The detection box is provided with a first through hole and a second through hole, and the detection box is used to place fluorescent test paper with solution added inside;
[0011] The target light source is located at the first through hole to provide preset light.
[0012] The image acquisition unit is disposed at the second through hole and is used to acquire an image;
[0013] The computing unit is communicatively connected to the image acquisition unit and is used to execute the mercury ion concentration detection method described in any of the foregoing embodiments based on the image acquired by the image acquisition unit.
[0014] Thirdly, embodiments of this application provide a mercury ion concentration detection device, the device comprising:
[0015] An image acquisition module is used to acquire a colorimetric image of a test card with a test solution added on it under the illumination of a target light source, wherein the test card includes fluorescent test paper and the test solution is added on the fluorescent test paper;
[0016] The color value determination module is used to analyze the color image to obtain the target color value corresponding to the color displayed by the current fluorescent test strip, wherein the target color value includes the value corresponding to each of the different color channels;
[0017] The concentration determination module is used to obtain the target mercury ion concentration of the test solution based on the obtained correspondence between the color value and the mercury ion concentration and the target color value.
[0018] Fourthly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor can execute the machine-executable instructions to implement the mercury ion concentration detection method described in the foregoing embodiments.
[0019] Fifthly, embodiments of this application provide a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the mercury ion concentration detection method as described in the foregoing embodiments.
[0020] The mercury ion concentration detection method, system, device, electronic device, and readable storage medium provided in this application first obtain a colorimetric image of a test card with a test solution added under target light source illumination. The test card includes fluorescent test strips, and the test solution is added to the fluorescent test strips. Then, based on the colorimetric image, a target color value corresponding to the color displayed on the fluorescent test strips is obtained. This target color value includes values corresponding to different color channels. Finally, based on the obtained correspondence between color values and mercury ion concentration, and the target color value, the target mercury ion concentration of the test solution is obtained. This allows for rapid on-site detection of the mercury ion concentration of the test solution at a low cost. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A block diagram illustrating an electronic device provided in an embodiment of this application;
[0023] Figure 2 This is one of the flowcharts illustrating the mercury ion concentration detection method provided in the embodiments of this application;
[0024] Figure 3 This is a second schematic flowchart of the mercury ion concentration detection method provided in the embodiments of this application;
[0025] Figure 4 A schematic diagram of a standard card provided in an embodiment of this application;
[0026] Figure 5 This is a schematic diagram illustrating the correspondence between color values and mercury ion concentrations provided in the embodiments of this application.
[0027] Figure 6 for Figure 2 A flowchart illustrating the sub-steps included in step S160;
[0028] Figure 7 This is one of the structural diagrams of the mercury ion concentration detection system provided in the embodiments of this application;
[0029] Figure 8 This is the second structural diagram of the mercury ion concentration detection system provided in the embodiments of this application;
[0030] Figure 9 This is a schematic diagram illustrating the manufacturing process of the standard card provided in the embodiments of this application;
[0031] Figure 10 A schematic diagram illustrating the use of a standard card to obtain mercury ion concentration, provided for an embodiment of this application;
[0032] Figure 11 This is one of the schematic diagrams of the mercury ion concentration detection device provided in the embodiments of this application;
[0033] Figure 12 This is a second schematic diagram of the mercury ion concentration detection device provided in the embodiments of this application.
[0034] Icons: 100 - Electronic device; 110 - Memory; 120 - Processor; 130 - Communication unit; 200 - Mercury ion concentration detection device; 201 - Relationship acquisition module; 210 - Image acquisition module; 220 - Color value determination module; 230 - Concentration determination module; 300 - Mercury ion concentration detection system; 310 - Target light source; 320 - Detection box; 321 - Top cover; 3211 - First through hole; 3212 - Second through hole; 323 - First baffle; 3231 - Notch; 325 - Second baffle; 3251 - Protrusion; 330 - Image acquisition unit. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0036] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0037] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0038] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0039] Please refer to Figure 1 , Figure 1This is a block diagram of an electronic device 100 provided in an embodiment of this application. The electronic device 100 may be, but is not limited to, a smartphone, a computer, etc. The electronic device 100 includes a memory 110, a processor 120, and a communication unit 130. The memory 110, processor 120, and communication unit 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0040] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0041] The processor 120 is used to read / write data or programs stored in the memory 110 and execute corresponding functions. For example, the memory 110 stores a mercury ion concentration detection device 200, which includes at least one software function module that can be stored in the memory 110 in the form of software or firmware. The processor 120 executes various functional applications and data processing by running the software programs and modules stored in the memory 110, such as the mercury ion concentration detection device 200 in this embodiment, thereby realizing the mercury ion concentration detection method in this embodiment.
[0042] The communication unit 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through the network, and to send and receive data through the network.
[0043] It should be understood that, Figure 1 The structure shown is only a schematic diagram of the electronic device 100. The electronic device 100 may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown. Figure 1 The components shown can be implemented using hardware, software, or a combination thereof.
[0044] Please refer to Figure 2 , Figure 2 This is one of the flowcharts illustrating a mercury ion concentration detection method provided in this application embodiment. The method can be applied to the aforementioned electronic device 100. The specific flow of the mercury ion concentration detection method is described in detail below. In this embodiment, the method may include steps S140 to S160.
[0045] Step S140: Obtain a colorimetric image of the test card with the test solution added under the illumination of the target light source.
[0046] In this embodiment, the detection card includes fluorescent test strips. The test solution can be added to the fluorescent test strips, and then the fluorescent test strips are irradiated with a target light source to obtain a colorimetric image of the detection card under these conditions. The fluorescent test strips with the test solution added will show a corresponding color under the target light source. The specific fluorescent test strips and target light source can be set according to actual conditions and are not specifically limited here.
[0047] Optionally, if the electronic device 100 has an image acquisition unit, the image can be acquired using the image acquisition unit to obtain the color image. Alternatively, the electronic device 100 can also receive color images sent by other devices. It is understood that the above-described methods for acquiring color images are merely illustrative, and the specific acquisition method can be determined based on the actual situation.
[0048] Step S150: Analyze the colorimetric image to obtain the target color value corresponding to the color currently displayed on the fluorescent test strip.
[0049] In this embodiment, upon obtaining a colorimetric image, color analysis can be performed on the fluorescent test strip with the test solution added to it, thereby determining the target color value corresponding to the color currently displayed on the fluorescent test strip. The target color value includes values corresponding to each of the different color channels.
[0050] Step S160: Based on the obtained correspondence between color values and mercury ion concentrations and the target color value, the target mercury ion concentration of the test solution is obtained.
[0051] In this embodiment, the correspondence between the color value and the mercury ion concentration can be obtained by the analysis of the electronic device 100, or it can be sent to the electronic device 100 by other devices. This correspondence can be obtained through pre-calibration, and the pre-calibrated relationship can be directly called each time it is needed; alternatively, the correspondence can be obtained through on-site calibration each time it is needed, and then used. The specific settings can be tailored to actual needs.
[0052] Once the target color value is obtained, the mercury ion concentration corresponding to the target color value can be analyzed based on the correspondence between the color value and the mercury ion concentration, and the analyzed mercury ion concentration can be used as the target mercury ion concentration of the test solution.
[0053] Thus, when on-site detection of mercury ion concentration is required, there is no need to use an expensive and inconvenient fluorescence spectrophotometer. Instead, the target mercury ion concentration of the test solution can be obtained based on the correspondence between color values and mercury ion concentration, as well as the on-site color development image. This method is fast and low-cost.
[0054] Alternatively, please refer to Figure 3 , Figure 3 This is a second schematic flowchart of the mercury ion concentration detection method provided in this application embodiment. In this embodiment, before steps S140 to S160, the method may include steps S110 to S130.
[0055] Step S110: Obtain the colorimetric image of the fluorescent test strip with sample solutions of different mercury ion concentrations added under the illumination of the target light source.
[0056] Step S120: Obtain the color value corresponding to the color displayed in each sample colorimetric image.
[0057] Step S130: Based on the mercury ion concentration and color value corresponding to the color development image of each sample, obtain the correspondence between the color value and the mercury ion concentration.
[0058] In this embodiment, sample solutions with different mercury ion concentrations can be prepared in advance. Then, each sample solution is dropped onto a corresponding fluorescent test strip and irradiated with the target light source, thereby obtaining a colorimetric image of the sample under these conditions. Optionally, multiple colorimetric images can be obtained, with each image including a fluorescent test strip with a sample solution of one mercury ion concentration. Alternatively, only one image can be obtained. Figure 4 The image shown (which may not include concentration values) includes multiple fluorescent test strips, each with a sample solution of a certain mercury ion concentration added. Each area of the fluorescent test strip in the image can be considered a sample colorimetric image. Then, the color value corresponding to the color displayed in each sample colorimetric image can be analyzed. Based on the color value corresponding to the color displayed in each sample colorimetric image and the mercury ion concentration of the sample solution corresponding to each sample colorimetric image, the correspondence between the color value and the mercury ion concentration can be analyzed.
[0059] As one possible implementation, the target light source is an ultraviolet light source emitting ultraviolet light with a wavelength of 365nm. For example, the target light source is a portable 6W floodlight 365nm LED flashlight. The fluorescent test paper is an aluminum-doped carbon dot distribution area, which is used to detect mercury ion concentration; that is, the aluminum-doped carbon dot distribution area is a fluorescent color-developing area. Optionally, the fluorescent test paper can be obtained by uniformly covering filter paper with an Al-CDs solution and then allowing it to dry naturally.
[0060] Optionally, the correspondence between color values and mercury ion concentrations may include each color value and the corresponding mercury ion concentration, or may include a functional relationship between color values and the corresponding mercury ion concentrations. The specific details can be set according to actual needs.
[0061] As one possible implementation, the different color channels include three color channels: red, green, and blue. The aforementioned color values and the target color value each include values from the red, green, and blue color channels, respectively. The correspondence between the color values and mercury ion concentration describes the correspondence between a ratio and mercury ion concentration. This ratio is the product of the red channel value and the blue channel value, divided by the green channel value. When this correspondence is expressed as a function, its form is as follows: Figure 5 As shown.
[0062] In this way, it is possible to Figure 6 The target mercury ion concentration was obtained as shown. Please refer to... Figure 6 , Figure 6 for Figure 2 A flowchart illustrating the sub-steps included in step S160. In this embodiment, step S160 may include sub-steps S161 to S162.
[0063] Sub-step S161: Calculate the target ratio based on the values corresponding to different color channels in the target color value.
[0064] Sub-step S162: Based on the correspondence between color value and mercury ion concentration and the target ratio, obtain the target mercury ion concentration corresponding to the target color value.
[0065] In this embodiment, the product of the red channel value and the blue channel value in the target color value can be calculated. Then, the product is divided by the green channel value in the target color value, and the result is used as the target ratio. Then, the target mercury ion concentration can be calculated based on the correspondence and the target ratio. For example, when the correspondence is a functional relationship, the target ratio can be substituted into the functional relationship to obtain the target mercury ion concentration.
[0066] Optionally, as a possible implementation, the test card may further include a control area, which includes multiple different mercury ion concentration values and the corresponding colors for each mercury ion concentration value. The color corresponding to a mercury ion concentration value represents the color displayed on fluorescent test paper with a solution having that mercury ion concentration value added under the illumination of the target light source. In other words, the test card serves as a colorimetric card, comprising a standard card and a sample card. The standard card includes multiple different mercury ion concentration values and the corresponding colors for use as a control; the sample card includes a fluorescent test strip for adding the test solution to obtain the mercury ion concentration of the test solution.
[0067] The sample colorimetric image obtained in step S110 may include the control area in the detection card, thus allowing the mercury ion concentration of the test solution to be manually determined by colorimetry. This method facilitates the direct acquisition of the mercury ion concentration of the test solution by colorimetry, and also allows for a secondary verification by comparing the mercury ion concentration determined by colorimetry with the mercury ion concentration obtained based on color values. Optionally, in this case, the correspondence can be obtained on-site based on the control area analysis, thus eliminating the need to store the correspondence in advance.
[0068] Please refer to Figure 7 , Figure 7 This is one of the structural diagrams of a mercury ion concentration detection system 300 provided in an embodiment of this application. In this embodiment, the mercury ion concentration detection system 300 may include: a target light source 310, a detection box 320, an image acquisition unit 330, and a calculation unit.
[0069] Please refer to Figure 7 and Figure 8 In this embodiment, the detection box 320 is provided with a first through hole 3211 and a second through hole 3212. A fluorescent test strip with a solution added is placed inside the detection box 320. The target light source 310 is located at the first through hole 3211 to provide preset light. The image acquisition unit 330 is located at the second through hole 3212 to acquire an image. The computing unit is communicatively connected to the image acquisition unit 330 and is used to execute the aforementioned mercury ion concentration detection method based on the image acquired by the image acquisition unit.
[0070] Optionally, in this embodiment, the detection box 320 may include a top cover 321 and a baffle. The first through hole 3211 and the second through hole 3212 are disposed on the top cover 321. Optionally, the first through hole 3211 and the second through hole 3212 may be disposed in the area of the top cover 321. As a possible implementation, the first through hole 3211 is a stepped hole, used for placing the target light source 310, that is, the target light source 310 can provide light while preventing the target light source 310 from falling into the detection box 320.
[0071] The top cover 321 has a groove on the side facing the baffle, and one end of the baffle is detachably fitted into the groove, which facilitates transportation and assembly. Optionally, when the baffle is rectangular, the groove can be a rectangular slot.
[0072] Optionally, in this embodiment, the baffle of the detection box 320 may include two first baffles 323 and two second baffles 325. The edges of the opposite sides of the first baffles 323 are provided with notches 3231, and the edges of the opposite sides of the second baffles 325 are provided with protrusions 3251 at positions corresponding to the notches. The first baffles 323 and the second baffles 325 are detachably connected through the cooperation of the notches 3231 and the protrusions 3251.
[0073] As one possible implementation, the target light source 310 is a portable 365nm LED flashlight, and the image acquisition unit 330 and computing unit are devices found in a smartphone. The top cover 321 is made of black anodized aluminum, with dimensions of length × width × height = 112.0 × 85.0 × 8.5 mm. A groove with dimensions of length × width × height = 108.0 × 81.0 × 7.0 mm is provided on the side facing the baffle. A protruding platform with dimensions of length × width × height = 99.0 × 73.0 × 2.0 mm is located in the center of the recess. The groove and the protruding platform form a recess for embedding a section of the baffle. A double circular notch can be reserved in the middle of the top cover for a light source and a photography platform, with outer diameters of 25 and 15 mm, and inner diameters of 21 and 10 mm, respectively.
[0074] The first baffle 323 and the second baffle 325 can be thin aluminum sheets treated with black anodizing, with dimensions of length × width × height = 107.6 × 110.0 × 3.0 mm and 90.6 × 110.0 × 3.0 mm respectively, and each baffle contains two. The first baffle 323 has a concave notch with dimensions of length × width × height = 20.0 × 3.0 × 3.0 mm at the middle of its long end, and the second baffle 325 has a protruding platform with a U-shaped concave notch at the middle of its two long ends.
[0075] After assembly, the first baffle 323 and the second baffle 325 can form a fence with dimensions of length × width × height × thickness = 107.6 × 90.6 × 110.0 × 3.0 mm. Combined with the top cover 321, a detachable darkroom can be constructed to shield external interference light during fluorescence irradiation and reading.
[0076] In this embodiment, Hg 2+ The standard card preparation process can be as follows: Figure 9 As shown: First, the Al-CDs solution was evenly spread on filter paper and allowed to dry naturally. The filter paper was then cut into strips of 0.5 × 5 cm. Then, using a pipette, Hg solutions containing 0, 1, 5, 10, 50, 100, 500, and 1000 μmol / L were respectively aspirated. 2+ 5 μL of the standard sample solution is added dropwise to the middle of one end of the test strip. After the solution diffuses naturally and the test strip dries naturally, a fluorescent test strip standard card corresponding to the test solution is obtained. The sample solution can be water or dairy products, etc. Water samples can be laboratory wastewater, river wastewater, or domestic sewage, etc. Milk and yogurt samples can be purchased from nearby supermarkets when preparing standard cards on-site, and do not require sample pretreatment. For opaque dairy products, 1 mL can be diluted 100 times, and then different volumes of 0.05 mmol / L mercury ion standard solution can be added as a diluent to obtain standard samples with different Hg2+ concentrations.
[0077] Optionally, the standard card can be prepared on-site or in advance, without further specific limitations.
[0078] like Figure 10 As shown, the mercury ion concentration corresponding to each color can be marked on the standard card. When testing the solution to be tested, the solution can be added to the fluorescent test paper. The color of the aluminum-doped carbon dot distribution area on the fluorescent test paper after the addition of the solution is observed under the fluorescent detection environment. The mercury ion concentration corresponding to the color closest to this color is then found from the standard card, and this found mercury ion concentration is taken as the concentration of the solution to be tested. In this way, the mercury ion concentration of the solution to be tested is obtained through colorimetric semi-quantitative analysis. The fluorescent detection environment can be: placing the fluorescent test paper in the detection box and turning on the target light source.
[0079] The mercury ion concentration detection system 300 can also be assembled by placing a standard card in the detection box 320 and using the image acquisition unit 330 to obtain the image at this time. Then, the color value of the area corresponding to each mercury ion concentration in the standard card is obtained through color recognition to obtain the RG / B value of each fluorescent test strip area. Afterwards, a standard curve equation can be established using the RG / B value of each fluorescent test strip area and the mercury ion concentration.
[0080] Next, the RG / B value of the fluorescent test strip with the test solution added can be obtained under this environment. Substituting this value into the standard curve equation, the mercury ion concentration of the test solution can be obtained. The linear range of this method is 1.0-1000 μmol / L, and the detection limit is 0.2 μmol / L.
[0081] Optionally, when obtaining the RG / B value and mercury ion concentration on-site, the standard card including the fluorescent test strip and the fluorescent test strip with the test solution added (i.e., the sample card) can be placed together in the detection box 320. When obtaining the standard curve equation, the standard card area can be manually selected so that the standard curve equation can be obtained based on the color information in the standard card.
[0082] To perform the corresponding steps in the above embodiments and various possible methods, an implementation of a mercury ion concentration detection device 200 is given below. Optionally, the mercury ion concentration detection device 200 can adopt the above-described... Figure 1 The device structure of the electronic device 100 shown. Further, please refer to... Figure 11 , Figure 11 This is one of the schematic diagrams of the mercury ion concentration detection device 200 provided in this application embodiment. It should be noted that the basic principle and technical effects of the mercury ion concentration detection device 200 provided in this embodiment are the same as those in the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. In this embodiment, the mercury ion concentration detection device 200 may include: an image acquisition module 210, a color value determination module 220, and a concentration determination module 230.
[0083] The image acquisition module 210 is used to acquire a colorimetric image of a test card with a test solution added on it under the illumination of a target light source. The test card includes fluorescent test strips, and the test solution is added onto the fluorescent test strips.
[0084] The color value determination module 220 is used to obtain the target color value corresponding to the color displayed on the current fluorescent test strip based on the color development image analysis. The target color value includes values corresponding to each of the different color channels.
[0085] The concentration determination module 230 is used to obtain the target mercury ion concentration of the test solution based on the obtained correspondence between the color value and the mercury ion concentration and the target color value.
[0086] Optionally, in this embodiment, the different color channels include three color channels: red, green, and blue. The correspondence between the color value and the mercury ion concentration is used to describe the correspondence between the ratio and the mercury ion concentration. The ratio is the product of the red channel value and the blue channel value divided by the green channel value. The concentration determination module 230 is specifically used to: calculate the target ratio based on the values corresponding to the different color channels in the target color value; and obtain the target mercury ion concentration corresponding to the target color value based on the correspondence between the color value and the mercury ion concentration and the target ratio.
[0087] Optionally, in this embodiment, the target light source is an ultraviolet light source, the fluorescent test paper is an aluminum-doped carbon dot distribution area, and / or, the detection card further includes a control area, which includes multiple different mercury ion concentration values and the colors corresponding to each mercury ion concentration value. The color corresponding to a mercury ion concentration value represents the color displayed on the fluorescent test paper with a solution having that mercury ion concentration value added under the illumination of the target light source.
[0088] Please refer to Figure 12 , Figure 12 This is a second schematic diagram of the mercury ion concentration detection device 200 provided in an embodiment of this application. Optionally, in this embodiment, the mercury ion concentration detection device 200 may further include a relationship acquisition module 201.
[0089] The relationship acquisition module 201 is used to: acquire sample color development images of fluorescent test strips with sample solutions corresponding to different mercury ion concentrations added under the illumination of the target light source; acquire the color value corresponding to the color displayed in each sample color development image; and acquire the correspondence between the color value and the mercury ion concentration based on the mercury ion concentration and color value corresponding to each sample color development image.
[0090] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory 110 shown is either stored in or embedded in the operating system (OS) of the electronic device 100, and can be used by... Figure 1 The processor 120 executes the program. Meanwhile, the data and program code required to execute the above modules can be stored in the memory 110.
[0091] This application also provides a readable storage medium storing a computer program thereon, which, when executed by a processor, implements the mercury ion concentration detection method.
[0092] In summary, this application provides a method, system, device, electronic device, and readable storage medium for detecting mercury ion concentration. First, a colorimetric image of a test card with a test solution added under target light source illumination is obtained. The test card includes fluorescent test strips, and the test solution is added to the fluorescent test strips. Then, the target color value corresponding to the color displayed on the fluorescent test strips is obtained based on the colorimetric image. The target color value includes values corresponding to different color channels. Finally, the target mercury ion concentration of the test solution is obtained based on the obtained correspondence between the color value and the mercury ion concentration, and the target color value. This allows for rapid on-site detection of the mercury ion concentration of the test solution at a low cost.
[0093] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0094] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0095] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0096] The above description is merely an optional embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for detecting mercury ion concentration, characterized in that, The method includes: Obtain a colorimetric image of a test card with a test solution added under the illumination of a target light source, wherein the test card includes fluorescent test paper, the fluorescent test paper is an aluminum-doped carbon dot distribution area, and the test solution is added to the fluorescent test paper; The target color value corresponding to the color displayed on the fluorescent test strip is obtained based on the colorimetric image analysis. The target color value includes the values corresponding to different color channels. The different color channels include three color channels: red, green, and blue. The correspondence between the color value and the mercury ion concentration is used to describe the correspondence between the ratio and the mercury ion concentration. The ratio is the product of the red channel value and the blue channel value, divided by the green channel value. The target ratio is calculated based on the values corresponding to different color channels in the target color value. Based on the correspondence between color value and mercury ion concentration and the target ratio, the target mercury ion concentration corresponding to the target color value is obtained.
2. The method according to claim 1, characterized in that, The target light source is an ultraviolet light source, and / or, The test card also includes a control area, which includes multiple different mercury ion concentration values and the colors corresponding to each mercury ion concentration value. The color corresponding to a mercury ion concentration value represents the color displayed on a fluorescent test strip with a solution containing that mercury ion concentration value added under the illumination of the target light source.
3. The method according to claim 1 or 2, characterized in that, The method further includes: Obtain the colorimetric images of fluorescent test strips containing sample solutions with different mercury ion concentrations added under the illumination of the target light source; Obtain the color value corresponding to the color displayed in the colorimetric image of each sample; Based on the mercury ion concentration and color value corresponding to the color development image of each sample, the correspondence between color value and mercury ion concentration is obtained.
4. A mercury ion concentration detection system, characterized in that, The system includes a target light source, a detection box, an image acquisition unit, and a computing unit. The detection box is provided with a first through hole and a second through hole, and the detection box is used to place fluorescent test paper with solution added inside; The target light source is located at the first through hole to provide preset light. The image acquisition unit is disposed at the second through hole and is used to acquire an image; The computing unit is communicatively connected to the image acquisition unit and is used to execute the mercury ion concentration detection method according to any one of claims 1-3 based on the image acquired by the image acquisition unit.
5. The system according to claim 4, characterized in that, The detection box includes a top cover and a baffle. The first through hole and the second through hole are located on the top cover; The top cover has a groove on the side facing the baffle, and one end of the baffle is detachably embedded in the groove.
6. The system according to claim 5, characterized in that, The baffles in the detection box include two first baffles and two second baffles. The first baffle has notches on its opposite sides, and the second baffle has protrusions on its opposite sides at positions corresponding to the notches. The first baffle and the second baffle are detachably connected by the cooperation of the notches and the protrusions.
7. The system according to claim 4, characterized in that, The first through hole is a stepped hole.
8. A mercury ion concentration detection device, characterized in that, The device includes: An image acquisition module is used to acquire a colorimetric image of a test card with a test solution added on it under the illumination of a target light source, wherein the test card includes fluorescent test paper, the fluorescent test paper is an aluminum-doped carbon dot distribution area, and the test solution is dropped onto the fluorescent test paper; The color value determination module is used to analyze the color image to obtain the target color value corresponding to the color displayed on the current fluorescent test strip. The target color value includes the values corresponding to different color channels. The different color channels include three color channels: red, green, and blue. The correspondence between the color value and the mercury ion concentration is used to describe the correspondence between the ratio and the mercury ion concentration. The ratio is the product of the red channel value and the blue channel value divided by the green channel value. The concentration determination module is used to calculate the target ratio based on the values corresponding to different color channels in the target color value; and to obtain the target mercury ion concentration corresponding to the target color value based on the correspondence between the color value and the mercury ion concentration and the target ratio.
9. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor to implement the mercury ion concentration detection method according to any one of claims 1-3.