CN109900688A - A kind of indicator paper block of the accurate positioning of urine detection - Google Patents

A kind of indicator paper block of the accurate positioning of urine detection Download PDF

Info

Publication number
CN109900688A
CN109900688A CN201910175527.0A CN201910175527A CN109900688A CN 109900688 A CN109900688 A CN 109900688A CN 201910175527 A CN201910175527 A CN 201910175527A CN 109900688 A CN109900688 A CN 109900688A
Authority
CN
China
Prior art keywords
indicator paper
paper block
block
img
area
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.)
Pending
Application number
CN201910175527.0A
Other languages
Chinese (zh)
Inventor
陈波
邓宏平
杜伟杰
刘婷
方占
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Hieroglyph Technology Co Ltd
Original Assignee
Shenzhen Hieroglyph Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Hieroglyph Technology Co Ltd filed Critical Shenzhen Hieroglyph Technology Co Ltd
Priority to CN201910175527.0A priority Critical patent/CN109900688A/en
Publication of CN109900688A publication Critical patent/CN109900688A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of indicator paper blocks of the accurate positioning of urine detection, it includes the strip thin substrate of test-paper, white;The strip thin substrate of white includes integrally formed rectangular panel portion and handle portion;Test-paper is located on rectangular panel portion;Test-paper equidistantly arranges small indicator paper block equipped with several;Rectangular panel portion is located at the outside of each small indicator paper block and is close to the position of small indicator paper block, be equipped with black outline border;The middle part of test-paper is equipped with an insertion indication wire in the width direction;The middle and lower part of test-paper is equipped with arrow prompt icon along its length, marks in the lower section of arrow prompt icon equipped with " This side up ";The edge of test-paper is equipped with rounding off;Indicator paper block accurate positioning, testing result accurate rate are high.

Description

