CN112611723B - HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution - Google Patents

HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution Download PDF

Info

Publication number
CN112611723B
CN112611723B CN202011349518.8A CN202011349518A CN112611723B CN 112611723 B CN112611723 B CN 112611723B CN 202011349518 A CN202011349518 A CN 202011349518A CN 112611723 B CN112611723 B CN 112611723B
Authority
CN
China
Prior art keywords
solution
concentration
value
color
saturation
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.)
Active
Application number
CN202011349518.8A
Other languages
Chinese (zh)
Other versions
CN112611723A (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.)
Suzhou Institute of Biomedical Engineering and Technology of CAS
Original Assignee
Suzhou Institute of Biomedical Engineering and Technology of CAS
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 Suzhou Institute of Biomedical Engineering and Technology of CAS filed Critical Suzhou Institute of Biomedical Engineering and Technology of CAS
Priority to CN202011349518.8A priority Critical patent/CN112611723B/en
Publication of CN112611723A publication Critical patent/CN112611723A/en
Application granted granted Critical
Publication of CN112611723B publication Critical patent/CN112611723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The invention provides an HSV/HSB color space colorimetric method for determining the concentration of a monochromatic solution, which comprises the following steps of: acquiring a color image of the solution to be measured, which is acquired by the image acquisition device under the irradiation of the light source and is in a single color; acquiring brightness values and saturation values of all pixel points of the color image under an HSV/HSB model; acquiring a corresponding brightness average value and a saturation average value according to the brightness value and the saturation value of each pixel point; and indicating a color shade representation value according to the ratio of the brightness average value to the saturation average value so as to match the concentration tau of the solution to be detected. And establishing a relation between the color depth representation value of the color image of the solution to be measured and the concentration of the solution to be measured, and obtaining the brightness value and the saturation value of the color image of the solution to be measured to obtain the concentration of the solution to be measured. The method can be used for measuring the concentration of a single solution to be measured, and can also be used for measuring the concentration of a plurality of solutions to be measured simultaneously, so that high-flux quantitative analysis is realized, and the operation is simple and quick.

Description

HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution
Technical Field
The invention relates to the technical field of detection, in particular to an HSV/HSB color space colorimetric method, an HSV/HSB color space colorimetric system and a storage medium for measuring the concentration of a monochromatic solution.
Background
Colorimetric assays are methods for determining the concentration of a test substance in a colored solution by using the color of the test colored solution itself, or the color exhibited by the addition of a reagent, by observing with the eye (or by visual inspection of the colorimeter), comparing the color depth of the colored solution, or by measuring with a photoelectric colorimeter. Currently, a spectrophotometer principle is generally adopted to perform colorimetric analysis, and the concentration of a sample to be detected is analyzed by arranging a laser emitter and a receiver at two sides of a container for holding the sample to be detected and measuring the absorbance of light of a colored solution in a specific wavelength or a certain wavelength range. The method can only adopt single-phase sequential operation, can only perform point measurement, cannot perform space measurement, and when the number of samples to be detected is large, a conveying structure is required to be added to convey different samples to be detected to a detection position, so that the method is not suitable for occasions requiring high-throughput detection.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides the HSV/HSB color space colorimetric method for measuring the concentration of the monochromatic solution, which is simple to operate and can realize high-flux quantitative analysis.
In order to achieve the above object, the present invention is achieved by the following technical solutions.
The invention provides an HSV/HSB color space colorimetric method for determining the concentration of a monochromatic solution, which comprises the following steps of:
acquiring a color image of the solution to be measured, which is acquired by the image acquisition device under the irradiation of the light source and is in a single color;
acquiring brightness values and saturation values of all pixel points of the color image under an HSV/HSB model;
acquiring a corresponding brightness average value and a saturation average value according to the brightness value and the saturation value of each pixel point;
and indicating a color shade representation value according to the ratio of the brightness average value to the saturation average value so as to match the concentration tau of the solution to be detected.
Preferably, the step of obtaining the brightness value and the saturation value of each pixel point includes:
acquiring R, G, B three-channel values of each pixel point of the color image under an RGB model;
and converting according to the R, G, B three-channel value to obtain the brightness value and the saturation value of each pixel point under the HSV model.
Preferably, the concentration of the solution to be detected
Figure BDA0002800942840000021
Wherein V is the brightness average, S is the saturation average, A, C is the system associated with the particular solution to be testedThe number e is a constant and τ is the concentration.
Preferably, the method further comprises the steps of:
and obtaining a type matching library of the corresponding relation between the types of the standard liquids and the coefficient values so as to match A, C coefficient values of the concentration calculation formula when the solution to be detected is colorimetric.
Preferably, the method further comprises the steps of:
and obtaining a one-to-one matching library of different known concentration values of the monochromatic solution with the same type as the solution to be detected and the ratio of the brightness average value to the saturation average value of the corresponding color image so as to match the concentration of the solution to be detected.
Preferably, the method further comprises the steps of:
and obtaining the brightness value and the saturation value of each pixel point according to the R, G, B three-channel value of each pixel point of the target area of the image.
Preferably, when the difference of the color shades of any two pixels of the monochromatic solution is smaller than a preset threshold value, the method further comprises the steps of:
and obtaining the brightness value and the saturation value of the corresponding pixel point according to R, G, B three-channel values of the preset number of pixel points in the target area of the image.
A second object of the present invention is to provide an HSV/HSB color space colorimetric system, the system comprising:
the image acquisition module is configured to acquire a color image of the solution to be detected and record the color image as a first image;
the analysis module is configured to acquire a brightness value and a saturation value of the first image;
and a colorimetric module configured for indicating the concentration of the solution to be detected according to the ratio of the brightness average value to the saturation average value.
Preferably, the system further comprises a storage module for storing the coefficient matching library and/or the concentration matching library.
A third object of the invention is to provide a computer readable storage medium having stored thereon a computer program, characterized in that the computer program is executed by a processor for performing the method as described above.
Compared with the prior art, the invention has the beneficial effects that:
according to the HSV/HSB color space colorimetric method for measuring the concentration of the monochromatic solution, the ratio of the brightness average value to the saturation average value of the color image of the solution to be measured is used for indicating the color shade representation value of the image, the corresponding relation is established between the color shade representation value and the concentration of the solution to be measured, and the concentration of the solution to be measured can be obtained by obtaining the brightness average value and the saturation average value of the color image of the solution to be measured. The method can be used for measuring the concentration of a single solution to be measured, and can also be used for measuring the concentration of a plurality of solutions to be measured simultaneously, so that high-flux quantitative analysis is realized, and the operation is simple and quick. The adopted color comparator has simple structure and wide application range.
The foregoing description is only an overview of the present invention, and is intended to provide a better understanding of the technical means of the present invention, and is to be implemented in accordance with the contents of the specification, as follows, in accordance with the preferred embodiments of the present invention, as hereinafter described in detail with reference to the accompanying drawings. Specific embodiments of the present invention are given in detail by the following examples and the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of the steps of the HSV/HSB color space colorimetric method for determining the concentration of a monochromatic solution of the present invention;
FIG. 2 is a flowchart showing the steps of obtaining brightness values and saturation values of a color image of a solution to be measured according to the present invention;
FIG. 3 is an image of a single color solution of group 1 through group 17 of the present invention;
FIG. 4 is a graph of concentration versus shade characteristic of the monochromatic solutions of groups 1 through 17 of the present invention;
FIG. 5 is a cross-sectional view of a color comparator used in an HSV/HSB color space color comparison system according to an embodiment of the present invention.
In the figure: 1. a color comparator; 10. a sample placement section; 11. a carrier; 12. a container rack; 13 containers; 20. an image acquisition device; 30. a light emitting module; 40. a reflective assembly;
201. group 1 images; 202. group 2 images; 203. group 3 images; 204. group 4 images; 205. group 5 images; 206. group 6 images; 207. group 7 images; 208. group 8 images; 209. group 9 images; 210. group 10 images; 211. group 11 images; 212. group 12 images; 213. group 13 images; 214. group 14 images; 215. group 15 images; 216. a group 16 image; 217. group 17 images; 218. blank bits.
Detailed Description
The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses a device for practicing the invention. In the drawings, the shape and size may be exaggerated for clarity, and the same reference numerals will be used throughout the drawings to designate the same or similar components. In the following description, terms such as center, thickness, height, length, front, back, rear, left, right, top, bottom, upper, lower, etc. are based on the orientation or positional relationship shown in the drawings. In particular, "height" corresponds to the top-to-bottom dimension, "width" corresponds to the left-to-right dimension, and "depth" corresponds to the front-to-back dimension. These relative terms are for convenience of description and are not generally intended to require a particular orientation. Terms (e.g., "connected" and "attached") referring to an attachment, coupling, etc., refer to a relationship wherein these structures are directly or indirectly secured or attached to one another through intervening structures, as well as both movable or rigid attachments or relationships, unless expressly described otherwise.
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein it is to be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
Example 1
The light is an electromagnetic wave, and the mixed light composed of electromagnetic waves with different wavelengths (380-780 nm) according to a certain proportion can be decomposed into various continuous visible spectrums such as red, orange, yellow, green, cyan, blue, purple and the like through a prism. When white light passes through the solution, the solution has no color if the solution does not absorb light of various wavelengths. If the solution absorbs a portion of the wavelengths of light, the solution assumes the color of the remaining portion of the light after passing through the solution. The color of the colored solution is the complement of the color of the absorbed light. The more the absorption, the darker the color of the complementary color. The depth of the color of the colored solution is compared, essentially to the extent to which the colored solution absorbs light.
In the HSV/HSB color space of the image, H is chromaticity and color is determined; s is saturation, namely the color depth; v is brightness, i.e. luminance. According to the colors corresponding to the absorption degree of light to liquids with different concentrations, the chromaticity and the concentration of the monochromatic solution of the same substance are irrelevant, the saturation, the brightness and the concentration are relevant, the higher the concentration is, the larger the saturation value of an image is, the smaller the brightness value is, namely, the saturation value and the concentration are positively correlated, and the brightness value and the concentration are negatively correlated.
The invention provides an HSV/HSB color space colorimetric method for determining the concentration of a monochromatic solution, which is shown in figure 1 and comprises the following steps of:
s10, acquiring a color image of the solution to be measured, which is acquired by the image acquisition device under the irradiation of the light source and is in a single color; the color image refers to that each pixel value in the image is divided into R, G, B three primary color components, each primary color component directly determines the intensity of a primary color of the primary color component, and the generated color is called true color and is the actual color condition of a monochromatic solution; the image acquisition device has image generation capability, images the solution to be detected at an imaging position and generates a corresponding color image; further, the image acquisition device includes, but is not limited to, a camera, a video camera; specifically, the image acquisition device and the light-emitting module are respectively arranged at two sides of a container for holding the solution to be measured, when the concentration measurement is started, the light-emitting module emits light rays which irradiate the container for holding the solution to be measured, and the light rays are focused on an imaging plane after linear propagation, refraction or reflection, so that a color image of the solution to be measured is finally obtained; further, a partial position image of the monochromatic solution to be detected or an image of the whole monochromatic solution or an image including a container containing the monochromatic solution can be acquired as an image acquisition area as required;
s20, acquiring brightness values and saturation values of all pixel points of the color image under an HSV/HSB model; saturation S represents the degree to which a color approximates a spectral color; a color can be seen as the result of a certain spectral color being mixed with white, wherein the greater the proportion of spectral color, the higher the degree to which the color is close to the spectral color, and the higher the saturation of the color; the saturation is high, and the color is deep and bright; the white light component of the spectral color is 0, and the saturation reaches the highest; the value range is usually 0-100%, and the larger the value is, the more saturated the color is; brightness represents the degree to which a color is bright, and for a light source color, the brightness value is related to the luminance of the illuminant; for object colors, this value is related to the transmittance or reflectance of the object, typically ranging from 0% (black) to 100% (white);
s30, acquiring a corresponding brightness average value and a saturation average value according to the brightness value and the saturation value of each pixel point;
and S40, indicating a color shade representation value according to the ratio of the brightness average value to the saturation average value so as to match the concentration tau of the solution to be detected. The brightness value represents the brightness of the pixel point of the collected image, the saturation value represents the color shade, the color type is determined for the same single-color solution, and the brightness and the shade of the color can be changed according to the concentration change of the single-color solution; namely, the brightness value and the saturation value of the color image of the solution to be measured have a corresponding relation with the concentration of the solution to be measured. The ratio of the brightness average value to the saturation average value of the color image represents the color shade representation value of the corresponding to-be-detected monochromatic solution, and the color shade representation value of the color image changes when the concentration of the monochromatic solution changes for the same monochromatic solution. Specifically, in an embodiment, a colorimetric module is used to obtain the concentration of the solution to be measured according to the color shade characteristic value of the color image of the solution to be measured. The colorimetric module stores a concentration calculation formula, the concentration calculation formula consists of coefficients, constants, brightness values and saturation values, namely, the concentration of the solution to be measured can be calculated after the brightness average value and the saturation average value are obtained, the colorimetric module is convenient and fast, high in efficiency and capable of realizing high-throughput measurement, one image acquisition device can acquire images of one solution to be measured or a plurality of solutions to be measured at the same time, and the concentration of the corresponding solution to be measured can be obtained after the brightness average value and the saturation average value of the corresponding solution to be measured are obtained through the analysis module, so that the concentration detection is efficient, fast and batch.
It should be appreciated that HSB, also known as HSV, represents a color pattern. In the HSB mode, H (hues) represents hue, S (saturation) represents saturation, B (brightness) represents brightness, and the medium corresponding to the HSB mode is human eye. The brightness may be represented by B (bright nes) or V (value). In this embodiment, HSV is taken as an example, and when HSB mode is used, brightness is denoted by B.
It will be appreciated that the present invention provides the above method wherein the colour of the solution is determined by the solute and that the solution is monochrome means that the colour of the solution is single and the darker the colour of the solution the greater the concentration for the same solution. It should be appreciated that when the method of the present application performs concentration measurement on a monochromatic solution, when there are a plurality of substances affecting the color of the monochromatic solution in the monochromatic solution, the pretreatment may be performed, so that only the measured substance in the monochromatic solution may be colored, and any existing pretreatment method may be used.
In one embodiment, as shown in fig. 2, the step of obtaining the brightness value and the saturation value of each pixel point of the color image includes:
s21, acquiring R, G, B three-channel values of each pixel point of the color image under an RGB model; specifically, each pixel value of the color image is divided into R, G, B three channel values (i.e., three primary color components);
s22, obtaining the brightness value and the saturation value of each pixel point under the HSV model according to the R, G, B three-channel value. And constructing an HSV model according to the R, G, B three-channel value through the existing conversion function, and further obtaining the brightness value and the saturation value of the corresponding pixel point.
In one embodiment of the present invention, in one embodiment,
concentration of solution to be detected
Figure BDA0002800942840000071
Wherein, V is the brightness average value, S is the saturation average value, A, C is the coefficient related to the specific solution to be measured, e is a constant, and τ is the concentration. Specifically, the coefficient A, C is first obtained according to the type of the solution to be measured, and the obtained V value and S value are substituted into the concentration calculation formula, so that the concentration value can be obtained. Wherein, the ratio of V (brightness average) to S (saturation average) represents the color shade characteristic value, and the change of brightness value and saturation value represents the change of the concentration of the monochromatic solution. It should be understood that V, S in the concentration calculation formula in this embodiment represents the corresponding brightness average, saturation average.
Further, regarding the determination of the coefficient A, C, in an embodiment, the HSV/HSB color space colorimetric method for determining the concentration of a monochromatic solution provided by the invention is only used for determining the concentration of one type of monochromatic solution, acquiring a brightness average value and a saturation average value when collecting a color image of a standard solution corresponding to the type of monochromatic solution, calculating to obtain the values of the corresponding coefficients a and C, and storing the values in a storage unit. Because A, C two coefficient values need to be determined, standard liquid can be configured into a plurality of monochromatic solutions with different concentrations, corresponding color images are collected, and the concentration calculation formula is substituted by the concentration of the corresponding monochromatic solution, the brightness average value and the saturation average value of the color images, so as to determine A, C the two coefficient values.
In yet another embodiment, the HSV/HSB color space colorimetric method for determining the concentration of a monochromatic solution provided by the present invention is used for determining the concentration of a plurality of different types of monochromatic solutions, and further comprises the steps of: and obtaining a type matching library of the corresponding relation between the types of the standard liquids and the coefficient values so as to match the coefficient values of the concentration calculation formula when the solution to be detected is colorimetric. Specifically, the method comprises the following steps:
acquiring brightness average values and saturation average values of color images of a plurality of standard liquids of known types; specifically, preparing a plurality of standard liquids of different types (such as different types), configuring each standard liquid into a plurality of monochromatic solutions with different concentrations, collecting corresponding color images, and obtaining brightness average values and saturation average values of the color images;
acquiring A, C coefficient values according to a concentration calculation formula; namely, the concentration of the corresponding monochromatic solution, the brightness average value and the saturation average value of the color image are substituted into a concentration calculation formula to determine A, C coefficient values of the corresponding monochromatic solution;
and saving the types and corresponding A, C coefficient values in a storage unit to obtain a type matching library.
Further, before the colorimetric concentration measurement is performed, the A, C coefficient value of the applied concentration calculation formula is determined according to the type of the solution to be measured, specifically, the method further comprises the steps of:
and matching the type of the solution to be detected with the type matching library to obtain a corresponding concentration calculation formula. Namely, the corresponding relation between types of the monochromatic solutions of a plurality of different types and A, C coefficient values is stored in the monochromatic solution type matching library, and when the concentration of the solution to be measured is measured, the type of the solution to be measured is input, so that a specific A, C coefficient value can be obtained, and a determined concentration calculation formula is obtained. When the concentration of the same batch is measured, the solution to be measured is of the same single-color solution type, and the corresponding A, C coefficient value is obtained by matching once; when the monochromatic solutions of different monochromatic solution types are required to be measured, the measurement is carried out in batches, the detection can be carried out only by inputting the types of the solution to be measured, the method is efficient and quick, the application range is wide, and the monochromatic solution type matching library can be updated at any time so as to enlarge the range of the measuring object of the HSV/HSB color space colorimetric method.
In an embodiment, the method further comprises the steps of: and obtaining a one-to-one matching library of different known concentration values of the monochromatic solution with the same type as the solution to be detected and the ratio of the brightness average value to the saturation average value of the corresponding color image so as to match the concentration of the solution to be detected. Specifically, the method comprises the following steps:
acquiring brightness average value and saturation average value of color images of a plurality of monochromatic solutions with known concentrations; specifically, an image acquisition device is adopted to acquire color images of a plurality of known concentrations of a monochromatic solution, and an analysis module is adopted to acquire brightness average values and saturation average values of the corresponding color images;
obtaining a color depth representation value of a corresponding color image;
storing the concentration and color shade representation values of the corresponding monochromatic solution in a storage unit to obtain a concentration matching library;
the color shade representation value is the ratio of the brightness average value to the saturation average value.
Further, when the colorimetric concentration is measured, the method further comprises the steps of:
and matching the color shade representation value of the solution to be detected in the concentration matching library to obtain the concentration of the solution to be detected. Specifically, a corresponding relation is established between the concentration of the monochromatic solution and the color depth representation value (the ratio of the brightness value to the saturation value) of the color image of the monochromatic solution, when the concentration of the solution to be measured is measured, the color image of the solution to be measured is collected, the brightness average value and the saturation average value of the color image of the solution to be measured are obtained, the color depth representation value of the color image corresponding to the monochromatic solution can be obtained, and then the concentration value of the color image can be matched in a concentration matching library. The concentration of the solution to be measured is measured through two sets of calculation schemes, one is directly calculated through a concentration calculation formula to obtain the concentration of the solution to be measured, and the other is matched through a concentration matching library to obtain the concentration of the solution to be measured. Further, when the HSV/HSB color space colorimetric method is executed, the corresponding calculation scheme can be selected according to a user, and the corresponding calculation scheme can be automatically matched. When the corresponding calculation scheme is automatically matched, after the color shade representation value of the solution to be measured is obtained, matching is carried out in a concentration matching library, and when the matching result is that no matching exists, the obtained color shade representation value of the solution to be measured is directly substituted into a concentration calculation formula to calculate, so that the concentration value of the solution to be measured is obtained.
In an embodiment, the method further comprises the steps of:
and obtaining the brightness value and the saturation value of each pixel point according to the R, G, B three-channel value of each pixel point of the target area of the image. The acquisition size or the acquisition shape of the target area of the image can be adjusted according to requirements.
In still another embodiment, when the difference between the color shades of any two pixels of the monochromatic solution is smaller than a preset threshold, the method further includes the steps of:
and obtaining the brightness value and the saturation value of the corresponding pixel point according to R, G, B three-channel values of the preset number of pixel points in the target area of the image. Specifically, when the color depth difference of each part of the solution to be detected is not large, the three-channel value difference of different pixel points of the acquired image is not large, and the three-channel value of all pixel points of the target area is not required to be acquired, namely, when the color depth difference of any two pixel points is smaller than a preset threshold value, R, G, B three-channel values of a preset number of pixel points are selected.
Specifically, 17 sets of monochromatic solutions of known concentration were prepared for linear regression analysis of the monochromatic solutions. Respective color images thereof are acquired to determine A, C coefficient values according to a relationship between the color shade characteristic value of the color image of the monochromatic solution and the concentration of the monochromatic solution. As shown in fig. 3, the images formed after the single color solutions of the groups 1 to 17 are placed on the container rack 12 of the sample placement unit 10 of the color comparator 1, in one embodiment, the sample placement unit 10 is provided with twenty-one placement sites each for placing one container 13, and four blank sites 218 remain because the sample placement unit 10 places 17 groups of solutions to be tested. Group 1 to group 17 progressively darken; it should be understood that the actually acquired image is a color image, and fig. 3 is a picture obtained by performing gray scale processing on the actually acquired color image due to the requirements of the patent application document on the drawings. After the color image of the corresponding monochromatic solution is obtained, the brightness average value and the saturation average value of the color image are obtained, and the color depth characterization value (brightness average value: saturation average value) is calculated. As shown in fig. 4, the relationship between the color shade characteristic values and the densities of the 17 sets of monochromatic solutions are respectively represented by an abscissa and an ordinate. The x-axis represents the ratio of the brightness value to the saturation value, the brightness average is a numerator, and the saturation average is a denominator; the ordinate y represents the concentration; the relation between x and y is obtained as y= 0.7384e -1.79x The method comprises the steps of carrying out a first treatment on the surface of the Wherein coefficient a is equal to 0.7384; coefficient C is equal to-1.79; r is R 2 The correlation index is shown to reflect the effect of linear regression analysis, and the closer to 1 the correlation index is, the better the regression fit effect is, the higher the model fit goodness exceeding 0.8 is. Further determining a new and convenient concentration calculation formula
Figure BDA0002800942840000111
The concentration measurement can be carried out on a single solution to be measured, and the concentration measurement can also be carried out on a plurality of solutions to be measured at the same time, so that high-flux quantitative analysis is realized, and the method is quick and convenient.
The corresponding relation of the color depth characterization value and the concentration value of the 17 groups of monochromatic solutions is shown in the table one.
List one
Sequence number Concentration g/L Brightness average/saturation average
Group
1 0.5 0.233476
Group 2 0.48 0.303853
Group 3 0.46 0.293588
Group 4 0.45 0.330708
Group 5 0.43 0.329197
Group 6 0.41 0.34124
Group 7 0.4 0.340304
Group 8 0.38 0.358868
Group 9 0.36 0.388601
Group 10 0.35 0.430578
Group 11 0.33 0.390709
Group 12 0.3 0.448241
Group 13 0.26 0.506873
Group 14 0.23 0.666133
Group 15 0.2 0.657731
Group 16 0.16 0.837074
Group 17 0.13 1.046687
Example 2
The present invention provides an HSV/HSB color space colorimetric system, as shown in FIG. 5, comprising:
the image acquisition module is configured to acquire a color image of the solution to be detected and record the color image as a first image; specifically, the sample carrying part for placing the to-be-measured monochromatic solution is provided with at least one sample position, and when the concentration measurement of a plurality of to-be-measured monochromatic solutions is required to be performed simultaneously, the image acquired by the image acquisition device 20 comprises images of a plurality of to-be-measured monochromatic solutions, and is recorded as an original image; the image acquisition module divides the original image, and one sample corresponds to one image and is marked as a first image;
the analysis module is configured to acquire a brightness value and a saturation value of the first image;
and a colorimetric module configured for indicating the concentration of the solution to be detected according to the ratio of the brightness average value to the saturation average value.
The invention also provides a color comparator 1 for implementing the above system, in particular, the color comparator 1 comprising:
a sample placement section 10 configured to place a solution to be measured; specifically, the sample placement unit 10 may be fixed, and the image acquisition device 20 is matched with the position of the solution to be measured placed by the sample placement unit 10 to accurately acquire an image; the sample placement section 10 may be movable to convey the solution to be measured to a position where image collection is performed in cooperation with the image collection device 20; the sample placement part 10 comprises a carrying platform 11, the carrying platform 11 is detachably connected with a container frame 12, a container 13 for containing a solution to be tested is fixed on the container frame 12, or a containing groove for containing the container 13 is arranged on the container frame 12 so as to be convenient for replacing the solution to be tested; it should be understood that the container is transparent and colorless so as not to affect the color condition of the solution to be tested;
an image acquisition device 20 configured to acquire a color image of the solution to be measured; the image acquisition device 20 is provided with an image acquisition module;
a light emitting module 30 configured to emit light from a side of the solution to be measured facing away from the image acquisition device; the light emitting module 30 is a light plate, and further, the light plate comprises a fixed plate and a plurality of LED light beads arranged on the fixed plate, wherein the LED light beads are uniformly distributed and arranged towards the sample placement part 10 so as to emit uniform light to the sample placement part 10;
the analysis module is configured to acquire brightness values and saturation values of the color image;
and the colorimetric module is configured for indicating the concentration of the solution to be detected according to the ratio of the brightness average value to the saturation average value.
Specifically, the sample placement portion 10, the image capturing device 20, and the light emitting module 30 are disposed in a closed cavity of the box, and the inner wall of the cavity is black, so as to reduce the reflection of the light emitted by the light emitting module 30 by the inner wall of the cavity, and ensure the accuracy of the color image captured by the image capturing device 20. The sample placement part 10, the image acquisition device 20, the light-emitting module 30, the analysis module, the colorimetric module and the box form a basic structure of the color comparator 1, and are used for executing the HSV/HSB color space colorimetric system.
Further, the sample placement part is provided with a plurality of placement bits so that the image acquisition device can acquire color images of a plurality of solutions to be detected at the same time. The sample placement part can be used for placing one solution to be measured or a plurality of solutions to be measured according to the requirements so as to realize high-throughput measurement.
In an embodiment, the sample placement portion 10 and the image capturing device 20 are distributed along the light direction intensively emitted by the light emitting module 30, and when the light emitting module 30 is turned on, the image capturing device 20 captures a color image of the solution to be tested on the sample placement portion 10. In yet another embodiment, the system further comprises a reflective assembly 40; the sample placement part 10 distributes along the direction of the light rays intensively emitted by the light emitting module 30, and the light rays emitted by the light emitting module 30 pass through the solution to be detected and are reflected by the reflection assembly 40 to be emitted to the image acquisition device 20 so that the image acquisition device 20 can acquire the color image of the solution to be detected. That is, the image acquisition device 20 is located in the direction of the path changed by the light rays emitted from the light emitting module 30 through the reflecting component 40, so as to reasonably arrange the distribution of the sample placement portion 10 and the image acquisition device 20 in the box body, and facilitate the miniaturization design of the box body size.
In one embodiment, the colorimetric module sends the obtained concentration of the solution to be measured to the display module for the user to read the measured concentration value. Further, the display module may be disposed on the case of the color comparator 1, or may be disposed on a display electrically connected to the color comparator 1.
Example 3
The present invention provides a computer readable storage medium having stored thereon a computer program for execution by a processor of a method as described above. Program code to perform the method as described above is stored on a computer readable storage medium for reading and execution by a processor of a computer.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way; those skilled in the art can smoothly practice the invention as shown in the drawings and described above; however, those skilled in the art will appreciate that many modifications, adaptations, and variations of the present invention are possible in light of the above teachings without departing from the scope of the invention; meanwhile, any equivalent changes, modifications and evolution of the above embodiments according to the essential technology of the present invention still fall within the scope of the present invention.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present description are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present description may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.

