CN109884040A - A kind of urine detection method based on image recognition and OTG technology - Google Patents

A kind of urine detection method based on image recognition and OTG technology Download PDF

Info

Publication number
CN109884040A
CN109884040A CN201910110608.2A CN201910110608A CN109884040A CN 109884040 A CN109884040 A CN 109884040A CN 201910110608 A CN201910110608 A CN 201910110608A CN 109884040 A CN109884040 A CN 109884040A
Authority
CN
China
Prior art keywords
mobile phone
otg
image
urine
data line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910110608.2A
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 CN201910110608.2A priority Critical patent/CN109884040A/en
Publication of CN109884040A publication Critical patent/CN109884040A/en
Pending legal-status Critical Current

Links

Landscapes

  • Investigating Or Analysing Biological Materials (AREA)

Abstract

The urine detection method based on image recognition and OTG technology that the invention discloses a kind of, it is by constructing enclosed Image Acquisition box, completely cut off exterior light according to interference, exclusion is adopted as background interference, stable adopt as environment and condition is provided, in the environment of not needing connection cloud server and configuring embedded module, directly it is connect by the data line with OTG function with mobile phone, image procossing and analytic operation are completed in mobile phone terminal, substantially reduce the production cost and price of urine detection equipment, convenient for the large-scale promotion application in family's health detection, detection efficiency and user experience are improved simultaneously;Include a main control chip in OTG data line, using OTG technology, not only can use driving of the mobile phone realization to UVC camera, acquire urine examination image, it can also be to the illuminating LED lamp power supply inside equipment;Acquired image completes detection identification on mobile phone, and will test result and upload to cloud preservation by mobile phone.

Description

A kind of urine detection method based on image recognition and OTG technology
Technical field
The present invention relates to a kind of urine detection methods, and in particular to a kind of to be examined based on the urine of image recognition and OTG technology Survey method.
Background technique
With the improvement of people ' s living standards with the variation of eating habit, the quantity of China's Patients With Kidney Diseases increases year by year, In order to reinforce detection, management and the prognosis to nephrosis, portable urine detection equipment has become the preferential of household urine detection Selection;
It is other to be broadly divided into medical and household two major classes for urine detection product at present, Medical urine testing product it is full-featured but It is complicated for operation, host and detection device are mostly connected in a wired fashion, testing cost is high, and inconvenience is mobile, is difficult to ensure patients' privacy, It is not easy to family and personal routine use;
Household urine detection equipment mostly uses test paper to detect greatly, for reaction after test strips analysis processing technique not One, part is main most to be judged close to colour atla using colorimetric card range estimation, does not have intelligent and there is range estimation error;
Part urine detection equipment carries out Data Analysis Services using equipment connection wireless network (wifi), sets first Standby acquisition test paper image sends the images to cloud analysis by wireless network, is as a result sent out after output by wireless network (WiFi) It returns equipment to show, there is when detection environment is weaker without wifi or wifi signal, the data of equipment can not be successfully this method The problem of transmission, influences the normal use and experience of user.
Summary of the invention
In view of the defects and deficiencies of the prior art, the present invention intends to provide one kind to be based on image recognition and OTG skill The urine detection method of art.
To achieve the above object, the technical solution adopted by the present invention is that: it is comprised the following steps:
One, instrument connects: tester is connect by OTG data line with mobile phone;OTG data line includes that can control data biography Defeated main control chip;
Two, test strips react: by test strips in urine sample to be checked abundant Host range;
Three, Image Acquisition: test strips are inserted into the box body of tester sealing by slot;The camera shooting of box body inside top Head face test paper detection zone central point;The LED illumination lamp for opening box body inside top camera surrounding, provides surely for test strips Fixed, uniform, sufficient white light environment;Mobile phone sends shooting image command to camera by OTG data line;Camera into Row Image Acquisition;
Four, the image acquired is transmitted back to mobile phone terminal processing by OTG data line;
Five, indicator paper block positions: obtaining the segmentation result of indicator paper block, priori position using the method that priori position is directly cut It is obtained by the image measurement acquired in advance;Again by crop box to indicator paper block central reduction;
Six, it removes noise effect: gray processing being carried out to acquired image using linear gradation mapping algorithm, removes noise Effect;
Seven, color correction, the RGB numerical value after obtaining color cast correction;
Eight, doubtful disease information is obtained: the RGB average value on test strips image after each reagent block sample correction, with storage Preset canonical reference color rgb value compares and analyzes in device, obtains corresponding doubtful disease information;
Nine, after cloud server receives the data that mobile phone is sent, while can be according to the personal letter such as user's name, age Breath searches the history detection data of the user in cloud database;
Ten, cloud server summarizes the result after analysis for a personal examining report, is sent out by mobile phone wireless communication User's mobile phone terminal application interface is returned to be shown.
After adopting the above scheme, a kind of urine detection method based on image recognition and OTG technology of the present invention, tool It has the advantage that
1, under enclosed environment, ambient and background interference are excluded, connects mobile phone and camera using OTG data line, The transmission exchange and power supply for completing data, the sport technique segment that image procossing and data are analyzed can be sent by OTG data line It is completed to mobile phone terminal, can reduce the technical requirements of camera module, reduce the cost of camera module, simultaneously because hand The operational performance of machine is powerful, can also improve the efficiency of image procossing and data analysis;
2, urine examination analysis processing is divided into two links, equipment end only carries out Image Acquisition, and the processing of image and RGB color It is worth conversion, the matching retrieval of prompt information, result presentation and prompt etc. all to complete by OTG in mobile phone terminal;Wherein mobile phone terminal will Calculated for original color value data, in the database match specific chemical composition content, matching indicator combination suspected case, Generate examining report etc..Detection device can be made to save calculation processing module in this way, only the tool as acquisition, it can be effective Reduce equipment size, reduce equipment cost, more portability, scene suitable for home use, be conducive to the chronic diseases management of nephrotic with Daily monitoring;
3, the transmission and exchange that data are carried out by OTG data line, can save and install communication module additional in equipment, effectively Equipment cost is reduced, detection and result presentation are carried out by mobile phone, it is operationally more convenient simple, be conducive to old man's use, Improve the experience sense of user.
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 flow diagram of the invention;
Fig. 2 is the structural schematic diagram of 14 index test paper of urine examination.
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 is comprised the following steps:
One, instrument connects: tester is connect by OTG data line with mobile phone, is camera and LED illumination in tester Lamp provides electric power support;OTG data line includes the main control chip that can control data transmission, the model of main control chip The magazine image/video data of UVC can be transferred in mobile phone in real time, can also believe the instruction of mobile phone terminal by ISP1362 Breath is transmitted in camera;
Two, test strips are reacted: test strips select 14 index test paper of urine examination, as shown in Figure 2;14 index test paper of urine examination Detection project includes: urobilinogen, glucose, ketoboidies, bilirubin, protein, nitrite, pH value, occult blood, specific gravity, white thin Born of the same parents, vitamin C, creatinine, urinary calcium, microalbumin;By 14 index test paper of urine examination abundant Host range in urine sample to be checked;To Inspection urine sample selection urina sanguinis mud-stream urine, soaking time 1-3 seconds, using the time within 1 minute;
Three, Image Acquisition: test strips are inserted into the box body of tester sealing by slot;The camera shooting of box body inside top Head face test paper detection zone central point;The LED illumination lamp for opening box body inside top camera surrounding, provides surely for test strips Fixed, uniform, sufficient white light environment;Mobile phone sends shooting image command to camera by OTG data line;Camera into Row Image Acquisition;
Four, the image acquired is transmitted back to mobile phone terminal processing by OTG data line;
Five, indicator paper block positions: on 14 index test paper of urine examination, sharing 16 square indicator paper blocks, i.e. indicator paper block a extremely Indicator paper block p, wherein indicator paper block n and indicator paper block o is two white indicator paper blocks for being used for color correction;Since test paper is in camera fields of view In position be it is substantially stationary, the segmentation result of indicator paper block can be obtained using the method that priori position is directly cut;Priori position It sets and is obtained by the image measurement acquired in advance;
It is each by crop box to indicator paper block central reduction in order to further decrease the possibility for introducing noise in cutting process While to 10 pixels of central reduction, even if guaranteeing that indicator paper block has a slight positional shift, in the result of cutting, still will not include Non- indicator paper block pixel or indicator paper block boundary pixel, to prevent a possibility that noise pixel occurs;
Six, it removes noise effect: gray processing being carried out to collected color image using linear gradation mapping algorithm, is passed through Weight of the channel (r, g, b) during gray processing is adjusted, if the respective weight of (r, g, b) component is (c1,c2,c3), line can be obtained Property gray processing formula gray=[c1,c2,c3]*[r,g,b]T, wherein coefficient (c1,c2,c3) >=0 and c1+c2+c3=1, it is logical using B Work as c as grayscale image in road1=c3=0, c2=1 is denoised;
Seven, color correction, the specific steps are as follows:
1. on three pieces of the left and right and lower section of reagent block b white reference color lump a1, b1, b2, to white blocks clipping region All pixels in a1, b1, b2 calculate separately the average value in their tri- channels R, G, B;Calculate standard deviation sigma;It is right Each pixel in clipping region is analyzed, if within the scope of the pixel no longer sigma on average value periphery, just regarding and making an uproar Sound filtering;Using remaining pixel, average value is recalculated, the RGB typical value as a1, b1, b2 white reference color lump;
2. being averaged RGB color value in white reference color lumpMiddle selection numerical value is maximum logical
Road, defining the value is Maxval;If withIt is defined as Maxval for maximum value, due to the RGB standard value of white (255.255.255), by setting parameter beta,Make the number ratios (1:1:1) in three channels i.e.The parameter value of β, £ is calculated, then the RGB color value of white color lump is reflected Penetrate ratio be (1: β:);
3. since white reference color lump is located above and below reagent block ratio can be mapped with the RGB color value of white color lump Example (1: β:) it is used for the color cast correction of reagent block;
4. calculating RGB average value in reagent block bDefine the triple channel RGB color value of reagent block b Value is (Rb, Gb, Bb) after correction, is calculated by formula (1)-formula (6);
Formula (1)
Formula (2)
Formula (3)
Formula (4)
Formula (5)
Formula (6)
5. similarly calculating the RGB numerical value after reagent block a, reagent block c, reagent block d, reagent block e ... color cast correction;More than Complete the Image Acquisition and color cast correction of a piece of test strips;
Eight, obtain doubtful disease information: the RGB on 14 index test paper images of urine examination after each reagent block sample correction is average Value, compares and analyzes with canonical reference color rgb value preset in memory, obtains corresponding doubtful disease information, specific to walk It is rapid as follows:
1. reservoir has corresponding to RGB color value and each color value of the reagent block indices in the case where various concentration reacts Doubtful illness information;
2. by 14 index test paper of urine examination some indicator reagent block average color and reservoir in the index that prestores Rgb value after reagent block reacts under various concentration carries out calculating comparison, finds out most similar default color value;It is with reagent block b Example, the RGB average value for calculating reagent block b in test strips first areIt is denoted asIf corresponding position reagent block Most similar preset value is b in reservoir0=RGB (Rb0,Gb0,Bb0), calculate the average value in the channel R In RGB color value space, each channel color difference of two o'clock are as follows:
Rgb color space distance, delta C is calculated using European formula is weighted, formula is as follows:
3. can be calculated by weighting European formula when Δ C absolute value minimum, the rgb space distance of two colors is minimum, As a result closest, it chooses in reservoir and is exported closest to the reference value of the reagent block average value in test strips as referential data, And it reads and exports the corresponding doubtful illness information of the numerical value;
Nine, after cloud server receives the data that mobile phone is sent, while can be according to the personal letter such as user's name, age Breath searches the history detection data of the user in cloud database;
1. database is newly-built beyond the clouds should if failing to find user's history detection information in cloud database The personal health of user detects archives, and marks archive;
2. history detection data is transferred if finding the history detection information there are the user in cloud database, Variable analysis is carried out with this detection data, and new data deposit cloud archives are subjected to historical trend data comparative analysis;
Ten, cloud server summarizes the result after analysis for a personal examining report, is sent out by mobile phone wireless communication User's mobile phone terminal application interface is returned to be shown;
The data that cloud server is sent back to include but are not limited to: 14 reagent blocks correspond to chemical composition content information, each The all previous detection variation tendency of item index, amplitude of variation are larger or suspected disease analysis, rehabilitation are combined in abnormal index analysis, multi objective Scheme, Health & Fitness Tip, chronic diseases management guidance etc..
Present embodiment is adopted according to interference, exclusion as back by constructing enclosed Image Acquisition box, isolation exterior light Scape interference, provide it is stable adopt as environment and condition, do not needing connection cloud server and configuring the environment of embedded module Under, it is directly connect by the data line with OTG function with mobile phone, completes image procossing and analytic operation in mobile phone terminal, significantly The production cost and price for reducing urine detection equipment mention simultaneously convenient for the large-scale promotion application in family's health detection High detection efficiency and user experience;
Traditional USB data line is unable to satisfy the functional requirement that data are transferred to mobile phone, and traditional usb protocol needs master Machine carries out program scheduler, and camera and mobile phone are all slaves, without primary control program, therefore cannot achieve image/video data Transmission;It include a main control chip in OTG data line, using OTG technology, no using the USB data line for having OTG function It only can use driving of the mobile phone realization to UVC camera, acquire urine examination image, it can also be to the illuminating LED lamp inside equipment Power supply;Acquired image completes detection identification on mobile phone, and will test result and upload to cloud guarantor by mobile phone It deposits.
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 (4)

