Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a color sensing acid-base measuring device and method based on a molecular sieve membrane.
In order to achieve the above purpose, the invention provides the following technical scheme:
a color-sensing acid-base measuring device based on a molecular sieve membrane comprises a filtering container, a plurality of color-changing reaction tanks and a measuring device, wherein the measuring device comprises a graph acquisition unit, an image processing unit and a data storage unit;
the outer wall of the filtering container is composed of a filter screen, the outer wall of the color-changing reaction tank is composed of a molecular sieve membrane, and the plurality of color-changing reaction tanks are placed in the filtering container; different acid-base color change indicators are stored in each color change reaction tank, and the solution to be detected after being filtered by the multilayer filter screen enters all the color change reaction tanks simultaneously;
the image acquisition unit is used for acquiring the image information in the color-changing reaction tank and sending the image information to the image processing unit;
the image processing unit processes the image information, extracts the characteristic value, compares the characteristic value with a standard library, calculates the pH value of the measured liquid, and sends the final calculated value to the data storage unit for automatic storage.
Preferably, the outer wall of the filtering container is composed of at least two layers of filter screens, and the outer wall of the color-changing reaction tank is composed of at least two layers of molecular sieve membranes.
Preferably, the pore size of the filter screen is less than 1mm, and the pore size of the molecular sieve membrane is less than or equal to 5 μm.
Preferably, the acid-base color changing indicator is phenolphthalein or litmus.
Preferably, the image acquisition unit is a high-definition camera or an image sensor with flash.
The invention also aims to provide a color sensing acid-base determination method based on the molecular sieve membrane, which comprises the following steps:
step 1, placing a plurality of color-changing reaction tanks into the filtering container;
2, placing different acid-base color change indicators in different color change reaction tanks;
step 3, putting the filtering container and the built-in color-changing reaction tank into a solution to be detected;
step 4, enabling the solution to be detected to sequentially pass through a plurality of layers of filter screens, removing large-particle impurities and aggregates in the liquid to be detected through the filter screens to form primary filtered liquid, enabling the primary filtered liquid to sequentially pass through a plurality of layers of molecular sieve membranes, removing macromolecules and coarse particles through the molecular sieve membranes, enabling the remaining small particle components to form secondary filtered liquid, enabling the secondary filtered liquid to enter the color-changing reaction tank and react with different acid-base color-changing indicators in the color-changing reaction tank to change colors;
step 4, simultaneously acquiring color information in a plurality of color-changing reaction tanks through the image acquisition unit, and sending the acquired color information to the image processing unit;
step 5, the image processing unit carries out image color enhancement processing on the received image information, extracts a characteristic value and compares the characteristic value with a standard library;
and 6, calculating the pH value of the detected liquid according to the comparison result, and sending the final calculated value to the data storage unit for automatic storage.
Preferably, the image color enhancement processing on the received image information in step 5 includes preprocessing a median filter and a mean filter on the image, and then converting the RGB color space into the HSV color space.
The invention provides a color sensing acid-base determination device and method based on a molecular sieve membrane, which are based on a molecular sieve membrane technology, and adopt multi-stage molecular sieve membrane separation with different types and different structures to enable H + ions of a test liquid to enter equipment to generate color change reaction with different acid-base indicators, and a synchronous determination device can realize feasibility, accuracy, high efficiency and stability of color sensing acid-base determination; the device can be repeatedly used, the outer layer filter screen and the internal reaction tank can be replaced, the replaced equipment can be cleaned in ultrasonic oscillation and other modes, the service performance is recovered, and the measurement stability is high.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of describing technical solutions of the present invention and simplifying the description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "connected" and "connected" are to be interpreted broadly, e.g., as a fixed connection, a detachable connection, or an integral connection; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations. In the description of the present invention, unless otherwise specified, "a plurality" means two or more, and will not be described in detail herein.
Example 1
The invention provides a color sensing acid-base measuring device based on a molecular sieve membrane, which is specifically shown in figure 1 and comprises a filtering container 1, a plurality of color-changing reaction tanks 2 and a measuring device, wherein the measuring device comprises a graph acquisition unit, an image processing unit and a data storage unit;
the outer wall of the filtering container 1 is composed of a filter screen 3, the outer wall of the color-changing reaction tank 2 is composed of a molecular sieve membrane 4, and the plurality of color-changing reaction tanks 2 are arranged in the filtering container 1; different acid-base color-changing indicators are stored in each color-changing reaction tank 2, and the solution to be detected after being filtered by the multilayer filter screen 3 simultaneously enters all the color-changing reaction tanks 2; wherein, the outer wall of the filtering container 1 is composed of at least two layers of filter screens 3, and the outer wall of the color-changing reaction tank 2 is composed of at least two layers of molecular sieve membranes 4. The filter screen 3 is mainly used for preventing impurities and large-particle agglomerates of the liquid to be detected from entering the filter screen, and the aperture of the filter screen 3 is smaller than 1 mm. The molecular sieve membrane is a membrane material capable of realizing molecular sieving, has the pore diameter which is equivalent to and uniform with the size of a molecule, ion exchange performance, excellent shape-selective catalytic performance, easy modification and various types and different structures which can be selected. The molecular sieve membrane 4 has two main purposes, one is to further filter macromolecules, particles and particles in the liquid to be detected, and the other is to prevent acid-base indicator components in the color-changing reaction tank 2 from overflowing the color-changing reaction tank 2. The pore diameter of the molecular sieve membrane 4 is slightly different according to the components and actual needs of the color-changing reaction tank 2, but is less than or equal to 5 μm. In this embodiment, both the filter screen 3 and the molecular sieve membrane 4 are of a two-side structure.
Meanwhile, the image acquisition unit is used for acquiring the image information in the color-changing reaction tank 2 and sending the image information to the image processing unit;
the image processing unit processes the image information, extracts the characteristic value, compares the characteristic value with a standard library, calculates the pH value of the measured liquid, and sends the final calculated value to the data storage unit for automatic storage.
Specifically, in this embodiment, the acid-base color change indicator is phenolphthalein or litmus.
Further, in this embodiment, the image capturing unit is a high-definition camera with flash or an image sensor (such as a CCD, a CMOS, etc., and a flash provides light compensation to ensure clear image color capture).
The embodiment also provides a method for measuring color sensitivity, acid and alkali based on a molecular sieve membrane, as shown in fig. 2, comprising the following steps:
step 1, placing a plurality of color-changing reaction tanks 2 into a filtering container 1;
step 2, placing different acid-base color change indicators in different color change reaction tanks 2;
step 3, pumping the solution to be detected into a container, and then putting the filtering container 1 and the built-in color-changing reaction tank 2 into the solution to be detected;
step 4, the solution to be measured sequentially passes through a plurality of layers of filter screens 3, large-particle impurities and agglomerates in the liquid to be measured are removed through the filter screens 3 to form primary filtered liquid, the primary filtered liquid sequentially passes through a plurality of layers of molecular sieve membranes 4, macromolecules and coarse particles are removed through the molecular sieve membranes 4, the remaining small particle components form secondary filtered liquid, and the secondary filtered liquid enters the color-changing reaction tank 2 and reacts with different acid-base color-changing indicators to change color in the color-changing reaction tank 2;
step 4, simultaneously acquiring color information in the multiple color-changing reaction tanks 2 through a graphic acquisition unit, and sending the acquired color information to an image processing unit;
step 5, the image processing unit performs image color enhancement processing on the received image information, extracts a characteristic value and compares the characteristic value with a standard library (a standard acid-base reagent correction value);
and 6, calculating the pH value of the detected liquid according to the comparison result, and sending the final calculated value to a data storage unit for automatic storage.
Further, in this embodiment, the image color enhancement processing on the received image information in step 5 includes performing median filtering and mean filtering preprocessing (denoising) on the image, and then converting the RGB color space into the HSV color space. The image denoising processing adopts a median filtering method and a mean filtering method, so that the accuracy of color data is improved.
The basic principle is that the value of one point in a digital sequence or image is replaced by the median value of each point value in a neighborhood of the point, and the pixel values around the point are close to the true value, so that isolated noise points are eliminated. The method is superior to neighborhood average in that the method can inhibit noise like neighborhood average, greatly reduce edge blurring effect and is more suitable for eliminating isolated noise points of images. The basic principle is to replace the value of a point in a digital image or sequence of numbers with the median value of the values of the points in a neighborhood of the point. Let G (x, y) represent the gray value of the pixel point of the digital image, and the median filter with a filter window A can be defined as follows:
the sliding region template is usually a 3 × 3 region, a 5 × 5 region, or may be a different shape.
Then, the median-filtered image is subjected to 1 mean filtering again. The mean filtering is a typical linear filtering algorithm, and the basic principle is to replace each pixel value of three color components in an original image with a mean value, namely three color components of a current pixel point (x, y) to be processed, select a template, wherein the template consists of a plurality of pixels adjacent to the template, calculate the mean value of the three color components of all pixels in the template, and then give the mean value to 3 color components of red, yellow and green of the current pixel point (x, y) to serve as a pixel point g (x, y) of a processed image on the point.
Namely, it is
Wherein m is the total number of pixels including the current pixel included in the template.
The principle of image color space conversion is as follows:
the pictures collected by the high-definition camera are generally in an RGB color mode, namely, when the color is defined by a computer, the value ranges of the red component, the green component and the blue component (R, G, B) are 0-255, 0 represents no stimulation, and 255 represents that the stimulation reaches the maximum value. R, G, B all gave a white color when they were 255, and R, G, B all gave a black color when they were 0. The RGB model describes colors from the physical perspective, while the HSV model can quantitatively describe the visual effect of colors on human eyes, is more suitable for human naked eye judgment, and is a color system which is closest to the visual perception of human to colors. In the HSV color model, H represents Hue (Hue), S represents Saturation (Saturation), and V represents brightness (Value). As shown in fig. 3 and 4, the establishment of the color model is based on two important facts: the V component is irrelevant to the color information of the image; ② the way H and S components are color-wise closely related to humans.
The RGB tristimulus values, derived from an image, can be converted from the RGB color space to the HSV color space by the following equation:
given the values of the RGB color space (r, g, b), the (h, s, v) values transformed into the HSV space can be given by v ═ max (r, g, b), defining r ', g ', b ' as:
r′=(v′-r)/(v′-min(r,g,b))
g′=(v′-g)/(v′-min(r,g,b))
b′=(v′-b)/(v′-min(r,g,b))
then, V '/255, S ═ V ' -min (r, g, b))/V '
H=H′×60
Here, r, g, b ∈ [0, 255], H ∈ [0, 360], S ∈ [0, 1], V ∈ [0, 1 ].
In this embodiment, HSV color colorimeters of the color-changing reaction indicator standard pH solutions are preset (each indicator has a colorimeter, and each pH corresponds to the H and S components of the HSV color space of the corresponding acid-base color-changing indicator color). And obtaining the pH value closest to the standard colorimetry in the colorimeter according to the H and S components obtained after image processing.
The pH value color indicator has different pH value color distinguishing precision due to different indication ranges of different color indicators. Simultaneously, a plurality of color-changing indicators corresponding to the color scale can be used for cross confirmation, so that the measurement precision of the pH value of the measured liquid is improved.
The above-mentioned embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, and any simple modifications or equivalent substitutions of the technical solutions that can be obviously obtained by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.