CN108830314B - Semi-quantitative identification method and device for in-vitro diagnostic reagent - Google Patents

Semi-quantitative identification method and device for in-vitro diagnostic reagent Download PDF

Info

Publication number
CN108830314B
CN108830314B CN201810574939.7A CN201810574939A CN108830314B CN 108830314 B CN108830314 B CN 108830314B CN 201810574939 A CN201810574939 A CN 201810574939A CN 108830314 B CN108830314 B CN 108830314B
Authority
CN
China
Prior art keywords
line
vitro diagnostic
diagnostic reagent
edge
longitudinal edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810574939.7A
Other languages
Chinese (zh)
Other versions
CN108830314A (en
Inventor
王昊
刘金林
陈昌
宣松涛
唐凌
杨文韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Zhigui Internet Technology Co ltd
Original Assignee
Xi'an Zhigui Internet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Zhigui Internet Technology Co ltd filed Critical Xi'an Zhigui Internet Technology Co ltd
Priority to CN201810574939.7A priority Critical patent/CN108830314B/en
Publication of CN108830314A publication Critical patent/CN108830314A/en
Application granted granted Critical
Publication of CN108830314B publication Critical patent/CN108830314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/03Recognition of patterns in medical or anatomical images

Abstract

The embodiment of the invention provides a semi-quantitative identification method and a semi-quantitative identification device of an in-vitro diagnostic reagent, wherein the method comprises the following steps: acquiring an image containing an in vitro diagnostic reagent; extracting a lateral edge in the image; determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge; extracting longitudinal edges in the image; acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively; and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent. The device performs the above method. The method and the device provided by the embodiment of the invention can improve the popularity of the in-vitro diagnosis technology in the common population.

Description

Semi-quantitative identification method and device for in-vitro diagnostic reagent
Technical Field
The embodiment of the invention relates to the technical field of image recognition, in particular to a semi-quantitative recognition method and a semi-quantitative recognition device for in-vitro diagnostic reagents.
Background
The in vitro diagnostic reagent can be used alone or in combination with instruments, equipment or systems, specifically can comprise reagents, kits, calibrators (substances), quality control substances (substances) and the like for in vitro detection, and is widely applied.
The existing in vitro diagnostic reagent needs to be under a specific environment and depends on professional personnel and professional equipment to obtain the identification result of the in vitro diagnostic reagent, for example: most detection equipment is based on a single-point detector, the external illumination environment needs to be isolated to ensure that misjudgment is avoided, and few detection equipment based on a camera can be identified only in a special optical illumination environment in a darkroom. The identification method is seriously limited by professionals, professional equipment and specific environments, and the popularization and the application of the in vitro diagnosis technology in the general population are prevented.
Therefore, it is an urgent need to solve the above-mentioned problems by making it possible to identify a semi-quantitative in vitro diagnostic reagent and to improve the popularity of in vitro diagnostic techniques among the general population.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a semi-quantitative identification method and a semi-quantitative identification device for an in vitro diagnostic reagent.
In a first aspect, the embodiments of the present invention provide a method for semi-quantitative identification of an in vitro diagnostic reagent, the method including:
acquiring an image containing an in vitro diagnostic reagent;
extracting a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent;
determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge;
extracting longitudinal edges in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent;
acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively;
and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
In a second aspect, an embodiment of the present invention provides an apparatus for semi-quantitative identification of an in vitro diagnostic reagent, the apparatus including:
an acquisition unit for acquiring an image containing an in vitro diagnostic reagent;
a first extraction unit configured to extract a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent;
the determining unit is used for determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge;
a second extraction unit configured to extract a longitudinal edge in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent;
a calculation unit for acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively;
and the identification unit is used for comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line to obtain a comparison result, and the comparison result is used as a semi-quantitative identification result of the in-vitro diagnostic reagent.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
acquiring an image containing an in vitro diagnostic reagent;
extracting a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent;
determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge;
extracting longitudinal edges in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent;
acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively;
and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform a method comprising:
acquiring an image containing an in vitro diagnostic reagent;
extracting a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent;
determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge;
extracting longitudinal edges in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent;
acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively;
and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
According to the semi-quantitative identification method and device for the in-vitro diagnostic reagent provided by the embodiment of the invention, the position ranges of the T line and the C line of the in-vitro diagnostic reagent are determined, the longitudinal edges corresponding to the T line and the C line respectively are obtained in the position ranges, and the comparison result of the color concentration of the T line and the color concentration of the C line is used as the semi-quantitative identification result of the in-vitro diagnostic reagent, so that the semi-quantitative identification can be carried out on the in-vitro diagnostic reagent, and the popularity of the in-vitro diagnostic technology in common people is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a semi-quantitative identification method of an in vitro diagnostic reagent according to an embodiment of the present invention;
FIG. 2 is a screenshot of a lateral edge extracted according to an embodiment of the present disclosure;
FIG. 3 is a screenshot of the location range of the T line and the C line of the in-vitro diagnostic reagent according to the embodiment of the present invention;
FIG. 4 is a screenshot of a longitudinal edge extracted according to an embodiment of the present invention;
FIG. 5 is a screenshot of lines T and C of an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a semi-quantitative identification device of an in vitro diagnostic reagent according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a semi-quantitative identification method of an in vitro diagnostic reagent according to an embodiment of the present invention, and as shown in fig. 1, the semi-quantitative identification method of an in vitro diagnostic reagent according to an embodiment of the present invention includes the following steps:
s101: an image containing an in vitro diagnostic reagent is acquired.
Specifically, the device acquires an image containing an in vitro diagnostic reagent. The image may be obtained by taking a picture with a mobile phone or in other manners, which is not particularly limited. The in vitro diagnostic reagent may be obtained by a colloidal gold method, and is not particularly limited.
S102: extracting a lateral edge in the image; the lateral edge is extended along an axial direction of the in vitro diagnostic reagent.
Specifically, the device extracts a lateral edge in the image; the lateral edge is extended along an axial direction of the in vitro diagnostic reagent. The lateral edges may be extracted using an edge extraction algorithm. Fig. 2 is a screenshot of a lateral edge extracted according to an embodiment of the present invention, and as shown in fig. 2, the lateral edges in fig. 2 all extend along an axial direction of an in vitro diagnostic reagent, and it should be noted that: prior to this step, the image may also be pre-processed to eliminate noise interference and the like.
S103: and determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge.
Specifically, the device determines the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge. Fig. 3 is a screenshot of a position range where a T line and a C line of an in-vitro diagnostic reagent according to an embodiment of the present invention are located, as shown in fig. 3, a marked place of a square in fig. 3 is the position range, and a specific determination method of the position range may be as follows:
calculating the longitudinal distance between the parallel transverse edges based on said positions; and if the lengths of the transverse edges corresponding to the longitudinal distance are equal and the first ratio of any equal length to the longitudinal distance is greater than a preset ratio, determining the transverse edge corresponding to any equal length as the position range. The preset proportion can be set autonomously according to actual conditions, and is explained with reference to fig. 2 as follows: the transverse edges 1-5 are all parallel, the longitudinal distances between the parallel transverse edges are calculated according to the positions, specifically the longitudinal distance L12 between the transverse edge 1 and the transverse edge 2, the longitudinal distance L23 between the transverse edge 2 and the transverse edge 3, and the longitudinal distance L45 between the transverse edge 4 and the transverse edge 5, and because the lengths of the transverse edge 1 and the transverse edge 2 corresponding to the L12 are different, neither the transverse edge 1 nor the transverse edge 2 can be used as the position range; although the lengths of the lateral edges 2 and 3 corresponding to L23 are equal, the first ratio of the lateral edge 2 or the lateral edge 3 to L23 is smaller than the preset ratio, and therefore, neither the lateral edge 2 nor the lateral edge 3 can be the position range, and both the lateral edge 4 and the lateral edge 5 satisfy the above condition, and therefore, the lateral edge 4 or the lateral edge 5 can be the position range, and referring to fig. 3, fig. 3 is to take the lateral edge 4 as the position range.
S104: extracting longitudinal edges in the image; the longitudinal edge is extended in a radial direction of the in vitro diagnostic reagent.
Specifically, the device extracts longitudinal edges in the image; the longitudinal edge is extended in a radial direction of the in vitro diagnostic reagent. And extracting the longitudinal edge by adopting an edge extraction algorithm. Fig. 4 is a screenshot of longitudinal edges extracted according to an embodiment of the present invention, where the longitudinal edges in fig. 4 are all extended along a radial direction of the in vitro diagnostic reagent, as shown in fig. 4.
S105: acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively.
Specifically, the device acquires the longitudinal edge of the target within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively. Fig. 5 is a screenshot of a T line and a C line in an embodiment of the present invention, as shown in fig. 5, a box in fig. 5 is marked as the T line and the C line, and color density of the C line and color density of the T line respectively correspond to an area marked by the box, which needs to be described as follows: the embodiment of the invention does not need to distinguish the C line from the T line. The color concentrations of the regions respectively corresponding to the longitudinal edges of the target, namely the color concentration of the C line and the color concentration of the T line, can be calculated by adopting a k-means clustering method. The specific method for obtaining the longitudinal edge of the target may be as follows:
acquiring shape features corresponding to all longitudinal edges in the position range; acquiring the integrity degree of the shape features, and taking the longitudinal edge corresponding to the integrity degree larger than the threshold value as a longitudinal edge to be selected; acquiring the positions of two end points in the position range; and acquiring the distance from the longitudinal edge to be selected to one end point which is closer to the two end points, eliminating the longitudinal edge to be selected which is smaller than a preset distance in the distance, and taking the residual longitudinal edge to be selected as the target longitudinal edge. The threshold value and the preset distance can be set independently according to actual conditions. Referring to the above example and fig. 4, for the shape features corresponding to the longitudinal edges 1 to 4, since the integrity of the shape feature of the longitudinal edge 4 is less than the threshold, and the integrity of the shape features of the longitudinal edges 1 to 3 is greater than the threshold, the longitudinal edges 1 to 3 are used as the longitudinal edges to be selected, referring to fig. 3, which include end points 1 and 2 in the two end points in fig. 3, the distance from the end point 1 to be selected in fig. 4 is shorter than the distance from the end point 2, and since the distance from the end point 1 to be selected is shorter than the preset distance (not shown in fig. 3 and fig. 4), the longitudinal edge 1 to be selected is rejected, since the distance from the end point 2 to the end point 1 to be selected is shorter than the distance from the end point 2 to the end point 2, and since the distance from the end point 2 to the end point 1; similarly, since the distance from the longitudinal edge 3 to be selected to the end point 1 is longer than the distance from the longitudinal edge to the end point 2, the longitudinal edge 3 to be selected to the end point 2 is longer than the preset distance, and therefore no elimination is performed. Thereby taking the longitudinal edge 2 to be selected and the longitudinal edge 3 to be selected as target longitudinal edges.
S106: and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
Specifically, the device takes a comparison result of comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in vitro diagnostic reagent. The comparison result comprises a second ratio between the color density of the T line and the color density of the C line; correspondingly, the step of obtaining a semi-quantitative identification result specifically comprises the following steps:
taking the comparison result of which the second ratio is greater than 1 as a first identification result of semi-quantitative identification; taking the comparison result of which the second ratio is less than 1 as a second identification result of semi-quantitative identification; and taking the comparison result of which the second ratio is equal to 1 as a third identification result of the semi-quantitative identification.
According to the semi-quantitative identification method of the in-vitro diagnostic reagent provided by the embodiment of the invention, the position ranges of the T line and the C line of the in-vitro diagnostic reagent are determined, the longitudinal edges corresponding to the T line and the C line respectively are obtained in the position ranges, and the comparison result of the color concentration of the T line and the color concentration of the C line is used as the semi-quantitative identification result of the in-vitro diagnostic reagent, so that the semi-quantitative identification of the in-vitro diagnostic reagent can be carried out, and the popularity of the in-vitro diagnostic technology in common people is improved.
The invention has the following advantages:
the range of the T line and the range of the C line are determined by utilizing the transverse edge, and the final optimization is performed by utilizing the longitudinal edge to determine the T line and the C line without being influenced by the color depth and the position change of the T line and the C line. Under the conditions of various ambient light rays, T lines and C lines with different colors and T lines and C lines with different depths, the T lines and the C lines and the positions thereof can be robustly identified, the color concentrations of the T lines and the C lines are respectively calculated by utilizing the identified T lines and the C lines, so that the aim of semi-quantitative detection of an in-vitro detection agent (colloidal gold) is fulfilled, the influence of variegated colors can be effectively removed by utilizing a clustering algorithm to calculate the color concentrations, and the accuracy of color concentration calculation is improved.
On the basis of the above embodiment, the determining the position range of the T line and the C line of the in vitro diagnostic reagent according to the length and the position of the transverse edge includes:
from said positions, the longitudinal distance between the parallel transverse edges is calculated.
Specifically, the device calculates the longitudinal distance between the parallel transverse edges based on the position. Reference may be made to the above embodiments, which are not described in detail.
And if the lengths of the transverse edges corresponding to the longitudinal distance are equal and the first ratio of any equal length to the longitudinal distance is greater than a preset ratio, determining the transverse edge corresponding to any equal length as the position range.
Specifically, if the device judges that the lengths of the transverse edges corresponding to the longitudinal distance are equal and the first ratio of any equal length to the longitudinal distance is greater than a preset ratio, the device determines that the transverse edge corresponding to any equal length is the position range. Reference may be made to the above embodiments, which are not described in detail.
The semi-quantitative identification method of the in-vitro diagnostic reagent provided by the embodiment of the invention can reasonably determine the position ranges of the T line and the C line of the in-vitro diagnostic reagent.
On the basis of the above embodiment, the acquiring the target longitudinal edge within the position range includes:
and acquiring the shape characteristics corresponding to all the longitudinal edges in the position range.
Specifically, the device acquires shape features corresponding to all longitudinal edges within the range of positions. Reference may be made to the above embodiments, which are not described in detail.
And acquiring the integrity degree of the shape features, and taking the longitudinal edge corresponding to the integrity degree greater than the threshold value as the longitudinal edge to be selected.
Specifically, the device obtains the integrity of the shape feature, and takes the longitudinal edge corresponding to the integrity greater than the threshold as the longitudinal edge to be selected. Reference may be made to the above embodiments, which are not described in detail.
And acquiring the positions of two end points in the position range.
Specifically, the device acquires the positions of both end points within the position range. Reference may be made to the above embodiments, which are not described in detail.
And acquiring the distance from the longitudinal edge to be selected to one end point which is closer to the two end points, eliminating the longitudinal edge to be selected which is smaller than a preset distance in the distance, and taking the residual longitudinal edge to be selected as the target longitudinal edge.
Specifically, the device obtains the distance between the longitudinal edge to be selected and one end point closer to the two end points, eliminates the longitudinal edge to be selected smaller than a preset distance from the distance, and takes the remaining longitudinal edge to be selected as the target longitudinal edge. Reference may be made to the above embodiments, which are not described in detail.
The semi-quantitative identification method of the in-vitro diagnostic reagent provided by the embodiment of the invention can reasonably obtain the longitudinal edge of the target.
On the basis of the above embodiment, the comparison result includes a second ratio between the color density of the T line and the color density of the C line; correspondingly, the step of comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line to obtain a comparison result, which is used as a semi-quantitative identification result of the in vitro diagnostic reagent, includes:
and taking the comparison result of which the second ratio is greater than 1 as a first identification result of semi-quantitative identification.
Specifically, the device takes the comparison result of which the second ratio is greater than 1 as the first identification result of the semi-quantitative identification. Reference may be made to the above embodiments, which are not described in detail.
And taking the comparison result of which the second ratio is less than 1 as a second identification result of semi-quantitative identification.
Specifically, the device takes the comparison result of which the second ratio is smaller than 1 as the second identification result of the semi-quantitative identification. Reference may be made to the above embodiments, which are not described in detail.
And taking the comparison result of which the second ratio is equal to 1 as a third identification result of the semi-quantitative identification.
Specifically, the device takes the comparison result of which the second ratio is equal to 1 as the third identification result of the semi-quantitative identification. Reference may be made to the above embodiments, which are not described in detail.
According to the semi-quantitative identification method of the in-vitro diagnostic reagent provided by the embodiment of the invention, the identification result of the in-vitro diagnostic reagent can be identified in a semi-quantitative manner through ratio calculation.
On the basis of the foregoing embodiment, the calculating the color densities of the regions corresponding to the respective longitudinal edges of the target includes:
and calculating the color concentrations of the areas respectively corresponding to the longitudinal edges of the target by adopting a k-means clustering method.
Specifically, the device calculates the color density of the regions corresponding to the longitudinal edges of the target respectively by adopting a k-means clustering method. Reference may be made to the above embodiments, which are not described in detail.
According to the semi-quantitative identification method of the in-vitro diagnostic reagent provided by the embodiment of the invention, the color concentrations of the regions respectively corresponding to the longitudinal edges of the target are calculated by adopting a k-means clustering method, so that the color concentrations can be effectively obtained.
On the basis of the above embodiment, the extracting the lateral edge in the image includes: extracting the transverse edge by adopting an edge extraction algorithm; the extracting longitudinal edges in the image comprises: and extracting the longitudinal edge by adopting an edge extraction algorithm.
Specifically, the extracting the lateral edges in the image in the device includes: extracting the transverse edge by adopting an edge extraction algorithm; the extracting longitudinal edges in the image comprises: and extracting the longitudinal edge by adopting an edge extraction algorithm. Reference may be made to the above embodiments, which are not described in detail.
According to the semi-quantitative identification method of the in-vitro diagnostic reagent provided by the embodiment of the invention, the transverse/longitudinal edges are extracted by adopting an edge extraction algorithm, so that the transverse/longitudinal edges can be effectively extracted.
On the basis of the above examples, the in vitro diagnostic reagent is obtained by using a colloidal gold method.
Specifically, the in vitro diagnostic reagent in the device is obtained by a colloidal gold method. Reference may be made to the above embodiments, which are not described in detail.
The semi-quantitative identification method of the in-vitro diagnostic reagent provided by the embodiment of the invention can be used for carrying out semi-quantitative identification on the in-vitro diagnostic reagent obtained by adopting a colloidal gold method.
Fig. 6 is a schematic structural diagram of a semi-quantitative identification apparatus for in-vitro diagnostic reagents according to an embodiment of the present invention, and as shown in fig. 6, an embodiment of the present invention provides a semi-quantitative identification apparatus for in-vitro diagnostic reagents, which includes an obtaining unit 601, a first extracting unit 602, a determining unit 603, a second extracting unit 604, a calculating unit 605, and an identifying unit 606, where:
the acquisition unit 601 is used for acquiring an image containing an in vitro diagnostic reagent; a first extraction unit 602 is configured to extract a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent; the determining unit 603 is configured to determine the position ranges of the T line and the C line of the in vitro diagnostic reagent according to the length and the position of the transverse edge; the second extraction unit 604 is configured to extract a longitudinal edge in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent; the calculation unit 605 is configured to obtain the longitudinal edge of the target within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively; the identification unit 606 is configured to compare the color density of the T line corresponding to the T line with the color density of the C line corresponding to the C line, and use the comparison result as a semi-quantitative identification result of the in vitro diagnostic reagent.
Specifically, the acquiring unit 601 is configured to acquire an image containing an in vitro diagnostic reagent; a first extraction unit 602 is configured to extract a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent; the determining unit 603 is configured to determine the position ranges of the T line and the C line of the in vitro diagnostic reagent according to the length and the position of the transverse edge; the second extraction unit 604 is configured to extract a longitudinal edge in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent; the calculation unit 605 is configured to obtain the longitudinal edge of the target within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively; the identification unit 606 is configured to compare the color density of the T line corresponding to the T line with the color density of the C line corresponding to the C line, and use the comparison result as a semi-quantitative identification result of the in vitro diagnostic reagent.
According to the semi-quantitative identification device for the in-vitro diagnostic reagent provided by the embodiment of the invention, the position ranges of the T line and the C line of the in-vitro diagnostic reagent are determined, the longitudinal edges corresponding to the T line and the C line respectively are obtained in the position ranges, and the comparison result of the color concentration of the T line and the color concentration of the C line is used as the semi-quantitative identification result of the in-vitro diagnostic reagent, so that the semi-quantitative identification of the in-vitro diagnostic reagent can be carried out, and the popularity of the in-vitro diagnostic technology in common people is improved.
The semi-quantitative identification apparatus for in vitro diagnostic reagents provided in the embodiments of the present invention can be specifically used for executing the processing procedures of the above method embodiments, and the functions thereof are not described herein again, and reference may be made to the detailed description of the above method embodiments.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device includes: a processor (processor)701, a memory (memory)702, and a bus 703;
the processor 701 and the memory 702 complete mutual communication through a bus 703;
the processor 701 is configured to call the program instructions in the memory 702 to execute the methods provided by the above-mentioned method embodiments, for example, including: acquiring an image containing an in vitro diagnostic reagent; extracting a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent; determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge; extracting longitudinal edges in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent; acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively; and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: acquiring an image containing an in vitro diagnostic reagent; extracting a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent; determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge; extracting longitudinal edges in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent; acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively; and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: acquiring an image containing an in vitro diagnostic reagent; extracting a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent; determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge; extracting longitudinal edges in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent; acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively; and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A semi-quantitative identification method of an in vitro diagnostic reagent, which is characterized by comprising the following steps:
acquiring an image containing an in vitro diagnostic reagent;
extracting a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent;
determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge;
extracting longitudinal edges in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent;
acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively;
wherein acquiring the target longitudinal edge within the position range comprises:
acquiring shape features corresponding to all longitudinal edges in the position range;
acquiring the integrity degree of the shape features, and taking the longitudinal edge corresponding to the integrity degree larger than the threshold value as a longitudinal edge to be selected;
acquiring the positions of two end points in the position range;
acquiring the distance between the longitudinal edge to be selected and one end point which is closer to the two end points, eliminating the longitudinal edge to be selected which is smaller than a preset distance in the distance, and taking the residual longitudinal edge to be selected as the target longitudinal edge;
and taking a comparison result obtained by comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line as a semi-quantitative identification result of the in-vitro diagnostic reagent.
2. The method of claim 1, wherein determining the range of positions of the T-line and the C-line of the in vitro diagnostic reagent based on the length and the position of the transverse edge comprises:
calculating the longitudinal distance between the parallel transverse edges based on said positions;
and if the lengths of the transverse edges corresponding to the longitudinal distance are equal and the first ratio of any equal length to the longitudinal distance is greater than a preset ratio, determining the transverse edge corresponding to any equal length as the position range.
3. The method of claim 1, wherein the comparison result comprises a second ratio between the T-line color density and the C-line color density; correspondingly, the step of comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line to obtain a comparison result, which is used as a semi-quantitative identification result of the in vitro diagnostic reagent, includes:
taking the comparison result of which the second ratio is greater than 1 as a first identification result of semi-quantitative identification;
taking the comparison result of which the second ratio is less than 1 as a second identification result of semi-quantitative identification;
and taking the comparison result of which the second ratio is equal to 1 as a third identification result of the semi-quantitative identification.
4. The method according to claim 1, wherein the calculating the color density of the region corresponding to each of the longitudinal edges of the object comprises:
and calculating the color concentrations of the areas respectively corresponding to the longitudinal edges of the target by adopting a k-means clustering method.
5. The method of claim 1, wherein the extracting lateral edges in the image comprises:
extracting the transverse edge by adopting an edge extraction algorithm;
the extracting longitudinal edges in the image comprises:
and extracting the longitudinal edge by adopting an edge extraction algorithm.
6. The method of claim 1, wherein the in vitro diagnostic reagent is obtained using a colloidal gold method.
7. A semi-quantitative identification device for in vitro diagnostic reagents, comprising:
an acquisition unit for acquiring an image containing an in vitro diagnostic reagent;
a first extraction unit configured to extract a lateral edge in the image; the transverse edge is extended along an axial direction of the in vitro diagnostic reagent;
the determining unit is used for determining the position range of the T line and the C line of the in-vitro diagnostic reagent according to the length and the position of the transverse edge;
a second extraction unit configured to extract a longitudinal edge in the image; the longitudinal edge is extended along a radial direction of the in vitro diagnostic reagent;
a calculation unit for acquiring a target longitudinal edge within the position range; calculating the color density of the areas corresponding to the longitudinal edges of the target respectively; the target longitudinal edge is a longitudinal edge corresponding to the T line and the C line respectively;
wherein acquiring the target longitudinal edge within the position range comprises:
acquiring shape features corresponding to all longitudinal edges in the position range;
acquiring the integrity degree of the shape features, and taking the longitudinal edge corresponding to the integrity degree larger than the threshold value as a longitudinal edge to be selected;
acquiring the positions of two end points in the position range;
acquiring the distance between the longitudinal edge to be selected and one end point which is closer to the two end points, eliminating the longitudinal edge to be selected which is smaller than a preset distance in the distance, and taking the residual longitudinal edge to be selected as the target longitudinal edge;
and the identification unit is used for comparing the color concentration of the T line corresponding to the T line with the color concentration of the C line corresponding to the C line to obtain a comparison result, and the comparison result is used as a semi-quantitative identification result of the in-vitro diagnostic reagent.
8. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 6.
CN201810574939.7A 2018-06-06 2018-06-06 Semi-quantitative identification method and device for in-vitro diagnostic reagent Active CN108830314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810574939.7A CN108830314B (en) 2018-06-06 2018-06-06 Semi-quantitative identification method and device for in-vitro diagnostic reagent

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810574939.7A CN108830314B (en) 2018-06-06 2018-06-06 Semi-quantitative identification method and device for in-vitro diagnostic reagent

Publications (2)

Publication Number Publication Date
CN108830314A CN108830314A (en) 2018-11-16
CN108830314B true CN108830314B (en) 2020-12-15

Family

ID=64144059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810574939.7A Active CN108830314B (en) 2018-06-06 2018-06-06 Semi-quantitative identification method and device for in-vitro diagnostic reagent

Country Status (1)

Country Link
CN (1) CN108830314B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112453B (en) * 2021-03-22 2022-03-22 深圳市华启生物科技有限公司 Colloidal gold detection card identification method and system, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789005A (en) * 2010-01-22 2010-07-28 深圳创维数字技术股份有限公司 Image searching method based on region of interest (ROI)
CN103116751B (en) * 2013-01-24 2016-07-06 河海大学 A kind of Method of Automatic Recognition for Character of Lcecse Plate
CN104964973A (en) * 2015-07-08 2015-10-07 邓双胜 Test paper reading and analyzing method and system based on mobile terminal camera
CN105844615B (en) * 2016-03-17 2018-10-26 网易(杭州)网络有限公司 The method and device of recognition rule rectangular area
CN106404783B (en) * 2016-09-29 2019-07-30 网易(杭州)网络有限公司 Test paper detecting method and device
CN106771169B (en) * 2017-01-19 2018-08-10 厦门海荭兴仪器股份有限公司 A kind of colloidal gold detection method and system based on image procossing

Also Published As

Publication number Publication date
CN108830314A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US9928592B2 (en) Image-based signal detection for object metrology
US20170262985A1 (en) Systems and methods for image-based quantification for allergen skin reaction
US9569854B2 (en) Image processing method and apparatus
US20170262965A1 (en) Systems and methods for user machine interaction for image-based metrology
US20150356342A1 (en) Image processing apparatus, image processing method, and storage medium
CN111178252A (en) Multi-feature fusion identity recognition method
EP3852053A1 (en) Method and apparatus for detecting thickness of piece of paper, and storage medium and processor
CN111126393A (en) Vehicle appearance refitting judgment method and device, computer equipment and storage medium
CN109117746A (en) Hand detection method and machine readable storage medium
CN111553302B (en) Key frame selection method, device, equipment and computer readable storage medium
KR20210152269A (en) Method for learning of deep learning model and computing device for executing the method
CN112836625A (en) Face living body detection method and device and electronic equipment
CN111985458A (en) Method for detecting multiple targets, electronic equipment and storage medium
CN108830314B (en) Semi-quantitative identification method and device for in-vitro diagnostic reagent
CN111652145A (en) Formula detection method and device, electronic equipment and storage medium
CN109635810B (en) Method, device and equipment for determining text information and storage medium
CN108805072B (en) Qualitative identification method and device for in-vitro diagnostic reagent
CN110889817A (en) Image fusion quality evaluation method and device
CN113628145B (en) Image sharpening method, system, device and storage medium
CN110934565B (en) Method and device for measuring pupil diameter and computer readable storage medium
CN109977729A (en) A kind of Method for text detection and device
CN114170565A (en) Image comparison method and device based on unmanned aerial vehicle aerial photography and terminal equipment
CN109934045B (en) Pedestrian detection method and device
CN113420664B (en) Image-based potential safety hazard detection method, device, equipment and storage medium
CN114299037B (en) Quality evaluation method and device for object detection result, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant