CN110095462A - A kind of pH test strips pH value measurement method based on mobile phone - Google Patents
A kind of pH test strips pH value measurement method based on mobile phone Download PDFInfo
- Publication number
- CN110095462A CN110095462A CN201910309658.3A CN201910309658A CN110095462A CN 110095462 A CN110095462 A CN 110095462A CN 201910309658 A CN201910309658 A CN 201910309658A CN 110095462 A CN110095462 A CN 110095462A
- Authority
- CN
- China
- Prior art keywords
- value
- image
- test strips
- color
- mobile phone
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/75—Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated
- G01N21/77—Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated by observing the effect on a chemical indicator
- G01N21/78—Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated by observing the effect on a chemical indicator producing a change of colour
- G01N21/80—Indicating pH value
Landscapes
- Physics & Mathematics (AREA)
- Chemical & Material Sciences (AREA)
- Engineering & Computer Science (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Plasma & Fusion (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Image Processing (AREA)
Abstract
The present invention relates to disclose a kind of pH test strips pH value measurement method based on mobile phone, pass through mobile phone photograph and image procossing, the automatic data model for obtaining color of image characteristic value and pH value and display solution ph to be measured, data model degree of fitting is not less than 0.99, artificial comparison bring error is evaded, greatly improve accuracy, the agility of measurement, the extensive use of pH test strips is promoted, this method can be widely popularized in the test paper detection technique application in the fields such as biology, medicine, chemistry, materialogy, agronomy.
Description
Technical field
The pH test strips pH value measurement method based on mobile phone that the present invention relates to a kind of, can automatic identification pH test strips display face
The pH value of solution to be measured corresponding to color, and in particular to, can to ambits such as biology, medicine, chemistry, materialogy, agronomy
Real-time quantitative measurement etc. applied to solution ph.
Background technique
PH value is to measure a kind of scale of hydrogen ion activity in solution, ie in solution pH value.It controls or examines in production and living
Surveying solution acid alkalinity seems extremely important, such as medically detects pH value of blood to monitor conditions of patients, agriculturally by adjusting soil
Earth pH value promotes plant growth, and chemical reaction is controlled by control pH value in Chemical Manufacture.At present to the detection of solution ph
There are many methods, and wherein test strips detection method becomes current most common inspection because of the advantages such as easy to operate, the used time is short, expense is low
Survey mode.
When pH test strips detect, operator dips a small amount of solution to be measured, drips in test strips, by test strips and standard colorimetric
Card compares, and is estimated according to the similarity of the two color and reads solution ph to be measured, and this method is influenced vulnerable to operator's subjectivity interpretation,
Different people is different to color sensitivity, the experience of interpretation is also different, so that the accuracy rate of this method cannot ensure, restricts pH examination
The application of paper slip.
Summary of the invention
The technical problem to be solved by the present invention is to invent a kind of pH test strips pH value measurement method based on mobile phone, so as to
Automatically, quickly, efficiently and accurately measure solution ph.
In order to solve the above technical problems, the invention proposes a kind of pH test strips pH value measurement method based on mobile phone,
Image capture module, image processing module, result display module are equipped in the mobile phone, comprising the following steps:
Described image acquisition module shoots test strips image;
Described image processing module obtains solution ph to be measured to test strips image analysis processing;
The result display module shows solution ph to be measured;
Described image processing module obtains solution ph to be measured, comprising the following steps: right to test strips image analysis processing
Original image carries out initialization process, realizes rectangle frame, circular frame, and the cutting of oval frame and irregular figure frame is extracted effective
Image-region reduces later image processing data volume and inactive area is avoided to interfere image procossing;Segmentation of a color image mentions
Color feature value is taken, adaptive color space thresholding method is constructed, extracts color feature value to greatest extent;For being extracted
Color feature value carry out data fitting, establish pH value and eigenvalue functions relation curve, i.e. data model, color feature value
Data model with pH value is
Y=Ax6+B·x5+C·x4+D·x3+E·x2+F·x+G
Wherein y is pH value, and x is color feature value, and A, B, C, D, E, F, G are constant, and data model fitting variance is not less than
0.99;
Wherein A=-0.0019, B=0.0509, C=-0.5491, D=2.9394, E=-8.0961, F=11.119, G
=0
Data model is selected, solution ph to be measured is calculated using interpolation algorithm.
Further, described image acquisition module shooting test strips image includes:
The mobile phone in-built CCD/CMOS camera camera is called, initial configuration is made to camera;
The image of standard color comparison card and test strips is shot, and digitlization storage is carried out to image.
Further, described image color segmentation extracts color feature value, comprising steps of
Operation one is extracted rgb space model color coordinates maximum value max=max (r, g, b), wherein (r, g, b) is respectively
GRB image space red, green, blue coordinate value;
Operation two is extracted rgb space model color coordinates minimum value min=min (r, g, b), wherein (r, g, b) is respectively
GRB image space red, green, blue coordinate value;
GRB spatial model is converted to HSV space model, extracts color feature value h by operation three.
Interpolation arithmetic is carried out according to color feature value h and data model;
Preferably, interpolation algorithm uses least square method interpolation algorithm, to reach highest measurement precision.
The present invention by mobile phone photograph and image procossing, the automatic data model for obtaining color of image characteristic value and pH value and
Show solution ph to be measured, data model degree of fitting is not less than 0.99, has evaded artificial comparison bring error, greatly improved survey
Accuracy, the agility of amount, promote the extensive use of pH test strips, and this method also extends to other type test strips applications
In.
Detailed description of the invention
Technical solution of the present invention is further described in detail with reference to the accompanying drawings and detailed description.
Fig. 1 is the pH test strips pH value measuring method flow chart based on mobile phone.
Fig. 2 is the structural block diagram of setting functional module in mobile phone.
Specific embodiment
The present invention is explained in more detail by example and attached drawing below, but should not be construed as the above-mentioned subject content of the present invention
It is limited only to following embodiments.
The present embodiment discloses a kind of pH test strips pH value measurement method based on mobile phone, as shown in Figure 1, Figure 2, in mobile phone
Provided with image capture module, image processing module, result display module.Image capture module includes that camera initialization is single
Member, photographing unit and image storage unit.Image processing module includes image cropping unit, characteristics extraction unit, data mould
Type construction unit and interpolation calculation unit.
Specific step is as follows for pH test strips pH value measurement method based on mobile phone:
Step S1: camera initializes, and calls the mobile phone in-built CCD/CMOS camera camera, makees just to camera
Beginningization configuration;
Step S2: the image of shooting standard color comparison card and test strips;
Step S3: digitlization storage is carried out to image;
Step S4: initialization process is carried out to original image, realizes rectangle frame, circular frame, oval frame and irregular figure
Effective image-region is extracted in the cutting of frame, reduces later image processing data volume and avoids inactive area dry to image procossing
It disturbs;
Step S5: segmentation of a color image extracts color feature value, constructs adaptive color space thresholding method, most
Limits extract color feature value;
Color feature value is extracted, comprising steps of
Operation one is extracted rgb space model color coordinates maximum value max=max (r, g, b), wherein (r, g, b) is respectively
GRB image space red, green, blue coordinate value;
Operation two is extracted rgb space model color coordinates minimum value min=min (r, g, b), wherein (r, g, b) is respectively
GRB image space red, green, blue coordinate value;
GRB spatial model is converted to HSV space model, extracts color feature value h by operation three.
Step S6: building data model carries out data fitting for extracted color feature value, establishes pH value and feature
The data model of value function relation curve, i.e. data model, color feature value and pH value is
Y=Ax6+B·x5+C·x4+D·x3+E·x2+F·x+G
Wherein y is pH value, and x is color feature value, and A, B, C, D, E, F, G are constant, and data model fitting variance is not less than
0.99;
Wherein A=-0.0019, B=0.0509, C=-0.5491, D=2.9394, E=-8.0961, F=11.119, G
=0
Data model is selected, solution ph to be measured is calculated using interpolation algorithm.
Step S7: solution ph to be measured is calculated using least square method interpolation algorithm;
Step S8: result display module shows solution ph to be measured on mobile phone screen.
It should be noted last that the above specific embodiment is only used to illustrate the technical scheme of the present invention and not to limit it,
Although being described the invention in detail referring to preferred embodiment, those skilled in the art should understand that, it can be right
Technical solution of the present invention is modified or replaced equivalently, without departing from the spirit and scope of the technical solution of the present invention,
It is intended to be within the scope of the claims of the invention.
Claims (4)
1. a kind of pH test strips pH value measurement method based on mobile phone, which is characterized in that be equipped with Image Acquisition in the mobile phone
Module, image processing module, result display module, comprising the following steps:
Described image acquisition module shoots test strips image;
Described image processing module obtains solution ph to be measured to test strips image analysis processing;
The result display module shows solution ph to be measured;
Described image processing module obtains solution ph to be measured, comprising the following steps: to original to test strips image analysis processing
Image carries out initialization process, realizes rectangle frame, circular frame, and effective image is extracted in the cutting of oval frame and irregular figure frame
Region reduces later image processing data volume and inactive area is avoided to interfere image procossing;Segmentation of a color image extracts face
Color characteristic value constructs adaptive color space thresholding method, extracts color feature value to greatest extent;For extracted face
Color characteristic value carries out data fitting, establishes pH value and eigenvalue functions relation curve, i.e. data model, color feature value and pH
The data model of value is
Y=Ax6+B·x5+C·x4+D·x3+E·x2+F·x+G
Wherein y is pH value, and x is color feature value, and A, B, C, D, E, F, G are constant, and data model is fitted variance and is not less than 0.99;
Wherein A=-0.0019, B=0.0509, C=-0.5491, D=2.9394, E=-8.0961, F=11.119, G=0
Data model is selected, solution ph to be measured is calculated using interpolation algorithm.
2. pH test strips pH value measurement method according to claim 1, which is characterized in that the shooting of described image acquisition module
Test strips image includes:
The mobile phone in-built CCD/CMOS camera camera is called, initial configuration is made to camera;
Shoot the image of standard color comparison card and test strips;
Digitlization storage is carried out to image.
3. pH test strips pH value measurement method according to claim 1, which is characterized in that described image color segmentation mentions
Color feature value is taken, comprising steps of
Operation one is extracted rgb space model color coordinates maximum value max=max (r, g, b), wherein (r, g, b) is GRB respectively
Image space red, green, blue coordinate value;
Operation two is extracted rgb space model color coordinates minimum value min=min (r, g, b), wherein (r, g, b) is GRB respectively
Image space red, green, blue coordinate value;
GRB spatial model is converted to HSV space model, extracts color feature value h by operation three.
4. pH test strips pH value measurement method according to claim 1, which is characterized in that interpolation algorithm uses least square
Method interpolation algorithm, to reach highest measurement precision.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910309658.3A CN110095462A (en) | 2019-04-17 | 2019-04-17 | A kind of pH test strips pH value measurement method based on mobile phone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910309658.3A CN110095462A (en) | 2019-04-17 | 2019-04-17 | A kind of pH test strips pH value measurement method based on mobile phone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110095462A true CN110095462A (en) | 2019-08-06 |
Family
ID=67445114
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910309658.3A Withdrawn CN110095462A (en) | 2019-04-17 | 2019-04-17 | A kind of pH test strips pH value measurement method based on mobile phone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110095462A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111103338A (en) * | 2019-12-10 | 2020-05-05 | 南京理工大学 | Multi-mode automatic pH measuring instrument based on network and measuring method thereof |
CN114002217A (en) * | 2021-11-02 | 2022-02-01 | 吉林市国科医工科技发展有限公司 | Method for reading PH value through PH test paper image |
EP4036559A1 (en) * | 2021-01-28 | 2022-08-03 | YARA International ASA | System and method for detection of plants and soil properties |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102879393A (en) * | 2012-09-20 | 2013-01-16 | 江苏大学 | PH value detection method and device based on image processing |
CN204740070U (en) * | 2015-06-01 | 2015-11-04 | 广州万孚生物技术股份有限公司 | Test paper strip interpretation analytical equipment |
CN105164514A (en) * | 2013-01-21 | 2015-12-16 | 康奈尔大学 | Smartphone-based apparatus and method for obtaining repeatable, quantitative colorimetric measurement |
CN105300981A (en) * | 2015-10-29 | 2016-02-03 | 大庆市日上仪器制造有限公司 | Acid-value measuring device with colors collected through camera |
CN107727651A (en) * | 2017-08-29 | 2018-02-23 | 太原理工大学 | The quick high-precision fixed amount detecting devices of pH in scene and method based on smart machine |
CN109116017A (en) * | 2017-06-26 | 2019-01-01 | 韩勇 | Quantitative detecting method, server and the device with store function |
CN109312280A (en) * | 2015-12-29 | 2019-02-05 | 火花诊断有限责任公司 | Reagent test strip comprising the reference area for measuring colorimetric test platform |
CN109406506A (en) * | 2018-12-06 | 2019-03-01 | 北京腾康汇医科技有限公司 | A kind of shared self-rated health terminal and test method |
-
2019
- 2019-04-17 CN CN201910309658.3A patent/CN110095462A/en not_active Withdrawn
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102879393A (en) * | 2012-09-20 | 2013-01-16 | 江苏大学 | PH value detection method and device based on image processing |
CN105164514A (en) * | 2013-01-21 | 2015-12-16 | 康奈尔大学 | Smartphone-based apparatus and method for obtaining repeatable, quantitative colorimetric measurement |
CN204740070U (en) * | 2015-06-01 | 2015-11-04 | 广州万孚生物技术股份有限公司 | Test paper strip interpretation analytical equipment |
CN105300981A (en) * | 2015-10-29 | 2016-02-03 | 大庆市日上仪器制造有限公司 | Acid-value measuring device with colors collected through camera |
CN109312280A (en) * | 2015-12-29 | 2019-02-05 | 火花诊断有限责任公司 | Reagent test strip comprising the reference area for measuring colorimetric test platform |
CN109116017A (en) * | 2017-06-26 | 2019-01-01 | 韩勇 | Quantitative detecting method, server and the device with store function |
CN107727651A (en) * | 2017-08-29 | 2018-02-23 | 太原理工大学 | The quick high-precision fixed amount detecting devices of pH in scene and method based on smart machine |
CN109406506A (en) * | 2018-12-06 | 2019-03-01 | 北京腾康汇医科技有限公司 | A kind of shared self-rated health terminal and test method |
Non-Patent Citations (3)
Title |
---|
NURIA LOPEZ-RUIZ等: ""Smartphone-Based Simultaneous pH and Nitrite Colorimetric Determination for Paper Microfluidic Devices"", 《ANALYTICAL CHEMISTRY》 * |
李岚: ""基于数字图像处理的溶液pH值检测***设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
王莹: ""基于数字图像比色法的水体pH定量检测"", 《中国优秀硕士学位论文全文数据库 工程科技Ⅰ辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111103338A (en) * | 2019-12-10 | 2020-05-05 | 南京理工大学 | Multi-mode automatic pH measuring instrument based on network and measuring method thereof |
EP4036559A1 (en) * | 2021-01-28 | 2022-08-03 | YARA International ASA | System and method for detection of plants and soil properties |
WO2022161814A1 (en) * | 2021-01-28 | 2022-08-04 | Yara International Asa | System and method for detection of plants and soil properties |
CN114002217A (en) * | 2021-11-02 | 2022-02-01 | 吉林市国科医工科技发展有限公司 | Method for reading PH value through PH test paper image |
CN114002217B (en) * | 2021-11-02 | 2024-05-14 | 苏州国科医工科技发展(集团)有限公司 | Method for reading PH value through PH test paper image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110095462A (en) | A kind of pH test strips pH value measurement method based on mobile phone | |
CN106546581B (en) | Test paper detection card intelligent detection system and test paper detection card intelligent analysis method | |
EP3132380B1 (en) | Method for estimating a quantity of a blood component in a fluid canister | |
CN109001407B (en) | Lake water quality analysis system | |
CN108714003A (en) | The fixation desktop maintenance system measured based on gray scale | |
JP5761789B2 (en) | Plant image region extraction method, plant image region extraction apparatus, and plant growth monitoring system | |
AU2020103260A4 (en) | Rice blast grading system and method | |
EP3006551A1 (en) | Image processing device, image processing method, program, and storage medium | |
CN109568123B (en) | Acupuncture point positioning method based on YOLO target detection | |
CN111325217B (en) | Data processing method, device, system and medium | |
Demitri et al. | Measuring blood glucose concentrations in photometric glucometers requiring very small sample volumes | |
CN110930446A (en) | Pre-processing method and storage device for quantitative analysis of fundus image | |
JP7062926B2 (en) | Color reaction detection system, color reaction detection method and program | |
CN107064159B (en) | Device and system for detecting and judging growth trend according to yellow leaves of plants | |
CN109242792A (en) | A kind of white balance proofreading method based on white object | |
CN108875625B (en) | Identification method and electronic equipment | |
CN110412257A (en) | A kind of combination is manually demarcated and the indicator paper block localization method of astral ray algorithm | |
CN114511592A (en) | Personnel trajectory tracking method and system based on RGBD camera and BIM system | |
KR20130086690A (en) | System for performing colorimetric analysis when running in a portable device and method of colorimetric analysis using the same | |
CN113749646A (en) | Monocular vision-based human body height measuring method and device and electronic equipment | |
CN110348326A (en) | The family health care information processing method of the identification of identity-based card and the access of more equipment | |
CN113518182A (en) | Cucumber phenotype characteristic measuring method based on raspberry pie | |
CN117274295A (en) | Novel array type urine test paper instant detection and analysis method | |
CN107563981B (en) | Method for evaluating image ringing effect | |
CN106970074A (en) | The Urine test paper image-recognizing method of ability is corrected with color |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190806 |