1. a kind of urine detection method based on image recognition and OTG technology, it is characterised in that it is comprised the following steps:
One, instrument connects: tester is connect by OTG data line with mobile phone;OTG data line includes that can control data transmission Main control chip;
Two, test strips react: by test strips in urine sample to be checked abundant Host range;
Three, Image Acquisition: test strips are inserted into the box body of tester sealing by slot;The camera of box body inside top is just To test paper detection zone central point;The LED illumination lamp of box body inside top camera surrounding is opened, provides and stablizes, for test strips Even, sufficient white light environment;Mobile phone sends shooting image command to camera by OTG data line;Camera carries out figure As acquisition;
Four, the image acquired is transmitted back to mobile phone terminal processing by OTG data line;
Five, indicator paper block positions: obtaining the segmentation result of indicator paper block using the method that priori position is directly cut, priori position passes through The image measurement acquired in advance obtains;Again by crop box to indicator paper block central reduction;
Six, it removes noise effect: gray processing, removal noise effect is carried out to acquired image using linear gradation mapping algorithm Fruit;
Seven, color correction, the RGB numerical value after obtaining color cast correction;
Eight, doubtful disease information is obtained: the RGB average value on test strips image after each reagent block sample correction, in memory Preset canonical reference color rgb value compares and analyzes, and obtains corresponding doubtful disease information;
Nine, cloud server receive mobile phone transmission data after, while can according to personal information such as user's name, ages, Search the history detection data of the user in cloud database;
Ten, cloud server summarizes the result after analysis for a personal examining report, is sent back to by mobile phone wireless communication User's mobile phone terminal application interface is shown.
2. a kind of urine detection method based on image recognition and OTG technology according to claim 1, it is characterised in that step In rapid two, test strips select 14 index test paper of urine examination;14 index test paper of urine examination are soaking time 1-3 seconds in urine sample to be checked.
3. a kind of urine detection method based on image recognition and OTG technology according to claim 1 or 2, feature exist Urina sanguinis mud-stream urine is selected in urine sample to be checked, using the time within 1 minute.
4. a kind of urine detection method based on image recognition and OTG technology according to claim 1, it is characterised in that step In rapid five, crop box is to 10 pixels of indicator paper block central reduction.
CN201910110608.2A 2019-02-12 2019-02-12 A kind of urine detection method based on image recognition and OTG technology Pending CN109884040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910110608.2A CN109884040A (en) 2019-02-12 2019-02-12 A kind of urine detection method based on image recognition and OTG technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910110608.2A CN109884040A (en) 2019-02-12 2019-02-12 A kind of urine detection method based on image recognition and OTG technology

Publications (1)

Publication Number Publication Date
CN109884040A true CN109884040A (en) 2019-06-14

Family

ID=66927945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910110608.2A Pending CN109884040A (en) 2019-02-12 2019-02-12 A kind of urine detection method based on image recognition and OTG technology

Country Status (1)

Country Link
CN (1) CN109884040A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110455789A (en) * 2019-07-18 2019-11-15 深圳市象形字科技股份有限公司 It is a kind of to carry out amount of drinking water monitoring device and method using uroscopy instrument
CN111060703A (en) * 2019-12-02 2020-04-24 武汉市纽艾云健康科技有限公司 Test paper sensor analysis method, equipment and system
CN113252654A (en) * 2021-05-13 2021-08-13 北京贝塔钡尔健康科技有限公司 Anti-interference self-adaptive intelligent positioning and identifying method and system for urine test paper
CN113567429A (en) * 2021-09-24 2021-10-29 深圳市云创精密医疗科技有限公司 Portable urine test device and online medical system using same
CN116600104A (en) * 2023-07-17 2023-08-15 微网优联科技(成都)有限公司 Phase acquisition quality analysis method and system for IPC network camera

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008153825A2 (en) * 2007-05-30 2008-12-18 Bayer Healthcare Llc System and method for managing health data
CN204142700U (en) * 2014-09-12 2015-02-04 龙国亮 A kind of multi-joint drugs intelligent detecting instrument
WO2015031689A1 (en) * 2013-08-30 2015-03-05 Personalis, Inc. Methods and systems for genomic analysis
CN104835094A (en) * 2015-03-23 2015-08-12 同济大学 Health information management system based on two-dimension code recognition
CN104964973A (en) * 2015-07-08 2015-10-07 邓双胜 Test paper reading and analyzing method and system based on mobile terminal camera
CN105388147A (en) * 2015-10-21 2016-03-09 深圳市宝凯仑生物科技有限公司 Detection method for body fluid based on special test paper
CN108536633A (en) * 2018-05-24 2018-09-14 南昌华勤电子科技有限公司 A kind of interface circuit and terminal of plug and play OTG equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008153825A2 (en) * 2007-05-30 2008-12-18 Bayer Healthcare Llc System and method for managing health data
WO2015031689A1 (en) * 2013-08-30 2015-03-05 Personalis, Inc. Methods and systems for genomic analysis
CN204142700U (en) * 2014-09-12 2015-02-04 龙国亮 A kind of multi-joint drugs intelligent detecting instrument
CN104835094A (en) * 2015-03-23 2015-08-12 同济大学 Health information management system based on two-dimension code recognition
CN104964973A (en) * 2015-07-08 2015-10-07 邓双胜 Test paper reading and analyzing method and system based on mobile terminal camera
CN105388147A (en) * 2015-10-21 2016-03-09 深圳市宝凯仑生物科技有限公司 Detection method for body fluid based on special test paper
CN108536633A (en) * 2018-05-24 2018-09-14 南昌华勤电子科技有限公司 A kind of interface circuit and terminal of plug and play OTG equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110455789A (en) * 2019-07-18 2019-11-15 深圳市象形字科技股份有限公司 It is a kind of to carry out amount of drinking water monitoring device and method using uroscopy instrument
CN111060703A (en) * 2019-12-02 2020-04-24 武汉市纽艾云健康科技有限公司 Test paper sensor analysis method, equipment and system
CN111060703B (en) * 2019-12-02 2023-08-04 苏州纽艾健康科技有限公司 Test paper sensor analysis method, equipment and system
CN113252654A (en) * 2021-05-13 2021-08-13 北京贝塔钡尔健康科技有限公司 Anti-interference self-adaptive intelligent positioning and identifying method and system for urine test paper
CN113567429A (en) * 2021-09-24 2021-10-29 深圳市云创精密医疗科技有限公司 Portable urine test device and online medical system using same
CN116600104A (en) * 2023-07-17 2023-08-15 微网优联科技(成都)有限公司 Phase acquisition quality analysis method and system for IPC network camera
CN116600104B (en) * 2023-07-17 2023-09-19 微网优联科技(成都)有限公司 Phase acquisition quality analysis method and system for IPC network camera

Similar Documents

Publication Publication Date Title
CN109884040A (en) A kind of urine detection method based on image recognition and OTG technology
AU2019203346B2 (en) Optical detection of skin disease
CN109724972A (en) A kind of portable intelligent urine detection instrument and detection method
CN106991679A (en) One kind quantifies recognition methods based on cloud platform urine test paper physical signs
CN103076288B (en) A kind of flesh of fish self-grading device based on computer vision and method
CN105662348A (en) Novel skin detection system based on smart phone and auxiliary product selection system
CN106557746A (en) A kind of tongue based on image recognition technology is as detection method and system
WO2002097716A1 (en) Robust stain detection and quantification for histological specimens based on a physical model for stain absorption
CN113256641B (en) Skin lesion image segmentation method based on deep learning
CN106323977A (en) Mobile terminal-based color-change diagnosis test paper quantitative imaging system
CN109324039A (en) Test strips reaction density detection method, device, storage medium and computer equipment
CN107796806A (en) Screening test paper and its System and method for of inspection
CN109754127A (en) Rice grain amylose content estimating and measuring method based on unmanned plane imaging EO-1 hyperion
CN106198538A (en) A kind of reagent paper read method and device
CN114898405B (en) Portable broiler chicken anomaly monitoring system based on edge calculation
CN109191819B (en) Multi-point water quality monitoring and analyzing system and method based on clustering algorithm
KR20130086690A (en) System for performing colorimetric analysis when running in a portable device and method of colorimetric analysis using the same
NO324583B1 (en) Method of calculating chemical and visual quality parameters for foods
CN106814042A (en) Spectra collection and analysis system and its control method
CN114002182B (en) Integrated meat multi-index rapid nondestructive testing system
CN109856133A (en) A kind of test paper detecting method illuminated using a variety of intensities of illumination, multicolour
CN205538691U (en) Can match domestic urine mummification analytical equipment of type of declining based on wiFi
CN113866122A (en) Method for rapidly identifying chicken varieties and application thereof
CN113627709A (en) System and method for evaluating gorgeous quality based on infrared spectrum detection
CN206115501U (en) LNG adds gas detection and decides system based on openCV image identification technology

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614