Claims (8)

1. An HSV/HSB color space colorimetric method for determining the concentration of a monochromatic solution, comprising the steps of:
acquiring a color image of the solution to be measured, which is acquired by the image acquisition device under the irradiation of the light source and is in a single color;
acquiring brightness values and saturation values of all pixel points of the color image under an HSV/HSB model;
according to brightness value and saturation value of each pixel pointAcquiring a corresponding brightness average value and a saturation average value; indicating a color shade representation value according to the ratio of the brightness average value to the saturation average value so as to match the concentration tau of the solution to be detected; concentration of solution to be detected
Figure FDA0004171729970000011
Wherein V is a brightness average value, S is a saturation average value, A, C is a coefficient related to a specific solution to be detected, e is a constant, and τ is a concentration; and obtaining a type matching library of the corresponding relation between the types of the standard liquids and the coefficient values so as to match A, C coefficient values of the concentration calculation formula when the solution to be detected is colorimetric.
2. The HSV/HSB color space colorimetric method for determining a concentration of a monochromatic solution according to claim 1, wherein the step of obtaining a brightness value and a saturation value of each pixel point comprises:
acquiring R, G, B three-channel values of each pixel point of the color image under an RGB model;
and converting according to the R, G, B three-channel value to obtain the brightness value and the saturation value of each pixel point under the HSV model.
3. The HSV/HSB color space colorimetric method for determining a concentration of a monochromatic solution according to any one of claims 1-2, further comprising the step of:
and obtaining a one-to-one matching library of different known concentration values of the monochromatic solution with the same type as the solution to be detected and the ratio of the brightness average value to the saturation average value of the corresponding color image so as to match the concentration of the solution to be detected.
4. The HSV/HSB color space colorimetric method for determining a concentration of a monochromatic solution according to claim 2, further comprising the step of:
and obtaining the brightness value and the saturation value of each pixel point according to the R, G, B three-channel value of each pixel point of the target area of the image.
5. The HSV/HSB color space colorimetric method for determining a concentration of a monochromatic solution according to claim 2, further comprising the step of, when a difference in color shades of any two pixels of the monochromatic solution is smaller than a preset threshold value:
and obtaining the brightness value and the saturation value of the corresponding pixel point according to R, G, B three-channel values of the preset number of pixel points in the target area of the image.
6. An HSV/HSB color space colorimetric system configured to perform the HSV/HSB color space colorimetric method for determining a concentration of a monochromatic solution of claim 1; characterized in that the system comprises:
the image acquisition module is configured to acquire a color image of the solution to be detected and record the color image as a first image;
the analysis module is configured to acquire a brightness value and a saturation value of the first image;
and a colorimetric module configured for indicating the concentration of the solution to be detected according to the ratio of the brightness average value to the saturation average value.
7. The HSV/HSB color space colorimetric system of claim 6 further comprising a storage module for storing a coefficient match library and/or a concentration match library.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program is executed by a processor for performing the method according to any one of claims 1-5.
CN202011349518.8A 2020-11-26 2020-11-26 HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution Active CN112611723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011349518.8A CN112611723B (en) 2020-11-26 2020-11-26 HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011349518.8A CN112611723B (en) 2020-11-26 2020-11-26 HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution

Publications (2)

Publication Number Publication Date
CN112611723A CN112611723A (en) 2021-04-06
CN112611723B true CN112611723B (en) 2023-06-13

Family

ID=75225344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011349518.8A Active CN112611723B (en) 2020-11-26 2020-11-26 HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution

Country Status (1)

Country Link
CN (1) CN112611723B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540077B (en) * 2020-11-30 2022-12-06 邢台学院 Method for in-situ detection of fatty acid unsaturation degree in seeds
CN113740281A (en) * 2021-08-11 2021-12-03 同济大学 Real-time original-state nondestructive monitoring method for pollutants in high-concentration solution

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4685864B2 (en) * 2005-03-31 2011-05-18 パナソニック株式会社 Image processing method, display image processing method, image processing apparatus, image processing program, and integrated circuit including the image processing apparatus
CN105167874B (en) * 2015-07-23 2017-07-21 范翌 Oral cavity digitized colorimetric method based on digital photos and HSB color systems
CN107860766A (en) * 2017-10-24 2018-03-30 吉林大学 Dry chemical method accurate detection device and method based on color sensor
CN110110742B (en) * 2019-03-26 2021-02-12 北京达佳互联信息技术有限公司 Multi-feature fusion method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112611723A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
US10161796B1 (en) LED lighting based multispectral imaging system for color measurement
US11741729B2 (en) Full resolution color imaging of an object
JP6670327B2 (en) Gemstone color measurement
US9506855B2 (en) Method and system for analyzing a colorimetric assay
CN112611723B (en) HSV/HSB color space colorimetric method, system and storage medium for measuring concentration of monochromatic solution
CN102759403B (en) Method for quantifying color of sample
US11656178B2 (en) UV-VIS spectroscopy instrument and methods for color appearance and difference measurement
Ennis et al. Hyperspectral database of fruits and vegetables
CN107884368B (en) Optical test system and test method
JP2021515203A (en) Methods and systems for calibrating and using cameras to detect analytes in a sample
CN112964652A (en) Rapid detection device, system and detection method for solution colorimetric analysis
WO2017019762A1 (en) Image based photometry
CN112557320B (en) Image colorimetric concentration determination method, system and storage medium based on HSV/HSB
US20080260243A1 (en) Device of Analysing the Colour of a Unhomogeneous Material, Like Hair, and Method Thereof
CN112595678B (en) RGB-based image colorimetric concentration determination method, system and storage medium
JP2021113744A (en) Imaging system
US20160116410A1 (en) Apparatus and method for joint reflectance and fluorescence spectra estimation
CN206832360U (en) The closed lamp box of color measuring multi-optical spectrum imaging system based on LED illumination
CN115829954A (en) Solution concentration detection method based on image colorimetric analysis
JP7284457B2 (en) Quantum efficiency distribution acquisition method, quantum efficiency distribution display method, quantum efficiency distribution acquisition program, quantum efficiency distribution display program, spectrofluorophotometer and display device
CN214584857U (en) Rapid solution colorimetric analysis detection device and system
CN115598124B (en) Color deconvolution water quality detection method
CN214472788U (en) Color comparator for determining concentration of monochromatic solution
CN212722595U (en) Spectrum information acquisition device and identification device
Panyangam et al. RGB Color Measuringc Tool Of Simple Colorimetric Detection For High Throughput Antioxidant Capacity Assay On Well Plate

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