A water drop angle measuring method, device and system
By using image processing and rotating the sample solution, the influence of solid surface roughness on the water droplet angle measurement was resolved, resulting in more accurate water droplet angle measurement results.
Patent Information
- Application Number
- CN202310582936.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-23
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2043-05-23
AI Technical Summary
In the existing technology, due to the surface roughness of the solid sample or the instability of the dropping process, the water droplet angle measuring instrument cannot accurately measure the water droplet angle, and the measurement results are biased.
Image processing methods are used to determine whether the test solution is symmetrical, and if necessary, the sample and test solution are rotated at a certain angle to acquire multiple images to calculate the mean or determine the maximum and minimum values of the water droplet angle, thus overcoming the influence of solid surface roughness.
It improves the accuracy of water droplet angle measurement and reduces the fluctuation of measurement results.
Smart Images

Figure CN116577243B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of test measurement and image processing, in particular to a water droplet angle measurement method, device and system. BACKGROUND
[0002] The contact angle, also known as the water droplet angle, is the angle between the tangent of the liquid surface and the solid surface at the intersection of the solid, liquid and gas phases. The water droplet angle is related to the physical and chemical properties of the liquid and can directly represent the wettability of the liquid to the solid, the surface and interfacial tension of the liquid, etc.
[0003] The water droplet angle measurement instrument is used to measure the water droplet angle. The basic principle of the water droplet angle measurement instrument is to drop the test liquid onto the solid sample, provide light as backlight on one side of the test liquid, and set up an image acquisition device on the other side of the test liquid. After the image acquisition device acquires the image of the test liquid, the water droplet angle is calculated through image analysis.
[0004] In the prior art, after the test liquid is dropped onto the solid sample, due to the roughness of the solid sample surface or unstable dropping process, etc., the test liquid on the solid sample is prone to be in a non-circular state, so that the camera cannot accurately face the center of the test liquid, resulting in deviation of the calculated water droplet angle. SUMMARY
[0005] Therefore, it is necessary to provide a water droplet angle measurement method, device and system to solve the above problems.
[0006] The present application embodiment is implemented as follows. A water droplet angle measurement method comprises:
[0007] dropping a test liquid onto a test sample, turning on a light source on one side of the test liquid;
[0008] turning on a camera on the other side of the test liquid, and acquiring a first image of the test liquid;
[0009] first determining whether the test liquid is left-right symmetrical from the first image;
[0010] if the first determination result is that the test liquid is left-right symmetrical, rotating the test sample and the test liquid by a set angle, acquiring a second image of the test liquid, and second determining whether the test liquid is left-right symmetrical from the second image;
[0011] if the second determination result is that the test liquid is left-right symmetrical, drawing a tangent of the test liquid from the intersection of the solid-liquid-gas three phases in the first image and the second image respectively, obtaining four water droplet angles from the angle between the tangent and the test sample plane, and obtaining a water droplet angle measurement value from the average of the four water droplet angles;
[0012] If the result of the first or second judgment is that the test solution is not left-right symmetrical, the maximum value and the minimum value of the water drop angle are determined by controlling the rotation angle of the test sample and the test solution, and the measured maximum value and minimum value are output.
[0013] In one embodiment, the present application provides a water drop angle measuring device, which comprises:
[0014] A test solution dropping module is configured to drop the test solution to the test sample and turn on a light source on one side of the test solution.
[0015] A collection module is configured to turn on a camera on the other side of the test solution and collect a first image of the test solution.
[0016] A first judgment module is configured to judge whether the test solution is left-right symmetrical from the first image.
[0017] A second judgment module is configured to, if the result of the first judgment is that the test solution is left-right symmetrical, rotate the test sample and the test solution by a set angle, collect a second image of the test solution, and judge whether the test solution is left-right symmetrical from the second image.
[0018] A mean value measuring module is configured to, if the result of the second judgment is that the test solution is left-right symmetrical, draw a tangent line of the test solution from a solid-liquid-gas three-phase intersection point in the first image and the second image, respectively, obtain four water drop angles from the included angle between the tangent line and the test sample plane, and obtain a water drop angle measurement value from the mean value of the four water drop angles.
[0019] A range measuring module is configured to, if the result of the first or second judgment is that the test solution is not left-right symmetrical, determine the maximum value and the minimum value of the water drop angle by controlling the rotation angle of the test sample and the test solution, and output the measured maximum value and minimum value.
[0020] In one embodiment, the present application provides a water drop angle measuring system, which comprises:
[0021] A water drop angle measuring instrument is configured to place the test sample, drop the test solution, and collect images; and
[0022] An image processing device is in communication with the water drop angle measuring instrument and is configured to acquire the images collected by the water drop angle measuring instrument and execute the water drop angle measuring method of the present application.
[0023] The water drop angle measuring method provided by the present application uses image processing to identify whether the test solution is affected by the solid surface to form a non-circular state, and uses different measurement methods according to the identification result to obtain the water drop angle of the test solution in different forms, thereby overcoming the problem that the single result measured by the prior art is greatly affected by the roughness of the solid surface and the measurement result fluctuates greatly, and improving the accuracy of water drop angle measurement. BRIEF DESCRIPTION OF DRAWINGS
[0024] Figure 1 Flow chart of water drop angle measurement method provided for an embodiment;
[0025] Figure 2 Image collected in water drop angle measurement process provided for an embodiment;
[0026] Figure 3 Schematic diagram of vertical line position of top center of test solution in an embodiment;
[0027] Figure 4 Schematic diagram of vertical line position of top center of test solution in an embodiment;
[0028] Figure 5 Block diagram of water drop angle measurement device provided for an embodiment;
[0029] Figure 6 Structural diagram of water drop angle measurement system provided for an embodiment;
[0030] Figure 7 Internal structural block diagram of image processing device provided for an embodiment. DETAILED DESCRIPTION
[0031] In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0032] It can be understood that the terms "first", "second", etc. used in the present application can be used herein to describe various elements, but unless specifically stated, these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first xx script can be referred to as the second xx script, and similarly, the second xx script can be referred to as the first xx script.
[0033] As shown in Figure 1 In one embodiment, a water drop angle measurement method is provided, which can specifically include the following steps:
[0034] Step S100, adding test solution to test sample, and turning on light source on one side of test solution;
[0035] Step S200, turning on camera on the other side of test solution, and collecting first image of test solution;
[0036] Step S300, judging whether test solution is left-right symmetrical for the first time from the first image;
[0037] Step S400, if the result of the first judgment is that the test solution is left-right symmetrical, rotating the test sample and the test solution by a set angle, collecting a second image of the test solution, and judging whether the test solution is left-right symmetrical from the second image for the second time;
[0038] Step S500, if the result of the second judgment is that the test solution is left-right symmetrical, drawing a tangent of the test solution from the solid-liquid-gas three-phase intersection points in the first image and the second image respectively, obtaining four water drop angles from the included angle between the tangent and the test sample plane, and obtaining a water drop angle measurement value from the average of the four water drop angles;
[0039] Step S600, if the result of the first or second judgment is that the test solution is not left-right symmetrical, determining the maximum value and the minimum value of the water drop angle by controlling the rotation angle of the test sample and the test solution, and outputting the measured maximum value and minimum value.
[0040] In the embodiment, during testing, the test sample is made into a flat plate and placed on a platform, and the test solution is added to the test sample by a set volume or mass by the injection unit of the water drop angle measuring instrument. The liquid phase tangent made at the solid-liquid-gas intersection can be used to obtain the water drop angle from the included angle between the tangent and the solid-gas boundary. In the embodiment, the test sample is placed flat, and a plate-shaped light source is arranged on one side (for example, the right side) of the test sample, which can be used as the background of the photographed image. In the embodiment, the camera is arranged on the other side (for example, the left side) of the test sample. Preferably, the center of the camera, the center of the test solution, and the center of the light source are located on the same straight line. The up, down, left, and right of the camera and the direction thereof can be adjusted, so that a better viewing angle can be obtained.
[0041] In the embodiment, the identification processing of the first image can be used to judge whether the water drop formed by the test solution is left-right symmetrical. After the test solution is added to the test sample, a water drop is formed on the test sample. If the test sample surface is absolutely smooth, theoretically, the test solution will form a circular water drop (from the perspective). However, if the test sample surface is rough, the test solution may form an irregular shape such as an ellipse, and the water drop angles measured at different contact positions of the test solution and the test sample will be different. Figure 2 The schematic diagram of the first image or the second image is given.
[0042] In the embodiment, when the judgment result of the first image is that the test solution is left-right symmetrical, the test sample and the test solution are rotated together by a set angle, the test solution is image collected from another perspective, and whether the test solution is left-right symmetrical is judged again. This is to prevent the problem that the image photographed from the major axis or the minor axis of the ellipse cannot truly reflect whether the test solution is a true circle in the elliptical state. In the embodiment, the set angle here can be selected as 45 degrees, 120 degrees, 150 degrees, etc., but cannot be 90 degrees and an integer multiple of 90 degrees.
[0043] In the embodiment, the sample and the test solution are rotated by a set angle, and then a second image of the test solution is collected again, and the left-right symmetry of the second image is judged to finally determine whether the test solution is circular. For the case that the test solution is circular, two water drop angles can be obtained from the first image and the second image respectively, and a total of four water drop angles are obtained, and the final measurement result can be obtained from the mean value of the four water drop angles; and when the results of the first time or the second time are both asymmetric, the maximum value and the minimum value of the water drop angle can be obtained by measurement.
[0044] The water drop angle measurement method provided by the application can identify whether the test solution is affected by the solid surface to form a non-circular state, and different measurement methods are used according to the identification result to obtain the water drop angle of the test solution in different forms, thereby overcoming the problem that the single result obtained by the prior art is greatly affected by the roughness of the solid surface and the measurement result fluctuates greatly, and improving the accuracy of the water drop angle measurement.
[0045] As an optional embodiment of the application, judging whether the test solution is left-right symmetric includes:
[0046] The size of the first water drop angle and the second water drop angle is determined from the first image or the second image;
[0047] It is judged whether the deviation of the first water drop angle and the second water drop angle is less than a first set threshold value, and if not, it is judged that the test solution is not left-right symmetric;
[0048] If yes, it is judged whether the first water drop angle and the second water drop angle are symmetric about the center line of the test solution, and if the first water drop angle and the second water drop angle are symmetric about the center line of the test solution, it is judged that the test solution is left-right symmetric, and if the first water drop angle and the second water drop angle are not symmetric about the center line of the test solution, it is judged that the test solution is not left-right symmetric.
[0049] In the embodiment, the above-mentioned method for judging whether the test solution is left-right symmetric is applicable to both the first image and the second image, and the embodiment is described by taking the first image as an example.
[0050] In the embodiment, the first water drop angle and the second water drop angle can be obtained from the first image, and the first water drop angle herein refers to the water drop angle formed on the left side of the test solution in the first image, and the second water drop angle refers to the water drop angle formed on the right side of the test solution in the first image.
[0051] In the embodiment, the deviation of the first water drop angle and the second water drop angle is equal to the ratio of the absolute value of the difference between the two angles to the larger one or one of the angles, the first set threshold value is related to the tested sample and the test solution, and is determined according to the required measurement accuracy, and is usually between 0.1 and 0.2.
[0052] As an optional embodiment of the present application, the determination of the size of the first water drop angle and the second water drop angle from the first image or the second image comprises:
[0053] Selecting the leftmost column of pixels in the first image or the second image, calculating the pixel difference between the two adjacent pixels from top to bottom in the selected pixel column, and determining the two adjacent pixels with the maximum pixel difference as the gas-solid interface pixels;
[0054] Calculating the pixel difference between the two adjacent pixels of the right adjacent pixel of the obtained gas-solid interface pixels, and determining the two adjacent pixels with the maximum pixel difference;
[0055] In the above step, judging whether the adjacent pixels of the two adjacent pixels with the maximum pixel difference are of three different color values, and if not, repeating the above step;
[0056] If yes, drawing a test solution tangent line with the pixel with the three different color values as the first corner point, and obtaining the first water drop angle from the included angle between the drawn tangent line and the gas-solid interface line;
[0057] Selecting the rightmost column of pixels in the first image or the second image, calculating the pixel difference between the two adjacent pixels from top to bottom in the selected pixel column, and determining the two adjacent pixels with the maximum pixel difference as the gas-solid interface pixels;
[0058] Calculating the pixel difference between the two adjacent pixels of the left adjacent pixel of the obtained gas-solid interface pixels, and determining the two adjacent pixels with the maximum pixel difference;
[0059] In the above step, judging whether the adjacent pixels of the two adjacent pixels with the maximum pixel difference are of three different color values, and if not, repeating the above step;
[0060] If yes, drawing a test solution tangent line with the pixel with the three different color values as the second corner point, and obtaining the second water drop angle from the included angle between the drawn tangent line and the gas-solid interface line.
[0061] In the present embodiment, the pixel difference refers to the difference in pixel value; in the RGB mode, the pixel value is divided into three channels, in the present application, the image can be converted into a gray image for processing, or the mean value or the sum of the three channel pixel values can be directly used for calculation, of course, each channel can also be calculated separately, and the mean value of the calculation results is taken as the pixel difference, these are specific methods that can be selected, and the present application does not make specific limitations on the selected method.
[0062] In the embodiment, the gas-solid interface pixel refers to two adjacent pixels with the maximum pixel difference in the selected column. The left adjacent pixel of the gas-solid interface pixel refers to the pixel adjacent to the left side line or the corner point of the gas-solid interface pixel, which shares the left side line and the corner point with the gas-solid interface pixel, but does not include the pixel directly above and directly below the gas-solid interface pixel. Theoretically, the gas-solid interface line is a horizontal line, but due to the roughness of the sample surface, the gas-solid interface line is not a straight line in the pixel level view. The gas-solid interface line can be extended by calculating the pixel difference of the upper and lower two adjacent pixels of the right adjacent pixel, and all the pixels constituting the gas-solid interface line can be found.
[0063] In the embodiment, for each found gas-solid interface pixel, it is judged whether all adjacent pixels (pixels sharing edges or corner points) of the pixel have three different color values, which correspond to the gas-liquid-solid three phases. For a color image, the color value can be represented by the RGB three-channel value, and only when the three-channel values are equal, it is considered that two colors are the same. For a grayscale image, the equality of the grayscale values can be directly determined.
[0064] In the embodiment, it can be understood that the above process is described by taking the determination process of the first water drop angle as an example. For the determination process of the second water drop angle, reference can be made to the above content, and the difference is only that the direction is inconsistent. The processing of the pixels in the determination process of the first water drop angle is from the left side to the right side of the image, and the processing of the pixels in the determination process of the second water drop angle is from the right side to the left side of the image. Of course, the processing direction of the pixels in the determination process of the first water drop angle and the second water drop angle can also be interchanged.
[0065] As an optional embodiment of the present application, the tangent line of the test solution specifically includes the following steps:
[0066] A ray is generated with the corner point as the origin. When the corner point is the first corner point, the generated ray is horizontal to the left. When the corner point is the second corner point, the generated ray is horizontal to the right.
[0067] The generated ray is rotated upward around the corner point. The difference between the two adjacent pixels through which the ray passes is calculated. It is judged whether the obtained difference is less than a second set threshold.
[0068] If the obtained difference is less than the second set threshold, the ray continues to rotate, otherwise the ray stops rotating to obtain the tangent line of the test solution.
[0069] In the embodiment, the corner point herein includes the first corner point and the second corner point. In the embodiment, the difference from the foregoing embodiment is that the adjacent pixels refer to the two pixels through which the ray passes in sequence in the direction of the ray, which is not equal to the two pixels adjacent to the upper and lower or the left and right.
[0070] In the embodiment, the calculation of the pixel difference can refer to the description of the related embodiments, which will not be repeated here. In the embodiment, the second set threshold value is different according to the calculation method of the pixel difference. When the sum of the RGB three channel values is used for calculation, the second set threshold value is larger, and when the gray value or the average value of the RGB three channel values is used for calculation, the second set threshold value is smaller. In the embodiment, the second set threshold value can be set to 0.05-0.15 of the optional maximum value. The optional maximum value is different according to the different calculation methods of the pixel difference. For example, when the sum of the RGB three channel values is used for calculation, the maximum optional value is 765, when the gray value is used for calculation, the maximum optional value is 255, and when the average value of the RGB three channel values is used for calculation, the maximum optional value is also 255.
[0071] As an optional embodiment of the application, the gas-solid interface is determined by a horizontal straight line fitted by the center points of all the gas-solid interface pixels on the same side.
[0072] In the embodiment, the lower left corner point of the image is used as the coordinate origin. It can be known that the equation of the horizontal straight line is y=b. The value of b can be obtained by calculating , thereby obtaining the fitted horizontal straight line. In the formula, y i is the height of the center point of each gas-solid interface pixel, and m is the number of the gas-solid interface pixels.
[0073] As an optional embodiment of the application, the judgment of whether the first water drop angle and the second water drop angle are symmetric about the center line of the test liquid comprises:
[0074] A line segment is obtained by connecting the corner point of the first water drop angle and the corner point of the second water drop angle;
[0075] A vertical line is drawn through the midpoint of the line segment;
[0076] From top to bottom, the pixel difference of two adjacent pixels through which the vertical line passes is calculated, and whether the obtained pixel difference is greater than a third set threshold value is judged;
[0077] If the obtained pixel difference is greater than the third set threshold value, the pixel with a larger pixel value is a gas-liquid interface pixel;
[0078] Whether the heights of the gas-liquid interface pixels on both sides of the vertical line relative to the bottom of the image are the same and the maximum value is judged. If not, the first water drop angle and the second water drop angle are not symmetric about the center line of the test liquid;
[0079] If yes, whether the number of the gas-liquid interface pixels with the same height on both sides of the vertical line is the same is judged. If the same, the first water drop angle and the second water drop angle are symmetric about the center line of the test liquid.
[0080] In the embodiment, from top to bottom, the vertical line passes through the top arc of the test solution, i.e. the gas-liquid interface line. The gas-liquid interface pixel can be identified by calculating the pixel difference between the two pixels adjacent to the pixel through which the vertical line passes. The vertical line passes through the gas-liquid interface pixel in two situations. In the first situation, the vertical line passes through the inside of the gas-liquid interface pixel. In this case, the gas-liquid interface pixels on both sides of the vertical line refer to the two gas-liquid interface pixels on the left and right sides of the vertical line. In the second situation, the vertical line passes through the pixel edge of the gas-liquid interface pixel. In this case, there is one gas-liquid interface pixel on the left side and one on the right side of the vertical line. In this case, the gas-liquid interface pixels on both sides of the vertical line refer to the two pixels on the left and right sides of the vertical line.
[0081] In the embodiment, after identifying one or two gas-liquid interface pixels, it is determined whether the distances of the two gas-liquid interface pixels from the bottom edge of the image are equal. If they are equal, the two pixels are on the same horizontal line and can be the center of the top edge of the liquid phase. If they are not equal, the position is not the center of the top edge of the liquid phase. On this basis, it is further determined whether the number of pixels with the maximum height (relative to the bottom edge of the image) on both sides of the vertical line is equal. If they are equal, the position through which the vertical line passes is the center of the top edge of the liquid phase. Otherwise, it is not the center of the top edge of the liquid phase. When the vertical line passes through the center of the top edge of the liquid phase, the first water drop angle and the second water drop angle are symmetrical about the center of the test solution. The process of the embodiment can distinguish between the two situations shown in FIGS. 1 and 2, thereby accurately finding the center of the top edge of the test solution. Figure 3 、 Figure 4
[0082] In the embodiment, the third set threshold can be set with reference to the first set threshold. The calculation method of the pixel difference is related to the embodiment, which will not be described herein.
[0083] As an optional embodiment of the application, the method for determining the maximum and minimum values of the water drop angle by controlling the rotation angle of the test sample and the test solution comprises the following steps.
[0084] Determining the size of the water drop angle on both sides of the test solution, rotating the test sample and the test solution by an angle A / n;
[0085] Determining the size of the water drop angle on both sides of the test solution again, and determining whether the larger water drop angle obtained in the previous measurement is increased;
[0086] If yes, increasing n and repeating the above steps until the larger water drop angle is no longer increased. If no, rotating the test sample and the test solution by an angle A / n in the opposite direction and repeating the above steps until the larger water drop angle is no longer increased.
[0087] Outputting the obtained maximum value of the water drop angle;
[0088] Resetting the test sample and the test solution, and rotating the test sample and the test solution by an angle A / n in the opposite direction.
[0089] Again determine the size of the water drop angle of both sides, determine whether the smaller water drop angle obtained by the previous measurement is reduced;
[0090] If yes, increase n and repeat the above steps until the smaller water drop angle obtained is no longer reduced, if not, reverse the rotation angle A / n of the sample and the test solution and repeat the above steps until the smaller water drop angle obtained is no longer reduced;
[0091] Output the minimum value of the water drop angle obtained;
[0092] Wherein: A is a preset angle value; n is the number of times of rotation of the sample and the test solution.
[0093] In this embodiment, the way to determine the size of the water drop angle is to use images and identify the images. The specific implementation has been given in the foregoing related embodiments of the present application, which will not be repeated here.
[0094] In this embodiment, by the above-mentioned manner, the angle adjustment range can be gradually reduced, so that the maximum and minimum values of the water drop angle can be gradually found within the adjustable precision range. In this embodiment, it can be understood that when A / n is less than or equal to the minimum value of the angle adjustment of the water drop angle measuring instrument, the minimum adjustment value of the water drop angle measuring instrument is used as the step adjustment value.
[0095] As an optional embodiment of the present application, in the first image and the second image, the solid, gas and liquid phases all have different colors.
[0096] In this embodiment, the test solution can be added with a color agent to have a specific color; the color of the gas phase is determined by the light source for shooting, and the color of the gas phase in the image can be changed by changing the color of the light source; and the solid phase is usually black by default. By setting the solid, gas and liquid phases to different colors, the recognition accuracy can be improved.
[0097] As Figure 5 shown, the embodiment of the present application further provides a water drop angle measuring device, which comprises the water drop angle measuring device comprising:
[0098] A test solution dropping module for dropping the test solution to the sample and turning on the light source on one side of the test solution;
[0099] A collection module for turning on the camera on the other side of the test solution and collecting the first image of the test solution;
[0100] A first judgment module for judging whether the test solution is left-right symmetrical for the first time according to the first image;
[0101] a second judging module, configured to, if the result of the first judging is that the test solution is left-right symmetrical, rotate the test sample and the test solution by a set angle, and collect a second image of the test solution, and secondly judge whether the test solution is left-right symmetrical according to the second image;
[0102] a mean value measuring module, configured to, if the result of the second judging is that the test solution is left-right symmetrical, draw a tangent line of the test solution from the solid-liquid-gas three-phase intersection point in the first image and the second image respectively, obtain four water drop angles from the included angle between the tangent line and the test sample plane, and obtain a water drop angle measurement value from the mean value of the four water drop angles;
[0103] a range measuring module, configured to, if the result of the first or the second judging is that the test solution is left-right asymmetrical, determine the maximum value and the minimum value of the water drop angle by controlling the rotation angle of the test sample and the test solution, and output the measured maximum value and minimum value.
[0104] In the embodiment, the device is modularized for each step of the method part of the application, and the specific explanation of each module is described in the method part of the application, which will not be repeated here.
[0105] As shown in Figure 6 , the embodiment of the application further provides a water drop angle measuring system, which comprises the water drop angle measuring system comprising:
[0106] a water drop angle measuring instrument, configured to place the test sample, drop the test solution, and collect images; and
[0107] an image processing device, which is in communication with the water drop angle measuring instrument, configured to acquire the images collected by the water drop angle measuring instrument and execute the water drop angle measuring method according to any one of the embodiments of the application.
[0108] In the embodiment, the water drop angle measuring instrument is an existing device, and the application utilizes the hardware device of the water drop angle measuring instrument to improve the processing method of the image processing part, so as to identify whether the test solution is affected by the solid surface to form a non-circular state, and to obtain the water drop angle of the test solution in different forms according to the identification result, thereby overcoming the problem that the single result obtained by the prior art is greatly affected by the roughness of the solid surface and the measurement result fluctuates greatly, and improving the accuracy of the water drop angle measurement.
[0109] Figure 7 shows the internal structure diagram of the image processing device in an embodiment. As Figure 7As shown, the image processing device includes a processor, a memory, a network interface, an input device, and a display screen connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the water droplet angle measurement method provided in this embodiment of the invention. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the water droplet angle measurement method provided in this embodiment of the invention. The display screen of the image processing device can be a liquid crystal display screen or an electronic ink display screen. The input device of the image processing device can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad provided on the casing of the image processing device, or an external keyboard, touchpad, or mouse, etc.
[0110] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the image processing apparatus to which the present invention is applied. A specific image processing apparatus may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0111] In one embodiment, the water droplet angle measuring device provided by this invention can be implemented as a computer program, and the computer program can be implemented as follows: Figure 7 The image processing device shown operates on this device. The memory of the image processing device can store the various program modules that make up the water droplet angle measuring device, for example, Figure 6 The diagram shows a test solution addition module, a data acquisition module, a first judgment module, a second judgment module, a mean measurement module, and a range measurement module. The computer program, comprised of these modules, causes the processor to execute the steps in the water droplet angle measurement methods of the various embodiments of the present invention described in this specification.
[0112] For example, Figure 7 The image processing device shown can be used as follows Figure 6 The test solution addition module in the water droplet angle measuring device shown executes step S100; the image processing device can execute step S200 through the acquisition module; the image processing device can execute step S300 through the first judgment module; the image processing device can execute step S400 through the second judgment module; the image processing device can execute step S500 through the mean measurement module; and the image processing device can execute step S600 through the range measurement module.
[0113] In one embodiment, an image processing apparatus is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0114] adding the test solution to the sample, and turning on a light source on one side of the test solution;
[0115] turning on a camera on the other side of the test solution, and collecting a first image of the test solution;
[0116] first determining whether the test solution is left-right symmetrical from the first image;
[0117] if the first determination result is that the test solution is left-right symmetrical, rotating the sample and the test solution by a set angle, collecting a second image of the test solution, and second determining whether the test solution is left-right symmetrical from the second image;
[0118] if the second determination result is that the test solution is left-right symmetrical, drawing a tangent of the test solution from a solid-liquid-gas three-phase intersection in the first image and the second image respectively, obtaining four water drop angles from an included angle between the tangent and a plane of the sample, and obtaining a water drop angle measurement value from a mean value of the four water drop angles;
[0119] if the first or second determination result is that the test solution is left-right asymmetrical, determining a maximum value and a minimum value of the water drop angle by controlling a rotation angle of the sample and the test solution, and outputting the measured maximum value and minimum value.
[0120] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to cause the processor to implement the following steps:
[0121] adding the test solution to the sample, and turning on a light source on one side of the test solution;
[0122] turning on a camera on the other side of the test solution, and collecting a first image of the test solution;
[0123] first determining whether the test solution is left-right symmetrical from the first image;
[0124] if the first determination result is that the test solution is left-right symmetrical, rotating the sample and the test solution by a set angle, collecting a second image of the test solution, and second determining whether the test solution is left-right symmetrical from the second image;
[0125] if the second determination result is that the test solution is left-right symmetrical, drawing a tangent of the test solution from a solid-liquid-gas three-phase intersection in the first image and the second image respectively, obtaining four water drop angles from an included angle between the tangent and a plane of the sample, and obtaining a water drop angle measurement value from a mean value of the four water drop angles;
[0126] If the result of the first or second judgment is that the test solution is not asymmetric, the maximum value and the minimum value of the water drop angle are determined by controlling the rotation angle of the test sample and the test solution, and the measured maximum value and minimum value are output.
[0127] It should be understood that although each step in the flowchart of each embodiment of the present application is shown in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in each embodiment can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or sub-steps or stages of other steps.
[0128] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware, and the program can be stored in a non-volatile computer readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments of each method. Among them, any reference to memory, storage, database or other medium used in each embodiment provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0129] Each technical feature of the above-mentioned embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of each technical feature in the above-mentioned embodiments are not described, but as long as the combination of these technical features does not exist contradictory, it should be considered as the scope of the present application.
[0130] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the patent scope of the present application. It should be noted that for ordinary skilled persons in the art, without departing from the concept of the present application, several modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A water drop angle measuring method characterized by, The water drop angle measurement method comprises: Dropping a test solution to a sample, and turning on a light source on one side of the test solution; Turning on a camera on the other side of the test solution to collect a first image of the test solution; First judging whether the test solution is left-right symmetrical from the first image; If the first judging result is that the test solution is left-right symmetrical, rotating the sample and the test solution by a set angle, collecting a second image of the test solution, and second judging whether the test solution is left-right symmetrical from the second image; If the second judging result is that the test solution is left-right symmetrical, drawing a tangent of the test solution from a solid-liquid-gas three-phase intersection in the first image and the second image respectively, obtaining four water drop angles from the included angle between the tangent and the sample plane, and obtaining a water drop angle measurement value from the mean value of the four water drop angles; If the first or second judging result is that the test solution is left-right asymmetrical, determining a maximum value and a minimum value of the water drop angle by controlling the rotation angle of the sample and the test solution, and outputting the measured maximum value and minimum value; The judging whether the test solution is left-right symmetrical comprises: Determining the size of a first water drop angle and a second water drop angle from the first image or the second image; Judging whether the deviation of the first water drop angle and the second water drop angle is less than a first set threshold value, if not, judging that the test solution is left-right asymmetrical; If yes, judging whether the first water drop angle and the second water drop angle are symmetrical about the center line of the test solution, if the first water drop angle and the second water drop angle are symmetrical about the center line of the test solution, judging that the test solution is left-right symmetrical, if the first water drop angle and the second water drop angle are not symmetrical about the center line of the test solution, judging that the test solution is left-right asymmetrical; The determining the size of the first water drop angle and the second water drop angle from the first image or the second image comprises: Selecting a leftmost column of pixels of the first image or the second image, calculating the pixel difference of two adjacent pixels from top to bottom in the selected column of pixels, determining the two adjacent pixels with the maximum pixel difference as gas-solid intersection pixels; Calculating the pixel difference of two adjacent pixels of the right adjacent pixel of the obtained gas-solid intersection pixel, and determining the two adjacent pixels with the maximum pixel difference; In the above step, judging whether the adjacent pixels of the two adjacent pixels with the maximum pixel difference have three different color values, if not, repeating the above step; If yes, taking the pixel with three different color values as a first corner point to draw a tangent of the test solution, and obtaining the first water drop angle from the included angle between the drawn tangent and the gas-solid intersection line; Selecting a rightmost column of pixels of the first image or the second image, calculating the pixel difference of two adjacent pixels from top to bottom in the selected column of pixels, and determining the two adjacent pixels with the maximum pixel difference as gas-solid intersection pixels; Calculating the pixel difference of two adjacent pixels of the left adjacent pixel of the obtained gas-solid intersection pixel, and determining the two adjacent pixels with the maximum pixel difference; In the above step, judging whether the adjacent pixels of the two adjacent pixels with the maximum pixel difference have three different color values, if not, repeating the above step; If yes, taking the pixel with three different color values as a second corner point to draw a tangent of the test solution, and obtaining the second water drop angle from the included angle between the drawn tangent and the gas-solid intersection line.
2. The water drop angle measuring method according to claim 1, wherein The drawing of the tangent of the test solution specifically comprises the following steps: generating a ray with the corner point as the origin, wherein, when the corner point is the first corner point, the generated ray is horizontal to the left, and when the corner point is the second corner point, the generated ray is horizontal to the right; rotating the generated ray upward around the corner point, calculating the difference between two adjacent pixels of the pixels through which the ray passes, and judging whether the obtained difference is less than a second set threshold value; if the obtained difference is less than the second set threshold value, continuing to rotate the ray, otherwise stopping the rotation of the ray to obtain the liquid tangent line.
3. The water drop angle measuring method according to claim 1, wherein The gas-solid intersection line is determined by a horizontal straight line fitted by the center points of all gas-solid intersection pixels on the same side.
4. The water drop angle measuring method according to claim 1, wherein The judgment of whether the first water droplet corner and the second water droplet corner are symmetric about the center line of the liquid includes: connecting the corner point of the first water droplet corner and the corner point of the second water droplet corner to obtain a line segment; drawing a vertical line through the midpoint of the line segment; from top to bottom, calculating the pixel difference between two adjacent pixels of the pixels through which the vertical line passes, and judging whether the obtained pixel difference is greater than a third set threshold value; if the obtained pixel difference is greater than the third set threshold value, the pixel with a larger pixel value is a gas-liquid intersection pixel; judging whether the heights of the gas-liquid intersection pixels on both sides of the vertical line relative to the bottom of the image are the same and the values are the largest, if not, the first water droplet corner and the second water droplet corner are not symmetric about the center line of the liquid; if yes, judging whether the number of gas-liquid intersection pixels with the same height on both sides of the vertical line is the same, if the same, the first water droplet corner and the second water droplet corner are symmetric about the center line of the liquid.
5. The water drop angle measuring method according to claim 1, wherein The determination of the maximum value and the minimum value of the water droplet corner by controlling the rotation angle of the sample and the liquid includes: determining the size of the water droplet corner on both sides of the liquid, rotating the sample and the liquid by an angle A / n; determining the size of the water droplet corner on both sides again, judging whether the larger water droplet corner obtained in the previous measurement is increased; if yes, increasing n and repeating the above steps until the larger water droplet corner obtained is no longer increased, if not, rotating the sample and the liquid by an angle A / n in the opposite direction and repeating the above steps until the larger water droplet corner obtained is no longer increased; outputting the maximum value of the water droplet corner obtained; resetting the sample and the liquid, rotating the sample and the liquid by an angle A / n in the opposite direction; determining the size of the water droplet corner on both sides again, judging whether the smaller water droplet corner obtained in the previous measurement is decreased; if yes, increasing n and repeating the above steps until the smaller water droplet corner obtained is no longer decreased, if not, rotating the sample and the liquid by an angle A / n in the opposite direction and repeating the above steps until the smaller water droplet corner obtained is no longer decreased; outputting the minimum value of the water droplet corner obtained; wherein A is a preset angle value; n is the number of rotations of the sample and the liquid.
6. The water drop angle measuring method according to claim 1, wherein In the first image and the second image, the solid-gas-liquid three phases have different colors.
7. A water drop angle measuring device characterized by comprising: The water droplet corner measuring device includes: a liquid drop adding module for adding liquid to the sample and turning on the light source on the side of the liquid; a collection module for turning on the camera on the other side of the liquid and collecting the first image of the liquid; a first judgment module for judging whether the liquid is left-right symmetric for the first time from the first image; a second judgment module for rotating the sample and the liquid by a set angle if the first judgment result is that the liquid is left-right symmetric, collecting the second image of the liquid, and judging whether the liquid is left-right symmetric for the second time from the second image; The mean value measurement module is configured to, if the second judgment result is that the test solution is left-right symmetrical, draw a tangent line of the test solution from the solid-liquid-gas three-phase intersection in the first image and the second image respectively, obtain four water drop angles from the included angle between the tangent line and the test sample plane, and obtain a water drop angle measurement value from the mean value of the four water drop angles; The range measurement module is configured to, if the first or second judgment result is that the test solution is left-right asymmetrical, determine a maximum value and a minimum value of the water drop angle by controlling the rotation angle of the test sample and the test solution, and output the measured maximum value and minimum value; The judgment of whether the test solution is left-right symmetrical includes: Determining the size of the first water drop angle and the second water drop angle from the first image or the second image; Judging whether the deviation of the first water drop angle and the second water drop angle is less than a first set threshold value, if not, judging that the test solution is left-right asymmetrical; If yes, judging whether the first water drop angle and the second water drop angle are symmetrical about the center line of the test solution, if the first water drop angle and the second water drop angle are symmetrical about the center line of the test solution, judging that the test solution is left-right symmetrical, if the first water drop angle and the second water drop angle are asymmetrical about the center line of the test solution, judging that the test solution is left-right asymmetrical; The determination of the size of the first water drop angle and the second water drop angle from the first image or the second image includes: Selecting the leftmost column of pixels of the first image or the second image, calculating the pixel difference of the two adjacent pixels from top to bottom on the selected pixel column, determining the two adjacent pixels with the maximum pixel difference as the gas-solid intersection pixels; Calculating the pixel difference of the two adjacent pixels of the right adjacent pixel of the obtained gas-solid intersection pixel, and determining the two adjacent pixels with the maximum pixel difference; In the previous step, judging whether the adjacent pixels of the two adjacent pixels with the maximum pixel difference determined in the previous step have three different color values, if not, repeating the previous step; If yes, taking the pixel with three different color values as the first corner point to draw a tangent line of the test solution, and obtaining the first water drop angle from the included angle between the drawn tangent line and the gas-solid intersection line; Selecting the rightmost column of pixels of the first image or the second image, calculating the pixel difference of the two adjacent pixels from top to bottom on the selected pixel column, and determining the two adjacent pixels with the maximum pixel difference as the gas-solid intersection pixels; Calculating the pixel difference of the two adjacent pixels of the left adjacent pixel of the obtained gas-solid intersection pixel, and determining the two adjacent pixels with the maximum pixel difference; In the previous step, judging whether the adjacent pixels of the two adjacent pixels with the maximum pixel difference determined in the previous step have three different color values, if not, repeating the previous step; If yes, taking the pixel with three different color values as the second corner point to draw a tangent line of the test solution, and obtaining the second water drop angle from the included angle between the drawn tangent line and the gas-solid intersection line.
8. A water drop angle measuring system characterized by, The water drop angle measurement system includes: A water drop angle measuring instrument for placing a test sample, adding a test solution, and collecting images; and An image processing device in communication with the water drop angle measuring instrument, configured to acquire images collected by the water drop angle measuring instrument and execute the water drop angle measurement method of any one of claims 1-6.
Citation Information
Patent Citations
3D contact angle testing device and testing method
CN104914018A