CN108593645A - A kind of testing result of Urine test paper determines method and determining device - Google Patents

A kind of testing result of Urine test paper determines method and determining device Download PDF

Info

Publication number
CN108593645A
CN108593645A CN201810371404.XA CN201810371404A CN108593645A CN 108593645 A CN108593645 A CN 108593645A CN 201810371404 A CN201810371404 A CN 201810371404A CN 108593645 A CN108593645 A CN 108593645A
Authority
CN
China
Prior art keywords
value
color
chromatism
values
preset standard
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.)
Granted
Application number
CN201810371404.XA
Other languages
Chinese (zh)
Other versions
CN108593645B (en
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.)
Shenyang Has Kang Pharmaceutical Technology Co Ltd
Original Assignee
Shenyang Has Kang Pharmaceutical 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 Shenyang Has Kang Pharmaceutical Technology Co Ltd filed Critical Shenyang Has Kang Pharmaceutical Technology Co Ltd
Priority to CN201810371404.XA priority Critical patent/CN108593645B/en
Publication of CN108593645A publication Critical patent/CN108593645A/en
Application granted granted Critical
Publication of CN108593645B publication Critical patent/CN108593645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/8483Investigating reagent band
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/75Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated
    • G01N21/77Systems 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/78Systems 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/75Systems in which material is subjected to a chemical reaction, the progress or the result of the reaction being investigated
    • G01N21/77Systems 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
    • G01N2021/7756Sensor type
    • G01N2021/7759Dipstick; Test strip

Abstract

An embodiment of the present invention provides a kind of testing results of Urine test paper to determine that method and determining device, wherein method include:Determine the target color values of Urine test paper image detection region;Calculate target color values the first value of chromatism corresponding from different preset standard color color values;Calculate target color values the second value of chromatism corresponding from different preset standard color color values;For multiple first values of chromatism and multiple second values of chromatism being calculated, the first value of chromatism corresponding with same preset standard color color value and the second value of chromatism are weighted summation, obtain multiple integrated color difference values;In multiple integrated color difference values, by the concentration represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum, it is determined as testing result.The testing result of the Urine test paper of the embodiment of the present invention determines method and determining device, can improve the accuracy when testing result of determining Urine test paper.

Description

