A method and device for detecting a strip of a colored area of a test card
By generating a two-dimensional spectrum using an array sensor and utilizing peak height information for qualitative and quantitative analysis, the flexibility and accuracy issues of the colorimetric stripe identification method on the detection card are resolved, achieving efficient and low-cost detection results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INNER MONGOLIA MENGNIU DAIRY IND (GROUP) CO LTD
- Filing Date
- 2022-07-06
- Publication Date
- 2026-05-19
AI Technical Summary
Existing methods for identifying colored bands on detection cards are not very flexible, and have poor detection efficiency and accuracy. Reflective detection suffers from the problem that the instrument defaults to a fixed band position, and image processing is prone to errors.
The reflected light signal of the colored area strip of the array sensor imaging detection card is used to generate a two-dimensional spectrum. The peak height and peak height ratio are determined by the pixel information in the peak area, and qualitative or quantitative analysis is performed to identify the detection items.
It improves the detection efficiency and accuracy of the colored area stripes on the detection card, reduces the detection cost, and quickly extracts pixel information for identification through a preset peak-finding area.
Smart Images

Figure CN117405630B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent detection technology, specifically to a method and apparatus for identifying color-coded stripes on a detection card. Additionally, it relates to an electronic device and a processor-readable storage medium. Background Technology
[0002] Currently, there are two main methods for detecting the color bands in the developing area of a test card (or test strip). The first is reflective detection. A light source and detector are positioned at a certain angle above the color developing area of the test card. The light emitted by the light source illuminates the color developing area, and the reflected light signal passes through a slit and illuminates the detector. The test card is fixed to a transmission mechanism, which moves back and forth. The T-strip (Test line, or T-line) and C-strip (Control line, or C-line) pass through the slit sequentially, causing the sensor to detect the difference in reflectivity between the T-strip and C-line. Calculations are made based on the different reflectivities of the T-strip and C-line, allowing for the acquisition of photometric signals at fixed locations. The information at a specific location is calculated by the number of steps taken by a stepper motor. However, this method is not very flexible, as the instrument assumes the T-strip and C-line exist in fixed positions. The second method involves taking a photograph and then using software algorithms to identify the brightness signal of the color bands in the developing area from the image. However, this method suffers from low image quality and errors in image processing, resulting in poor practical performance. Therefore, designing a more stable and efficient identification scheme for the colored area stripes of the detection card has become an important issue that needs to be addressed by those skilled in the art. Summary of the Invention
[0003] Therefore, the present invention provides a method for identifying the colored area stripes of a test card, in order to solve the problems of high limitations, poor detection efficiency and accuracy of the existing identification schemes for the colored area stripes of test cards.
[0004] In a first aspect, the present invention provides a method for identifying color bands in a detection card, comprising:
[0005] The reflected light signal of the colorimetric area strip of the detection card is imaged onto the array sensor;
[0006] An array corresponding to each photosensitive pixel is obtained based on the array sensor; wherein, the array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel;
[0007] A two-dimensional spectrum corresponding to the colorimetric region stripes of the detection card is generated based on the array; the horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information.
[0008] Obtain corresponding pixel information within multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determine peak height information within the multiple peak-finding regions based on the pixel information;
[0009] The detection items are identified based on the peak height information, and the corresponding identification results are output; wherein, the distribution of the multiple peak-finding regions corresponds to different detection items.
[0010] Furthermore, within the preset multiple peak-finding regions corresponding to the two-dimensional spectrum, corresponding pixel information is obtained, and peak height information within the multiple peak-finding regions is determined based on the pixel information, specifically including:
[0011] The lowest point of the peak is obtained in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and the corresponding curve inflection points are searched from the lowest point to the left and right. The baseline corresponding to the peak is determined based on the two curve inflection points found, and the peak height and / or peak height ratio is determined based on the height difference between the ordinate of the lowest point on the peak and the baseline.
[0012] Furthermore, determining the peak height information within the plurality of peak-finding regions based on the pixel information specifically includes:
[0013] The peak height and / or peak height ratio within the plurality of peak-finding regions are determined based on the pixel information; wherein, the peak height ratio is the ratio of the peak height of the control band and the detection band of the detection item in the two-dimensional spectrum.
[0014] Furthermore, the step of identifying the detection item based on the peak height information and outputting the corresponding identification result specifically includes:
[0015] Qualitative analysis is performed on the detection items based on the peak height information, and corresponding qualitative identification results are output; and / or, quantitative analysis is performed on the detection items based on the peak height information, and corresponding quantitative identification results are output.
[0016] Furthermore, before acquiring the corresponding pixel information within the multiple peak-finding regions corresponding to the preset two-dimensional spectrum, the method further includes:
[0017] The colorimetric region bands of the detection card are identified in advance based on the sample, and multiple peak-finding regions corresponding to the two-dimensional spectrum are calibrated according to the identification results; the peak-finding regions are represented by the pixels at the start and end positions of the horizontal coordinate in the two-dimensional spectrum.
[0018] Furthermore, based on the peak height information, quantitative analysis is performed on the detection items, and corresponding quantitative identification results are output, specifically including:
[0019] Based on the actual peak height contained in the peak height information and a preset first quantitative analysis model, the concentration information of the detection item corresponding to the peak height is obtained; and based on the actual peak height ratio contained in the peak height information and a preset second quantitative analysis model, the concentration information of the detection item corresponding to the peak height ratio is obtained; and the concentration information is used as the quantitative identification result.
[0020] The first quantitative analysis model includes the correspondence between peak height and standard concentration information; the second quantitative analysis model includes the correspondence between peak height ratio and standard concentration information.
[0021] Furthermore, before performing quantitative analysis on the detection items based on the peak height information and outputting the corresponding quantitative identification results, the process also includes:
[0022] The standard solution of the sample substance with known concentration is reacted with the corresponding reagent, and the corresponding sample peak height and sample peak height ratio are read. Curve fitting is performed based on the sample peak height and the sample peak height ratio to generate the corresponding first quantitative analysis model and second quantitative analysis model.
[0023] Secondly, the present invention also provides a device for identifying color bands in a detection card, comprising:
[0024] The optical signal imaging unit is used to image the reflected light signal of the colorimetric area strip of the detection card onto the array sensor;
[0025] An array acquisition unit is used to obtain an array corresponding to each photosensitive pixel based on the array sensor; wherein, the array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel;
[0026] A two-dimensional spectrum generation unit is used to generate a two-dimensional spectrum corresponding to the colorimetric region stripes of the detection card based on the array; the horizontal axis of the two-dimensional spectrum represents pixel position information, and the vertical axis represents pixel light intensity information.
[0027] The peak height information determination unit is used to obtain corresponding pixel information in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determine the peak height information in the multiple peak-finding regions based on the pixel information.
[0028] The detection and identification unit is used to identify the detection items based on the peak height information and output the corresponding identification results; wherein, the distribution of the multiple peak-finding regions corresponds to different detection items.
[0029] Furthermore, the peak height information determination unit is specifically used for:
[0030] The lowest point of the peak is obtained in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and the corresponding curve inflection points are searched from the lowest point to the left and right. The baseline corresponding to the peak is determined based on the two curve inflection points found, and the peak height and / or peak height ratio is determined based on the height difference between the ordinate of the lowest point on the peak and the baseline.
[0031] Furthermore, the peak height information determination unit is specifically used for:
[0032] The peak height and / or peak height ratio within the plurality of peak-finding regions are determined based on the pixel information; wherein, the peak height ratio is the ratio of the peak height of the control band and the detection band of the detection item in the two-dimensional spectrum.
[0033] Furthermore, the detection and identification unit is specifically used for:
[0034] Qualitative analysis is performed on the detection items based on the peak height information, and corresponding qualitative identification results are output; and / or, quantitative analysis is performed on the detection items based on the peak height information, and corresponding quantitative identification results are output.
[0035] Furthermore, before acquiring the corresponding pixel information within the multiple peak-finding regions corresponding to the preset two-dimensional spectrum, the method further includes:
[0036] The peak-finding region determination unit is used to identify the colorimetric region bands of the detection card based on the sample in advance, and to mark multiple peak-finding regions corresponding to the two-dimensional spectrum according to the identification results; the peak-finding region is represented by the pixels at the start and end positions of the horizontal coordinate in the two-dimensional spectrum.
[0037] Furthermore, based on the peak height information, quantitative analysis is performed on the detection items, and corresponding quantitative identification results are output, specifically including:
[0038] Based on the actual peak height contained in the peak height information and a preset first quantitative analysis model, the concentration information of the detection item corresponding to the peak height is obtained; and based on the actual peak height ratio contained in the peak height information and a preset second quantitative analysis model, the concentration information of the detection item corresponding to the peak height ratio is obtained; and the concentration information is used as the quantitative identification result.
[0039] The first quantitative analysis model includes the correspondence between peak height and standard concentration information; the second quantitative analysis model includes the correspondence between peak height ratio and standard concentration information.
[0040] Furthermore, before performing quantitative analysis on the detection items based on the peak height information and outputting the corresponding quantitative identification results, the process also includes:
[0041] The standard solution of the sample substance with known concentration is reacted with the corresponding reagent, and the corresponding sample peak height and sample peak height ratio are read. Curve fitting is performed based on the sample peak height and the sample peak height ratio to generate the corresponding first quantitative analysis model and second quantitative analysis model.
[0042] Thirdly, the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the identification method for the color area stripes of the detection card as described in any of the above claims.
[0043] Fourthly, the present invention also provides a processor-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the identification method for the color area stripes of the detection card as described in any of the above claims.
[0044] The method for identifying colorimetric stripes on a detection card provided by this invention images the reflected light signal of the colorimetric stripes onto an array sensor to obtain an array corresponding to each photosensitive pixel. The array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel. A two-dimensional spectrum corresponding to the colorimetric stripes on the detection card is generated based on the array. The horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information. Then, corresponding pixel information is obtained within multiple preset peak-finding regions corresponding to the two-dimensional spectrum, and the peak height information within these regions is determined based on the pixel information. Furthermore, the detection item is identified based on the peak height information, and the corresponding identification result is output. This method has low detection cost and can quickly extract pixel information from the colorimetric stripes on the detection card based on multiple preset peak-finding regions for identification, effectively improving the detection efficiency and accuracy of the colorimetric stripes on the detection card. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 A flowchart illustrating the method for identifying color bands in the detection card according to an embodiment of the present invention;
[0047] Figure 2This is a schematic diagram of a two-dimensional spectrum in the method for identifying color bands in the detection card provided in an embodiment of the present invention;
[0048] Figure 3 This is an actual output two-dimensional spectrum in the method for identifying color bands in the detection card provided in this embodiment of the invention;
[0049] Figure 4 A schematic diagram of the structure of the identification device for the color area stripes of the detection card provided in an embodiment of the present invention;
[0050] Figure 5 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0051] 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, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0052] The following is a detailed description of embodiments of the method for identifying color bands in the detection card based on the present invention. For example... Figure 1 The diagram shown is a flowchart illustrating the method for identifying color bands in the detection card according to an embodiment of the present invention. The specific implementation process includes the following steps:
[0053] Step 101: Image the reflected light signal of the colorimetric area strip of the detection card onto the array sensor.
[0054] Specifically, the test card can be a colloidal gold card or other test strip. The colorimetric stripes on the test card can refer to the detection strip (T strip) and control strip (C strip) in the colloidal gold card. The array sensor (array detector) is composed of multiple sensor elements, typically arranged in a specific geometric distribution, allowing for more comprehensive information collection. In practical implementation, an imaging system can simultaneously converge all reflected light signals from the colorimetric strips on the test card onto the array sensor.
[0055] Step 102: Obtain the array corresponding to each photosensitive pixel based on the array sensor.
[0056] Specifically, the sensed light intensity signal can be directly output from the array sensor, and an array can be obtained at once, that is, an array corresponding to each photosensitive pixel in the array sensor. This array corresponds one-to-one with each photosensitive pixel in the array sensor, specifically containing the actual position information of each photosensitive pixel and the actual light intensity information sensed by each photosensitive pixel. This allows the plotting of a curve, with the horizontal axis representing the position of the photosensitive pixel and the vertical axis representing the height of the curve, which is the actual intensity information of the reflected light signal. The actual light intensity information is the intensity information of the reflected light signal.
[0057] Step 103: Generate a two-dimensional spectrum corresponding to the colorimetric region stripe of the detection card based on the array; the horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information.
[0058] Specifically, the pixel position information is the horizontal coordinate information of the photosensitive pixels in the array sensor, such as 20, 40, 60, 80, 100, etc. The pixel light intensity information is the intensity information of the reflected light signal sensed by the photosensitive pixels in the array sensor, such as 500, 1000, 1500, 2000, 2500, etc.
[0059] In this embodiment of the invention, a curve graph, namely the two-dimensional spectrum, can be generated based on an array. The two-dimensional spectrum has peaks corresponding to the colorimetric regions of the detection card. By pre-defining the positions of these peaks and automatically identifying their heights, the sample information represented by each peak and the sample information represented by each peak height ratio can be flexibly set for calculation.
[0060] Step 104: Obtain corresponding pixel information in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determine the peak height information in the multiple peak-finding regions based on the pixel information.
[0061] In this embodiment of the invention, the lowest point of the peak can be obtained in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and corresponding curve inflection points can be searched from the lowest point to the left and right. The baseline corresponding to the peak is determined based on the two curve inflection points found, and the peak height and / or peak height ratio is determined based on the height difference between the ordinate of the lowest point on the peak and the baseline.
[0062] Before acquiring the corresponding pixel information within the multiple peak-finding regions corresponding to the preset two-dimensional spectrum, the method further includes: identifying the colorimetric region bands of the detection card based on the sample, and calibrating the multiple peak-finding regions corresponding to the two-dimensional spectrum according to the identification results; the peak-finding regions are represented by the pixels at the start and end positions of the horizontal coordinate in the two-dimensional spectrum.
[0063] Specifically, the process of determining the peak height information within the plurality of peak-finding regions based on the pixel information includes: determining the peak height and / or peak height ratio within the plurality of peak-finding regions based on the pixel information; the peak height ratio is the ratio of the peak height of the control band and the detection band of the detection item in the two-dimensional spectrum.
[0064] Specifically, before obtaining the corresponding pixel information within the multiple peak-finding regions corresponding to the preset two-dimensional spectrum, it is necessary to pre-define the required peak location region (i.e., the peak-finding region) based on the test sample or a custom sample definition. This peak-finding region is represented by the pixels at the start and end positions of the horizontal coordinate. For example... Figure 2 and 3 As shown, the peak-finding region may include a custom region 1, a custom region 2, a custom region n, etc. Custom region 1 is represented by the pixels at the start and end positions of the horizontal coordinate, specifically 5-10; custom region 2 is represented by the pixels at the start and end positions of the horizontal coordinate, specifically 10-40; however, no specific limitation is made here. In the actual recognition application process after the peak-finding region is calibrated based on the test sample or sample, the lowest point of the peak can be found within the user-preferred custom peak-finding region according to the type of detection card or detection item. Then, curve inflection points are searched to the left and right from the lowest point. The baseline of the peak is determined by the two inflection points, and the height difference between the vertical coordinate of the lowest point and the baseline is the peak height.
[0065] Step 105: Identify the detection items based on the peak height information and output the corresponding identification results; wherein, the distribution of the multiple peak-finding regions corresponds to different detection items.
[0066] In this embodiment of the invention, qualitative analysis of the detection item is performed based on the peak height information, and corresponding qualitative identification results are output; and / or, quantitative analysis of the detection item is performed based on the peak height information, and corresponding quantitative identification results are output. The peak height information includes peak height and peak height ratio.
[0067] Specifically, the qualitative analysis of the detection items is performed based on the peak height information, and the corresponding qualitative identification results are output. The corresponding implementation process includes: performing qualitative analysis of the detection items based on the peak height or the peak height ratio, that is, comparing the peak height or the peak height ratio with the corresponding set peak height threshold or peak height ratio threshold to determine the positive or negative result, and outputting the determined negative or positive result as the qualitative identification result.
[0068] Specifically, the quantitative analysis of the detection items based on the peak height information, and the output of corresponding quantitative identification results, includes the following implementation process: obtaining the concentration information of the detection item corresponding to the peak height based on the actual peak height contained in the peak height information and a preset first quantitative analysis model; and obtaining the concentration information of the detection item corresponding to the peak height ratio based on the actual peak height ratio contained in the peak height information and a preset second quantitative analysis model; and using the concentration information as the quantitative identification result. The first quantitative analysis model includes the correspondence between peak height and standard concentration information; the second quantitative analysis model includes the correspondence between peak height ratio and standard concentration information.
[0069] It should be noted that before performing quantitative analysis on the detection items based on the peak height information and outputting the corresponding quantitative identification results, the process further includes: reacting a standard solution of a sample substance of known concentration with the corresponding reagent, reading the corresponding sample peak height and sample peak height ratio, and performing curve fitting based on the sample peak height and the sample peak height ratio to generate the corresponding first quantitative analysis model and second quantitative analysis model.
[0070] After obtaining the identification results, the data can be uploaded from the testing instrument to a computer terminal. Specifically, the identification results data can be pre-formatted into common file formats (such as PDF, TXT, CSV, etc.) or tables, and then transmitted to the computer terminal via Bluetooth or a wireless network. By converting the identification results data into common file formats or tables and transmitting it to a designated folder on the computer terminal via Bluetooth or a wireless network, the number of data transmission steps and data cables is reduced, increasing the flexibility of using the instrument data.
[0071] In practical implementation, during the process of identifying and outputting corresponding identification results based on the peak height information, the positive or negative result can be determined by comparing each defined peak height or peak height ratio with the corresponding preset threshold, or by substituting it into a quantitative analysis model for quantitative calculation. The quantitative analysis model includes a first quantitative analysis model (e.g., a linear curve Y = aX + b) and a second quantitative analysis model (e.g., a quadratic curve Y = aX^2 + bX + c). Here, a, b, and c in the linear and quadratic curves are preset parameters determined based on the test sample or sample experiment. It should be noted that the substitution into the quantitative analysis model depends on the reagents and consumables used for each specific detection item. Generally, a standard solution of a known concentration is first reacted with the reagent, and then the instrument is used to read the peak height or peak height ratio, etc. Curve fitting is then performed to generate a concentration / peak height or concentration / peak height ratio correspondence, thereby determining the value of the preset parameter and saving it to the instrument. In subsequent detection applications, the peak height or peak height ratio to be measured is substituted into the quantitative analysis model to obtain the concentration information. Within all pixels of the array sensor, multiple peak-finding regions can be set, and sample information and corresponding thresholds can be defined for each peak-finding region. This allows for the simultaneous detection of multi-purpose colloidal gold cards. The raw data of the items to be uploaded is then automatically generated into a universal file according to a pre-defined format. This file communicates with a computer via Bluetooth or a wireless network, transferring the generated universal format file (such as PDF, TXT, CSV) to the computer and storing it in a designated folder. The raw data of the items includes the identification result, sample name, sample source, and judgment result (pass or fail).
[0072] Furthermore, in this embodiment of the invention, the location information of a custom region (i.e., the peak-finding region) and the meaning represented by the peaks within that region (e.g., control lines, sample lines, etc.) can be set according to each specific test card (e.g., a certain aflatoxin test card). The peak height is automatically calculated, and the value of Cn / Tn (i.e., the peak height ratio) is calculated according to the definition.
[0073] In one embodiment, detection by an instrument can generate, for example, Figure 3 The graph shown illustrates this: the horizontal axis represents the pixel positions of the array sensor, and the vertical axis represents the light intensity signal sensed by each pixel. The two-dimensional graph indicates that the peak of the T-line is located between pixels 30 and 50, and the peak of the C-line is located between pixels 70 and 90. Furthermore, by calibrating the T-line positions (30-50) and the C-line positions (70-90), the system can automatically locate and calculate the peak heights when testing this type of detection card (e.g., a certain aflatoxin detection card). It should be noted that each detection card can have its own independently set position parameters (i.e., the position parameters represented by the pixels at the start and end of the horizontal axis) for subsequent comparisons or calculations.
[0074] The method for identifying color bands in the detection card provided by this invention images the reflected light signal of the color bands in the detection card onto an array sensor to obtain an array corresponding to each photosensitive pixel. The array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel. A two-dimensional spectrum corresponding to the color bands in the detection card is generated based on the array. The horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information. Then, corresponding pixel information is obtained within multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and the peak height information within these regions is determined based on the pixel information. Furthermore, the detection item is identified based on the peak height information, and the corresponding identification result is output. This method has low detection cost and can quickly extract pixel information from the color bands in the detection card based on multiple preset peak-finding regions for identification, effectively improving the detection efficiency and accuracy of the color bands in the detection card.
[0075] Corresponding to the method for identifying color-coded stripes on a test card provided above, this invention also provides a device for identifying color-coded stripes on a test card. Since the embodiment of this device is similar to the embodiment of the method described above, it is described simply. For relevant details, please refer to the description in the method embodiment section above. The embodiment of the device for identifying color-coded stripes on a test card described below is merely illustrative. Please refer to... Figure 4 As shown, it is a structural schematic diagram of a device for identifying color bands in a detection card provided in an embodiment of the present invention.
[0076] The identification device for the color area stripes of the detection card described in this invention specifically includes the following parts:
[0077] The optical signal imaging unit 401 is used to image the reflected light signal of the colorimetric area strip of the detection card onto the array sensor;
[0078] The array acquisition unit 402 is used to obtain an array corresponding to each photosensitive pixel based on the array sensor; wherein, the array includes the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel;
[0079] The two-dimensional spectrum generation unit 403 is used to generate a two-dimensional spectrum corresponding to the colorimetric region stripes of the detection card based on the array; the horizontal axis of the two-dimensional spectrum is the pixel position information and the vertical axis is the pixel light intensity information.
[0080] The peak height information determination unit 404 is used to obtain corresponding pixel information in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determine the peak height information in the multiple peak-finding regions based on the pixel information.
[0081] The detection and identification unit is used to identify the detection items based on the peak height information and output the corresponding identification results; wherein, the distribution of the multiple peak-finding regions corresponds to different detection items.
[0082] Furthermore, the peak height information determination unit is specifically used for:
[0083] The lowest point of the peak is obtained in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and the corresponding curve inflection points are searched from the lowest point to the left and right. The baseline corresponding to the peak is determined based on the two curve inflection points found, and the peak height and / or peak height ratio is determined based on the height difference between the ordinate of the lowest point on the peak and the baseline.
[0084] Furthermore, the peak height information determination unit is specifically used for:
[0085] The peak height and / or peak height ratio within the plurality of peak-finding regions are determined based on the pixel information; wherein, the peak height ratio is the ratio of the peak height of the control band and the detection band of the detection item in the two-dimensional spectrum.
[0086] Furthermore, the detection and identification unit is specifically used for:
[0087] Qualitative analysis is performed on the detection items based on the peak height information, and corresponding qualitative identification results are output; and / or, quantitative analysis is performed on the detection items based on the peak height information, and corresponding quantitative identification results are output.
[0088] Furthermore, before acquiring the corresponding pixel information within the multiple peak-finding regions corresponding to the preset two-dimensional spectrum, the method further includes:
[0089] The peak-finding region determination unit is used to identify the colorimetric region bands of the detection card based on the sample in advance, and to mark multiple peak-finding regions corresponding to the two-dimensional spectrum according to the identification results; the peak-finding region is represented by the pixels at the start and end positions of the horizontal coordinate in the two-dimensional spectrum.
[0090] Furthermore, based on the peak height information, quantitative analysis is performed on the detection items, and corresponding quantitative identification results are output, specifically including:
[0091] Based on the actual peak height contained in the peak height information and a preset first quantitative analysis model, the concentration information of the detection item corresponding to the peak height is obtained; and based on the actual peak height ratio contained in the peak height information and a preset second quantitative analysis model, the concentration information of the detection item corresponding to the peak height ratio is obtained; and the concentration information is used as the quantitative identification result.
[0092] The first quantitative analysis model includes the correspondence between peak height and standard concentration information; the second quantitative analysis model includes the correspondence between peak height ratio and standard concentration information.
[0093] Furthermore, before performing quantitative analysis on the detection items based on the peak height information and outputting the corresponding quantitative identification results, the process also includes:
[0094] The standard solution of the sample substance with known concentration is reacted with the corresponding reagent, and the corresponding sample peak height and sample peak height ratio are read. Curve fitting is performed based on the sample peak height and the sample peak height ratio to generate the corresponding first quantitative analysis model and second quantitative analysis model.
[0095] The device for identifying color bands in the detection card provided by this invention images the reflected light signal of the color bands in the detection card onto an array sensor to obtain an array corresponding to each photosensitive pixel. The array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel. A two-dimensional spectrum corresponding to the color bands in the detection card is generated based on the array. The horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information. Then, corresponding pixel information is obtained within multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and the peak height information within these regions is determined based on the pixel information. Furthermore, the detection item is identified based on the peak height information, and the corresponding identification result is output. This method has low detection cost and can quickly extract pixel information from the color bands in the detection card based on multiple preset peak-finding regions for identification, effectively improving the detection efficiency and accuracy of the color bands in the detection card.
[0096] Corresponding to the method for identifying the color bands of the detection card provided above, this invention also provides an electronic device. Since the embodiment of this electronic device is similar to the method embodiment described above, it is described simply. For relevant details, please refer to the description in the method embodiment section above. The electronic device described below is merely illustrative. Figure 5The diagram shown is a schematic representation of the physical structure of an electronic device disclosed in an embodiment of the present invention. The electronic device may include a processor 501, a memory 502, and a communication bus 503. The processor 501 and the memory 502 communicate with each other via the communication bus 503 and communicate with external devices via a communication interface 504. The processor 501 can call logic instructions in the memory 502 to execute a method for identifying color area stripes of a detection card. This method includes: imaging the reflected light signal of the color area stripes of the detection card onto an array sensor; obtaining an array corresponding to each photosensitive pixel based on the array sensor; wherein the array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel; generating a two-dimensional spectrum corresponding to the color area stripes of the detection card based on the array; the horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information; acquiring corresponding pixel information within multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determining the peak height information within the multiple peak-finding regions based on the pixel information; identifying detection items based on the peak height information, and outputting corresponding identification results; wherein the distribution of the multiple peak-finding regions corresponds to different detection items.
[0097] Furthermore, the logical instructions in the aforementioned memory 502 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part 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 the present invention. The aforementioned storage medium includes various media capable of storing program code, such as memory chips, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0098] On the other hand, embodiments of the present invention also provide a computer program product, the computer program product including a computer program stored on a processor-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer is able to execute the identification method for the color region stripe of the detection card provided in the above method embodiments, the method including: imaging the reflected light signal of the color region stripe of the detection card onto an array sensor; obtaining an array corresponding to each photosensitive pixel based on the array sensor; wherein, the array includes the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel; generating a two-dimensional spectrum corresponding to the color region stripe of the detection card based on the array; the horizontal axis of the two-dimensional spectrum is the pixel position information and the vertical axis is the pixel light intensity information; obtaining corresponding pixel information in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determining the peak height information in the multiple peak-finding regions based on the pixel information; identifying the detection item based on the peak height information, and outputting the corresponding identification result; wherein, the distribution of the multiple peak-finding regions corresponds to different detection items.
[0099] In another aspect, embodiments of the present invention also provide a processor-readable storage medium storing a computer program. When executed by a processor, the computer program implements a method for identifying color regions of a detection card provided in the above embodiments. This method includes: imaging the reflected light signal of the color regions of the detection card onto an array sensor; obtaining an array corresponding to each photosensitive pixel based on the array sensor; wherein the array includes the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel; generating a two-dimensional spectrum corresponding to the color regions of the detection card based on the array; the horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information; acquiring corresponding pixel information within multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determining peak height information within the multiple peak-finding regions based on the pixel information; identifying detection items based on the peak height information, and outputting corresponding identification results; wherein the distribution of the multiple peak-finding regions corresponds to different detection items.
[0100] The processor-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic memory (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO)), optical memory (e.g., CD, DVD, BD, HVD), and semiconductor memory (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)).
[0101] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0102] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying color bands in a detection card, characterized in that, include: The reflected light signal of the colorimetric area strip of the detection card is imaged onto the array sensor; An array corresponding to each photosensitive pixel is obtained based on the array sensor; wherein, the array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel; A two-dimensional spectrum corresponding to the colorimetric region stripes of the detection card is generated based on the array; the horizontal axis of the two-dimensional spectrum represents the pixel position information, and the vertical axis represents the pixel light intensity information. In the preset two-dimensional spectrum, corresponding pixel information is obtained in multiple peak-finding regions, and peak height information in the multiple peak-finding regions is determined based on the pixel information; the process of determining the peak height information specifically includes: determining the peak height and peak height ratio in the multiple peak-finding regions based on the pixel information; wherein, the peak height ratio is the peak height ratio formed by the control band and the detection band of the detection item in the two-dimensional spectrum; The detection items are identified based on the peak height information, and corresponding identification results are output. The process of determining the identification results specifically includes: performing qualitative analysis on the detection items based on the peak height information and outputting corresponding qualitative identification results; and performing quantitative analysis on the detection items based on the peak height information and outputting corresponding quantitative identification results; wherein, the distribution of the multiple peak-finding regions corresponds to different detection items. The process of determining the quantitative identification result specifically includes: obtaining the concentration information of the detection item corresponding to the peak height based on the actual peak height contained in the peak height information and a preset first quantitative analysis model; and obtaining the concentration information of the detection item corresponding to the peak height ratio based on the actual peak height ratio contained in the peak height information and a preset second quantitative analysis model; and using the concentration information as the quantitative identification result; wherein, the first quantitative analysis model includes the correspondence between peak height and standard concentration information; and the second quantitative analysis model includes the correspondence between peak height ratio and standard concentration information.
2. The method for identifying the color bands in the detection card according to claim 1, characterized in that, Obtaining corresponding pixel information within multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determining peak height information within the multiple peak-finding regions based on the pixel information, specifically includes: obtaining the lowest point of the peak within the multiple peak-finding regions corresponding to the preset two-dimensional spectrum, searching for corresponding curve inflection points to the left and right from the lowest point, determining the baseline corresponding to the peak based on the two searched curve inflection points, and determining the peak height and peak height ratio based on the height difference between the ordinate of the lowest point on the peak and the baseline.
3. The method for identifying the color bands in the detection card according to claim 1, characterized in that, Before acquiring the corresponding pixel information within the multiple peak-finding regions corresponding to the preset two-dimensional spectrum, the method further includes: The colorimetric region bands of the detection card are identified in advance based on the sample, and multiple peak-finding regions corresponding to the two-dimensional spectrum are calibrated according to the identification results; the peak-finding regions are represented by the pixels at the start and end positions of the horizontal axis in the two-dimensional spectrum.
4. The method for identifying the color bands in the detection card according to claim 1, characterized in that, Before performing quantitative analysis on the detection items based on the peak height information and outputting the corresponding quantitative identification results, the process also includes: The standard solution of the sample substance with known concentration is reacted with the corresponding reagent, and the corresponding sample peak height and sample peak height ratio are read. Curve fitting is performed based on the sample peak height and the sample peak height ratio to generate the corresponding first quantitative analysis model and second quantitative analysis model.
5. A device for identifying color bands in a detection card, characterized in that, include: The optical signal imaging unit is used to image the reflected light signal of the colorimetric area strip of the detection card onto the array sensor; An array acquisition unit is used to obtain an array corresponding to each photosensitive pixel based on the array sensor; wherein, the array contains the actual position information of each photosensitive pixel in the array sensor and the actual light intensity information sensed by each photosensitive pixel; A two-dimensional spectrum generation unit is used to generate a two-dimensional spectrum corresponding to the colorimetric region stripes of the detection card based on the array; the horizontal axis of the two-dimensional spectrum represents pixel position information, and the vertical axis represents pixel light intensity information. The peak height information determination unit is used to acquire corresponding pixel information in multiple peak-finding regions corresponding to the preset two-dimensional spectrum, and determine the peak height information in the multiple peak-finding regions based on the pixel information; the peak height information determination process specifically includes: determining the peak height and peak height ratio in the multiple peak-finding regions based on the pixel information; wherein, the peak height ratio is the peak height ratio formed by the control band and the detection band of the detection item in the two-dimensional spectrum; The detection and identification unit is used to identify the detection items based on the peak height information and output the corresponding identification results; the process of determining the identification results specifically includes: performing qualitative analysis on the detection items based on the peak height information and outputting the corresponding qualitative identification results; and performing quantitative analysis on the detection items based on the peak height information and outputting the corresponding quantitative identification results; wherein, the distribution of the multiple peak-finding regions corresponds to different detection items; The process of determining the quantitative identification result specifically includes: obtaining the concentration information of the detection item corresponding to the peak height based on the actual peak height contained in the peak height information and a preset first quantitative analysis model; and obtaining the concentration information of the detection item corresponding to the peak height ratio based on the actual peak height ratio contained in the peak height information and a preset second quantitative analysis model; and using the concentration information as the quantitative identification result; wherein, the first quantitative analysis model includes the correspondence between peak height and standard concentration information; and the second quantitative analysis model includes the correspondence between peak height ratio and standard concentration information.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the identification method for the color area stripes of the detection card as described in any one of claims 1 to 4.
7. A processor-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the identification method for the color area stripes of the detection card as described in any one of claims 1 to 4.