Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of realizations to correct in acquisition, correcting algorithm is simple, operation effect
Rate and discriminance analysis accuracy are high, and can carry out the two dimensional code in final colour developing grade result and reagent card after pairing storage is convenient for
The interpretation of continuous work and the immune quantitative analysis system of inquiry.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme: a kind of immune quantitative analysis system, including
Step A: following steps by reagent card array arrangement on jig, obtain reagent card array;
Step B: reagent card array is gradually scanned using CIS scanner;
Step C: obtained portion of reagent card array image will be scanned in advance be sent to image correction module and be corrected place
Reason;
Step D:CIS scanner is while continuing the remaining part to reagent card array and being scanned, image calibration holotype
Block is corrected the image of the portion of reagent card array collected in advance, and described image correction utilizes image rectification algorithm pair
Collected portion of reagent card array image is corrected and splicing, the complete reagent card array of figure after being corrected
Picture;
Step E: individual reagent card graphic is identified from complete reagent card array image and is set to independent reagent card
Then the coordinate of two dimensional code area image and two dimensional code area image in image calculates opposite according to the coordinate of two dimensional code area image
Coordinate obtains being set in independent reagent card graphic for showing the detection zone image of testing result;
Step F: 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 G: 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 image rectification algorithm in the step D is peg method, which includes following step
Suddenly,
Step D1: half white half black image data is opened using CIS scanner scanning one;
Step D2: white column average value W and black column average value B is obtained;
Step D3: the raw value S that correction pixels point is needed in reagent card array image is obtained, then with the W's of acquisition and B
Numerical value substitutes into following formula, reagent card array image correction parameter V is calculated as a result,
Step D4: each row of data of reagent card array image is corrected and is spelled using obtained correction parameter V result
It connects, the complete reagent card array image after being corrected.
Preferably, the formula that colour developing grade result is calculated in the step G 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 F 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 H is carried out after the completion of the step G: the colour developing grade result being calculated control is pre-established
Concentrations control table is to obtain concentration value.
Preferably, after colour developing grade result is calculated in the step G, by the colour developing grade result and independent reagent card graphic
In two dimensional code carry out pairing storage.
Preferably, after the complete reagent card array image after being corrected in the step D, image filtering is carried out to it
Processing.
The beneficial effects of the present invention are: the present invention provides a kind of immune quantitative analysis system, Image Acquisition obtains figure
As original binary data, because data dose-effect is big, industrial computer performance is not high, CIS scanning, transmission data and data processing
Be both needed to however the short time, working efficiency can be reduced without time-optimized, present invention selection is handled using parallel mode, is obtained
It is handled after taking a certain amount of data volume with regard to giving next workflow immediately, obtained portion of reagent card battle array will be scanned in advance
Column image is sent to image correction module and is corrected processing, CIS scanner continue to the remaining part of reagent card array into
While row scanning, image correction module is corrected the image of the portion of reagent card array collected in advance, wherein scheming
Picture correction is corrected using image rectification algorithm to collected portion of reagent card array image and splicing, is corrected
Complete reagent card array image afterwards completes the corrected effect when acquiring image well, effectively improves work
Efficiency;
And Image Acquisition is carried out using CIS plate surface sweeping instrument, it is weeded out in biological test paper image in conjunction with image processing algorithm
Burr and flaw, to improve the stability of measurement result.Use CIS sensor chip for photoelectric sensor, to obtain
Test strips image, with the colloidal gold strip using photo resistance, reflection-type optical fiber or line array CCD as electrooptical device
Analysis is compared, and using the linear CIS image capture module of high integration, acquisition is signal in region area, has acquisition figure
As speed is fast, directly acquire digital image data, small in size, stability is high, interface is simple the features such as, non-scan structure,
System design is greatly simplified, the two dimensional code area image on first identification agent card being arranged in conjunction with the present invention, further according to two dimensional code
The coordinate of area's image calculates relative coordinate and obtains detection zone image, is also then by first identifying control line in detection zone image
Then test line image is calculated further according to relative distance in image, then identify again and be located at control line image and test line image
Intermediate reference background area image, it is simple further according to this feature position to be relatively easy to knowledge another characteristic for a first identification in this way
The method that the position of another required feature is calculated enormously simplifies the difficulty of identification, reduces the complexity of identification, effectively
Improve 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 Figures 1 to 5, a kind of immune quantitative analysis system, includes the following steps, step A: reagent card array is arranged
Cloth obtains reagent card array on jig;
Step B: reagent card array is gradually scanned using CIS scanner;
Step C: obtained portion of reagent card array image 1 will be scanned in advance be sent to image correction module and be corrected place
Reason;
Step D:CIS scanner is while continuing the remaining part to reagent card array and being scanned, image calibration holotype
Block is corrected the image of the portion of reagent card array collected in advance, and described image correction utilizes image rectification algorithm pair
Collected portion of reagent card array image 1 is corrected and splicing, the complete reagent card array of figure after being corrected
As 1, then complete reagent card array image 1 is filtered, wherein image rectification algorithm is peg method, this two
Correction method is put to include the following steps,
Step D1: half white half black image data is opened using CIS scanner scanning one;
Step D2: white column average value W and black column average value B is obtained;
Step D3: obtaining needs the raw value S of correction pixels point in reagent card array image 1, then with the W of acquisition and B
Numerical value substitute into following formula, 1 correction parameter V of reagent card array image is calculated as a result,
Step D4: each row of data of reagent card array image 1 is corrected and is spelled using obtained correction parameter V result
It connects, the complete reagent card array image 1 after being corrected;
Step E: individual reagent card graphic is identified from complete reagent card array image 1 and is set to independent reagent card
Then the coordinate of two dimensional code area image 3 and two dimensional code area image 3 in image 2 is calculated according to the coordinate of two dimensional code area image 3
Relative coordinate obtains being set in independent reagent card graphic 2 for showing the detection zone image 4 of testing result;
Step F: from the control line image 5 being set in detection zone image 4 is identified in detection zone image 4, then according to control
The calculating of line image 5 processed first adjusts the distance to obtain the test line image 6 being set in detection zone image 4, then obtains and is set to detection
It is located at control line image 5 in area's image 4 and tests the reference background area image 7 between line image 6, with reference to background area image 7
Acquisition is obtained by calculating the midpoint for the center line that the central point of control line image 5 is connected with the central point of test line image 6
, the midpoint of the center line is exactly the midpoint with reference to background area image 7;
Step G: identification control line image 5 tests line image 6 and the colour developing data with reference to background area image 7, then basis
This three colour developing data carry out that colour developing grade is calculated as a result, the formula for wherein calculating colour developing grade result is as follows:
Wherein ∑ Gc, ∑ Gt, ∑ Gr are respectively corresponded as control line image 5, test line image 6 and are referred to background area image 7
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 after developing the color grade as a result, colour developing grade result is calculated, by the colour developing grade knot
Two dimensional code in fruit and independent reagent card graphic 2 carries out pairing storage;
Step H: 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 of the present embodiment, Image Acquisition obtain image original binary data, because of data volume
Effect is big, and industrial computer performance is not high, CIS scanning, transmission data and data processing is both needed to otherwise the short time, excellent without the time
Change can reduce working efficiency, and present invention selection is handled using parallel mode, just given immediately after obtaining a certain amount of data volume
Next workflow is handled, and will be scanned obtained portion of reagent card array image 1 in advance and is sent to image correction module
It is corrected processing, CIS scanner is while continuing the remaining part to reagent card array and being scanned, image correction module
The image of the portion of reagent card array collected in advance is corrected, wherein image rectification is using image rectification algorithm to adopting
The portion of reagent card array image 1 collected is corrected and splicing, the complete reagent card array image after being corrected
1, the corrected effect when acquiring image is completed well, effectively improves working efficiency;
And Image Acquisition is carried out using CIS plate surface sweeping instrument, it is weeded out in biological test paper image in conjunction with image processing algorithm
Burr and flaw, to improve the stability of measurement result.Use CIS sensor chip for photoelectric sensor, to obtain
Test strips image, with the colloidal gold strip using photo resistance, reflection-type optical fiber or line array CCD as electrooptical device
Analysis is compared, and using the linear CIS image capture module of high integration, acquisition is signal in region area, has acquisition figure
As speed is fast, directly acquire digital image data, small in size, stability is high, interface is simple the features such as, non-scan structure,
System design is greatly simplified, the two dimensional code area image 3 on first identification agent card being arranged in conjunction with the present invention, further according to two dimensional code
The coordinate of area's image 3 calculates relative coordinate and obtains detection zone image 4, is then also by first identification control in detection zone image 4
Then test line image 6 is calculated further according to relative distance in line image 5 processed, then identify again and be located at control line image 5 and survey
The reference background area image 7 among line image 6 is tried, a first identification is relatively easy to know another characteristic further according to the spy in this way
The method that sign position is simply calculated the position of another required feature, enormously simplifies the difficulty of identification, reduces identification
Complexity effectively improves working efficiency.
In the present embodiment, several reagent card arrangements is placed in jig, is carried out image scanning by CIS scanner and is obtained
It takes, obtains the image of reagent card array, will can scan in advance obtained portion of reagent card array image in the work of CIS scanner
1, which is sent to image correction module, is corrected processing, and then CIS scanner is continuing the remaining part progress to reagent card array
While scanning, image correction module is corrected the image of the portion of reagent card array collected in advance, described image
Correction is corrected using image rectification algorithm to collected portion of reagent card array image 1 and splicing, is corrected
Complete reagent card array image 1 afterwards, image rectification algorithm therein is carries out using peg method, and the two point correction
Algorithm needs first to open half white half black image data using CIS scanner scanning one before operation, then calculates in this image
White column average value W and black column average value B, then obtain reagent card array image 1 in need the original of correction pixels point
W, B and raw value S are substituted into following formula by numerical value S:
Then correction parameter V is obtained as a result, needing the raw value S of correction pixels point complete the replacement of obtained V result value
At correction;
Example: the W value of acquisition is that 100, B numerical value is 40, and needing the raw value S of correction pixels point is 60, after substituting into formula
It is as follows:
Obtaining V result is 85, and V result 85 is then replaced the 60 of raw value S, i.e., will need the original ash of correction pixels point
Angle value 60 is substituted for 85;
Just the correction of a pixel is completed after the completion of replacement, it is subsequent to need correction pixels point to repeat above-mentioned algorithm to have been calculated
At correction, and W value therein and B numerical value be obtain it is primary reuse, can be realized using the correcting algorithm " to adopting in advance
Collect the obtained image of portion of reagent card array to be corrected " effect, completed to obtain after whole image just without waiting for scanning
It can be carried out correction process, greatly improve working efficiency;
Image filtering processing in step D is is filtered to collecting original image, to inhibit noise, consequently facilitating after
Continuous image procossing.Median filtering is used herein, it is effectively to inhibit the non-of noise based on a kind of of sequencing statistical theory
Linear signal processing technology, the basic principle is that in a field the value of any in the digital picture or Serial No. point
The intermediate value of each point value replaces, the true value for making the pixel value of surrounding close, to eliminate isolated noise spot;
Identify that individual reagent card graphic then utilizes Canny operator complete in step E from complete reagent card array image 1
At Canny operator carries out reagent card edge finding coordinate, and edge detection problem is converted into detection unit by Canny boundary operator
Function maximum problem has studied needed for optimal edge detector according to the reliability of the validity of edge detection and positioning
Characteristic derives the mathematic(al) representation of optimal edge detector.For various types of edges, Canny edge detection operator
Optimal form is different.Under two-dimensional case, the direction property of Canny operator keeps edge detection and positioning performance preferable, and
With preferable noiseproof feature, two information in edge gradient direction and intensity are generated, are provided convenience for subsequent processing;
The coordinate for identifying the two dimensional code area image 3 and two dimensional code area image 3 in independent reagent card graphic 2, is obtaining list
It after the coordinate of only reagent card, and carries out image interception and is 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 3, to two dimensional code carry out into
The identification of one step.
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 5, test line image 6 and are referred to background area image 7
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 5, test line image 6 and refers to background area image 7, 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.
Detection zone image 4 then obtains to calculate relative coordinate by the two dimensional code area coordinate of identification, in reagent card graphic
The positional relationship of two dimensional code area image 3 and detection zone image 4 is fixed, so passing through simply identification two dimensional code area image 3
Coordinate can learn the position of detection zone image 4, reduce algorithm difficulty, promote working efficiency;
The colour developing degree of control line is distinguished larger with background in detection zone image 4, 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 4 to come out, and carry out pairing with the two dimensional code in corresponding individually reagent card graphic 2 and deposit
Storage, the pairing storage can be instantly available the detection zone image 4 of the independent reagent card graphic 21 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.