A kind of testing result of Urine test paper determines method and determining device
Technical field
The present invention relates to Urine test paper color analysis technical fields, true more particularly to a kind of testing result of Urine test paper Determine method and determining device.
Background technology
Urine test paper is a kind of test paper for detecting a certain constituent concentration in urine.Existing urinary fractions Concentration Testing Method typically drops in urine to be measured on Urine test paper, and Urine test paper color changes, and then tries the urine after discoloration Paper and the reference colour of expression heterogeneity concentration are compared, by visually finding the immediate reference colour of color, to basis The reference colour of color most proximity determines the constituent concentration of urine to be measured.
But existing color contrast method, since naked eyes are different for different colours discrimination, and different operations Personnel have differences the recognition capability of color, cause naked eyes to be difficult to determine immediate reference colour, cause identified inspection It surveys result and deviation occurs.
Invention content
A kind of testing result of Urine test paper of being designed to provide of the embodiment of the present invention determines method and determining device, with Improve the accuracy when testing result for determining Urine test paper.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of testing results of Urine test paper to determine method, the method packet It includes:
Determine that the target color values of Urine test paper image detection region, the target color values are each in the detection zone The average value of pixel color value;
Calculate the target color values the first value of chromatism corresponding from different preset standard color color values;First aberration Value is:In RGB color, the value of chromatism between the target color values and the preset standard color color value;
Calculate the target color values the second value of chromatism corresponding from different preset standard color color values, second aberration Value is:In Lab color spaces, the value of chromatism between the target color values and the preset standard color color value;
It, will be with same preset standard color color value for multiple first values of chromatism and multiple second values of chromatism being calculated Corresponding first value of chromatism and the second value of chromatism are weighted summation, obtain multiple integrated color difference values;
In the multiple integrated color difference value, represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum Concentration is determined as testing result.
Optionally, before the target color values of the determining Urine test paper image detection region, the method further includes:
It acquires Urine test paper image and gaussian filtering is carried out to acquired image;
Determine the detection zone of the Urine test paper image after gaussian filtering.
It is optionally, described to calculate the target color values the first value of chromatism corresponding from different preset standard color color values, Including:
By the first preset formula, the target color values the first color corresponding from different preset standard color color values is calculated Difference;
First preset formula is:
In formula, C1Indicate the target color values;C2Indicate the preset standard color color value;C1,RIndicate the target face The channels R of color value;C2,RIndicate the channels R of the preset standard color color value;C1,GIndicate the channels G of the target color values; C2,GIndicate the channels G of the preset standard color color value;C1,BIndicate the channel B of the target color values;C2,BIndicate described pre- If the channel B of reference colour color value;Table Show the Euclidean distance between the target color values and the preset standard color color value, i.e. value of chromatism.
It is optionally, described to calculate the target color values the second value of chromatism corresponding from different preset standard color color values, Including:
By the second preset formula, the target color values the second color corresponding from different preset standard color color values is calculated Difference;
Second preset formula is CIEDE2000 colour difference formulas.
Optionally, described to be added the first value of chromatism corresponding with same preset standard color color value and the second value of chromatism Power summation, obtains multiple integrated color difference values, including:
It, will the first value of chromatism corresponding with same preset standard color color value and the second value of chromatism by third preset formula It is weighted summation;
The third preset formula is:
E '=D ' × m+ Δs E ' × n
In formula, the E ' expressions integrated color difference value;D ' expressions first value of chromatism;M indicates the first coefficient;Δ E ' expressions Second value of chromatism;N indicates the second coefficient.
It is optionally, described in the multiple integrated color difference value when the integrated color difference value identical and minimum there are numerical value, By the concentration represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum, it is determined as testing result, including:
In the multiple integrated color difference value, the identical and minimum integrated color difference value of the numerical value corresponding is determined The size of two values of chromatism;
By the concentration represented by the corresponding preset standard color of the integrated color difference value of the second value of chromatism minimum, it is determined as detection knot Fruit.
Second aspect, an embodiment of the present invention provides a kind of testing result determining device of Urine test paper, described device packets It includes:
Target color values determining module, the target color values for determining Urine test paper image detection region, the target Color value is the average value of each pixel color value in the detection zone;
First value of chromatism computing module, it is corresponding from different preset standard color color values for calculating the target color values First value of chromatism;First value of chromatism is:In RGB color, value of chromatism between the target color values with it is described Preset standard color color value;
Second value of chromatism computing module, it is corresponding from different preset standard color color values for calculating the target color values Second value of chromatism, second value of chromatism are:In Lab color spaces, value of chromatism between the target color values with it is described Preset standard color color value;
Integrated color difference value computing module, for for multiple first values of chromatism and multiple second values of chromatism being calculated, The first value of chromatism corresponding with same preset standard color color value and the second value of chromatism are weighted summation, obtain multiple synthesis Value of chromatism;
Testing result determining module is used in the multiple integrated color difference value, by the integrated color difference value pair of numerical value minimum The concentration represented by preset standard color answered, is determined as testing result.
Optionally, described device further includes:
Image processing module, for acquiring Urine test paper image and carrying out gaussian filtering to acquired image;
Detection zone determining module, the detection zone for determining the Urine test paper image after gaussian filtering.
The third aspect, an embodiment of the present invention provides a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein the processor, the communication interface, the memory are completed each other by the communication bus Communication;The machine readable storage medium is stored with the machine-executable instruction that can be executed by the processor, the processing Device is promoted by the machine-executable instruction:Realize that the testing result for the Urine test paper that first aspect of the embodiment of the present invention provides is true Determine the method and step of method.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Dielectric memory contains computer program, and the computer program is executed by processor the urine of first aspect of embodiment of the present invention offer The testing result of liquid test paper determines the method and step of method.
A kind of testing result of Urine test paper provided in an embodiment of the present invention determines method and determining device, by counting respectively Target color values the first value of chromatism corresponding from different preset standard color color values and the second value of chromatism are calculated, and will be preset with same Corresponding first value of chromatism of reference colour color value and the second value of chromatism are weighted summation, to obtain multiple integrated color difference values; In multiple integrated color difference values, the aberration between the corresponding preset standard color of the integrated color difference value of numerical value minimum is minimum, table Both bright color is closest.Therefore, the embodiment of the present invention is by the corresponding preset standard color institute of the integrated color difference value of numerical value minimum The concentration of expression, is determined as testing result, accuracy when testing result to improve determining Urine test paper.Certainly, implement Any product or method of the present invention must be not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
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 technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is that the testing result of Urine test paper provided in an embodiment of the present invention determines a kind of flow diagram of method;
Fig. 2 is that the testing result of Urine test paper provided in an embodiment of the present invention determines another flow diagram of method;
Fig. 3 is a kind of structural schematic diagram of the testing result determining device of Urine test paper provided in an embodiment of the present invention;
Fig. 4 is another structural schematic diagram of the testing result determining device of Urine test paper provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of testing results of Urine test paper to determine method, which can be with Include the following steps:
S101 determines that the target color values of Urine test paper image detection region, target color values are each picture in detection zone The average value of plain color value.
Urine test paper image is made of pixel, and each pixel has corresponding color value, it is thus determined that detection zone The average value of each pixel color value, i.e. target color values in domain.The purpose for determining target color values is in order to by target color values It is compared with the color value of reference colour, so that it is determined that the testing result of Urine test paper.
As a kind of optional embodiment of the embodiment of the present invention, on the basis of flow shown in Fig. 1, step S101 it Before, referring to Fig. 2, the embodiment of the present invention can also include the following steps:
S201 acquires Urine test paper image and carries out gaussian filtering to acquired image.
After Urine test paper use, Urine test paper image can be acquired by capture apparatus, for example, shooting to obtain by camera Then Urine test paper image carries out gaussian filtering to the image.The purpose of gaussian filtering is to make acquired Urine test paper Image becomes more smooth, and the Urine test paper image after gaussian filtering can accelerate computer in the mesh for determining detection zone Mark calculating speed when color value.
Further, it is also possible to color correction process be carried out to the Urine test paper image acquired, to make acquired image Color can be by accurately reproducing floor situation seen by person.
It should be noted that in the embodiment of the present invention, existing Gaussian filter algorithm and color correction algorithm may be used The Urine test paper image acquired is handled.
S202 determines the detection zone of the Urine test paper image after gaussian filtering.
The Urine test paper image acquired is after gaussian filtering, it may be determined that the detection zone of the image.The present invention is real It applies in example, the detection zone of Urine test paper image can be a region of Urine test paper image, under normal conditions Urine test paper Image is rectangle, therefore a color lump can be determined in the rectangular area, as detection zone;Or it can be directly by the square Shape region is determined as detection zone.
Step S202 can be located at before step S102.
S102 calculates target color values the first value of chromatism corresponding from different preset standard color color values.Wherein, the first color Difference is:In RGB color, the value of chromatism between target color values and preset standard color color value.
Urine test paper can quantify the concentration of a certain ingredient in detection urine, and with concentration difference, Urine test paper shows Color it is also different, this just needs to be compared with the color of detected Urine test paper using standard color, so that it is determined that the inspection The concentration of ingredient in test paper.Standard color is typically preset, and different standard colors corresponds to different constituent concentrations.
Existing testing result determines method, is usually compared Test paper from different standard colors by naked eyes It is right, searching and the immediate standard color of Test paper color, therefore there is a problem of that error is big.It, can in the embodiment of the present invention With by the color value for calculating color of object, from the value of chromatism between different preset standard color color values, value of chromatism is smaller, explanation The two color is closer.Specifically, the value of chromatism between target color values and pre- bidding can be calculated in RGB color Quasi- color color value.RGB color is by red (R), green (G), the variation of blue (B) three Color Channels and their phases Being superimposed to obtain miscellaneous color between mutually.
As one kind of the embodiment of the present invention specifically embodiment, color of object can be calculated by the first preset formula Value the first value of chromatism corresponding from different preset standard color color values.
First preset formula is:
In formula, C1Indicate target color values;C2Indicate preset standard color color value;C1,RIndicate the channels R of target color values; C2,RIndicate the channels R of preset standard color color value;C1,GIndicate the channels G of target color values;C2,GIndicate preset standard color color The channels G of value;C1,BIndicate the channel B of target color values;C2,BIndicate the channel B of preset standard color color value;
Indicate color of object Euclidean distance between value and preset standard color color value, i.e. value of chromatism.
S103 calculates target color values the second value of chromatism corresponding from different preset standard color color values.Wherein, the second color Difference is:In Lab color spaces, the value of chromatism between target color values and preset standard color color value.
In the embodiment of the present invention, can in Lab color spaces, calculate target color values and preset standard color color value it Between value of chromatism.Lab color spaces based on people to the feeling of color, by brightness (L) and in relation to a of color, tri- element groups of b At.
As one kind of the embodiment of the present invention specifically embodiment, color of object can be calculated by the second preset formula Value the second value of chromatism corresponding from different preset standard color color values;
Second preset formula is existing CIEDE2000 colour difference formulas, and CIE (International Commission on Illumination) has specially set up work Form and aspect correction technique related to the lightness committee TC1-47 of industry aberration evaluation, by the technical committee to existing colour difference formula With the analysis and test of visual evaluation data, a new color aesthetics formula was proposed in 2000, and obtained in 2001 The recommendation of CIE, referred to as CIE2000 colour difference formulas, abbreviation CIEDE2000.
CIEDE2000 colour difference formulas are specially:
In formula, SL,SC,SH,RTRespectively weighting function;kL,kC,kHRespectively parameter factors.
S104 will be with same preset standard color for multiple first values of chromatism and multiple second values of chromatism being calculated Corresponding first value of chromatism of color value and the second value of chromatism are weighted summation, obtain multiple integrated color difference values.
Inventor has found, if the value of chromatism of the two is only calculated in a color space, due to different colours space pair It is different in the describing mode of color, it may cause under different colours space, identified testing result is different.Therefore, it can incite somebody to action The value of chromatism being calculated under different color space is weighted summation, to avoid the problems in single color space.
In the embodiment of the present invention, each first value of chromatism be it is corresponding with a preset standard color, and each second Value of chromatism is also all corresponding with a preset standard color, therefore can will corresponding with same preset standard color color value One value of chromatism and the second value of chromatism are weighted summation, to obtain an integrated color difference value.For from different preset standard colors Corresponding first value of chromatism of color value and the second value of chromatism, can obtain multiple integrated color difference values.
As one kind of the embodiment of the present invention specifically embodiment, can by third preset formula, will with it is same default Corresponding first value of chromatism of reference colour color value and the second value of chromatism are weighted summation;
Third preset formula is:
E '=D ' × m+ Δs E ' × n
In formula, E ' expression integrated color difference values;The first value of chromatism of D ' expressions;M indicates the first coefficient;Δ E ' the second aberration of expression Value;N indicates the second coefficient.Wherein, m and n can be set according to actual Colorimetry.
As another optional embodiment of the embodiment of the present invention, to same preset standard color color value corresponding the When one value of chromatism and the second value of chromatism are weighted summation, place can be normalized in the first value of chromatism and the second value of chromatism Reason, for example, by rounding-off method, is normalized to integer, to reduce weighted sum by the first value of chromatism and the second value of chromatism Calculation amount.
S105, in multiple integrated color difference values, represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum Concentration, be determined as testing result.
In the embodiment of the present invention, in obtained multiple integrated color difference values, the numerical value of integrated color difference value is smaller, shows and is somebody's turn to do Aberration between target color values corresponding to integrated color difference value and preset standard color color value is smaller, that is, Urine test paper figure As the color of detection zone and the color of the preset standard color are closer.It therefore, can be by the corresponding concentration of preset standard color, really It is set to the testing result of Urine test paper.
As one kind of the embodiment of the present invention optionally embodiment, in obtained multiple integrated color difference values, Ke Nengcun In a kind of situation:Certain several integrated color difference value numerical value is identical, and their numerical value is minimum.
When there is the above situation, corresponding second color of the identical and minimum integrated color difference value of numerical value can be first determined The size of difference, then by the concentration represented by the corresponding preset standard color of the integrated color difference value of the second value of chromatism minimum, be determined as Testing result when so as to occur the above situation again, also can correctly determine testing result.
A kind of testing result of Urine test paper provided in an embodiment of the present invention determines method, by calculating separately color of object Value the first value of chromatism corresponding from different preset standard color color values and the second value of chromatism, and will be with same preset standard color color It is worth corresponding first value of chromatism and the second value of chromatism is weighted summation, to obtains multiple integrated color difference values;In multiple synthesis In value of chromatism, the aberration between the corresponding preset standard color of the integrated color difference value of numerical value minimum is minimum, both shows color It is closest.Therefore, the embodiment of the present invention is by the concentration represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum, It is determined as testing result, accuracy when testing result to improve determining Urine test paper.
A kind of specific embodiment of the testing result determining device of Urine test paper provided in an embodiment of the present invention, with Fig. 1 institutes Show that flow is corresponding, with reference to figure 3, Fig. 3 is a kind of structure of the testing result determining device of the Urine test paper of the embodiment of the present invention Schematic diagram, including:
Target color values determining module 301, the target color values for determining Urine test paper image detection region, target face Color value is the average value of each pixel color value in detection zone.
First value of chromatism computing module 302, it is corresponding from different preset standard color color values for calculating target color values First value of chromatism;First value of chromatism is:In RGB color, the value of chromatism between target color values and preset standard color face Color value.
Second value of chromatism computing module 303, it is corresponding from different preset standard color color values for calculating target color values Second value of chromatism, the second value of chromatism are:In Lab color spaces, the value of chromatism between target color values and preset standard color face Color value.
Integrated color difference value computing module 304, for for multiple first values of chromatism and multiple second aberration being calculated The first value of chromatism corresponding with same preset standard color color value and the second value of chromatism are weighted summation, obtained multiple by value Integrated color difference value.
Testing result determining module 305, in multiple integrated color difference values, the integrated color difference value of numerical value minimum to be corresponded to Preset standard color represented by concentration, be determined as testing result.
Wherein, target color values determining module 301, specifically can be used for:By the first preset formula, color of object is calculated Value the first value of chromatism corresponding from different preset standard color color values;
First preset formula is:
In formula, C1Indicate target color values;C2Indicate preset standard color color value;C1,RIndicate the channels R of target color values; C2,RIndicate the channels R of preset standard color color value;C1,GIndicate the channels G of target color values;C2,GIndicate preset standard color color The channels G of value;C1,BIndicate the channel B of target color values;C2,BIndicate the channel B of preset standard color color value;
Indicate color of object Euclidean distance between value and preset standard color color value, i.e. value of chromatism.
Wherein, the second value of chromatism computing module 303, specifically can be used for:By the second preset formula, color of object is calculated Value the second value of chromatism corresponding from different preset standard color color values;
Second preset formula is CIEDE2000 colour difference formulas.
Wherein, integrated color difference value computing module 304, specifically can be used for:By third preset formula, will be preset with same Corresponding first value of chromatism of reference colour color value and the second value of chromatism are weighted summation;
Third preset formula is:
E '=D ' × m+ Δs E ' × n
In formula, E ' expression integrated color difference values;The first value of chromatism of D ' expressions;M indicates the first coefficient;Δ E ' the second aberration of expression Value;N indicates the second coefficient.
Wherein, testing result determining module 305, specifically can be used for:When the integrated color difference identical and minimum there are numerical value When value, in multiple integrated color difference values, corresponding second value of chromatism of the identical and minimum integrated color difference value of numerical value is determined Size;By the concentration represented by the corresponding preset standard color of the integrated color difference value of the second value of chromatism minimum, it is determined as testing result.
The testing result determining device of a kind of Urine test paper provided in an embodiment of the present invention, by calculating separately color of object Value the first value of chromatism corresponding from different preset standard color color values and the second value of chromatism, and will be with same preset standard color color It is worth corresponding first value of chromatism and the second value of chromatism is weighted summation, to obtains multiple integrated color difference values;In multiple synthesis In value of chromatism, the aberration between the corresponding preset standard color of the integrated color difference value of numerical value minimum is minimum, both shows color It is closest.Therefore, the embodiment of the present invention is by the concentration represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum, It is determined as testing result, accuracy when testing result to improve determining Urine test paper.
The embodiment of the present invention additionally provides a kind of testing result determining device of Urine test paper, as shown in figure 4, in Fig. 3 institutes On the basis of showing device, further include:
Image processing module 306, for acquiring Urine test paper image and carrying out gaussian filtering to acquired image.
Detection zone determining module 307, the detection zone for determining the Urine test paper image after gaussian filtering.
The testing result determining device of a kind of Urine test paper provided in an embodiment of the present invention, by acquiring Urine test paper figure As and to acquired image progress gaussian filtering, acquired Urine test paper image can be made to become more smooth, more quickly Ground calculates the average color of each pixel in image, to accelerate computer in the target color values for determining detection zone Calculating speed.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 5, including processor 501, communication interface 502, Memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 are complete by communication bus 504 At mutual communication,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, realizes following steps:
Determine that the target color values of Urine test paper image detection region, target color values are each pixel color in detection zone The average value of value;
Calculate target color values the first value of chromatism corresponding from different preset standard color color values;First value of chromatism is: In RGB color, the value of chromatism between target color values and preset standard color color value;
Target color values the second value of chromatism corresponding from different preset standard color color values is calculated, the second value of chromatism is: In Lab color spaces, the value of chromatism between target color values and preset standard color color value;
It, will be with same preset standard color color value for multiple first values of chromatism and multiple second values of chromatism being calculated Corresponding first value of chromatism and the second value of chromatism are weighted summation, obtain multiple integrated color difference values;
It, will be dense represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum in multiple integrated color difference values Degree, is determined as testing result.
Electronic equipment provided in an embodiment of the present invention, by calculating separately target color values and different preset standard color colors It is worth corresponding first value of chromatism and the second value of chromatism, and will the first value of chromatism corresponding with same preset standard color color value and Two values of chromatism are weighted summation, to obtain multiple integrated color difference values;In multiple integrated color difference values, the synthesis of numerical value minimum Aberration between the corresponding preset standard color of value of chromatism is minimum, shows that the two color is closest.Therefore, the present invention is implemented Concentration represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum is determined as testing result, to improve by example Determine the accuracy when testing result of Urine test paper.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, is stored in computer readable storage medium Computer program, to execute following steps:
Determine that the target color values of Urine test paper image detection region, target color values are each pixel color in detection zone The average value of value;
Calculate target color values the first value of chromatism corresponding from different preset standard color color values;First value of chromatism is: In RGB color, the value of chromatism between target color values and preset standard color color value;
Target color values the second value of chromatism corresponding from different preset standard color color values is calculated, the second value of chromatism is: In Lab color spaces, the value of chromatism between target color values and preset standard color color value;
It, will be with same preset standard color color value for multiple first values of chromatism and multiple second values of chromatism being calculated Corresponding first value of chromatism and the second value of chromatism are weighted summation, obtain multiple integrated color difference values;
It, will be dense represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum in multiple integrated color difference values Degree, is determined as testing result.
Computer readable storage medium provided in an embodiment of the present invention, it is default with difference by calculating separately target color values Corresponding first value of chromatism of reference colour color value and the second value of chromatism, and will be with same preset standard color color value corresponding first Value of chromatism and the second value of chromatism are weighted summation, to obtain multiple integrated color difference values;In multiple integrated color difference values, numerical value Aberration between the corresponding preset standard color of minimum integrated color difference value is minimum, shows that the two color is closest.Therefore, Concentration represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum is determined as detection knot by the embodiment of the present invention Fruit, accuracy when testing result to improve determining Urine test paper.
For device/electronic equipment/storage medium embodiment, since it is substantially similar to the method embodiment, so What is described is fairly simple, and the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that the device of the embodiment of the present invention, electronic equipment and storage medium are to apply above-mentioned urine respectively The testing result of test paper determines the device, electronic equipment and storage medium of method, then the testing result of above-mentioned Urine test paper determines All embodiments of method are suitable for the device, electronic equipment and storage medium, and can reach same or analogous beneficial Effect.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of testing result of Urine test paper determines method, which is characterized in that the method includes:
Determine that the target color values of Urine test paper image detection region, the target color values are each pixel in the detection zone The average value of color value;
Calculate the target color values the first value of chromatism corresponding from different preset standard color color values;First value of chromatism For:In RGB color, the value of chromatism between the target color values and the preset standard color color value;
Calculate the target color values the second value of chromatism corresponding from different preset standard color color values, second value of chromatism For:In Lab color spaces, the value of chromatism between the target color values and the preset standard color color value;
It, will be corresponding with same preset standard color color value for multiple first values of chromatism and multiple second values of chromatism being calculated The first value of chromatism and the second value of chromatism be weighted summation, obtain multiple integrated color difference values;
It, will be dense represented by the corresponding preset standard color of the integrated color difference value of numerical value minimum in the multiple integrated color difference value Degree, is determined as testing result.
2. the testing result of Urine test paper according to claim 1 determines method, which is characterized in that the determining urine examination Before the target color values of paper image detection region, the method further includes:
It acquires Urine test paper image and gaussian filtering is carried out to acquired image;
Determine the detection zone of the Urine test paper image after gaussian filtering.
3. the testing result of Urine test paper according to claim 1 or 2 determines method, which is characterized in that the calculating institute Target color values the first value of chromatism corresponding from different preset standard color color values is stated, including:
By the first preset formula, the target color values the first aberration corresponding from different preset standard color color values is calculated Value;
First preset formula is:
In formula, C1Indicate the target color values;C2Indicate the preset standard color color value;C1,RIndicate the target color values The channels R;C2,RIndicate the channels R of the preset standard color color value;C1,GIndicate the channels G of the target color values;C2,GTable Show the channels G of the preset standard color color value;C1,BIndicate the channel B of the target color values;C2,BIndicate the pre- bidding The channel B of quasi- color color value;Table Show the Euclidean distance between the target color values and the preset standard color color value, i.e. value of chromatism.
4. the testing result of Urine test paper according to claim 1 or 2 determines method, which is characterized in that the calculating institute Target color values the second value of chromatism corresponding from different preset standard color color values is stated, including:
By the second preset formula, the target color values the second aberration corresponding from different preset standard color color values is calculated Value;
Second preset formula is CIEDE2000 colour difference formulas.
5. the testing result of Urine test paper according to claim 1 or 2 determines method, which is characterized in that it is described will with it is same Corresponding first value of chromatism of one preset standard color color value and the second value of chromatism are weighted summation, obtain multiple integrated color differences Value, including:
It, will the first value of chromatism corresponding with same preset standard color color value and the progress of the second value of chromatism by third preset formula Weighted sum;
The third preset formula is:
E '=D ' × m+ Δs E ' × n
In formula, the E ' expressions integrated color difference value;D ' indicate first value of chromatism;M indicates the first coefficient;Described in Δ E ' are indicated Second value of chromatism;N indicates the second coefficient.
6. the testing result of Urine test paper according to claim 1 or 2 determines method, which is characterized in that when there are numerical value It is described in the multiple integrated color difference value when identical and minimum integrated color difference value, by the integrated color difference value pair of numerical value minimum The concentration represented by preset standard color answered, is determined as testing result, including:
In the multiple integrated color difference value, corresponding second color of the identical and minimum integrated color difference value of the numerical value is determined The size of difference;
By the concentration represented by the corresponding preset standard color of the integrated color difference value of the second value of chromatism minimum, it is determined as testing result.
7. a kind of testing result determining device of Urine test paper, which is characterized in that described device includes:
Target color values determining module, the target color values for determining Urine test paper image detection region, the color of object Value is the average value of each pixel color value in the detection zone;
First value of chromatism computing module, for calculating the target color values and different preset standard color color values corresponding first Value of chromatism;First value of chromatism is:In RGB color, the value of chromatism between the target color values is preset with described Reference colour color value;
Second value of chromatism computing module, for calculating the target color values and different preset standard color color values corresponding second Value of chromatism, second value of chromatism are:In Lab color spaces, the value of chromatism between the target color values is preset with described Reference colour color value;
Integrated color difference value computing module will be with for for multiple first values of chromatism and multiple second values of chromatism being calculated Corresponding first value of chromatism of same preset standard color color value and the second value of chromatism are weighted summation, obtain multiple integrated color differences Value;
Testing result determining module is used in the multiple integrated color difference value, and the integrated color difference value of numerical value minimum is corresponding Concentration represented by preset standard color, is determined as testing result.
8. the testing result determining device of Urine test paper according to claim 1, which is characterized in that described device is also wrapped It includes:
Image processing module, for acquiring Urine test paper image and carrying out gaussian filtering to acquired image;
Detection zone determining module, the detection zone for determining the Urine test paper image after gaussian filtering.
9. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes claim 1-6 any one of them methods Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-6 any one of them method and steps when the computer program is executed by processor.
CN201810371404.XA 2018-04-24 2018-04-24 Method and device for determining detection result of urine test paper Active CN108593645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810371404.XA CN108593645B (en) 2018-04-24 2018-04-24 Method and device for determining detection result of urine test paper

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810371404.XA CN108593645B (en) 2018-04-24 2018-04-24 Method and device for determining detection result of urine test paper