A kind of indicator paper block of the accurate positioning of urine detection
Technical field
The present invention relates to medical fields, and in particular to a kind of indicator paper block of the accurate positioning of urine detection.
Background technique
Currently with the improvement of living standards with the transformation of life style, the disease incidence of chronic disease constantly increased, illness people For group's quantity also growing, early screening and daily management for disease become family health care and sanitarian great difficulty Topic;By increasing the reagent block of detection body many index in test strips, the health of human body can be relatively accurately judged The screening monitoring of situation, diseases numerous for renal function, liver function, inflammation, diabetes etc. all has good clinical meaning;
The common method that urine detection is medical treatment detection is carried out using test paper, mainly by adding chemistry on reagent block Secretory substance in reagent, with urine is chemically reacted, and color change is generated, the case where further according to reagent block color change and Degree come judge the tie substance content in urine number, and then be used for the detection and judgement of disease;With convenient and efficient, nothing Bitterly noninvasive, low in cost, simple operation and other advantages have become the primary selection of disorder in screening and routine testing;
Urine detection examination paper product is more currently on the market, mainly has single single test paper, double from product arrangement Test paper etc. includes individual event, two, three, four, five, six, eight, ten, 11,12 from the point of view of detection project Item, 13,14 urine detection test strips or test-paper;14 urine detection test paper currently on the market are mainly single Row's arrangement, has the disadvantage that
(1) test strips length is too long, is easy to happen bending, fracture;
(2) deeper container is needed, otherwise urine is not enough to be completely soaked test paper;
(3) if needing longer slot using the automatic Testing index of detection device, it is unfavorable for the production processing of slot With use;
(4) prompt information is few, and user experience is low.
The technology analyzed at present urine detection test paper is mainly: shooting image by camera, or passes through Color sensor reads color value, then carries out analysis matching to image and color value, finds corresponding index content concn, matches phase The doubtful illness answered and treatment recommendations etc..Image is shot using camera either smart phone, then carries out color identification Method has the disadvantage that
(1) when detecting each time, the position of indicator paper block always has a small amount of variation, cannot be straight using the method for fixed position It connects and is cut from image, easily occur cutting the situation of inaccuracy, cause indicator paper block imperfect, or be non-indicator paper block portion Divide and be introduced into, so as to cause testing result inaccuracy;
(2) it according to the method for reducing crop box, easily leads to a large amount of useful pixel on indicator paper block and is wasted, keep color flat The calculating of mean value is not accurate;
(3) it if obtaining indicator paper block using color segmentation method in the picture, is easy by camera colour cast, the interference of shade And it malfunctions;
(4) if calculating the position of indicator paper block using sciagraphy, it is required that the indicator paper block of every a line all guarantees that high-precision is aligned, A little offset all can cause arithmetic result incorrect;
(5) abnormal in the prevalence of different degrees of radial direction when using optical lens, especially fish eye lens shooting image Become;At this point, the method failure of indicator paper block positioning is realized based on straight-line detection, gradient projection etc. in the picture;And due to test paper The shift in position by a small margin of block, it is also difficult to expect the distortion amplitude of each indicator paper block.
Summary of the invention
In view of the defects and deficiencies of the prior art, the present invention intends to provide a kind of simple structure and reasonable design, make With the indicator paper block localization method of convenient urine detection.
To achieve the above object, the technical solution adopted by the present invention is that: it include test-paper, white the thin base of strip Plate;The strip thin substrate of white includes integrally formed rectangular panel portion and handle portion;Test-paper is located on rectangular panel portion;Test paper On piece equidistantly arranges small indicator paper block equipped with several;Rectangular panel portion is located at the outside of each small indicator paper block and is close to small indicator paper block Position, be equipped with black outline border;The middle part of test-paper is equipped with an insertion indication wire in the width direction;The middle and lower part of test-paper It is equipped with arrow along its length and prompts icon, is marked in the lower section of arrow prompt icon equipped with " This side up ";The side of test-paper Rounding off is equipped at angle;
Further, the test-paper is equipped with leucocyte reagent block, white reference color lump one, white reference color lump Two, ascorbic acid reagent block, nitrite reagent block, pH value reagent block, ketoboidies reagent block, urinary calcium reagent block, urobilinogen examination Agent block, occult blood reagent block, bilirubin reagent block, creatinine reagent block, protein reagent block, specific gravity of urine reagent block, glucose reagent Block, microalbumin reagent block;
Further, the spacing between small indicator paper block is 2mm;The spacing on small indicator paper block and boundary is 4-6mm;Strip is thin Substrate with a thickness of 0.5mm;The line thickness of black outline border is 0.5mm in strip thin substrate;Two neighboring black outline border it Between spacing be 1mm;The width of handle portion is 20mm;Handle portion is equipped with patch;
The localization method of indicator paper block comprises the following steps:
One, indicator paper block is impregnated in urine 1-3 seconds, indicator paper block is then inserted into urine detection instrument;At the top of urine detection instrument Camera shoot image;
Two, gray level image Img_gray is converted by color image Img_color, gray scale value calculating method has following three Kind:
(1) gray value is obtained to tri- path computation average values of RGB;
(2) utilize weighted formula: Gray=R*0.299+G*0.587+B*0.114 calculates to obtain gray value;
(3) using the maximum value in RGB tri- values as gray value;
Three, setting indicator paper block detects binaryzation empirical value Th_strip;
Four, binaryzation is carried out to gray level image Img_gray, obtains foreground image Img_fore;
Five, indicator paper block outline border positions, and obtains indicator paper block area-of-interest figure Img_ROI;
Six, setting indicator paper block black outline border detects binaryzation empirical value Th_bound;
Seven, in conjunction with gray level image Img_gray and indicator paper block area-of-interest figure Img_ROI, binaryzation is carried out, before obtaining Scape image Img_fore2, the specific method is as follows:
(1) foreground image Img_fore2 is identical as gray level image Img_gray size;
(2) 0 is set by each pixel brightness value of foreground image Img_fore2;
(3) each of gray level image Img_gray pixel is traversed, if the corresponding indicator paper block sense of the location of pixels The brightness value of interest administrative division map Img_ROI is 0, then does not handle;Otherwise, if the pixel brightness value in gray level image Img_gray Lower than threshold value Th_bound, then 255 are set by the respective pixel value brightness in foreground image Img_fore2, if being higher than threshold Value Th_bound, then be set as 0;
Eight, in conjunction with color image Img_color and indicator paper block area-of-interest figure Img_ROI, detection obtains foreground image Img_fore3, the specific method is as follows:
(1) foreground image Img_fore3 is identical as gray level image Img_gray size;
(2) 0 is set by each pixel brightness value of foreground image Img_fore3;
(3) each of color image Img_color pixel is traversed;If the corresponding Img_ROI of the location of pixels The brightness value of figure is 0, then does not handle;Otherwise, if as long as RGB tri- of position pixel values in color image Img_color There is one to be less than threshold value Th_bound, then sets 255 for the respective pixel value brightness in foreground image Img_fore3, unless RGB tri- values are both greater than Th_bound, are just set as 0;
(4) by image or operation, carry out Img_fore2 and Img_fore3 to be fused to Img_fore4;
Nine, foreground picture Img_fore4 is traversed, carries out the connected domain detection of black outline border, the specific method is as follows:
(1) connected domain detects, if connected domain number is less than the quantity of small indicator paper block, algorithm is terminated in advance, and early warning mentions Show that user detects again;
(2) connected domain inner void is filled;
(3) area of all connected domains is calculated;
(4) connected domain that area maximum quantity is equal to the quantity of small indicator paper block is extracted;If the area of these connected domains is all Greater than empirical value Th_area_patch, then subsequent step is carried out;Otherwise, algorithm terminates in advance, early warning, prompts user again Detection;
(5) these connected domains are directed to, the indicator paper block area-of-interest figure Img_ROI for obtaining each connected domain is calculated separately, The specific method is as follows:
A, it is directed to i-th of connected domain, establishes indicator paper block area-of-interest figure Bound_ROI_i, the figure size and grayscale image Picture Img_gray is consistent, and each pixel value of indicator paper block area-of-interest figure Bound_ROI_i is set as 0;
B, for each pixel inside i-th of connected domain, in corresponding position by indicator paper block area-of-interest figure Pixel value in Bound_ROI_i is set as 255;
Ten, indicator paper block interior zone detection threshold value Th_bound_inner is set;
11, on the basis of indicator paper block area-of-interest figure Bound_ROI_i, the accurate area-of-interest of indicator paper block is obtained Scheme Bound_ROI_fine_i, the specific method is as follows:
(1) the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block and the same size of gray level image Img_gray, often One pixel brightness value is set as 0;
(2) traversing each of indicator paper block area-of-interest figure Bound_ROI_i image white pixel, i.e. brightness value is 255 pixel;
(3) if respective pixel in gray level image Img_gray, brightness value is higher than indicator paper block interior zone detection threshold Value Th_bound_inner, then by the respective pixel brightness value in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block It is set as 255;Otherwise, if RGB tri- of position pixel values in color image Img_color, as long as there is one to be higher than examination Paper block interior zone detection threshold value Th_bound_inner, also by the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block In respective pixel brightness value be set as 255;It otherwise, will be in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block Respective pixel brightness value is set as 0;
(4) the connected domain detection in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block, if be not connected to Domain, then terminate algorithm, reminds with detecting again;
(5) inner void filling is carried out to the connected domain that detection obtains;
12, the corresponding foreground area of connected domain on area-of-interest figure Bound_ROI_fine_i accurate to indicator paper block Corroded, to eliminate noise jamming, completes indicator paper block positioning;
13, the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block of each final indicator paper block is to colour Image Img_color is traversed, and the accurate area-of-interest figure Bound_ROI_fine_i institute of the indicator paper block of analysis test paper block is right The rgb value for each pixel answered;Calculate the mean value of the RGB in the region.
Further, the camera in step 1 at the top of urine detection instrument is mounted on above indicator paper block center, that is, is located at Image center;Indicator paper block right boundary is in the vertical direction of image;The resolution ratio of camera image is ten thousand picture of 30-1000 Element;
Further, step 3 indicator paper block detection binaryzation empirical value Th_strip is 50-100;
Further, step 4 carries out binaryzation to gray level image Img_gray, obtains the tool of foreground image Img_fore Steps are as follows for body:
(1) foreground image Img_fore and the same size of gray level image Img_gray;
(2) brightness value of each of foreground image Img_fore pixel, is set as 0;
(3) each of gray level image Img_gray pixel is traversed, if the brightness value of the pixel is greater than threshold value Th_strip, then the brightness value that the pixel of foreground image Img_fore corresponding position is arranged is 255, otherwise, is set as 0;
Further, step 5 paper slip outline border positions, and obtains indicator paper block area-of-interest figure Img_ROI, specific steps are such as Under:
(1) connected domain analysis is carried out to foreground image Img_fore;After being detected by connected domain, it is available each Exterior contour, the connected domain interior pixels label of connected domain;
(2) if there is no connected domain, it is basic just without indicator paper block in field of view to illustrate, urine detection instrument algorithm stops Only, then user is reminded to check, or re-starts detection;
(3) inner void filling is carried out to the connected domain detected;
(4) area of each connected domain is calculated;By the maximum connected domain of area, as the corresponding region of indicator paper block;
(5) area value in largest connected domain is if it is less than area lowest threshold Th_area_bound, urine detection instrument algorithm Stop, reminding user to detect again, obtain indicator paper block area-of-interest figure Img_ROI;Indicator paper block area-of-interest figure Img_ROI With indicator paper block picture size is completely the same and grayscale image;By each pixel of indicator paper block area-of-interest figure Img_ROI It is set as 0;Each pixel inside indicator paper block outline border will be located in indicator paper block area-of-interest figure Img_ROI, on position, It is both configured to 255;
Further, step 6 indicator paper block black outline border detection binaryzation empirical value Th_bound is 100-200;
Further, step 10 indicator paper block interior zone detection threshold value Th_bound_inner is 20-80.
After adopting the above scheme, the indicator paper block of the accurate positioning of a kind of urine detection of the present invention has following Advantage:
1, indicator paper block shift in position will not influence the result of algorithm;
2, available accurately indicator paper block outer boundary, pixel utilization rate is very high, and the color average of calculating is more smart It is quasi-;
3, indicator paper block outer boundary positioning accuracy is high, will not introduce external noise pixel, reduce the accurate of color average Property;
4, camera colour cast will not impact, and the outline border of indicator paper block is black, not influenced by colour cast;
5, the borderline possible shade of indicator paper block, will not impact;Shade is also black, can melt with outline border for One, detected as a whole, does not influence;
6, the radial distortion in image caused by optical lens will not impact the result of detection;
7, the algorithm speed of service is fast, and calculation amount is low.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is structural schematic diagram of the invention;
Fig. 2 is the positioning of indicator paper block outline border, obtains the specific flow chart of indicator paper block area-of-interest figure Img_ROI;
Fig. 3 is traversal foreground picture Img_fore4, carries out the flow chart of the connected domain detection of black outline border;
Fig. 4 obtains the accurate area-of-interest figure of indicator paper block on the basis of indicator paper block area-of-interest figure Bound_ROI_i The specific flow chart of Bound_ROI_fine_i.
Description of symbols:
1, handle portion;2, rectangular panel portion;3, black outline border;4, small indicator paper block;5, it is inserted into indication wire;6, arrow prompt figure Mark;7, patch.
Specific embodiment
With reference to the accompanying drawing, the present invention is further illustrated.
Referring to shown in Fig. 1, present embodiment the technical solution adopted is that: it includes strip of test-paper, white Thin substrate;The strip thin substrate of white is made of the PVC plastic of thickness 0.5mm, and thickness thickeies, so that test-paper is using Shi Buyi bending, deformation, more durable stable;Strip thin substrate includes integrally formed rectangular panel portion 2 and handle portion 1;Examination The scraps of paper are located on rectangular panel portion 2;Test-paper is equipped with 16 4*4 and equidistantly arranges small indicator paper block 4;Between between small indicator paper block 4 Away from for 2mm;The spacing on small indicator paper block 4 and 2 boundary of rectangular panel portion is 4-6mm;Small indicator paper block 4 includes leucocyte reagent block, white With reference to color lump one, white reference color lump two, ascorbic acid reagent block, nitrite reagent block, pH value reagent block, ketoboidies reagent Block, urinary calcium reagent block, urobilinogen reagent block, occult blood reagent block, bilirubin reagent block, creatinine reagent block, protein reagent block, urine Specific gravity reagent block, glucose reagent block, microalbumin reagent block summarize 14 Testing index relevant to health in urine On a test-paper, shape is more beautiful, quality is more durable, it is convenient, fast, practical, beautiful to have the advantages that, innovation, Not only it was convenient to use, but also improves efficiency;Rectangular panel portion 2 is located at the outside of each small indicator paper block 4 and is close to small indicator paper block Position is equipped with black outline border 3;The line thickness of black outline border 3 is 0.5mm;Spacing between two neighboring black outline border 3 is 1mm, the position that automatic checkout equipment passes through detection black outline border 3 in the picture, so that it may obtain the essence of each small indicator paper block 4 True position;When shooting, camera is some part subject for facing indicator paper block center vertical view, therefore being not in black outline border 3 The phenomenon that paper material is blocked not will cause the phenomenon that test paper outline border is broken in foreground picture;The middle part of test-paper is along width Direction is equipped with an insertion indication wire 5, to prompt user's test-paper to be inserted into this position;The middle and lower part of test-paper is along length It spends direction and is equipped with arrow prompt icon 6, for prompting user when in use by icon instruction direction insertion urine detection instrument;In arrow The lower section of head prompt icon 6 is marked equipped with " This side up ", for reminding user, prevents from the up and down direction of indicator paper block doing anti-; The edge of test-paper is equipped with rounding off so that entire test-paper from the appearance from the point of view of more mellow and fuller beauty, keep away in use Exempt from due to the strict situation for causing user's experience sense poor of corner point;The width of handle portion 1 is 20mm;Handle portion 1 is equipped with patch Piece 7 facilitates user that can take when in use test paper;
Rectangular panel portion 2 is white, and the pedestal of urine detection instrument is using the color being easy to white differentiation, automatically when detection, It is easy to positioning in the picture and obtains 2 outline border position of rectangular panel portion;And rectangular panel portion 2 is white, black with indicator paper block surrounding 3 collective effect of color frame, so that indicator paper block is more easier to position;
The localization method of indicator paper block comprises the following steps:
One, indicator paper block is impregnated in urine 1-3 seconds, indicator paper block is then inserted into urine detection instrument;At the top of urine detection instrument Camera shoot image;Urine detection instrument guarantees that the indicator paper block of inside does not have exterior light according to interference, guarantees the light on indicator paper block According to being sufficient, uniform;Camera at the top of urine detection instrument is mounted on above indicator paper block center, that is, is located at image and is hit exactly The heart;Indicator paper block right boundary is in the vertical direction of image;The resolution ratio of camera image is ten thousand pixel of 30-1000;Stress speed When spending, the resolution ratio of 300,000 pixels can be used;Stress precision, then can use the resolution ratio of 10,000,000 pixels;
Two, gray level image Img_gray is converted by color image Img_color, gray scale value calculating method has following three Kind:
(1) gray value is obtained to tri- path computation average values of RGB;
(2) utilize weighted formula: Gray=R*0.299+G*0.587+B*0.114 calculates to obtain gray value;
(3) using the maximum value in RGB tri- values as gray value;
Three, it sets indicator paper block and detects binaryzation empirical value Th_strip as 100;Test strips detect binaryzation empirical value Th_strip can be changed between 50-150, be carried out according to urine detection instrument interior lights photograph, pedestal brightness, bottom plate brightness Flexibly setting;But it once sets, after software publication, which is just secured;Except non-update software, the otherwise use of urine detection instrument In the process, test strips detection binarization threshold Th_strip will not change;
Four, binaryzation is carried out to gray level image Img_gray, foreground image Img_fore is obtained, due in indicator paper block image The pixel in only indicator paper block region is white, and the region other than indicator paper block is entirely black, the specific steps are as follows:
(1) foreground image Img_fore and the same size of gray level image Img_gray;
(2) brightness value of each of foreground image Img_fore pixel, is set as 0;
(3) each of gray level image Img_gray pixel is traversed, if the brightness value of the pixel is greater than threshold value Th_strip, then the brightness value that the pixel of foreground image Img_fore corresponding position is arranged is 255, otherwise, is set as 0;
Five, indicator paper block outline border positions, and obtains indicator paper block area-of-interest figure Img_ROI, referring to shown in Fig. 2, specific steps It is as follows:
(1) connected domain analysis is carried out to foreground image Img_fore;After being detected by connected domain, it is available each Exterior contour, the connected domain interior pixels label of connected domain;
(2) if there is no connected domain, it is basic just without indicator paper block in field of view to illustrate, urine detection instrument algorithm stops Only, then user is reminded to check, or re-starts detection;
(3) inner void filling is carried out to the connected domain detected;
(4) area of each connected domain is calculated;By the maximum connected domain of area, as the corresponding region of indicator paper block;
(5) area value in largest connected domain is if it is less than area lowest threshold Th_area_bound, area lowest threshold Th_area_bound is set as 10000, and urine detection instrument algorithm stops, and reminds user to detect again, it is interested to obtain indicator paper block Administrative division map Img_ROI;Indicator paper block area-of-interest figure Img_ROI and indicator paper block picture size is completely the same and grayscale image;It will Each pixel of indicator paper block area-of-interest figure Img_ROI is set as 0;By in indicator paper block area-of-interest figure Img_ROI, Each pixel being located inside indicator paper block outline border on position, is both configured to 255;
Six, it sets indicator paper block black outline border and detects binaryzation empirical value Th_bound as 150;The inspection of indicator paper block black outline border Surveying binaryzation empirical value Th_bound can be changed between 100-200, be shone according to detector interior lights, black outline border Brightness, bottom plate brightness etc. are flexibly set;But it once sets, after software publication, which is just secured;Except non-update software, Otherwise in the use process of detector, which will not change;
Seven, in conjunction with gray level image Img_gray and indicator paper block area-of-interest figure Img_ROI, binaryzation is carried out, before obtaining Scape image Img_fore2, the specific method is as follows:
(1) foreground image Img_fore2 is identical as gray level image Img_gray size;
(2) 0 is set by each pixel brightness value of foreground image Img_fore2;
(3) each of gray level image Img_gray pixel is traversed, if the corresponding indicator paper block sense of the location of pixels The brightness value of interest administrative division map Img_ROI is 0, then does not handle;Otherwise, if the pixel brightness value in gray level image Img_gray Lower than threshold value Th_bound, then 255 are set by the respective pixel value brightness in foreground image Img_fore2, if being higher than threshold Value Th_bound, then be set as 0;
Eight, in conjunction with color image Img_color and indicator paper block area-of-interest figure Img_ROI, detection obtains foreground image Img_fore3, the specific method is as follows:
(1) foreground image Img_fore3 is identical as gray level image Img_gray size;
(2) 0 is set by each pixel brightness value of foreground image Img_fore3;
(3) each of color image Img_color pixel is traversed;If the corresponding Img_ROI of the location of pixels The brightness value of figure is 0, then does not handle;Otherwise, if as long as RGB tri- of position pixel values in color image Img_color There is one to be less than threshold value Th_bound, then sets 255 for the respective pixel value brightness in foreground image Img_fore3, unless RGB tri- values are both greater than Th_bound, are just set as 0;
(4) by image or operation, carry out Img_fore2 and Img_fore3 to be fused to Img_fore4;
Nine, foreground picture Img_fore4 is traversed, the connected domain detection of black outline border, shown referring to Fig. 3, specific method are carried out It is as follows:
(1) connected domain detects, if connected domain number is less than 16, algorithm is terminated in advance, early warning, prompts user again Detection;
(2) connected domain inner void is filled;
(3) area of all connected domains is calculated;
(4) maximum 16 connected domains of area are extracted;If the area of this 16 connected domains is both greater than empirical value Th_ Area_patch then carries out subsequent step;Otherwise, algorithm terminates in advance, early warning, and user is prompted to detect again;
(5) this 16 connected domains are directed to, the indicator paper block area-of-interest figure Img_ for obtaining each connected domain is calculated separately ROI, the specific method is as follows:
A, it is directed to i-th of connected domain, establishes indicator paper block area-of-interest figure Bound_ROI_i, the figure size and grayscale image Picture Img_gray is consistent, and each pixel value of indicator paper block area-of-interest figure Bound_ROI_i is set as 0;
B, for each pixel inside i-th of connected domain, in corresponding position by indicator paper block area-of-interest figure Pixel value in Bound_ROI_i is set as 255;
Ten, indicator paper block interior zone detection threshold value Th_bound_inner is set as 50;Indicator paper block interior zone detection threshold Value Th_bound_inner can be changed between 20-80, be shone according to detector interior lights, the brightness of black outline border, bottom plate Brightness etc. is flexibly set;But it once sets, after software publication, which is just secured;Except non-update software, otherwise detector Use process in, which will not change;
11, on the basis of indicator paper block area-of-interest figure Bound_ROI_i, the accurate area-of-interest of indicator paper block is obtained Scheme Bound_ROI_fine_i, referring to shown in Fig. 4, the specific method is as follows:
(1) the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block and the same size of gray level image Img_gray, often One pixel brightness value is set as 0;
(2) traversing each of indicator paper block area-of-interest figure Bound_ROI_i image white pixel, i.e. brightness value is 255 pixel;
(3) if respective pixel in gray level image Img_gray, brightness value is higher than indicator paper block interior zone detection threshold Value Th_bound_inner, then by the respective pixel brightness value in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block It is set as 255;Otherwise, if RGB tri- of position pixel values in color image Img_color, as long as there is one to be higher than examination Paper block interior zone detection threshold value Th_bound_inner, also by the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block In respective pixel brightness value be set as 255;It otherwise, will be in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block Respective pixel brightness value is set as 0;
(4) the connected domain detection in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block, if be not connected to Domain, then terminate algorithm, reminds with detecting again;
(5) inner void filling is carried out to the connected domain that detection obtains;
12, the corresponding foreground area of connected domain on area-of-interest figure Bound_ROI_fine_i accurate to indicator paper block Corroded, to eliminate noise jamming, completes indicator paper block positioning;
13, the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block of each final indicator paper block is to colour Image Img_color is traversed, and the accurate area-of-interest figure Bound_ROI_fine_i institute of the indicator paper block of analysis test paper block is right The rgb value for each pixel answered;Calculate the mean value of the RGB in the region.
The above is merely illustrative of the technical solution of the present invention, rather than limits those of ordinary skill in the art to this hair The other modifications or equivalent replacement that bright technical solution is made, as long as it does not depart from the spirit and scope of the technical scheme of the present invention, It is intended to be within the scope of the claims of the invention.

Claims (10)

1. a kind of indicator paper block of the accurate positioning of urine detection, it is characterised in that its strip comprising test-paper, white is thin Substrate;The strip thin substrate of white includes integrally formed rectangular panel portion and handle portion;Test-paper is located on rectangular panel portion;Examination The scraps of paper equidistantly arrange small indicator paper block equipped with several;Rectangular panel portion is located at the outside of each small indicator paper block and is close to small test paper The position of block is equipped with black outline border;The middle part of test-paper is equipped with an insertion indication wire in the width direction;Under in test-paper Portion is equipped with arrow prompt icon along its length, marks in the lower section of arrow prompt icon equipped with " This side up ";Test-paper Edge is equipped with rounding off.
2. a kind of indicator paper block of the accurate positioning of urine detection according to claim 1, it is characterised in that the examination The scraps of paper are equipped with leucocyte reagent block, white reference color lump one, white reference color lump two, ascorbic acid reagent block, nitrite Reagent block, pH value reagent block, ketoboidies reagent block, urinary calcium reagent block, urobilinogen reagent block, occult blood reagent block, bilirubin reagent Block, creatinine reagent block, protein reagent block, specific gravity of urine reagent block, glucose reagent block, microalbumin reagent block.
3. a kind of indicator paper block of the accurate positioning of urine detection according to claim 1, it is characterised in that small indicator paper block Between spacing be 2mm;The spacing on small indicator paper block and boundary is 4-6mm;Strip thin substrate with a thickness of 0.5mm;Strip The line thickness of black outline border is 0.5mm in thin substrate;Spacing between two neighboring black outline border is 1mm;The width of handle portion Degree is 20mm;Handle portion is equipped with patch.
4. a kind of indicator paper block of the accurate positioning of urine detection according to claim 1, it is characterised in that indicator paper block Localization method comprises the following steps:
One, indicator paper block is impregnated in urine 1-3 seconds, indicator paper block is then inserted into urine detection instrument;Taking the photograph at the top of urine detection instrument As head shoots image;
Two, gray level image Img_gray is converted by color image Img_color, gray scale value calculating method there are following three kinds:
(1) gray value is obtained to tri- path computation average values of RGB;
(2) utilize weighted formula: Gray=R*0.299+G*0.587+B*0.114 calculates to obtain gray value;
(3) using the maximum value in RGB tri- values as gray value;
Three, setting indicator paper block detects binaryzation empirical value Th_strip;
Four, binaryzation is carried out to gray level image Img_gray, obtains foreground image Img_fore;
Five, indicator paper block outline border positions, and obtains indicator paper block area-of-interest figure Img_ROI;
Six, setting indicator paper block black outline border detects binaryzation empirical value Th_bound;
Seven, in conjunction with gray level image Img_gray and indicator paper block area-of-interest figure Img_ROI, binaryzation is carried out, foreground picture is obtained As Img_fore2, the specific method is as follows:
(1) foreground image Img_fore2 is identical as gray level image Img_gray size;
(2) 0 is set by each pixel brightness value of foreground image Img_fore2;
(3) each of gray level image Img_gray pixel is traversed, if the corresponding indicator paper block of the location of pixels is interested The brightness value of administrative division map Img_ROI is 0, then does not handle;Otherwise, if the pixel brightness value is lower than in gray level image Img_gray Threshold value Th_bound then sets 255 for the respective pixel value brightness in foreground image Img_fore2, if being higher than threshold value Th_ Bound is then set as 0;
Eight, in conjunction with color image Img_color and indicator paper block area-of-interest figure Img_ROI, detection obtains foreground image Img_ Fore3, the specific method is as follows:
(1) foreground image Img_fore3 is identical as gray level image Img_gray size;
(2) 0 is set by each pixel brightness value of foreground image Img_fore3;
(3) each of color image Img_color pixel is traversed;If the corresponding Img_ROI figure of the location of pixels Brightness value is 0, then does not handle;Otherwise, if as long as tri- values of RGB of the position pixel have one in color image Img_color It is a to be less than threshold value Th_bound, then 255 are set by the respective pixel value brightness in foreground image Img_fore3, unless RGB tri- A value is both greater than Th_bound, is just set as 0;
(4) by image or operation, carry out Img_fore2 and Img_fore3 to be fused to Img_fore4;
Nine, foreground picture Img_fore4 is traversed, carries out the connected domain detection of black outline border, the specific method is as follows:
(1) connected domain detects, if connected domain number is less than the quantity of small indicator paper block, algorithm is terminated in advance, early warning, prompts to use Again it detects at family;
(2) connected domain inner void is filled;
(3) area of all connected domains is calculated;
(4) connected domain that area maximum quantity is equal to the quantity of small indicator paper block is extracted;If the area of these connected domains is both greater than Empirical value Th_area_patch then carries out subsequent step;Otherwise, algorithm terminates in advance, early warning, and user is prompted to detect again;
(5) these connected domains are directed to, calculate separately the indicator paper block area-of-interest figure Img_ROI for obtaining each connected domain, specifically Method is as follows:
A, it is directed to i-th of connected domain, establishes indicator paper block area-of-interest figure Bound_ROI_i, the figure size and gray level image Img_gray is consistent, and each pixel value of indicator paper block area-of-interest figure Bound_ROI_i is set as 0;
B, for each pixel inside i-th of connected domain, in corresponding position by indicator paper block area-of-interest figure Bound_ Pixel value in ROI_i is set as 255;
Ten, indicator paper block interior zone detection threshold value Th_bound_inner is set;
11, on the basis of indicator paper block area-of-interest figure Bound_ROI_i, the accurate area-of-interest figure of indicator paper block is obtained Bound_ROI_fine_i, the specific method is as follows:
(1) the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block and the same size of gray level image Img_gray, each Pixel brightness value is set as 0;
(2) each of indicator paper block area-of-interest figure Bound_ROI_i image white pixel is traversed, i.e. brightness value is 255 Pixel;
(3) if respective pixel in gray level image Img_gray, brightness value is higher than indicator paper block interior zone detection threshold value Th_ Then the respective pixel brightness value in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block is arranged by bound_inner It is 255;Otherwise, if RGB tri- of position pixel values in color image Img_color, as long as there is one to be higher than indicator paper block Interior zone detection threshold value Th_bound_inner, also will be in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block Respective pixel brightness value is set as 255;Otherwise, by the correspondence in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block Pixel brightness value is set as 0;
(4) the connected domain detection in the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block, if without connected domain, Terminate algorithm, reminds with detecting again;
(5) inner void filling is carried out to the connected domain that detection obtains;
12, the corresponding foreground area of connected domain on area-of-interest figure Bound_ROI_fine_i accurate to indicator paper block carries out Corrosion completes indicator paper block positioning to eliminate noise jamming;
13, the accurate area-of-interest figure Bound_ROI_fine_i of indicator paper block of each final indicator paper block is to color image Img_color is traversed, corresponding to the accurate area-of-interest figure Bound_ROI_fine_i of the indicator paper block of analysis test paper block The rgb value of each pixel;Calculate the mean value of the RGB in the region.
5. a kind of indicator paper block of the accurate positioning of urine detection according to claim 4, it is characterised in that in step 1 Camera at the top of urine detection instrument is mounted on above indicator paper block center, that is, is located at image center;Indicator paper block right boundary Vertical direction in image;The resolution ratio of camera image is ten thousand pixel of 30-1000.
6. a kind of indicator paper block of the accurate positioning of urine detection according to claim 4, it is characterised in that step 3 examination It is 50-100 that paper block, which detects binaryzation empirical value Th_strip,.
7. a kind of indicator paper block of the accurate positioning of urine detection according to claim 4, it is characterised in that step 4 pair Gray level image Img_gray carries out binaryzation, and obtaining foreground image Img_fore, specific step is as follows:
(1) foreground image Img_fore and the same size of gray level image Img_gray;
(2) brightness value of each of foreground image Img_fore pixel, is set as 0;
(3) each of gray level image Img_gray pixel is traversed, if the brightness value of the pixel is greater than threshold value Th_ Strip, then the brightness value that the pixel of foreground image Img_fore corresponding position is arranged is 255, otherwise, is set as 0.
8. a kind of indicator paper block of the accurate positioning of urine detection according to claim 4, it is characterised in that step 5 paper The positioning of outline border, obtains indicator paper block area-of-interest figure Img_ROI, the specific steps are as follows:
(1) connected domain analysis is carried out to foreground image Img_fore;After being detected by connected domain, each available connection Exterior contour, the connected domain interior pixels label in domain;
(2) if there is no connected domain, it is basic just without indicator paper block in field of view to illustrate, urine detection instrument algorithm stops, so It reminds user to check afterwards, or re-starts detection;
(3) inner void filling is carried out to the connected domain detected;
(4) area of each connected domain is calculated;By the maximum connected domain of area, as the corresponding region of indicator paper block;
(5) area value in largest connected domain stops if it is less than area lowest threshold Th_area_bound, urine detection instrument algorithm Only, it reminds user to detect again, obtains indicator paper block area-of-interest figure Img_ROI;Indicator paper block area-of-interest figure Img_ROI with Indicator paper block picture size is completely the same and grayscale image;Each pixel of indicator paper block area-of-interest figure Img_ROI is set It is set to 0;Each pixel inside indicator paper block outline border will be located in indicator paper block area-of-interest figure Img_ROI, on position, all It is set as 255.
9. a kind of indicator paper block of the accurate positioning of urine detection according to claim 4, it is characterised in that step 6 examination It is 100-200 that paper block black outline border, which detects binaryzation empirical value Th_bound,.
10. a kind of indicator paper block of the accurate positioning of urine detection according to claim 4, it is characterised in that step 10 examination Paper block interior zone detection threshold value Th_bound_inner is 20-80.
CN201910175527.0A 2019-03-08 2019-03-08 A kind of indicator paper block of the accurate positioning of urine detection Pending CN109900688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910175527.0A CN109900688A (en) 2019-03-08 2019-03-08 A kind of indicator paper block of the accurate positioning of urine detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910175527.0A CN109900688A (en) 2019-03-08 2019-03-08 A kind of indicator paper block of the accurate positioning of urine detection

Publications (1)

Publication Number Publication Date
CN109900688A true CN109900688A (en) 2019-06-18

Family

ID=66946790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910175527.0A Pending CN109900688A (en) 2019-03-08 2019-03-08 A kind of indicator paper block of the accurate positioning of urine detection

Country Status (1)

Country Link
CN (1) CN109900688A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110412257A (en) * 2019-07-22 2019-11-05 深圳市预防宝科技有限公司 A kind of combination is manually demarcated and the indicator paper block localization method of astral ray algorithm

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09329599A (en) * 1996-06-11 1997-12-22 Kdk Corp Urinalyzer
CN2394223Y (en) * 1999-07-05 2000-08-30 桂林市华通医用仪器公司 11H urinalysis test paper for extrinsic diagnosis
JP2007212261A (en) * 2006-02-09 2007-08-23 Wako Pure Chem Ind Ltd Test paper measuring instrument and test paper measuring method
CN101753833A (en) * 2008-12-17 2010-06-23 比亚迪股份有限公司 Camera module focusing testing method, device, system and testing device
US20120063652A1 (en) * 2010-09-15 2012-03-15 Teco Diagnostics Method and apparatus for performing color-based reaction testing of biological materials
CN203630148U (en) * 2013-12-18 2014-06-04 何勇 Test paper board for full-automatic urine analyzer
CN105654461A (en) * 2014-12-02 2016-06-08 中国科学院沈阳自动化研究所 Machine vision detection method for fracture of multi-bundle conductor spacer
CN205607869U (en) * 2016-05-13 2016-09-28 深圳创怀医疗科技有限公司 Novel rectangle test paper piece
CN106546581A (en) * 2016-11-02 2017-03-29 长沙云知检信息科技有限公司 Detection paper card intelligent checking system and detection paper card intelligent analysis method
CN107133623A (en) * 2017-05-11 2017-09-05 安徽慧视金瞳科技有限公司 A kind of pointer position accurate detecting method positioned based on background subtraction and the center of circle
CN107219328A (en) * 2017-06-21 2017-09-29 合肥荣事达电子电器集团有限公司 A kind of urine automatic Titration detection means
CN107315003A (en) * 2017-06-28 2017-11-03 深圳市掌医科技有限公司 A kind of urine test paper reacts colour analysis method
CN107527353A (en) * 2017-08-15 2017-12-29 安徽慧视金瞳科技有限公司 A kind of projected picture housing detection method of view-based access control model processing
CN207850936U (en) * 2018-03-15 2018-09-11 深圳市飞点健康管理有限公司 Test paper
CN208505904U (en) * 2018-06-29 2019-02-15 天津果实科技有限公司 Urine 14 multiple rows of arrangement dry analysis test paper
CN209690178U (en) * 2019-03-08 2019-11-26 深圳市象形字科技股份有限公司 A kind of indicator paper block of the accurate positioning of urine detection

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09329599A (en) * 1996-06-11 1997-12-22 Kdk Corp Urinalyzer
CN2394223Y (en) * 1999-07-05 2000-08-30 桂林市华通医用仪器公司 11H urinalysis test paper for extrinsic diagnosis
JP2007212261A (en) * 2006-02-09 2007-08-23 Wako Pure Chem Ind Ltd Test paper measuring instrument and test paper measuring method
CN101753833A (en) * 2008-12-17 2010-06-23 比亚迪股份有限公司 Camera module focusing testing method, device, system and testing device
US20120063652A1 (en) * 2010-09-15 2012-03-15 Teco Diagnostics Method and apparatus for performing color-based reaction testing of biological materials
CN203630148U (en) * 2013-12-18 2014-06-04 何勇 Test paper board for full-automatic urine analyzer
CN105654461A (en) * 2014-12-02 2016-06-08 中国科学院沈阳自动化研究所 Machine vision detection method for fracture of multi-bundle conductor spacer
CN205607869U (en) * 2016-05-13 2016-09-28 深圳创怀医疗科技有限公司 Novel rectangle test paper piece
CN106546581A (en) * 2016-11-02 2017-03-29 长沙云知检信息科技有限公司 Detection paper card intelligent checking system and detection paper card intelligent analysis method
CN107133623A (en) * 2017-05-11 2017-09-05 安徽慧视金瞳科技有限公司 A kind of pointer position accurate detecting method positioned based on background subtraction and the center of circle
CN107219328A (en) * 2017-06-21 2017-09-29 合肥荣事达电子电器集团有限公司 A kind of urine automatic Titration detection means
CN107315003A (en) * 2017-06-28 2017-11-03 深圳市掌医科技有限公司 A kind of urine test paper reacts colour analysis method
CN107527353A (en) * 2017-08-15 2017-12-29 安徽慧视金瞳科技有限公司 A kind of projected picture housing detection method of view-based access control model processing
CN207850936U (en) * 2018-03-15 2018-09-11 深圳市飞点健康管理有限公司 Test paper
CN208505904U (en) * 2018-06-29 2019-02-15 天津果实科技有限公司 Urine 14 multiple rows of arrangement dry analysis test paper
CN209690178U (en) * 2019-03-08 2019-11-26 深圳市象形字科技股份有限公司 A kind of indicator paper block of the accurate positioning of urine detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杜跃信;许晋华;: "图像处理技术在尿液检测中的应用", 微计算机信息, no. 01, 5 January 2011 (2011-01-05) *
杨任兵;程文播;钱庆;章强;白鹏利;潘宇骏;段鹏;: "尿液试纸条的手机图像比色分析新方法的研究", 影像科学与光化学, no. 04, 15 July 2018 (2018-07-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110412257A (en) * 2019-07-22 2019-11-05 深圳市预防宝科技有限公司 A kind of combination is manually demarcated and the indicator paper block localization method of astral ray algorithm
CN110412257B (en) * 2019-07-22 2022-05-03 深圳市预防宝科技有限公司 Test paper block positioning method combining manual calibration and star ray algorithm

Similar Documents

Publication Publication Date Title
US10921259B2 (en) Method and apparatus for analyte measurement
CN104662559B (en) System and method for estimating the amount of the blood constituent in liquid tank
US8506901B2 (en) All-in-one specimen cup with optically readable results
KR102069752B1 (en) Testing apparatus
CN109312280A (en) Reagent test strip comprising the reference area for measuring colorimetric test platform
CN110226085B (en) Urine test paper comprising timer, and urine test paper detection and analysis method
ES2943012T3 (en) Procedures and devices for performing an analytical measurement
ES2890884T3 (en) Methods and devices for performing an analytical measurement based on a color-forming reaction
CN103827658A (en) Identifying and measuring reticulocytes
CN106557746A (en) A kind of tongue based on image recognition technology is as detection method and system
EP3219251A1 (en) Organ image capture device and program
CN104198695A (en) Method for analyzing developing result of colloidal gold test strip
CN209690178U (en) A kind of indicator paper block of the accurate positioning of urine detection
CN110412257B (en) Test paper block positioning method combining manual calibration and star ray algorithm
CN109900688A (en) A kind of indicator paper block of the accurate positioning of urine detection
TWI808435B (en) Multi-view analysis in automated testing apparatus
TW201945731A (en) Equipment for testing biological specimens and method of determining properties of the biological specimens
ES2942571T3 (en) Test strip fixation device for optical measurements of an analyte
US20230389835A1 (en) Apparatus and method for determining hemoglobin levels
RU2777489C2 (en) Methods and devices for analytical measurement
TWI570403B (en) Method and apparatus for analyte measurement
ES2405938A2 (en) Particle counting system adaptable to an optical instrument. (Machine-translation by Google Translate, not legally binding)

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