Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of operation efficiency and discriminance analysis accuracy are high, and can will be final
Two dimensional code in colour developing grade result and reagent card carries out pairing storage convenient for the interpretation of follow-up work and the immune quantitative point of inquiry
Analysis system color developing detection method.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme: a kind of immune quantitative analysis system use is aobvious
Color detection method, includes the following steps, step A: utilizing CIS scanner scanning reagent card, obtains reagent card graphic;
Step B: from the two dimensional code area image and two dimensional code area that identification is set in reagent card graphic in reagent card graphic
Then the coordinate of image calculates relative coordinate according to the coordinate of two dimensional code area image and obtains being set in reagent card graphic for showing
Show the detection zone image of testing result;
Step C: from the control line image being set in detection zone image is identified in detection zone image, then according to control line
Image calculating first adjusts the distance to obtain the test line image being set in detection zone image, then obtains and is set in detection zone image
Positioned at control line image and test the reference background area image between line image;
Step D: identification control line image, test line image and the colour developing data with reference to background area image, then basis should
Three colour developing data carry out that colour developing grade result is calculated.
Preferably, the formula that colour developing grade result is calculated in the step D is as follows:
Wherein ∑ Gc, ∑ Gt, ∑ Gr respectively correspond for control line image, test line image and with reference in background area image
The summation of the colour developing gray value of whole pixels, and Gradc is the colour developing gray value of the control line after calculating, Gradt is to calculate
The colour developing gray value of p-wire afterwards, L are then colour developing grade result.
Preferably, in the step C with reference to background area image acquisition be by calculate control line image central point with
What the midpoint of the connected center line of the central point of test line image obtained, the midpoint of the center line is exactly with reference to background area image
Midpoint.
Preferably, step E is carried out after the completion of the step D: the colour developing grade result being calculated control is pre-established
Concentrations control table is to obtain concentration value.
It preferably, will be in the colour developing grade result and reagent card graphic after colour developing grade result is calculated in the step D
Two dimensional code carries out pairing storage.
The beneficial effects of the present invention are: a kind of immune quantitative analysis system color developing detection method is provided, CIS is used
Plate surface sweeping instrument carries out Image Acquisition, weeds out burr and flaw in biological test paper image in conjunction with image processing algorithm, thus
Improve the stability of measurement result.Use CIS sensor chip for photoelectric sensor, to obtain test strips image, with use
Photo resistance, reflection-type optical fiber or line array CCD are compared as the colloidal gold strip analysis of electrooptical device, are collected using height
The linear CIS image capture module of Cheng Du, acquisition is signal in region area, and with acquiring, speed image is fast, directly acquires
Digital image data, the features such as small in size, stability is high, interface is simple, non-scan structure greatly simplify system design,
The two dimensional code area image on first identification agent card being arranged in conjunction with the present invention calculates phase further according to the coordinate of two dimensional code area image
Detection zone image is obtained to coordinate, is then also by first identification control line image in detection zone image then further according to opposite
Test line image is calculated in distance, then identifies the reference background area figure being located among control line image and test line image again
Picture, one first identifies that be relatively easy to know another characteristic is simply calculated needed for another further according to this feature position in this way
The method of the position of feature enormously simplifies the difficulty of identification, reduces the complexity of identification, effectively improves working efficiency.
Specific embodiment
For the ease of the understanding of those skilled in the art, below with reference to embodiment, the present invention is further illustrated, real
The content that the mode of applying refers to not is limitation of the invention.
As shown in Figure 1 to Figure 3, a kind of immune quantitative analysis system color developing detection method, includes the following steps, step A:
Using CIS scanner scanning reagent card, reagent card graphic 1 is obtained;
Step B: from the two dimensional code area image 2 and two dimensional code that identification is set in reagent card graphic 1 in reagent card graphic 1
Then the coordinate of area's image 2 calculates relative coordinate according to the coordinate of two dimensional code area image 2 and obtains being set in reagent card graphic 1
For showing the detection zone image 3 of testing result;
Step C: from the control line image 4 being set in detection zone image 3 is identified in detection zone image 3, then according to control
The calculating of line image 4 processed first adjusts the distance to obtain the test line image 5 being set in detection zone image 3, then obtains and is set to detection
It is located at control line image 4 in area's image 3 and tests the reference background area image 6 between line image 5, wherein refers to background area image
6 acquisition is obtained by calculating the midpoint for the center line that the central point of control line image 4 is connected with the central point of test line image 5
It takes, the midpoint of the center line is exactly the midpoint with reference to background area image 6;
Step D: identification control line image 4 tests line image 5 and the colour developing data with reference to background area image 6, then basis
This three colour developing data be calculated colour developing grade as a result, and the formula that calculates colour developing grade result is as follows:
Wherein ∑ Gc, ∑ Gt, ∑ Gr are respectively corresponded as control line image 4, test line image 5 and are referred to background area image 6
The summation of the colour developing gray value of interior whole pixels, and Gradc is the colour developing gray value of the control line after calculating, Gradt is
The colour developing gray value of p-wire after calculating, L are then colour developing grade as a result, then will be in the colour developing grade result and reagent card graphic 1
Two dimensional code carry out pairing storage;
Step E: the concentrations control table that the colour developing grade result being calculated control is pre-established is to obtain concentration value.
The immune quantitative analysis system color developing detection method of the present embodiment carries out image using CIS plate surface sweeping instrument and adopts
Collection, weeds out burr and flaw in biological test paper image in conjunction with image processing algorithm, to improve the stabilization of measurement result
Property.Use CIS sensor chip for photoelectric sensor, to obtain test strips image, with using photo resistance, reflection-type optical fiber or
Person's line array CCD is compared as the colloidal gold strip analysis of electrooptical device, using the linear CIS Image Acquisition of high integration
Module, acquisition is signal in region area, and with acquiring, speed image is fast, directly acquires digital image data, is small in size, is steady
The features such as qualitative high, interface is simple, non-scan structure greatly simplify system design, the first knowledge being arranged in conjunction with the present invention
Two dimensional code area image 2 on other reagent card obtains detection zone image further according to the coordinate calculating relative coordinate of two dimensional code area image 2
3, it is then also by first identifying then test is calculated further according to relative distance in control line image 4 in detection zone image 3
Then line image 5 identifies again and is located at control line image 4 and tests the reference background area image 6 among line image 5, in this way
One first identification is relatively easy to know the position that another characteristic is simply calculated feature needed for another further according to this feature position
Method, enormously simplify the difficulty of identification, reduce the complexity of identification, effectively improve working efficiency.
In the present embodiment, compared with background depth, gray value is small for control line, p-wire colour developing.Image is developed the color it is found that aobvious from test strips
Colo(u)r streak has one fixed width in the picture, therefore when counting chromogenic line feature, it should by the whole in the image entirely recognized
Pixel color feature is taken into account.It is general to calculate p-wire and background intensity difference to judge that colour developing is negative, positive.But it is trying
It tests and finds in the process, there is also certain to be associated with control line colour developing for p-wire colour developing, and control line and p-wire colour developing item
Part is identical, such as illuminates, temperature etc., and control strip colored intensity is introduced into result judgement, can effectively determine to detect comprehensively
As a result, so obtaining following formula:
Wherein ∑ Gc, ∑ Gt, ∑ Gr are respectively corresponded as control line image 4, test line image 5 and are referred to background area image 6
The summation of the colour developing gray value of interior whole pixels, and Gradc is the colour developing gray value of the control line after calculating, Gradt is
The colour developing gray value of p-wire after calculating, L are then colour developing grade as a result, then compareing the colour developing grade result being calculated preparatory
The concentrations control table of formulation is to obtain concentration value;
Example: with concentrations control table is formulated for metalaxyl, configuring metalaxyl standard solution, uses purity for 97.5% first frost
Clever standard items prepare 7 parts of concentration standard solution, are respectively as follows: lng/ml, 2ng/ml, 5ng/ml, 10ng/ml, 20ng/ml, 40ng/
ml、50ng/ml。
Preparation method is first to weigh 25mg metalaxyl standard items, adds water to 25ml volumetric flask, obtains lmg/ml mother liquor;
Then it takes the lmg/ml mother liquor of 0.25ml that new volumetric flask is added, adds water to scale 25ml and obtain dilution post mother liquor, after taking dilution
Mother liquor 0.25ml adds water to 25ml, obtains the solution of 100ng/ml;
It recycles 100ng/ml solution to dilute 2,2.5,5,10 times respectively and obtains required 50ng/ml, 40ng/ml, 20ng/
The standard solution of ml, 10ng/ml;
Then 10ng/ml solution is recycled to dilute 2,5 respectively, it is 5ng/ml, 2ng/ml that 10 times, which obtain concentration, lng/ml's
Standard solution;
Data are for statistical analysis, test strips colour developing grade L mean value under 7 parts of metalaxyl standard solution is calculated separately, and
Each concentration colour developing grade standard variance yields and maximum deflection difference value, analyze the inspection repeatability of detector, test strips colour developing
Grade L mean value, standard variance and maximum deflection difference value, obtain following metalaxyl concentrations control table:
Concentration value |
1 |
2 |
5 |
10 |
20 |
40 |
50 |
Develop the color grade value |
0.45 |
0.41 |
0.35 |
0.29 |
0.23 |
0.17 |
0.15 |
Standard variance |
0.10 |
0.10 |
0.03 |
0.05 |
0.05 |
0.01 |
0.02 |
Maximum deviation |
0.10 |
0.15 |
0.07 |
0.11 |
0.13 |
0.02 |
0.05 |
After obtaining metalaxyl concentrations control table, when being detected using color developing detection method of the invention to metalaxyl, first
Identification obtains control line image 4, test line image 5 and refers to background area image 6, then by pixel all in three images
The colour developing gray value of point is summed respectively, then corresponding to obtain ∑ Gc, ∑ Gt, ∑ Gr's as a result, again by three result value generations
Enter into following formula:
Colour developing grade L value is obtained, if colour developing grade L value is 0.25, compares the colour developing grade value row in metalaxyl concentrations control table
The corresponding numerical value of interior searching, is 0.23 because concentration value is 20 corresponding colour developing grade values, and standard variance is 0.05, so if colour developing grade
When L value is 0.25, corresponding concentration value should be 20.
In the present embodiment, identification agent card graphic 1 is then completed using Canny operator, and Canny operator carries out reagent card-edge
Coordinate is searched, edge detection problem is converted into detection unit function maximum problem by Canny boundary operator, according to edge detection
Validity and positioning reliability, characteristic needed for having studied optimal edge detector derives optimal edge detector
Mathematic(al) representation.For various types of edges, the optimal form of Canny edge detection operator is different.In two-dimensional case
Under, the direction property of Canny operator keeps edge detection and positioning performance preferable, and has preferable noiseproof feature, generates edge
Two information of gradient direction and intensity, provide convenience for subsequent processing;
The coordinate of two dimensional code area image 2 and two dimensional code area image 2 in identification agent card graphic 1, is obtaining reagent card
Coordinate after, and carry out image interception and operated, in the way of dynamic partition and carry out line and curve connection, obtain interested
Region area searches two dimensional code centre coordinate, which use the completion of the relational operator of halcon, including mean_image,
dyn_threshold、connection、select_shape、fill_up、area_center、gen_contour_region_
Xld and gen_cross_contour_xld;
Obtain the operator find_data_code_2d that halcon can be used after two dimensional code area image 2, to two dimensional code carry out into
The identification of one step;
Detection zone image 3 then obtains to calculate relative coordinate by the two dimensional code area coordinate of identification, in reagent card graphic 1
The positional relationship of two dimensional code area image 2 and detection zone image 3 is fixed, so passing through simply identification two dimensional code area image 2
Coordinate can learn the position of detection zone image 3, reduce algorithm difficulty, promote working efficiency;
The colour developing degree of control line is distinguished larger with background in detection zone image 3, is easy to come out with color Division identification, and
Spacing distance between p-wire and control line is constant, so simple computation can obtain p-wire after identification control line, is joined
The central point for examining background area is then the midpoint of control line Yu the p-wire line of centres, so simple after obtaining control line and p-wire
Single operation can obtain the position with reference to background area;
It will test the interception of area's image 3 to come out, and carry out pairing with the two dimensional code in corresponding individually reagent card graphic 1 and deposit
Storage, the pairing storage can be instantly available the detection zone image 3 of the independent reagent card graphic 1 when can be subsequent reading two dimensional code
Related data.
In the description of the present invention, it should be noted that " laterally (X) ", " vertical if any term " center " for the noun of locality
To (Y) ", " vertical (Z) " " length ", " width ", " thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", " water
It is flat ", "top", "bottom", "inner", "outside", " clockwise ", the indicating positions such as " counterclockwise " and positional relationship be based on the figure
Orientation or positional relationship, be merely for convenience of narration the present invention and simplify description, rather than the device of indication or suggestion meaning or
Element must have a particular orientation, be constructed and be operated with particular orientation, should not be understood as limiting specific protection model of the invention
It encloses.
In addition, being used for description purposes only if any term " first ", " second ", it is not understood to indicate or imply relatively heavy
The property wanted or the quantity for implicitly indicating technical characteristic." first " is defined as a result, " second " feature can be expressed or implicit include
One or more this feature, in the present description, " several " are meant that two or more, unless otherwise clearly having
The restriction of body.
In the present invention, except as otherwise clear stipulaties and restriction, should make if any term " assembling ", " connected ", " connection " term
Broad sense goes to understand, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It is also possible to mechanical connect
It connects;It can be directly connected, be also possible to be connected by intermediary, can be and be connected inside two elements.For ability
For the those of ordinary skill of domain, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.