Publications (2)

Publication Number Publication Date
CN108593645A true CN108593645A (en) 2018-09-28
CN108593645B CN108593645B (en) 2021-05-25

Family

ID=63614834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810371404.XA Active CN108593645B (en) 2018-04-24 2018-04-24 Method and device for determining detection result of urine test paper

Country Status (1)

Country Link
CN (1) CN108593645B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109557093A (en) * 2018-12-18 2019-04-02 无锡益诺华科技发展有限公司 A kind of urine detection test paper color measuring algorithm
CN109685860A (en) * 2019-01-10 2019-04-26 青岛浦利医疗技术有限公司 Floccule color determines method and device
CN109978780A (en) * 2019-03-12 2019-07-05 深圳市象形字科技股份有限公司 A kind of uroscopy instrument test paper image color correction method
CN109991216A (en) * 2019-03-12 2019-07-09 深圳市象形字科技股份有限公司 A kind of uroscopy instrument test strips color identification method
CN110296943A (en) * 2019-06-11 2019-10-01 苏州健康在线医疗科技股份有限公司 A kind of dry type test paper Light-Echo detection device and its detection method
CN113848186A (en) * 2021-10-15 2021-12-28 广东粤港供水有限公司 Concentration detection method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1673743A (en) * 2005-03-30 2005-09-28 中国科学院长春光学精密机械与物理研究所 Chromatic evaluating method for medical biochemical analysis
CN102759403A (en) * 2012-06-05 2012-10-31 北京林业大学 Method for quantifying color of sample
CN105319210A (en) * 2015-10-16 2016-02-10 长春孚宗科技股份有限公司 Urine analysis method
CN106991679A (en) * 2017-03-16 2017-07-28 四川大学 One kind quantifies recognition methods based on cloud platform urine test paper physical signs
JP2017167055A (en) * 2016-03-17 2017-09-21 住友ゴム工業株式会社 Inspection method for inspecting presence of coating of transparent coating agent in colored member, inspection apparatus of the same, and manufacturing method of colored member including the inspection method
CN107315003A (en) * 2017-06-28 2017-11-03 深圳市掌医科技有限公司 A kind of urine test paper reacts colour analysis method
CN107807121A (en) * 2017-10-20 2018-03-16 北京小米移动软件有限公司 The determination method and apparatus of testing result

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1673743A (en) * 2005-03-30 2005-09-28 中国科学院长春光学精密机械与物理研究所 Chromatic evaluating method for medical biochemical analysis
CN102759403A (en) * 2012-06-05 2012-10-31 北京林业大学 Method for quantifying color of sample
CN105319210A (en) * 2015-10-16 2016-02-10 长春孚宗科技股份有限公司 Urine analysis method
JP2017167055A (en) * 2016-03-17 2017-09-21 住友ゴム工業株式会社 Inspection method for inspecting presence of coating of transparent coating agent in colored member, inspection apparatus of the same, and manufacturing method of colored member including the inspection method
CN106991679A (en) * 2017-03-16 2017-07-28 四川大学 One kind quantifies recognition methods based on cloud platform urine test paper physical signs
CN107315003A (en) * 2017-06-28 2017-11-03 深圳市掌医科技有限公司 A kind of urine test paper reacts colour analysis method
CN107807121A (en) * 2017-10-20 2018-03-16 北京小米移动软件有限公司 The determination method and apparatus of testing result

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109557093A (en) * 2018-12-18 2019-04-02 无锡益诺华科技发展有限公司 A kind of urine detection test paper color measuring algorithm
CN109685860A (en) * 2019-01-10 2019-04-26 青岛浦利医疗技术有限公司 Floccule color determines method and device
CN109685860B (en) * 2019-01-10 2020-12-01 青岛浦利医疗技术有限公司 Floccule color determination method and device
CN109978780A (en) * 2019-03-12 2019-07-05 深圳市象形字科技股份有限公司 A kind of uroscopy instrument test paper image color correction method
CN109991216A (en) * 2019-03-12 2019-07-09 深圳市象形字科技股份有限公司 A kind of uroscopy instrument test strips color identification method
CN110296943A (en) * 2019-06-11 2019-10-01 苏州健康在线医疗科技股份有限公司 A kind of dry type test paper Light-Echo detection device and its detection method
CN113848186A (en) * 2021-10-15 2021-12-28 广东粤港供水有限公司 Concentration detection method and related equipment

