CN107328776B - A kind of rapid detection method of immune chromatography test card - Google Patents
A kind of rapid detection method of immune chromatography test card Download PDFInfo
- Publication number
- CN107328776B CN107328776B CN201710488721.5A CN201710488721A CN107328776B CN 107328776 B CN107328776 B CN 107328776B CN 201710488721 A CN201710488721 A CN 201710488721A CN 107328776 B CN107328776 B CN 107328776B
- Authority
- CN
- China
- Prior art keywords
- value
- image
- gray
- histogram
- line
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/8483—Investigating reagent band
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/194—Segmentation; Edge detection involving foreground-background segmentation
Landscapes
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Molecular Biology (AREA)
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Or Analysing Biological Materials (AREA)
Abstract
The invention discloses a kind of rapid detection methods of immune chromatography test card, comprising the following steps: (1) obtains original image;(2) original image is converted into gray level image and finds out the histogram of gray level image, then histogram is normalized;(3) segmentation threshold is sought according to the histogram after normalization and is bianry image by greyscale image transitions;(4) testing result is determined according to binary image data.The rapid detection method of immune chromatography test card proposed by the present invention, it can quickly and effectively determine the testing result of test card, and calculation amount is very small, can realize on common embedded instrumentation, achievees the purpose that rapid automatized judgement test card testing result.
Description
Technical field
The invention belongs to technical field of biomedical detection, more particularly, to a kind of the quick of immune chromatography test card
Detection method.
Background technique
Immunochromatography technique is a kind of novel rapid free epidemiology detection technique to grow up in recent years, is had simple fast
Speed, result it is clear, can by naked eyes determine result, without complex operations skill and special installation, pollution-free, easy to carry etc. it is excellent
Point.The technology has been widely used in applying in fields such as detection infectious disease, environmental contaminants, drugs, early pregnancy and animal doctors.
In order to realize the judgement to immune chromatography test card colour developing conclusion, need to lead to using specific optical detection apparatus
Light source irradiation test card is crossed, the colour developing image of reflected light signal or test card is acquired using light-sensitive element, obtains detection line (T
Line) and nature controlling line (C line) signal, then testing result is determined by the result judgement method of immune chromatography test card.It is immune
The result judgement method of chromatographic test paper card can be divided into two kinds according to its antigen-antibody reaction principle: be positively correlated (sandwich method) and negative
Related (indirect method and A competitive inhibition method).When positive correlation, only there is C line, result is feminine gender, while C line and T line occurs, as a result
For the positive, only there is T line or C line and T line does not occur, result is invalid;When negatively correlated, only there is C line, result is sun
Property, while there is C line and T line, result is feminine gender, and T line or T line and C line only occur does not occur, and result is invalid.
Image procossing has been applied to the quantitative detection of immune chromatography test card at present.Qin Shumin (Qin Shumin immune colloid gold
Research [D] the China Measures Institute of test paper detector, 2015:41-47) image procossing that has carried out immune chromatography test card grinds
Study carefully, and the process of image analysis processing be divided into four Main Stages: the reading of test paper information, image preprocessing, image segmentation,
Characteristics extraction.First stage is that test paper information reads the stage, reads the collected test paper information of CCD and positions the color of reading
Position.Second stage is known as image pre-processing phase, carries out image deflects and pollution using median filtering at this stage
Removal, makes image as far as possible close to original image.Three phases are image segmentation stage, the stage selection target region, by target
Image and background separation.Here using threshold method to test paper image segmentation, the gray value of pixel on image is higher than this threshold
Value is set as the same gray value, assigns another gray value lower than threshold value, entire image is containing only two kinds of gray scales after processing only
Value.This, most importantly threshold value was sought in stage.Method particularly includes: (1) it will be in the test paper color development region vertical direction of selection
The cumulative summation of each point takes its mean value as each coordinate points pair in corresponding horizontal direction then divided by the number put in vertical direction
It should be worth, thus can find out horizontal direction gray average distribution curve;(2) it finds out on horizontal direction gray average distribution curve
Minimum and maximum gray value Vmax and Vmin, setting initial threshold are V0r=(Vmax+Vmin)/2;(3) according to threshold value Vk r points
Image is cut, finding out target average gray value VT and background average gray value VB respectively, (VT is all gray scales less than threshold value Vk r
For value multiplied by the summation of its weight coefficient again divided by the sum of all respective weights coefficients, VB is that all gray values greater than threshold value Vk r multiply
It is summed with its weight coefficient again divided by the sum of all respective weights coefficients);(4) find out new threshold value Vk+1r=(Vmax+Vmin)/
2;(5) if Vk r=Vk+1r, terminates, k=k+1 is otherwise enabled, turns third step;(6) after the completion of iteration, final threshold value T=Vk
r.Four-stage extracts characteristic value, carries out vitta amendment in this stage, will test result to true using two groups of control vittas
Real value makees further amendment.
(application number: another examination is proposed in 201410454068.7) in patent " a kind of test paper read method and device "
Paper read method: (1) it carries out Image Acquisition: image is acquired using electronic equipments such as digital camera or cameras, by test card
The gray level image of color image and calibrating gray item capture simultaneously;(2) color image of processing capture: including the coloured silk that will be captured
Chromatic graph picture passes through while the image of the standard grayscale bar of capture carries out environmental correction, to determine the gray scale of non-fundamental color in image;
(3) it carries out negative, positive judgement: carrying out differentiation test card by finding specific location with the presence or absence of certain gray scale mutation
Testing result is negative, or positive.Wherein step (2) is a step of most critical, can be divided into 3 small steps: (1) gray scale turns
It changes: the calculation formula of gradation conversion: Gray=R*0.299+G*0.587+B*0.114;(2) edge detection: edge detection uses
Sobel operator extraction edge, formula are as follows:(3) extraction and analysis region is walked by the edge detection
After rapid sobel operator extraction edge processing, in image analysis region other area grayscale values opposite with background intersection gray value
It is larger, analysis boundary to be measured, extraction and analysis region are found out according to grey scale change feature.
These current existing test card image processing method some needs are iterated, some need edge detection, all
It has been related to complicated calculating process, has needed huge calculation amount, it is not easy to realize in simple embedded system.For existing
Some these problems, the invention proposes a kind of immunoassay test card fast algorithm of detecting.This image processing algorithm passes through
Some simple steps obtain the segmentation threshold of original image, avoid the iterative process or edge extracting process of above-mentioned complexity,
Calculation amount is greatly reduced, enables to realize in simple embedded system, it will is the detection of immune chromatography test card
Analysis brings great convenience.
Summary of the invention
Aiming at the above defects or improvement requirements of the prior art, the present invention provides a kind of the quick of immune chromatography test card
Detection method allows it can be on common portable instrument its object is to determine the conclusion that develops the color by simple algorithm
It realizes.
To achieve the above object, the present invention provides a kind of rapid detection method of immune chromatography test card, including it is following
Step:
(1) the colour developing image for capturing immune chromatography test card, obtains original image;
(2) original image described in step (1) is converted into gray level image, finds out the histogram of gray level image, and will
The histogram normalization;
(3) segmentation threshold is sought automatically in the histogram after step (2) described normalization, and according to the segmentation threshold sought
Greyscale image transitions are bianry image by value;
(4) bianry image according to step (3) obtains pixel data, then judges binary map according to pixel data
As the columns of signal, existing ordinate number is judged further according to the columns of bianry image signal, judges to examine in image according to ordinate number
Survey line (T line) and nature controlling line (C line) there are situation, further according to T line and C line there are situation in conjunction with immune chromatography test card
Determination method judges testing result;
The T line and C line there are situations are as follows: there are 1 ordinate expressions to only exist C line, and there are 2 ordinates to indicate simultaneously
There are C lines and T line, only exist T line or C line there are 0 ordinate expression and T line is all not present.
Preferably, seeking segmentation threshold automatically in the histogram described in step (3) after normalization is first with histogram
Histogram is divided into signaling zone and background area by the distribution situation of gray value in figure, then is found respectively corresponding in signaling zone and background area
Quantity determines segmentation threshold finally by the two gray values at two gray values of multiple proportion.
Preferably, the formula that original image is converted to gray level image in the step (2) are as follows: Y=x*R+y*G+z*
B, wherein x+y+z=1, and y > x > z;R, G and B respectively correspond in original image 3 kinds of primary colors of red, green and blue every in the formula
The brightness of one pixel, the integer portion for the Y value that each pixel corresponding color brightness of original image is calculated according to formula
Divide the gray value of the pixel after being as converted into gray level image.During original image is converted to gray level image, in advance
The value for first setting x, y and z, calculates the gray value of each pixel.
It preferably, is in obtained histogram, from small to large by gray value by histogram normalization in the step (2)
Two values for finding value of first corresponding number greater than certain value a and the last one corresponding number greater than certain value b, which are used as, returns
Initial value and stop value after one change, the histogram after finally obtaining normalization;The value range of the certain value a is 1~10,
The value range of certain value b is 6~25.
Preferably, the value range of the certain value a is 2~8, and the value range of certain value b is 6~20.
During histogram is normalized, the value of a and b are preset to determine initial value and termination after normalization
Value.
Preferably, segmentation threshold is sought in the step (3) automatically from the histogram after normalization, and will with the threshold value
The process that gray level image is converted into bianry image is: in histogram after normalization, first from minimum gray value to gray scale among
Value finds the maximum value of corresponding number, and the gray scale median is the average value of minimum gray value and gray scale maximum value;And by its
Quantitative value is denoted as c, then finds first corresponding number in histogram from minimum gray value to gray scale maximum value and be more than or equal to n times of c
Gray value, and the value that the gray value subtracts d is denoted as segmentation threshold, obtained segmentation threshold is signaling zone and background area
Then cut off value is divided gray level image with segmentation threshold obtained above, and gray value in gray level image is greater than segmentation threshold
The gray value of the point of value becomes 0, is denoted as background dot, and the gray value that gray value is less than or equal to the point of segmentation threshold becomes 1, is denoted as letter
Number point, finally obtain comprising gray value be 0 background area and gray value be 1 signaling zone bianry image;The value model of the n
Enclosing for the value range of 2~4, d is 3~8.
During seeking segmentation threshold automatically from the histogram after normalization, the value for presetting n and d is acquired point
Cut threshold value.
Preferably, p-wire and nature controlling line in image are judged by the pixel data of bianry image in the step (4)
Situation and the process that testing result is obtained according to its situation are as follows: bianry image is divided into two parts from centre, first from original graph
As Far Left starts to centre, the points of each column are calculated, when the points of the column are more than the m% that the column are always counted, total columns
Add 1, when last total columns is more than or equal to g, there are 1 ordinates for return, and otherwise there are 0 ordinates for return;Then work as previous step
When return value is 0, directly terminate, when return value is 1, to rightmost since among original image, calculates the point of each column
Number, when the points of the column are more than the f% that the column are always counted, total columns adds 1, when last total columns is greater than k, returns to that there are 2
Ordinate, otherwise there are 1 ordinates for return;Finally obtained according to the determination method of the ordinate number of return and immune chromatography test card
Testing result;It is 2~8, f value range be 40~70, k value range is 1 that the m value range, which is 60~90, g value range,
~5.
The p-wire and during the case where nature controlling line in judging image, presets the value of m, g, f and k, calculates and return
Ordinate number.
Preferably, Image Acquisition described in step (1) be with the electronic equipments such as digital camera, camera or scanner into
Row acquisition.
In general, through the invention it is contemplated above technical scheme is compared with the prior art, it is of the present invention to ask
Threshold method is simply ingenious, reasonably finds signaling zone and background area according to the distribution of gray value in gray level image histogram
Gray value line of demarcation, not comprising complicated iterative process or edge extracting process, so calculation amount very little, the algorithm speed of service
Quickly.And existing embedded instrumentation memory only has tens to several hundred million, if the programmed algorithm that operation is complicated, needs to grow very much
Time, or even be easy to appear failure, but not only result is accurate and the speed of service is fast for our algorithm, it is easy to be embedded in
It realizes, can be brought great convenience on formula instrument to the people of exploitation portable detector.
Detailed description of the invention
Fig. 1 is fast algorithm of detecting flow chart;
Fig. 2 is common colloidal gold immune chromatography test card schematic diagram;
Fig. 3 is clenobuterol hydrochloride detection card (the competition law colloid gold immune layer that with the naked eye can be accurately determined as " positive "
Analyse test card) treatment process figure (wherein scheme (a) be gray level image, figure (b) be gray level image histogram, figure (c) be normalization
Histogram afterwards, figure (d) are bianry image);
Fig. 4 is the clenobuterol hydrochloride detection card competition law colloidal gold immunochromatographimethod that with the naked eye can be accurately determined as engineering noise
Test card) treatment process figure (wherein scheme (a) be gray level image, figure (b) be gray level image histogram, figure (c) be normalization after
Histogram, figure (d) be bianry image);
Fig. 5 is the clenobuterol hydrochloride detection card competition law colloidal gold immune chromatography test that with the naked eye can not accurately determine
Card) treatment process figure (wherein scheme (a) be gray level image, figure (b) be gray level image histogram, figure (c) be normalize after it is straight
Fang Tu, figure (d) are bianry image);
Fig. 6 is with the naked eye accurately to be determined as that the treatment process figure of early pregnancy (HCG) the Test paper card of " feminine gender " (is wherein schemed
It (a) is gray level image, figure (b) is gray level image histogram, and figure (c) is the histogram after normalization, and figure (d) is bianry image);
In all the appended drawings, identical appended drawing reference is used to denote the same element or structure, in which: 1- colloid to be measured
Golden immune chromatography test card;2- sample well;3- watch window;4- nature controlling line;5- detection line;6- is made of two standard color blocks
Reference region, black standard color lump is as dark field benchmark, and white standard color lump is as bright field benchmark.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below that
Not constituting conflict between this can be combined with each other.
Embodiment 1
The present embodiment with the naked eye can accurately be determined as clenobuterol hydrochloride detection card (the competition law glue of " feminine gender " by processing
Body gold immune chromatography test card), come the rapid detection method for the immune chromatography test card being discussed in detail in the present invention.
Specific experimentation, comprising the following steps: (1) urine sample to be checked is added dropwise and detects card sample in clenobuterol hydrochloride
Kong Shang after waiting 3 minutes, acquires image by digital camera, captures the original image of test card;
(2) first by original image, by formula, ((green absorption is best, blue light absorption by Y=0.3R+0.59G+0.11B
Worst, red absorption is general, so, y is maximum, and z is minimum, and x takes number between the two)) gray level image is converted to, in Fig. 3
(a), the quantity of same grayscale value, draws gray level image histogram, in Fig. 3 (b), is then obtaining then in accumulative gray level image
Histogram in, gray value find from small to large first corresponding number greater than 4 value 126 and the last one corresponding number be greater than
16 value 187 finally obtains the histogram after normalizing, such as using the two values as initial value and stop value after normalization
In Fig. 3 (c);
(3) in histogram after normalization, corresponding number is first found from minimum gray value 126 to gray scale median 157
Maximum value, quantitative value 31, then first corresponding number is big in searching histogram from minimum gray value to gray scale maximum value
It is denoted as threshold value in the gray value for being equal to 93, and by the value that the gray value subtracts 5, threshold value 159 then will be grey with obtained threshold value
Image segmentation is spent, the gray value that gray value in gray level image is greater than the point of threshold value 159 is become 0, is denoted as background dot, gray value is small
Become 1 in the gray value for the point for being equal to threshold value 159, is denoted as signaling point, finally obtains bianry image, in Fig. 3 (d);
(4) bianry image is divided into two parts from centre, to centre first since original image Far Left, calculated each
The points of column, when the points of the column be more than the column always count 80% when, total columns adds 1, and last total columns is 7, is greater than 5, returns
It restores in 1 ordinate;Then it carries out in next step, to rightmost since among original image, the points of each column being calculated, when this
The points of column be more than the column always count 50% when, total columns adds 1, and last total columns is 3, is greater than 2, returns to that there are 2 ordinates;
Finally according to the ordinate number of return and known determination method, (there are 1 ordinate expressions to only exist C line, and there are 2 ordinates to indicate
C line and T line are existed simultaneously, T line or C line is only existed there are 0 ordinate expression and T line is all not present.Competition law colloidal gold is exempted from
: only there is C line in the determination method of epidemic disease chromatographic test paper card, and result is the positive, while C line and T line occurs, and result is feminine gender, only goes out
Existing T line or T line and C line do not occur, and result is invalid) testing result can be obtained for feminine gender.
The testing result finally obtained be feminine gender, in Fig. 3 (d) we can also obtain last testing result for feminine gender,
Illustrate that this method can accurately determine that we can visually see the colloidal gold immune chromatography test card of " feminine gender " result, with
Naked eyes are compared more rapidly, and its method is not related to complicated calculating process simply, it is easier in simple embedded system
It realizes.
Embodiment 2
The present embodiment with the naked eye can accurately be determined as clenobuterol hydrochloride detection card (the competition law glue of engineering noise by processing
Body gold immune chromatography test card), come the rapid detection method for the immune chromatography test card being discussed in detail in the present invention.
Specific experimentation, comprising the following steps:
(1) urine sample to be checked is added dropwise on clenobuterol hydrochloride detection card sample well, after waiting 3 minutes, is taken the photograph by mobile phone
As head acquisition image, the original image of test card is captured;
(2) by original image, by formula, ((green absorption is best, blue light absorption by Y=0.29R+0.59G+0.12B
Worst, red absorption is general, so, y is maximum, and z is minimum, and x takes number between the two)) gray level image is converted to, in Fig. 4
(a), the quantity of same grayscale value, draws gray level image histogram, in Fig. 4 (b), is then obtaining then in accumulative gray level image
Histogram in, gray value find from small to large first corresponding number greater than 4 value 154 and the last one corresponding number be greater than
15 value 183 finally obtains the histogram after normalizing, such as using the two values as initial value and stop value after normalization
In Fig. 4 (c);
(3) in histogram after normalization, corresponding number is first found from minimum gray value 154 to gray scale median 169
Maximum value, quantitative value 117, then first corresponding number is big in searching histogram from minimum gray value to gray scale maximum value
It is denoted as threshold value in the gray value for being equal to 386, and by the value that the gray value subtracts 6, threshold value 169 then will with obtained threshold value
The gray value that gray value in gray level image is greater than the point of threshold value 169 is become 0, is denoted as background dot, gray value by gray level image segmentation
Gray value less than or equal to the point of threshold value 169 becomes 1, is denoted as signaling point, finally obtains bianry image, in Fig. 4 (d);
(4) bianry image is divided into two parts from centre, to centre first since original image Far Left, calculated each
The points of column, when the points of the column be more than the column always count 75% when, total columns adds 1, and last total columns is 0, less than 3, returns
It restores in 0 ordinate;Because previous step return value is 0, judge that the process of T line directly terminates, there are 0 ordinates for return;Most
According to the ordinate number of return and known determination method, (there are 1 ordinate expressions to only exist C line, and there are 2 ordinates to indicate same afterwards
When there are C line and T line, only exist T line or C line there are 0 ordinate expression and T line be all not present.Competition law colloid gold immune
: only there is C line in the determination method of chromatographic test paper card, and result is the positive, while C line and T line occurs, and result is feminine gender, T only occurs
Line or T line and C line do not occur, and result is invalid) it can show that testing result is invalid.
The testing result finally obtained be it is invalid, in Fig. 4 (d) we can also obtain last testing result be it is invalid,
Illustrate that this method can effectively determine invalid colloidal gold immune chromatography test card, will not generate and accidentally dead card is judged to effectively
The error result of card.
Embodiment 3
The present embodiment by handling the clenobuterol hydrochloride that with the naked eye can not accurately determine detection card, (exempt from by competition law colloidal gold
Epidemic disease chromatographic test paper card), come the rapid detection method for the immune chromatography test card being discussed in detail in the present invention.
Specific experimentation, comprising the following steps:
(1) urine sample to be checked is added dropwise on clenobuterol hydrochloride detection card sample well, after waiting 3 minutes, passes through scanner
Image is acquired, the original image of test card is captured;
(2) by original image, by formula, (Y=0.31R+0.58G+0.11B green absorption is best, and blue light absorption is most
Difference, red absorption is general, so, y is maximum, and z is minimum, and x takes number between the two)) gray level image is converted to, in Fig. 5
(a), the quantity of same grayscale value, draws gray level image histogram, in Fig. 5 (b), is then obtaining then in accumulative gray level image
Histogram in, gray value find from small to large first corresponding number greater than 4 value 117 and the last one corresponding number be greater than
18 value 195 finally obtains the histogram after normalizing, such as using the two values as initial value and stop value after normalization
In Fig. 5 (c);
(3) in histogram after normalization, corresponding number is found most from minimum gray value 117 to gray scale median 156
It is big finally to find first corresponding number in histogram from minimum gray value to gray scale maximum value for big value, quantitative value 34
It is denoted as threshold value in the gray value for being equal to 95, and by the value that the gray value subtracts 4, threshold value 169 then will be grey with obtained threshold value
Image segmentation is spent, the gray value that gray value in gray level image is greater than the point of threshold value 169 is become 0, is denoted as background dot, gray value is small
Become 1 in the gray value for the point for being equal to threshold value 169, is denoted as signaling point, finally obtains bianry image, in Fig. 5 (d);
(4) bianry image is divided into two parts from centre, to centre first since original image Far Left, calculated each
The points of column, when the points of the column be more than the column always count 85% when, total columns adds 1, and last total columns is 12, is greater than 8, returns
It restores in 1 ordinate;Then it carries out in next step, to rightmost since among original image, the points of each column being calculated, when this
The points of column be more than the column always count 45% when, total columns adds 1, and last total columns is 0, less than 3, returns to that there are 1 ordinates;
Finally according to the ordinate number of return and known determination method, (there are 1 ordinate expressions to only exist C line, and there are 2 ordinates to indicate
C line and T line are existed simultaneously, T line or C line is only existed there are 0 ordinate expression and T line is all not present.Competition law colloidal gold is exempted from
: only there is C line in the determination method of epidemic disease chromatographic test paper card, and result is the positive, while C line and T line occurs, and result is feminine gender, only goes out
Existing T line or T line and C line do not occur, and result is invalid) testing result can be obtained for the positive.
The testing result finally obtained be the positive, in Fig. 5 (d) we can also obtain last testing result for the positive,
But if with the naked eye judged, we may obtain it is doubtful feminine gender as a result, this illustrate this method compared to the naked eye directly
Determine colloidal gold immune chromatography test card, will not be interfered by complicated background, as a result have more Stability and veracity.
Embodiment 4
The present embodiment is with the naked eye accurately determined as early pregnancy (HCG) Test paper card (the sandwich method cream of " feminine gender " by processing
Glue immune chromatography test card), come the rapid detection method for the immune chromatography test card being discussed in detail in the present invention.
Specific experimentation, comprising the following steps:
(1) urine sample to be checked is added dropwise on early pregnancy (HCG) Test paper card sample well, after waiting 3 minutes, passes through scanner
Image is acquired, the original image of test card is captured;
(2) by original image, by formula, ((green absorption is best, blue light absorption by Y=0.30R+0.57G+0.13B
Worst, red absorption is general, so, y is maximum, and z is minimum, and x takes number between the two)) gray level image is converted to, in Fig. 6
(a), the quantity of same grayscale value, draws gray level image histogram, in Fig. 6 (b), is then obtaining then in accumulative gray level image
Histogram in, gray value find from small to large first corresponding number greater than 3 value 152 and the last one corresponding number be greater than
16 value 212 finally obtains the histogram after normalizing, such as using the two values as initial value and stop value after normalization
In Fig. 6 (c);
(3) in histogram after normalization, corresponding number is found most from minimum gray value 152 to gray scale median 182
It is big finally to find first corresponding number in histogram from minimum gray value to gray scale maximum value for big value, quantitative value 29
It is denoted as threshold value in the gray value for being equal to 73, and by the value that the gray value subtracts 7, threshold value 181 then will be grey with obtained threshold value
Image segmentation is spent, the gray value that gray value in gray level image is greater than the point of threshold value 181 is become 0, is denoted as background dot, gray value is small
Become 1 in the gray value for the point for being equal to threshold value 181, is denoted as signaling point, finally obtains bianry image, in Fig. 6 (d);
(4) bianry image is divided into two parts from centre, to centre first since original image Far Left, calculated each
The points of column, when the points of the column be more than the column always count 90% when, total columns adds 1, and last total columns is 5, is greater than 4, returns
It restores in 1 ordinate;Then it carries out in next step, to rightmost since among original image, the points of each column being calculated, when this
The points of column be more than the column always count 60% when, total columns adds 1, and last total columns is 0, less than 1, returns to that there are 1 ordinates;
Finally according to the ordinate number of return and known determination method, (there are 1 ordinate expressions to only exist C line, and there are 2 ordinates to indicate
C line and T line are existed simultaneously, T line or C line is only existed there are 0 ordinate expression and T line is all not present.Sandwich method latex is immune
: only there is C line in the determination method of chromatographic test paper card, and result is feminine gender, while C line and T line occurs, and result is the positive, T only occurs
Line or C line and T line do not occur, and result is invalid) testing result can be obtained for feminine gender.
The testing result finally obtained be feminine gender, in Fig. 6 (d) we can also obtain last testing result for feminine gender,
Illustrate that this method can accurately determine that we can visually see the latex immune chromatography test card of " feminine gender " result, with meat
Eye is compared more rapidly, and its method is not related to complicated calculating process simply, it is easier to real in simple embedded system
It is existing.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, not to
The limitation present invention, any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should all include
Within protection scope of the present invention.
Claims (5)
1. a kind of rapid detection method of immune chromatography test card, which comprises the following steps:
(1) the colour developing image for capturing immune chromatography test card, obtains original image;
(2) original image described in step (1) is converted into gray level image, finds out the histogram of gray level image, and will be described
Histogram normalization;
(3) segmentation threshold is sought automatically in the histogram after step (2) described normalization, and will according to the segmentation threshold sought
Greyscale image transitions are bianry image;Seek segmentation threshold automatically from the histogram after normalization, and with the threshold value by gray scale
The process that image is converted into bianry image is: in histogram after normalization, first seeking from minimum gray value to gray scale median
The maximum value of corresponding number is looked for, and its quantitative value is denoted as c;The gray scale median is minimum gray value and gray scale maximum value
Average value;The gray scale that first corresponding number in histogram is more than or equal to n times of c is found from minimum gray value to gray scale maximum value again
Value, and the value that the gray value subtracts d is denoted as segmentation threshold, obtained segmentation threshold is the boundary of signaling zone and background area
Value, is then divided gray level image with segmentation threshold obtained above, and gray value in gray level image is greater than segmentation threshold
The gray value of point becomes 0, is denoted as background dot, and the gray value that gray value is less than or equal to the point of segmentation threshold becomes 1, is denoted as signal
Point, finally obtain comprising gray value be 0 background area and gray value be 1 signaling zone bianry image;The value range of the n
Value range for 2~4, d is 3~8;
(4) bianry image according to step (3) obtains pixel data, then judges that bianry image is believed according to pixel data
Number columns, judge existing ordinate number further according to the columns of bianry image signal, detection line in image judged according to ordinate number
With nature controlling line there are situation, further according to detection line and nature controlling line there are situations to judge testing result;Pass through bianry image
Pixel data judges the case where detection line and nature controlling line in image and obtains the process of testing result according to its situation are as follows: by two-value
Image is divided into two parts from centre, to centre first since original image Far Left, the points of each column is calculated, when the column
When points are more than the m% that the column are always counted, total columns adds 1, when last total columns is more than or equal to g, returns there are 1 ordinate,
Otherwise there are 0 ordinates for return;Then when previous step return value is 0, directly terminate, when return value is 1, from original image
Centre starts to rightmost, calculates the points of each column, and when the points of the column are more than the f% that the column are always counted, total columns adds
1, when last total columns is greater than k, there are 2 ordinates for return, and otherwise there are 1 ordinates for return;Finally according to the ordinate number of return
Testing result is obtained with the determination method of immune chromatography test card;The m value range be 60~90, g value range be 2~
8, f value ranges are that 40~70, k value range is 1~5;
The detection line and nature controlling line there are situations are as follows: there are 1 ordinate expressions to only exist nature controlling line, and there are 2 ordinate tables
Show and exist simultaneously nature controlling line and detection line, only exists detection line or nature controlling line and detection line there are 0 ordinate expression and do not deposit
?.
2. a kind of rapid detection method of immune chromatography test card as described in claim 1, which is characterized in that the step
(2) formula that original image is converted to gray level image in are as follows: Y=x*R+y*G+z*B, wherein x+y+z=1, and y > x > z;
R, G and B respectively correspond brightness of the 3 kinds of primary colors of red, green and blue in each pixel, original graph in original image in the formula
The integer part for the Y value being calculated according to above-mentioned formula as the corresponding colour brightness of each pixel is to be converted into grayscale image
The gray value of the pixel as after.
3. a kind of rapid detection method of immune chromatography test card as described in claim 1, which is characterized in that the step
(2) normalizing histogram in is that gray value is found to first corresponding number from small to large and is greater than in obtained histogram
Two of the value of certain value a and the last one corresponding number greater than certain value b are worth as the initial value and stop value after normalization,
Histogram after finally obtaining normalization;The value range of the certain value a is 1~10, the value range of certain value b is 6~
25。
4. a kind of rapid detection method of immune chromatography test card as claimed in claim 3, which is characterized in that the certain value
The value range of a is 2~8, and the value range of certain value b is 6~20.
5. a kind of rapid detection method of immune chromatography test card as described in claim 1, which is characterized in that in step (1)
Described image acquisition is acquired with digital camera, camera or scanner electronic equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488721.5A CN107328776B (en) | 2017-06-23 | 2017-06-23 | A kind of rapid detection method of immune chromatography test card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488721.5A CN107328776B (en) | 2017-06-23 | 2017-06-23 | A kind of rapid detection method of immune chromatography test card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107328776A CN107328776A (en) | 2017-11-07 |
CN107328776B true CN107328776B (en) | 2019-06-28 |
Family
ID=60194664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710488721.5A Active CN107328776B (en) | 2017-06-23 | 2017-06-23 | A kind of rapid detection method of immune chromatography test card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107328776B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110161233B (en) * | 2018-02-12 | 2020-06-02 | 华中科技大学 | Rapid quantitative detection method for immunochromatography test paper card |
CN108489973A (en) * | 2018-03-07 | 2018-09-04 | 太原理工大学 | The quantitative testing device and its detection method to concentration are realized based on P integrated with scanner |
CN108320799B (en) * | 2018-03-17 | 2022-05-13 | 北京化工大学 | Image analysis and recognition method for lateral flow paper strip disease diagnosis |
CN108805072B (en) * | 2018-06-06 | 2021-01-01 | 西安纸贵互联网科技有限公司 | Qualitative identification method and device for in-vitro diagnostic reagent |
CN109035273B (en) * | 2018-08-08 | 2021-08-20 | 华中科技大学 | Image signal fast segmentation method of immunochromatography test paper card |
CN109919054B (en) * | 2019-02-25 | 2023-04-07 | 电子科技大学 | Machine vision-based reagent card automatic classification detection method |
CN111478998A (en) * | 2020-05-25 | 2020-07-31 | 山西瑞豪生物科技有限公司 | Mobile phone multi-wavelength quantitative quick detection method and device for immunochromatography test strip |
CN111985435A (en) * | 2020-08-29 | 2020-11-24 | 浙江工业大学 | Unmanned aerial vehicle water area monitoring and cruising method based on machine vision |
CN113112453B (en) * | 2021-03-22 | 2022-03-22 | 深圳市华启生物科技有限公司 | Colloidal gold detection card identification method and system, electronic equipment and storage medium |
CN113435444B (en) * | 2021-06-29 | 2022-11-01 | 华中科技大学 | Immunochromatography detection method, immunochromatography detection device, storage medium and computer equipment |
CN115356479B (en) * | 2022-08-24 | 2023-11-28 | 厦门宇昊软件有限公司 | Gold immunochromatography detection method and system |
CN117764992B (en) * | 2024-02-22 | 2024-04-30 | 山东乔泰管业科技有限公司 | Plastic pipe quality detection method based on image processing |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0599335A2 (en) * | 1992-11-25 | 1994-06-01 | Fuji Electric Co., Ltd. | Cylindrical container inner surface tester |
JPH09304284A (en) * | 1996-05-20 | 1997-11-28 | Kawatetsu Joho Syst Kk | Image processing method for inspecting egg |
CN1576782A (en) * | 2003-06-27 | 2005-02-09 | 日本亚比欧尼克斯股份有限公司 | Pattern inspection method and apparatus, and pattern alignment method |
CN101836114A (en) * | 2007-10-23 | 2010-09-15 | 斯坎内克斯公司 | Immunoassay analysis method |
CN101872421A (en) * | 2010-06-03 | 2010-10-27 | 李华 | Colorimetry color feature vector automatic extracting method based on machine vision |
EP2618160A1 (en) * | 2009-02-18 | 2013-07-24 | F. Hoffmann-La Roche AG | Test device and method for examining a bodily fluid |
CN104101704A (en) * | 2014-07-02 | 2014-10-15 | 华中科技大学 | Method for quantitative detection of immunochromatographic test card |
CN105606608A (en) * | 2016-03-28 | 2016-05-25 | 广州博厚生物科技有限公司 | Image gray-scale processing based data computing method and application thereof in detection field |
CN105868771A (en) * | 2016-03-22 | 2016-08-17 | 维沃移动通信有限公司 | Mobile terminal-based cross stripe image recognition method and mobile terminal |
CN106168578A (en) * | 2016-06-14 | 2016-11-30 | 福州大学 | Golden immunity-chromatography test strip image detecting method based on MTK platform |
CN106483285A (en) * | 2016-09-22 | 2017-03-08 | 天津博硕东创科技发展有限公司 | A kind of checking matter density calculating method for test strips Fast Detection Technique |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7330604B2 (en) * | 2006-03-02 | 2008-02-12 | Compulink Management Center, Inc. | Model-based dewarping method and apparatus |
US8962260B2 (en) * | 2008-05-20 | 2015-02-24 | Rapid Pathogen Screening, Inc. | Method and device for combined detection of viral and bacterial infections |
US8828329B2 (en) * | 2010-10-01 | 2014-09-09 | Church & Dwight, Co., Inc. | Electronic analyte assaying device |
-
2017
- 2017-06-23 CN CN201710488721.5A patent/CN107328776B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0599335A2 (en) * | 1992-11-25 | 1994-06-01 | Fuji Electric Co., Ltd. | Cylindrical container inner surface tester |
JPH09304284A (en) * | 1996-05-20 | 1997-11-28 | Kawatetsu Joho Syst Kk | Image processing method for inspecting egg |
CN1576782A (en) * | 2003-06-27 | 2005-02-09 | 日本亚比欧尼克斯股份有限公司 | Pattern inspection method and apparatus, and pattern alignment method |
CN101836114A (en) * | 2007-10-23 | 2010-09-15 | 斯坎内克斯公司 | Immunoassay analysis method |
EP2618160A1 (en) * | 2009-02-18 | 2013-07-24 | F. Hoffmann-La Roche AG | Test device and method for examining a bodily fluid |
CN101872421A (en) * | 2010-06-03 | 2010-10-27 | 李华 | Colorimetry color feature vector automatic extracting method based on machine vision |
CN104101704A (en) * | 2014-07-02 | 2014-10-15 | 华中科技大学 | Method for quantitative detection of immunochromatographic test card |
CN105868771A (en) * | 2016-03-22 | 2016-08-17 | 维沃移动通信有限公司 | Mobile terminal-based cross stripe image recognition method and mobile terminal |
CN105606608A (en) * | 2016-03-28 | 2016-05-25 | 广州博厚生物科技有限公司 | Image gray-scale processing based data computing method and application thereof in detection field |
CN106168578A (en) * | 2016-06-14 | 2016-11-30 | 福州大学 | Golden immunity-chromatography test strip image detecting method based on MTK platform |
CN106483285A (en) * | 2016-09-22 | 2017-03-08 | 天津博硕东创科技发展有限公司 | A kind of checking matter density calculating method for test strips Fast Detection Technique |
Non-Patent Citations (3)
Title |
---|
Rapid Quantitative Image Analysis of hCG by Gold Immunochromatographic Assay and Genetic Fast FCM Algorithm;Nianyin Zeng et al.;《2010 3rd International Conference on Biomedical Engineering and Informatics (BMEI 2010)》;20101231;1560-1564页 |
基于CCD图像处理的胶体金试纸分析仪的设计;毕建伟;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20170415(第4期);C030-47页 |
特征信息的新数字图像识别方法;马斌等;《沈阳建筑大学学报(自然科学版)》;20111130;第27卷(第6期);1187-1192页 |
Also Published As
Publication number | Publication date |
---|---|
CN107328776A (en) | 2017-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107328776B (en) | A kind of rapid detection method of immune chromatography test card | |
CN110389127B (en) | System and method for identifying metal ceramic parts and detecting surface defects | |
CN110006907A (en) | A kind of die casting detection method of surface flaw and system based on machine vision | |
CN110161233B (en) | Rapid quantitative detection method for immunochromatography test paper card | |
CN112862744B (en) | Intelligent detection method for internal defects of capacitor based on ultrasonic image | |
US6577775B1 (en) | Methods and apparatuses for normalizing the intensity of an image | |
CN115267180B (en) | Chromatographic immunoassay method and device | |
CN113435407B (en) | Small target identification method and device for power transmission system | |
CN113313109A (en) | Semi-quantitative analysis method of fluorescence immunochromatographic test paper | |
CN105974120A (en) | Automatic detection device and method for C-reactive protein chromaticity | |
CN108615401B (en) | Deep learning-based indoor non-uniform light parking space condition identification method | |
CN116071315A (en) | Product visual defect detection method and system based on machine vision | |
CN112014407A (en) | Method for detecting surface defects of integrated circuit wafer | |
CN111665199A (en) | Wire and cable color detection and identification method based on machine vision | |
CN116385430A (en) | Machine vision flaw detection method, device, medium and equipment | |
US6714670B1 (en) | Methods and apparatuses to determine the state of elements | |
CN115841488A (en) | Hole checking method of PCB (printed Circuit Board) based on computer vision | |
CN117437226A (en) | Automatic on-line vision detection system for semiconductor processing quality | |
CN108960413A (en) | A kind of depth convolutional neural networks method applied to screw surface defects detection | |
CN110161234B (en) | Colloidal gold test paper detection method | |
CN114332058A (en) | Serum quality identification method, device, equipment and medium based on neural network | |
CN107038690A (en) | A kind of motion shadow removal method based on multi-feature fusion | |
CN114155226A (en) | Micro defect edge calculation method | |
Fathy et al. | Benchmarking of pre-processing methods employed in facial image analysis | |
CN110210401B (en) | Intelligent target detection method under weak light |
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 |