Also Published As

Publication number Publication date
CN108593645B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN108593645A (en) A kind of testing result of Urine test paper determines method and determining device
KR101000623B1 (en) Method for detecting and correcting chromatic aberration, and image processing apparatus and method using the same
CN108961345B (en) Method and device for determining effective color in urine test paper
WO2015035744A1 (en) Image processing method
TWI468670B (en) Apparatus and methods for setting up optical inspection parameters
US9064178B2 (en) Edge detection apparatus, program and method for edge detection
CN106126255B (en) The method of adjustment and device of the background colour of the title of picture plate
CN110049319B (en) Camera definition detection method and definition detection graphic card
CN105913460A (en) Skin color detection method and device
CN106662484B (en) Optical camera brightness detected value and colorimetric detection value calibration method and device
CN111553905A (en) Image detection method, device, apparatus and storage medium
JP6402036B2 (en) Measuring method of area ratio
CN109685794A (en) For mobile phone screen defects detection camera adaptive step DPC algorithm and device
WO2017080295A1 (en) Element positioning method and system
CN115205288B (en) Industrial defect detection method and device
JP2008051558A (en) Visual inspection method and device
JP2005283197A (en) Detecting method and system for streak defect of screen
CN110136619A (en) Failure detection method, device, the method for quality control of display panel
CN113848044B (en) Method for detecting brightness and chrominance consistency of display screen
JP2005309651A (en) Shading processor and shading processing method for imaging element and imaging device
CN108805852A (en) A kind of appraisal procedure and device of image spatial noise
TWI414768B (en) Detecting method and system for 3d micro-retardation film
JP2005252451A (en) Image quality inspection method and image quality inspection apparatus
CN113989272A (en) Automatic cigarette packing box color difference detection method based on machine vision
CN112465780A (en) Method and device for monitoring abnormal film thickness of insulating layer

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
GR01 Patent grant
GR01 Patent grant