Material property measurement method, device and system for traditional Chinese medicine extract
By dividing the material attribute measurement process of traditional Chinese medicine extract into two stages: static and motion, combined with image processing and regression model, the problem of low efficiency in measuring material attributes of traditional Chinese medicine extract is solved, and more efficient and accurate measurement is achieved.
Patent Information
- Application Number
- CN202510510694.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-04-23
AI Technical Summary
The material properties measurement efficiency of traditional Chinese medicine extracts in the prior art is low, and different professional instruments are needed to be used for measurement, resulting in low efficiency.
The material attribute measurement process of traditional Chinese medicine extract is divided into the first measurement stage of the rest state and the second measurement stage of the motion state. The characteristic parameters of the suspended droplets and fallen droplets are obtained through image processing, and the material attributes are calculated in combination with the regression model.
It significantly improves the measurement efficiency of the material properties of traditional Chinese medicine extracts, and improves the integration of measurements, allowing more accurate evaluation of the overall characteristics of the droplets.
Smart Images

Figure CN120028326B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of material property measurement, and particularly to a method, device, and system for measuring the material properties of traditional Chinese medicine extracts. Background Art
[0002] Traditional Chinese medicine extract is a concentrated substance obtained during the extraction process of traditional Chinese medicine. It is usually made from traditional Chinese medicinal materials through extraction with water or organic solvents and then through processes such as evaporation. It is an important raw material for traditional Chinese medicine preparations (such as granule agents, tablet agents, oral liquid agents, etc.). The physical and chemical properties of traditional Chinese medicine extracts have a decisive impact on aspects such as the quality consistency, molding performance, bioavailability, and stability of subsequent preparations. Therefore, accurately controlling the various properties of traditional Chinese medicine extracts is of extremely important significance for ensuring the quality and safety of the final products.
[0003] In related technologies, different professional instruments are required to measure the various properties of traditional Chinese medicine extracts respectively, and the measurement efficiency needs to be improved. Therefore, there is an urgent need to propose a new measurement method. Summary of the Invention
[0004] This application provides a method, device, and system for measuring the material properties of traditional Chinese medicine extracts, which solves the technical problem that the measurement efficiency of the material properties of traditional Chinese medicine extracts in related technologies needs to be improved, and achieves the technical effect of efficiently measuring the material properties of traditional Chinese medicine extracts.
[0005] To achieve the above object, the main technical solutions adopted in this application include:
[0006] In a first aspect, an embodiment of this application provides a method for measuring the material properties of traditional Chinese medicine extracts, and the method includes:
[0007] Pre-divide the measurement process of a specified material property into a first measurement stage and a second measurement stage;
[0008] Obtain a reference image and a to-be-judged image obtained in the first measurement stage. If the difference between the to-be-judged image and the reference image indicates that there is no hanging liquid droplet in the to-be-judged image, determine a critical state image based on the to-be-judged image; wherein, the hanging liquid droplet hangs on a target needle tip; the hanging liquid droplet in the critical state image is in a critical state of about to break away from the target needle tip;
[0009] Calculate characteristic parameters based on the critical state image to obtain a first value of a first type of characteristic parameter of the hanging liquid droplet;
[0010] Obtain a sequence of falling liquid droplet images obtained in the second measurement stage, calculate characteristic parameters based on the sequence of falling liquid droplet images to obtain a second value of a second type of characteristic parameter of the falling liquid droplet;
[0011] Based on the first value and the second value, perform material property calculation to obtain the value of the specified material property of the Chinese medicine extract.
[0012] Optionally, the determining the critical state image based on the image to be judged includes:
[0013] Determine the previous frame image located before the image to be judged;
[0014] Determine the previous frame image as the critical state image.
[0015] Optionally, the difference situation between the image to be judged and the reference image is obtained by the following method:
[0016] Obtain the background image with the end of the target needle being empty as the reference image;
[0017] Perform image subtraction based on the reference image and the image to be judged to obtain the difference situation.
[0018] Optionally, the calculating the first value of the first type of characteristic parameters of the hanging liquid droplet based on the critical state image includes:
[0019] Perform image processing on the critical state image to obtain the contour edge curve data of the hanging liquid droplet;
[0020] Perform pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the hanging liquid droplet to obtain the first value.
[0021] Optionally, the calculating the second value of the second type of characteristic parameters of the falling liquid droplet based on the falling liquid droplet image sequence includes:
[0022] Perform image processing on each frame of the falling liquid droplet image in the falling liquid droplet image sequence to obtain the contour edge curve data of the falling liquid droplet;
[0023] Perform pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling liquid droplet to obtain the second value.
[0024] Optionally, the performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling liquid droplet to obtain the second value includes:
[0025] Calculate the centroid coordinates of the falling liquid droplet based on the contour edge curve data of the falling liquid droplet;
[0026] Determine the number of falling liquid droplets and the number of falling liquid droplets per unit time based on the number of minimum value points corresponding to the centroid coordinates.
[0027] Optionally, there is a corresponding set of regression models for the category of the traditional Chinese medicine extract; the set of regression models includes regression models corresponding to various material properties; the specified material property corresponds to a target regression model in the set of regression models; the calculating the specified material property value of the traditional Chinese medicine extract based on the first value and the second value includes:
[0028] Substituting the first value and the second value into the target regression model for calculation to obtain the value of the specified material property of the traditional Chinese medicine extract.
[0029] Optionally, the first measurement stage is pre-corresponded with the first type of characteristic parameters, and the second measurement stage is pre-corresponded with the second type of characteristic parameters;
[0030] Wherein, the first type of characteristic parameters and the second type of characteristic parameters are determined based on a correlation analysis of the extract properties and the characteristic parameters by using a preset set of characteristic parameters and a set of material properties;
[0031] The preset set of characteristic parameters includes a target contact angle, a droplet profile width, a droplet profile area, a maximum curvature of the droplet curve profile, a droplet volume, a droplet equivalent diameter, a droplet roundness, a droplet number, and a dropping speed; wherein, the target contact angle is used to characterize the angle between the hanging droplet and the target needle in the vertical direction; the dropping speed is used to characterize the number of the falling droplets per unit time; the droplet number is used to characterize the total number of droplets generated by the traditional Chinese medicine extract with a preset volume in the first measurement stage and the second measurement stage;
[0032] The set of material properties includes a viscosity coefficient, a surface tension, a pH value, a density, a bulk density, a conductivity, and a solid content.
[0033] In a second aspect, an embodiment of the present application provides a device for measuring the material properties of a traditional Chinese medicine extract, and the measuring device includes:
[0034] A chamber for containing the traditional Chinese medicine extract, and the chamber is configured with a piston and a target needle;
[0035] A shooting module for shooting the target needle and the space below the target needle;
[0036] A light source module for controlling the brightness of the field of view of the shooting module;
[0037] An electric push rod connected to the piston;
[0038] A motor, connected to the electric push rod, is used to adjust the movement speed of the electric push rod so as to control the speed of extruding the traditional Chinese medicine extract through the movement speed of the piston; the movement speed of the piston matches the shooting speed of the shooting module;
[0039] A computer device, communicatively connected to the shooting module, is used to implement the method described in any one of the above embodiments.
[0040] In a third aspect, an embodiment of the present application provides a measurement system for the material properties of a traditional Chinese medicine extract. The system includes:
[0041] A stage division module, configured to preliminarily divide the measurement process of a specified material property into a first measurement stage and a second measurement stage;
[0042] A first image acquisition module, configured to acquire a reference image and a to-be-judged image obtained in the first measurement stage. If the difference between the to-be-judged image and the reference image indicates that there is no hanging droplet in the to-be-judged image, a critical state image is determined based on the to-be-judged image; wherein, the hanging droplet hangs on a target needle tip; the hanging droplet in the critical state image is in a critical state of about to break away from the target needle tip;
[0043] A first value acquisition module, configured to perform feature parameter calculation based on the critical state image to obtain a first value of a first type of feature parameter of the hanging droplet;
[0044] A second value acquisition module, configured to acquire a falling droplet image sequence obtained in the second measurement stage, and perform feature parameter calculation based on the falling droplet image sequence to obtain a second value of a second type of feature parameter of the falling droplet;
[0045] A material property determination module, configured to perform material property calculation based on the first value and the second value to obtain the value of the specified material property of the traditional Chinese medicine extract.
[0046] In the embodiments of the present application, first, the measurement process of the specified material properties is pre-divided into a first measurement stage in which the droplet is in a static state and a second measurement stage in which the droplet is in a moving state, so that the static characteristics and dynamic characteristics of the droplet can be comprehensively analyzed, providing a suitable prerequisite for more accurately evaluating the overall characteristics of the droplet. Then, based on the reference image and the image to be judged obtained in the first measurement stage, the critical state image is determined, and the characteristic parameters are calculated based on this image, so as to more accurately obtain the first value of the first type of characteristic parameters of the hanging droplet. Next, based on the falling droplet image sequence obtained in the second measurement stage, the characteristic parameters are calculated, and the second value of the second type of characteristic parameters of the falling droplet can be obtained more quickly and accurately. Finally, the material property calculation is performed based on the first value and the second value, so as to obtain the specified material property value of the traditional Chinese medicine extract. Compared with the related art in which different professional instruments are used to measure the material properties, this method significantly improves the measurement efficiency and enhances the integration degree. Description of the Drawings
[0047] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required to be used in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0048] Figure 1 It is a flowchart of the method for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0049] Figure 2 It is a flowchart of the method for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0050] Figure 3 It is a flowchart of the method for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0051] Figure 4a It is a flowchart of the method for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0052] Figure 4b It is a schematic diagram of the characteristic parameters of the hanging droplet of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0053] Figure 5 It is a flowchart of the method for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0054] Figure 6a It is a flowchart of the method for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0055] Figure 6b A schematic diagram for counting the number of falling droplets of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0056] Figure 7 A flowchart of the method for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0057] Figure 8a A schematic diagram of the correlation chart between the material properties and characteristic parameters of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0058] Figure 8b A schematic diagram of a radar chart for analyzing the similarities and differences of traditional Chinese medicine extract samples provided by the embodiments of this specification;
[0059] Figure 9 A schematic diagram of the device for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0060] Figure 10 A schematic diagram of the system for measuring the material properties of the traditional Chinese medicine extract provided by the embodiments of this specification;
[0061] Figure 11 A schematic diagram of a computer structure provided by the embodiments of this specification. Detailed implementation manners
[0062] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some, but not all, of the embodiments of this application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0063] The physical and chemical properties of traditional Chinese medicine extracts (such as viscosity, surface tension, pH value, etc.) have a decisive impact on aspects such as the quality consistency, molding performance, bioavailability, and stability of subsequent preparations. Therefore, accurately controlling the material properties of traditional Chinese medicine extracts is of extremely important significance for ensuring the quality and safety of the final products. In related technologies, different professional instruments are required to measure the various properties of traditional Chinese medicine extracts respectively. For example, a rheometer is used for viscosity measurement, a tensiometer is used for surface tension measurement, a pH meter is used for pH value measurement, etc., resulting in low measurement efficiency.
[0064] Based on this, the present application proposes a method for measuring the material properties of traditional Chinese medicine extracts. First, the measurement process of the specified material properties is pre-divided into a first measurement stage in which the liquid droplet is in a static state and a second measurement stage in which the liquid droplet is in a moving state, so as to comprehensively analyze the static and dynamic characteristics of the liquid droplet and provide a suitable prerequisite for more accurately evaluating the overall characteristics of the liquid droplet. Then, based on the reference image and the image to be judged obtained in the first measurement stage, the critical state image is determined, and the characteristic parameters are calculated based on this image, so as to more accurately obtain the first value of the first type of characteristic parameters of the static hanging liquid droplet. Next, the characteristic parameters are calculated based on the falling liquid droplet image sequence obtained in the second measurement stage, and the second value of the second type of characteristic parameters of the falling liquid droplet can be obtained more quickly and accurately. Finally, the material properties are calculated based on the first value and the second value, so as to obtain the specified material property value of the traditional Chinese medicine extract. Compared with the related art that uses different professional instruments to measure the material properties, this method significantly improves the measurement efficiency and enhances the integration degree.
[0065] According to an embodiment of the present application, there is provided an embodiment of a method for measuring the material properties of traditional Chinese medicine extracts. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0066] In this embodiment, a method for measuring the material properties of traditional Chinese medicine extracts is provided. Please refer to Figure 1 , the method includes:
[0067] S110. Pre-divide the measurement process of the specified material properties into a first measurement stage and a second measurement stage.
[0068] Among them, the specified material property can be any one of viscosity, surface tension, pH value, density, bulk density, conductivity, and solid content. The measurement process can be to photograph the hanging and falling processes of the specified material droplets through an industrial camera.
[0069] The second measurement stage is the time period during which the specified material continuously drips out from the target needle, the first measurement stage is the time period before the second measurement stage in the measurement process, and the first measurement stage includes the critical state and the time period before the critical state. The critical state can be the state in which the hanging liquid droplet is about to break away from the target needle.
[0070] In some embodiments, a traditional Chinese medicine extract of a preset volume at a preset temperature is obtained, and the traditional Chinese medicine extract is placed in a chamber (in subsequent embodiments, it is at the preset temperature). The chamber is placed vertically, and a target needle is connected below it. There is a piston in the chamber, and the piston can be pushed to make the traditional Chinese medicine extract drip out from the target needle. In the first measurement stage, the traditional Chinese medicine extract is made to form a hanging droplet at the target needle at a slower speed until the droplet falls. Then, in the second measurement stage, the traditional Chinese medicine extract is completely dripped out at a faster speed. During the entire measurement process, an industrial camera is used to take pictures of the target needle and the droplet, and the positions of the industrial camera and the target needle remain unchanged.
[0071] It should be noted that the overall characteristics of the droplet have a certain impact on the credibility of the measurement of the material properties. For example, the more accurate the overall characteristics of the droplet are, the higher the credibility of the measurement of the material properties. Therefore, it is necessary to comprehensively and accurately analyze the overall characteristics of the droplet. Specifically, the division of the first measurement stage and the second measurement stage is to be able to more precisely analyze and evaluate the characteristics of the droplet from different perspectives. For example, the droplet can be evaluated in combination with its motion state, and the motion state of the droplet includes the static state and the motion state. In this embodiment, in the first measurement stage, the droplet is in a static state. At this time, the shape of the droplet is stable, which is suitable for extracting static characteristics, and these static characteristics can provide key characteristics of the droplet during the formation process. In the second measurement stage, the droplet is in a motion state. At this time, the dynamic characteristics of the droplet are more obvious, which is suitable for extracting dynamic characteristics, and these dynamic characteristics can provide the changing characteristics of the droplet during the motion process. By comprehensively analyzing the static characteristics and the dynamic characteristics, the overall characteristics of the droplet can be evaluated more accurately, thereby providing a more reliable basis for the measurement of the material properties.
[0072] S120. Obtain a reference image and a to-be-judged image obtained in the first measurement stage. If the difference between the to-be-judged image and the reference image indicates that there is no hanging droplet in the to-be-judged image, determine a critical state image based on the to-be-judged image.
[0073] Among them, the hanging droplet hangs on the target needle; the hanging droplet in the critical state image is in a critical state of about to break away from the target needle. The critical state image can be an image of the instantaneous state when the hanging droplet is about to break away from the target needle. The to-be-judged image can be an image that needs to be judged whether it is in the critical state. The reference image can be a basis image for judging the to-be-judged image.
[0074] In some embodiments, a preset volume of traditional Chinese medicine extract is obtained and input into a chamber. The chamber is placed vertically, with a target needle connected below, and there is a piston inside the chamber. An industrial camera is facing the target needle, and their positions remain unchanged. In the first measurement stage, every time the piston moves downward by 0.1 mm, wait for 1 second for the hanging droplet to stabilize, and then take an image containing the target needle and the hanging droplet. First, set the first image with a droplet as the reference image, and the second image as the image to be judged. It should be noted that after each shooting, the image needs to be processed as follows: First, perform smoothing processing to remove noise, then grayscale, and then use the adaptive threshold method for binaryzation processing to ensure that the background is black and the needle and droplet are white. Then, subtract the image to be judged from the reference image and take the absolute value. If the recognized figure is not a white solid, continue to take the next image, and use the previous image as the reference image and the next image as the image to be judged, and so on, until a white solid figure is detected, indicating that there is no droplet in the image to be judged at this time, while there is a droplet in the reference image. The reference image at this time is the critical state image.
[0075] S130. Calculate characteristic parameters based on the critical state image to obtain the first value of the first type of characteristic parameters of the hanging droplet.
[0076] Among them, the first type of characteristic parameters can be multiple, and can include the target contact angle, droplet contour width, droplet contour area, maximum curvature of the droplet curve contour, and droplet volume. The first value can be the value corresponding to each characteristic parameter in the first type of characteristic parameters.
[0077] In some embodiments, first perform smoothing processing on the critical state image to remove noise, then grayscale, and then use the adaptive threshold method for binaryzation processing. Calculate characteristic parameters based on the binaryzation critical state image to obtain the first value of the first type of characteristic parameters of the hanging droplet.
[0078] S140. Obtain the sequence of falling droplet images obtained in the second measurement stage, calculate characteristic parameters based on the sequence of falling droplet images, and obtain the second value of the second type of characteristic parameters of the falling droplet.
[0079] Among them, the sequence of falling droplet images can be an image sequence obtained by dripping the remaining traditional Chinese medicine extract in the first measurement stage at a certain speed in the second measurement stage and shooting the falling droplets with an industrial camera.
[0080] The second type of characteristic parameters can be multiple, and can include droplet equivalent diameter, droplet roundness, droplet number, and dropping speed. The second value can be the value corresponding to each characteristic parameter in the second type of characteristic parameters.
[0081] In some embodiments, in the second measurement stage, the piston is pushed down at a certain speed until all the traditional Chinese medicine extract in the chamber drips out. During this stage, an industrial camera takes pictures of the target needle and the droplets at a preset frame rate to obtain a sequence of falling droplet images. Exemplarily, the piston is pushed down at a preset speed V, and one droplet falls every 4 seconds. During the falling process of the droplet, 20 images need to be taken, so the frame rate of the industrial camera can be set to 5 frames per second.
[0082] It should be noted that there is at most one droplet in each falling droplet image, which can be achieved only when the pushing speed of the piston matches the frame rate of the industrial camera. If the pushing speed of the piston is too fast and the frame rate of the industrial camera is too low, there may not be enough time intervals for the droplets to separate clearly during the falling process. In this case, there may be multiple droplets in one image, resulting in the inability to accurately distinguish the independence of each droplet, thereby affecting the feature analysis of the droplets. If the frame rate of the camera is too high and the falling speed of the droplets is slow, it may lead to some repeated image contents, which not only increases unnecessary image data but also wastes storage resources and computing time. Therefore, the falling speed of the droplets can be estimated first, and then the frame rate required by the industrial camera can be calculated based on this speed to ensure that an appropriate number of image frames can be captured during the falling process of the droplets.
[0083] In some embodiments, first, the sequence of falling droplet images obtained in the second measurement stage is smoothed to remove noise, then grayscale processed, and then binaryzation processing is performed using an adaptive threshold method. Based on the binary critical state image, feature parameter calculation is performed to obtain the second value of the second type of feature parameters of the falling droplets.
[0084] S150. Calculate the material properties based on the first value and the second value to obtain the value of the specified material properties of the traditional Chinese medicine extract.
[0085] Among them, there is a non-linear relationship between the specified material properties and the first value and the second value.
[0086] In some embodiments, there is a target regression model between the viscosity coefficient of the traditional Chinese medicine extract and the first value and the second value:
[0087] Y1 = a1*A + a2*V + a3*D + a4*S + a5*W + a6*K max + a7*N + a8*M + a9*F
[0088] Among them, Y1 represents the viscosity coefficient, A represents the target contact angle, W represents the droplet profile width, S represents the droplet profile area, Kmax represents the maximum curvature of the droplet curve profile, V represents the droplet volume, D represents the droplet equivalent diameter, F represents the droplet roundness, N represents the number of droplets, M represents the dropping speed, and a1 to a9 are constants. By substituting the first value and the second value into the above target regression model, the viscosity coefficient value of the traditional Chinese medicine extract can be obtained.
[0089] In some embodiments, the traditional Chinese medicine extract has multiple specified material properties, such as viscosity, surface tension, pH value, density, bulk density, conductivity, and solid content, etc. There is a respective target regression model between each specified material property and the first value and the second value. By inputting the first value and the second value into the target regression model corresponding to each specified material property, the values of multiple specified material properties of the traditional Chinese medicine extract can be obtained.
[0090] In the above embodiments, first, the measurement process of the specified material property is pre-divided into a first measurement stage where the droplet is in a static state and a second measurement stage where the droplet is in a moving state, so as to comprehensively analyze the static and dynamic characteristics of the droplet and provide a suitable prerequisite for more accurately evaluating the overall characteristics of the droplet. Then, based on the reference image and the image to be judged obtained in the first measurement stage, the critical state image is determined, and the characteristic parameters are calculated based on this image, so as to more accurately obtain the first value of the first type of characteristic parameters of the static hanging droplet. Next, by calculating the characteristic parameters based on the falling droplet image sequence obtained in the second measurement stage, the second value of the second type of characteristic parameters of the falling droplet can be obtained more quickly and accurately. Finally, based on the first value and the second value, the material property calculation is performed to obtain the value of the specified material property of the traditional Chinese medicine extract. Compared with the related art where different professional instruments are used to measure the properties of the traditional Chinese medicine extract, this method significantly improves the measurement efficiency and enhances the integration.
[0091] In some embodiments, please refer to Figure 2 , determining the critical state image based on the image to be judged includes:
[0092] S210. Determine the previous frame image located before the image to be judged.
[0093] S220. Determine the previous frame image as the critical state image.
[0094] In some embodiments, in the first measurement stage, first, the first image with droplets is set as the reference image, and the second image is used as the image to be judged. It should be noted that after each shot, the image needs to be processed as follows: First, smoothing processing is performed to remove noise, then grayscale conversion is carried out, and then adaptive thresholding is used for binarization processing to ensure that the background is black, and the needle tip and droplets are white. Then, the image to be judged is subtracted from the reference image and the absolute value is taken. If the recognized figure is not a white solid, the next image is taken continuously, and the previous image is used as the reference image, and the next image is used as the image to be judged, and so on, until the figure detected is a white solid, indicating that the droplet has dripped in the image to be judged. The absolute value of the difference between the reference image with a critical droplet in the previous frame and this image is the image of the critical droplet. Therefore, the image of the previous frame before the image to be judged is the critical state image.
[0095] In some embodiments, in the first measurement stage, first, an image of only the target needle tip but without droplets generated yet is taken as the reference image and processed by the aforementioned method to obtain a reference binary image. Then, the piston is pushed slowly. Every time it moves downward by 0.1 mm and waits for 1 second to ensure the hanging droplet is stable, an image is taken as the image to be judged. After each image to be judged is taken, the binary image to be judged is obtained through processing. Then, the binary image to be judged and the reference binary image are compared for differences to determine whether any target is included in the difference image. If a target is detected, the next image to be judged is taken and processed, and so on, until no target is detected in the difference image, indicating that the droplet has dripped in the image to be judged, and it is the same as the reference image with only the target needle tip. Therefore, the previous frame image is the critical state image.
[0096] In the above embodiments, the dripping moment of the droplet is accurately judged based on the image to be judged, and the critical state image is determined, so that the first value of the more accurate first type of characteristic parameters can be obtained, providing a reliable image data basis for measuring the material properties of the traditional Chinese medicine extract.
[0097] In some embodiments, please refer to Figure 3 , the difference situation between the image to be judged and the reference image is obtained through the following method:
[0098] S310. Obtain a background image with an empty end of the target needle tip as the reference image.
[0099] S320. Perform image subtraction based on the reference image and the image to be judged to obtain the difference situation.
[0100] Among them, the image subtraction can perform subtraction operations on each pixel point of the two images to obtain the changed area between the two images.
[0101] In some embodiments, in the first measurement stage, first, an image of only the target needle but without any generated droplets is taken as a reference image and processed using the aforementioned method to obtain a reference binary image. Then, the piston is slowly pushed. For every 0.1 mm downward movement, wait for 1 second to ensure the hanging droplet is stable, and then take an image as the image to be judged. After each image to be judged is taken, it is processed to obtain a binary image to be judged. Then, the binary image to be judged and the reference binary image are subjected to image subtraction to determine whether the difference image contains any targets. If a target is detected, continue to take and process the next image to be judged, and so on, until no targets are detected in the difference image, indicating that the droplet has dripped in the image to be judged and is the same as the reference image, with only the target needle. Therefore, the previous frame image is the critical state image.
[0102] In the above embodiments, based on the image to be judged, the dripping moment of the droplet is accurately judged to determine the critical state image, so that a more accurate first value of the first type of characteristic parameters can be obtained, providing a reliable image data basis for measuring the material properties of the traditional Chinese medicine extract.
[0103] In some embodiments, please refer to Figure 4a , based on the critical state image, characteristic parameter calculation is performed to obtain the first value of the first type of characteristic parameters of the hanging droplet, including:
[0104] S410. Perform image processing on the critical state image to obtain the contour edge curve data of the hanging droplet.
[0105] S420. Based on the image conversion ratio coefficient and the contour edge curve data of the hanging droplet, perform pixel size conversion to obtain the first value.
[0106] Among them, the first type of characteristic parameters may include the target contact angle, the droplet contour width, the droplet contour area, the maximum curvature of the droplet curve contour, and the droplet volume.
[0107] The contour edge curve data may refer to the curve data extracted by analyzing the edge of the droplet in the critical state image processing.
[0108] The image conversion ratio coefficient may be the ratio required to convert the pixel size in the image to the actual physical size, and its function is to help establish the association between the measurement data in the digital image (usually in pixels) and the size in the actual physical world (such as millimeters, etc.).
[0109] In some embodiments, the critical state image is smoothed to remove the influence of noise, then grayscale processing is performed, and then an adaptive threshold is used to obtain the binary droplet image. Please refer to Figure 4b, and an edge detection operation is adopted to obtain the contour edge curve data of the hanging droplet. Exemplarily, the above image processing process can be performed using the openCV library of python to obtain the contour edge curve data of the hanging droplet.
[0110] In some embodiments, first, an image conversion ratio coefficient is obtained according to the actual diameter and pixel length of the target needle. Then, according to this image conversion ratio coefficient, the droplet contour is converted from pixel size to actual physical size.
[0111] In some embodiments, please continue to refer to Figure 4b , according to the contour edge curve data, first determine the target contact angle A between its end tangent and the vertical line of the target needle; then, according to the projection length of the droplet in the horizontal direction, calculate the droplet contour width W; next, based on the contour edge curve data, use the integral method to calculate the droplet contour area S, and calculate the droplet volume V by the method of layer-by-layer integration; finally, use the contour edge curve data to find its curvature and extract the maximum curvature K of the droplet curve contour max .
[0112] In the above embodiment, based on image processing of the critical state image, the contour edge curve data of the hanging droplet is obtained. Further, based on the image conversion ratio coefficient and the contour edge curve data of the hanging droplet, pixel size conversion is performed to obtain the first value. It provides a reliable basis for static characteristic parameter values for accurately obtaining the specified material property values.
[0113] In some embodiments, please refer to Figure 5 , based on the falling droplet image sequence, characteristic parameter calculation is performed to obtain the second value of the second type of characteristic parameters of the falling droplet, including:
[0114] S510. Perform image processing on each frame of the falling droplet image in the falling droplet image sequence to obtain the contour edge curve data of the falling droplet;
[0115] S520. Based on the image conversion ratio coefficient and the contour edge curve data of the falling droplet, perform pixel size conversion to obtain the second value.
[0116] Among them, the second type of characteristic parameters that can be obtained through the contour edge curve data of the falling droplet can include the droplet equivalent diameter and the droplet roundness.
[0117] In some embodiments, each falling droplet image in the sequence of falling droplet images is smoothed to remove noise, then grayscaled. Next, an adaptive threshold is used to obtain the binary droplet image, and an edge detection operation is performed to obtain the contour edge curve data of the falling droplet. Exemplarily, the above image processing process can be performed using the openCV library in python to obtain the contour edge curve data of the falling droplet.
[0118] In some embodiments, according to the image conversion scale factor, the droplet contour is converted from pixel size to actual physical size.
[0119] In some embodiments, the shape of the falling droplet is close to spherical, and its contour in the sequence of falling droplet images is close to circular. Therefore, the actual area S of the droplet contour can be obtained first using the cv2.contourArea function in the python openCV library, and then the equivalent diameter D of the droplet can be calculated according to the relationship between the area and diameter of a circle.
[0120] In some embodiments, the droplet roundness is obtained by comparing the actual contour of the falling droplet with the deviation of an ideal circle. Exemplarily, the actual area Sactual of the droplet contour is obtained first using the cv2.contourArea function in the python openCV library, then the area Scircle of the minimum enclosing circle of the droplet is obtained using the cv2.minEnclosingCircle function, and finally the droplet roundness F of the falling droplet is obtained by dividing Sactual by Scircle.
[0121] In the above embodiments, first, image processing is performed on each falling droplet image in the sequence of falling droplet images to obtain the contour edge curve data of the falling droplet; then, pixel size conversion is performed based on the image conversion scale factor and the contour edge curve data of the falling droplet to obtain a second value. This provides a reliable basis for dynamic characteristic parameter values for accurately obtaining the specified material property value.
[0122] In some embodiments, refer to Figure 6a , based on the image conversion scale factor and the contour edge curve data of the falling droplet, pixel size conversion is performed to obtain a second value, including:
[0123] S610. Calculate the centroid coordinates of the falling droplet based on the contour edge curve data of the falling droplet.
[0124] S620. Determine the number of falling droplets and the number of falling droplets per unit time based on the number of minimum points corresponding to the centroid coordinates.
[0125] In some embodiments, for each falling droplet image in the sequence of falling droplet images, first use the cv2.findContours function in the Python OpenCV library to obtain the contour edge curve data of the falling droplet, and then use the cv2.moments function to obtain its centroid coordinates.
[0126] In some embodiments, refer to Figure 6b , establish a coordinate system, where the horizontal axis is the time axis and the vertical axis is the height axis. Mark the vertical value (i.e., height) of the centroid coordinates of each droplet in the sequence of falling droplet images and the corresponding shooting time in the coordinate system. Further, count the number of the minimum values of the centroid coordinate heights in this coordinate system, which is the number of falling droplets. Then add the number of drops 1 in the first measurement stage, which is the total number of droplets N. Still further, obtain the start and end times of the shooting of the image sequence, and calculate the time length of the droplet fall. Finally, divide the number of droplets N by the time length to obtain the number of falling droplets per unit time, that is, the dropping speed M.
[0127] In the above embodiments, first calculate the centroid coordinates of the falling droplet based on the contour edge curve data of the falling droplet; then determine the number of falling droplets and the number of falling droplets per unit time based on the number of the minimum value points corresponding to the centroid coordinates. It provides a reliable basis for dynamic characteristic parameter values for accurately obtaining the specified material property values.
[0128] In some embodiments, refer to Figure 7 , there is a regression model set corresponding to the category of the Chinese medicine extract; the regression model set includes regression models corresponding to various material properties; there is a target regression model corresponding to the specified material property in the regression model set; performing material property calculation based on the first value and the second value to obtain the value of the specified material property of the Chinese medicine extract, including:
[0129] S710. Substitute the first value and the second value into the target regression model for calculation to obtain the value of the specified material property of the Chinese medicine extract.
[0130] Among them, the material properties can be viscosity, surface tension, pH value, density, bulk density, conductivity, solid content, etc. The specified material property can be one of them.
[0131] In some embodiments, each category of Chinese medicine extract has multiple material properties, and each material property corresponds to a regression model. These regression models constitute the regression model set of this category of Chinese medicine extract. Exemplarily, the Sarcandra glabra extract has material properties such as viscosity, surface tension, pH value, density, bulk density, conductivity, and solid content. The regression models corresponding to each material property are respectively:
[0132] Y1 = 0.11*V - 0.06*D - 0.05*S - 0.01*Kmax - 0.01*M + 0.14*F
[0133] Y2 = -0.30*A - 17.93*V + 9.51*D + 3.22*S + 1.69*W + 3.17*Kmax - 1.12*M + 10.94*F
[0134] Y3 = -0.02*A - 1.28*V + 0.60*D + 0.79*S - 0.05*W + 0.15*Kmax - 0.02*M + 2.94*F
[0135] Y4 = -0.05*V + 0.02*D + 0.06*S - 0.01*F
[0136] Y5 = -6.59*A - 447.52*V + 234.46*D + 584.13*S + 14.32*W + 46.88*Kmax - 0.25*N - 12.67*M - 80.74*F
[0137] Y6 = -0.05*A - 1.20*V + 0.60*D - 1.21*S - 0.10*W + 0.78*Kmax - 0.02*M + 23.56*F
[0138] Y7 = -0.70*A - 42.01*V + 17.11*D - 8.18*S - 5.12*W + 8.01*Kmax + 0.04*N - 2.07*M + 112.40*F
[0139] Among them, Y1 to Y7 respectively represent viscosity, surface tension, pH value, density, bulk density, conductivity, and solid content. The above seven regression models constitute the regression model set of Sarcandrae Glabrae Extract Plaster. Exemplarily, when obtaining a new Sarcandrae Glabrae Extract Plaster material and needing to measure its surface tension, the first value and the second value of the material can be obtained first, and then input into the Y2 target regression model to obtain the value of the surface tension.
[0140] In the above embodiments, there is a corresponding regression model set for the category of traditional Chinese medicine extract; the regression model set includes regression models corresponding to various material properties; a specified material property corresponds to a target regression model in the regression model set; by substituting the first value and the second value into the target regression model for calculation, the accurate value of the specified material property of the traditional Chinese medicine extract can be obtained. This also shows that by obtaining the first value and the second value of the traditional Chinese medicine extract once and using the regression model set, multiple specified material property values can be calculated. Compared with the related technology that relies on various professional instruments for sampling and measurement, the method of this embodiment can significantly improve the measurement efficiency of material properties.
[0141] In some embodiments, a first type of characteristic parameter is pre-corresponding to the first measurement stage, and a second type of characteristic parameter is pre-corresponding to the second measurement stage. Among them, the first type of characteristic parameter and the second type of characteristic parameter are determined based on the correlation analysis of the extract properties and characteristic parameters by using a preset characteristic parameter set and a material property set.
[0142] The preset characteristic parameter set includes a target contact angle, a droplet profile width, a droplet profile area, a maximum curvature of the droplet curve profile, a droplet volume, a droplet equivalent diameter, a droplet roundness, a droplet number, and a dropping speed; among them, the target contact angle is used to characterize the angle between the hanging droplet and the target needle in the vertical direction; the dropping speed is used to characterize the number of falling droplets per unit time; the droplet number is used to characterize the total number of droplets generated by the traditional Chinese medicine extract with a preset volume in the first measurement stage and the second measurement stage.
[0143] The material property set includes a viscosity coefficient, a surface tension, a pH value, a density, a bulk density, a conductivity, and a solid content.
[0144] In some embodiments, first, multiple samples of a certain type of traditional Chinese medicine extract are obtained. The differences between the samples may be due to different harvesting times of the medicinal materials, different processes in the extract production process, etc. These differences will affect the material properties of the traditional Chinese medicine extract. Then, for each sample, the value of each preset characteristic parameter is obtained. Next, all the material property values of each sample are measured by a variety of professional instruments. Then, using the preset characteristic parameter values and material property values of the above samples, the correlation coefficient values between each material property and each preset characteristic parameter are calculated through the Pearson correlation coefficient formula. Exemplarily, please refer to Figure 8a , after calculating the correlation coefficient values between each material property and each preset characteristic parameter of the Sarcandra glabra extract, a correlation chart can be obtained.
[0145] In some embodiments, an initial regression model is determined according to the correlation coefficient values in the correlation chart, and multiple initial regression models can form an initial regression model set. Exemplarily, if the correlation coefficient value between a certain material property and a certain preset characteristic parameter is greater than a preset threshold, it is determined that the two are correlated, and the characteristic parameter is included in the initial regression model; otherwise, the characteristic parameter is not included. Exemplarily, the initial regression model set of a certain traditional Chinese medicine extract is:
[0146] Y1 = a1*A + a2*V + a3*D + a4*S + a5*W + a6*Kmax + a7*N + a8*M
[0147] Y2 = b1*A + b2*V + b3*D + b4*S + b5*W + b6*Kmax + b7*N + b8*M + b9*F
[0148] Y3 = c1*A + c2*V + c3*D + c4*S + c5*W + c6*Kmax + c7*N + c8*F
[0149] Y4 = d1*A + d2*V + d3*D + d4*S + d5*W + d6*Kmax + d7*N + d8*M + d9*F
[0150] Y5 = e1*A + e2*V + e3*D + e4*S + e5*W + e6*Kmax + e7*N + e8*M + e9*F
[0151] Y6 = f1*A + f2*V + f3*D + f4*S + f5*W + f6*Kmax + f7*N + f8*M + f9*F
[0152] Y7 = g1*A + g2*V + g3*D + g4*S + g5*W + g6*Kmax + g7*N + g8*M + g9*F
[0153] Wherein, am, bn, cm, dn, en, fn, and gn are the coefficients of the characteristic parameters, where m takes positive integers from 1 to 8, and n takes positive integers from 1 to 9.
[0154] In some embodiments, after establishing the initial regression model of a certain material property, such as the initial regression model of viscosity, the coefficients in the initial regression model are solved using the stepwise regression method with the preset characteristic parameter values and material property values of multiple samples, and then the corresponding target regression model is obtained.
[0155] In some embodiments, please refer to Figure 8b , a radar chart is used to visually analyze the preset characteristic parameter values of multiple samples. Through the angles and distances of the radar chart, the distribution and differences of each sample in different characteristic dimensions can be intuitively displayed, thereby helping to identify and select samples with larger differences. These samples with larger differences usually represent significant changes in the preset characteristic parameters and can provide more diverse information for the initial regression model, thus contributing to the establishment of a more accurate and reliable target regression model.
[0156] In this embodiment, a sample of a certain type of traditional Chinese medicine extract is measured multiple times to obtain its characteristic parameter values, and then the relative standard deviation (RSD, Relative Standard Deviation) of these characteristic parameter values is calculated. If the RSD is less than the preset threshold, it is determined that this type of traditional Chinese medicine extract is suitable for using the measurement method of this application and has good repeatability. Exemplarily, please refer to Table 1, and the RSD of each characteristic parameter value is less than the preset threshold of 5%, indicating that this traditional Chinese medicine extract is suitable for using the method of this application to measure its material property values.
[0157] Table 1 Repeatability of the Detection Method
[0158]
[0159] Please refer to Figure 9 , in this embodiment, a material property measuring device 900 for traditional Chinese medicine extract is provided. The material property measuring device 900 for traditional Chinese medicine extract includes:
[0160] A chamber 901 for containing the traditional Chinese medicine extract, which is fixed to the bracket by a fixing block 903. A piston is arranged inside the chamber 901. The piston contacts the inner wall of the chamber 901 to form a sealed cavity. When the piston moves upward, the traditional Chinese medicine extract can be sucked into the chamber 901 through the target needle 910 below the chamber 901. When the piston moves downward, the traditional Chinese medicine extract can be discharged from the chamber 901. The piston is connected to an electric push rod 913. The electric push rod 913 is driven by a linear motor. By controlling the motor, the movement speed of the piston can be precisely adjusted, so as to control the extrusion speed of the traditional Chinese medicine extract.
[0161] A shooting module, including a lens 904 and an industrial camera 905, is used to shoot the target needle 910 and the space below it. The industrial camera 905 can capture images at a preset frame rate to ensure that clear images can be obtained in real time during the first measurement stage of droplet formation and the second measurement stage of droplet fall, providing accurate visual support for subsequent material property regression.
[0162] A light source module, including a light source controller 908 and a planar backlight 909, can adjust the brightness of the planar backlight 909 through the light source controller 908 to ensure that the field of view of the shooting module has sufficient brightness, thereby improving the image quality.
[0163] A temperature control module, including a semiconductor module 902, a temperature controller 907, and a temperature probe 911, is used to monitor and adjust the temperature of the traditional Chinese medicine extract in the chamber 901. The temperature probe 911 is closely attached to the outer wall of the chamber to detect the temperature of the sample. The temperature controller 907 adjusts the heating or cooling power of the semiconductor module 902 according to the deviation between the sample temperature collected by the temperature probe 911 and the set temperature by using a PID control algorithm, so as to stabilize the sample temperature at the set value. This temperature control mechanism ensures that the temperature of the extract remains stable during the measurement process, avoiding the influence of temperature changes on the measurement results. In addition, there is a cooling fan 912 fixed to the bracket for dissipating heat from the semiconductor module 902, further ensuring the stability of the extract temperature.
[0164] The power supply 906 can supply power to the motor, industrial camera 905, and planar backlight 909. Through precise power regulation, the power supply 906 can ensure the driving accuracy of the motor, the image capture ability of the industrial camera 905, and the light source stability of the planar backlight 909.
[0165] A computer device, communicatively connected to the photographing module, for implementing the method of any one of the above embodiments.
[0166] It should be noted that the movement speed of the electric push rod 913 needs to match the shooting speed of the industrial camera 905 to ensure that during the formation and falling process of the droplet, the image of the droplet can be accurately captured, so as to obtain accurate measurement data.
[0167] In some embodiments, in the first measurement stage, first, a photographing module takes a picture of only the target needle 910 but without droplets yet as a reference image, and performs image processing using the aforementioned method to obtain a reference binary image; then, by adjusting the motor output, the piston is slowly pushed down. Every time it moves down 0.1 mm, wait for 1 second to ensure the stability of the hanging droplet, and then take a picture as a to-be-judged image. After each to-be-judged image is taken, a to-be-judged binary image is obtained through processing. Then, the to-be-judged binary image and the reference binary image are compared for differences to determine whether any target is included in the difference image. If a target is detected, continue to take and process the next to-be-judged image, and so on, until no target is detected in the difference image, indicating that the droplet has dripped in the to-be-judged image and it is the same as the reference image, only with the target needle 910. Therefore, the previous frame image is the critical state image.
[0168] In some embodiments, in the second measurement stage, the piston is pushed down at a certain speed until all the traditional Chinese medicine extract of a preset volume in the chamber 901 has dripped out. During this stage, the photographing module takes pictures of the target needle 910 and the liquid at a preset frame rate to obtain a sequence of falling droplet images. Among them, there is at most one droplet in each falling droplet image. Exemplarily, the piston is pushed down at a preset speed V, and a droplet falls every 4 seconds. During the falling process of the droplet, 20 pictures need to be taken, then the frame rate of the industrial camera can be set to 5 frames per second.
[0169] It should be noted that in the production environment, the traditional Chinese medicine extract may be stored in a medicine barrel or transported through pipelines.
[0170] In some embodiments, when the traditional Chinese medicine extract is stored in a medicine barrel, it can be sampled first, and then the material property measuring device 900 of the traditional Chinese medicine extract is used to suck a preset volume of the traditional Chinese medicine extract for shooting in the first measurement stage and the second measurement stage. By analyzing the images, the characteristic parameters of the droplets can be extracted, and the specified material property value of the traditional Chinese medicine extract can be calculated through the target regression model.
[0171] In some embodiments, when the traditional Chinese medicine extract is transported through a pipeline, a discharge conduit can be provided on the transport pipeline, and the liquid material of the traditional Chinese medicine extract to be measured can be introduced into the chamber 901 of the material property measuring device 900 for traditional Chinese medicine extract by opening and closing a valve, and then the specified material property value can be obtained by the method in the above embodiment to realize on-line measurement.
[0172] In some embodiments, when the traditional Chinese medicine extract is transported through a pipeline, the production and transport pipeline of the traditional Chinese medicine extract can be used to introduce a preset volume of the traditional Chinese medicine extract into a liquid medicine bottle through a conduit. A needle is provided below the liquid medicine bottle. During the falling process of the liquid droplets, an industrial camera is used to obtain images of the hanging liquid droplets and the falling liquid droplets. Then, the specified material property value can be obtained by the method in the above embodiment to realize on-line measurement.
[0173] Please refer to Figure 10 , in this embodiment, a material property measuring system 1000 for traditional Chinese medicine extract is provided. The material property measuring system 1000 for traditional Chinese medicine extract includes:
[0174] A stage division module 1001, configured to pre-divide the measurement process of the specified material property into a first measurement stage and a second measurement stage;
[0175] A first image acquisition module 1002, configured to acquire a reference image and an image to be judged obtained in the first measurement stage. If the difference between the image to be judged and the reference image indicates that there is no hanging liquid droplet in the image to be judged, a critical state-image is determined based on the image to be judged; wherein, the hanging liquid droplet hangs on the target needle; the hanging liquid droplet in the critical state image is in a critical state of about to break away from the target needle;
[0176] A first value acquisition module 1003, configured to perform feature parameter calculation based on the critical state image to obtain a first value of the first type of feature parameter of the hanging liquid droplet;
[0177] A second value acquisition module 1004, configured to acquire a sequence of falling liquid droplet images obtained in the second measurement stage, perform feature parameter calculation based on the sequence of falling liquid droplet images, and obtain a second value of the second type of feature parameter of the falling liquid droplet;
[0178] A material property determination module 1005, configured to perform material property calculation based on the first value and the second value to obtain the value of the specified material property of the traditional Chinese medicine extract.
[0179] In some embodiments, the first image acquisition module 1002 further includes:
[0180] A previous frame image determination unit, configured to determine a previous frame image located before the image to be judged;
[0181] A critical state image determination unit for determining the previous frame image as the critical state image.
[0182] In some embodiments, the first image acquisition module 1002 further includes:
[0183] A reference image acquisition unit for acquiring a background image with an empty target needle tip as the reference image;
[0184] A difference acquisition unit for performing image subtraction based on the reference image and the image to be judged to obtain the difference situation.
[0185] In some embodiments, the first value acquisition module 1003 further includes:
[0186] A first image processing unit for performing image processing on the critical state image to obtain contour edge curve data of the hanging droplet;
[0187] A first value acquisition unit for performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the hanging droplet to obtain the first value.
[0188] In some embodiments, the second value acquisition module 1004 further includes:
[0189] A second image processing unit for performing image processing on each falling droplet image in the falling droplet image sequence to obtain contour edge curve data of the falling droplet;
[0190] A second value acquisition unit for performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling droplet to obtain the second value.
[0191] In some embodiments, the second value acquisition module 1004 further includes:
[0192] A centroid acquisition unit for calculating the centroid coordinates of the falling droplet based on the contour edge curve data of the falling droplet;
[0193] A droplet number determination unit for determining the number of falling droplets and the number of falling droplets per unit time based on the number of minimum value points corresponding to the centroid coordinates.
[0194] In some embodiments, there is a regression model set corresponding to the category of the traditional Chinese medicine extract; the regression model set includes regression models corresponding to various material attributes; a specified material attribute corresponds to a target regression model in the regression model set; the material attribute determination module 1005 further includes:
[0195] A calculation unit for substituting the first value and the second value into the target regression model for calculation to obtain the value of the specified material attribute of the traditional Chinese medicine extract.
[0196] In some embodiments, a first type of characteristic parameter is pre-corresponding to the first measurement stage, and a second type of characteristic parameter is pre-corresponding to the second measurement stage; the material property measurement system 1000 for traditional Chinese medicine extract further includes a correlation analysis module, which is used to determine the first type of characteristic parameter and the second type of characteristic parameter by performing correlation analysis on the extract properties and characteristic parameters based on a preset set of characteristic parameters and a set of material properties; wherein, the preset set of characteristic parameters includes a target contact angle, a droplet profile width, a droplet profile area, a maximum curvature of the droplet curve profile, a droplet volume, a droplet equivalent diameter, a droplet roundness, a droplet number, and a dropping speed; wherein, the target contact angle is used to characterize the angle between the hanging droplet and the target needle in the vertical direction; the dropping speed is used to characterize the number of falling droplets per unit time; the droplet number is used to characterize the total number of droplets generated by the traditional Chinese medicine extract with a preset volume in the first measurement stage and the second measurement stage; the set of material properties includes a viscosity coefficient, a surface tension, a pH value, a density, a bulk density, a conductivity, and a solid content.
[0197] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding embodiments above, and will not be repeated here.
[0198] The material property measurement system for traditional Chinese medicine extract in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0199] Please refer to Figure 11 , Figure 11 is a schematic structural diagram of a computer device provided by an embodiment of the present application. As Figure 11 shown, the computer device includes: one or more processors 10, a memory 20, and an interface for connecting each component, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a set of blade servers, or a multi-processor system). Figure 11 In
[0200] The processor 10 may be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device may be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.
[0201] Among them, the memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiments.
[0202] The memory 20 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 may optionally include a memory remotely disposed relative to the processor 10, and these remote memories may be connected to the computer device through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0203] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 20 may also include a combination of the above types of memories.
[0204] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0205] The embodiments of the present application also provide a computer-readable storage medium. The method according to the embodiments of the present application may be implemented in hardware, firmware, or may be implemented as computer code recorded on a storage medium, or may be implemented as computer code originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored in such software processed on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium may also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.
[0206] An embodiment of the present application provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method of any embodiment of the present application.
[0207] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations all fall within the scope defined by the appended claims.
[0208] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0209] For example, when receiving the user's active request, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that executes the operation of the technical solution of the present disclosure according to the prompt message.
[0210] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving the user's active request may be, for example, in the form of a pop-up window, and the prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0211] It can be understood that the above process of notifying and obtaining the user's authorization is only illustrative and does not limit the implementation manner of the present disclosure, and other manners that meet relevant laws and regulations can also be applied to the implementation manner of the present disclosure.
[0212] It can be understood that the data involved in the technical solution of the present application (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of corresponding laws, regulations and related regulations.
[0213] It can be understood that in the specific implementation manner of the present application, when it comes to relevant data such as user information, location information, and navigation data, when the above embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0214] The systems, apparatuses, modules or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.
[0215] For convenience of description, when describing the above apparatuses, they are described as various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in one or more software and / or hardware.
[0216] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0217] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate an apparatus for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of multiple flows and / or blocks.
[0218] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing devices to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction apparatus that implements the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of multiple flows and / or blocks.
[0219] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are executed on the computer or other programmable apparatus to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one process or a plurality of processes and / or boxes Figure 1 one process or a plurality of processes and / or boxes Figure 1 steps for implementing the functions specified in one box or a plurality of boxes.
[0220] It should also be noted that the term "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
[0221] Each embodiment in this specification is described in a progressive manner, and the same or similar parts among the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
[0222] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
[0223] Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations fall within the scope defined by the appended claims.
Claims
1. A method for measuring the material properties of a traditional Chinese medicine extract, characterized in that, The method includes: Pre-dividing the measurement process of the specified material property into a first measurement stage and a second measurement stage; Obtaining a reference image and a to-be-judged image obtained in the first measurement stage. If the difference between the to-be-judged image and the reference image indicates that there is no hanging droplet in the to-be-judged image, determining a critical state image based on the to-be-judged image; wherein, the hanging droplet hangs on a target needle tip; the hanging droplet in the critical state image is in a critical state of about to break away from the target needle tip; Calculating characteristic parameters based on the critical state image to obtain a first value of a first type of characteristic parameter of the hanging droplet; Obtaining a falling droplet image sequence obtained in the second measurement stage, and calculating characteristic parameters based on the falling droplet image sequence to obtain a second value of a second type of characteristic parameter of the falling droplet; Calculating the specified material property of the Chinese medicine extract based on the first value and the second value to obtain the value of the specified material property of the Chinese medicine extract.
2. The method according to claim 1, characterized in that The determining the critical state image based on the to-be-judged image includes: Determining a previous frame image located before the to-be-judged image; Determining the previous frame image as the critical state image.
3. The method according to claim 2, wherein The difference situation between the to-be-judged image and the reference image is obtained by the following method: Obtaining a background image with an empty end of the target needle tip as the reference image; Performing image subtraction based on the reference image and the to-be-judged image to obtain the difference situation.
4. The method according to claim 1, characterized in that, The calculating characteristic parameters based on the critical state image to obtain a first value of a first type of characteristic parameter of the hanging droplet includes: Performing image processing on the critical state image to obtain contour edge curve data of the hanging droplet; Performing pixel size conversion based on an image conversion ratio coefficient and the contour edge curve data of the hanging droplet to obtain the first value.
5. The method according to claim 1, wherein The calculating characteristic parameters based on the falling droplet image sequence to obtain a second value of a second type of characteristic parameter of the falling droplet includes: Performing image processing on each frame of the falling droplet image in the falling droplet image sequence to obtain contour edge curve data of the falling droplet; Performing pixel size conversion based on an image conversion ratio coefficient and the contour edge curve data of the falling droplet to obtain the second value.
6. The method according to claim 5, characterized in that, The performing pixel size conversion based on an image conversion ratio coefficient and the contour edge curve data of the falling droplet to obtain the second value includes: Calculating the centroid coordinates of the falling droplet based on the contour edge curve data of the falling droplet; Determining the number of falling droplets and the number of falling droplets per unit time based on the number of minimum value points corresponding to the centroid coordinates.
7. The method according to claim 1, wherein There is a regression model set corresponding to the category of the Chinese medicine extract; the regression model set includes regression models corresponding to various material properties; the specified material property corresponds to a target regression model in the regression model set; The calculating the specified material property of the Chinese medicine extract based on the first value and the second value to obtain the value of the specified material property of the Chinese medicine extract includes: Substitute the first value and the second value into the target regression model for calculation to obtain the value of the specified material attribute of the traditional Chinese medicine extract.
8. The method according to claim 1, characterized in that, The first measurement phase corresponds to the first type of characteristic parameters in advance, and the second measurement phase corresponds to the second type of characteristic parameters in advance; Wherein, the first type characteristic parameter and the second type characteristic parameter are determined by performing correlation analysis between extract properties and characteristic parameters based on a preset characteristic parameter set and a material property set; The preset characteristic parameter set includes a target contact angle, a droplet profile width, a droplet profile area, a maximum curvature of a droplet curve profile, a droplet volume, a droplet equivalent diameter, a droplet roundness, a droplet number, and a dripping speed; wherein the target contact angle is used to characterize the angle between the hanging droplet and the target needle in the vertical direction; the dripping speed is used to characterize the number of falling droplets per unit time; the droplet number is used to characterize the total number of droplets generated by a preset volume of Chinese medicine extract in the first measurement stage and the second measurement stage; The material property set includes viscosity coefficient, surface tension, pH value, density, bulk density, conductivity and solid content.
9. A material property measuring device for a traditional Chinese medicine extract, characterized in that, The measuring device comprises: A chamber for containing Chinese herbal medicine extract, wherein the chamber is provided with a piston and a target needle; A shooting module, used for shooting the target needle and the space below the target needle; A light source module, used to control the brightness of the field of view of the shooting module; An electric push rod connected to the piston; A motor connected to the electric push rod, used to adjust the movement speed of the electric push rod, so as to control the speed of extruding the Chinese medicine extract through the movement speed of the piston; the movement speed of the piston matches the shooting speed of the shooting module; A computer device, communicatively connected to the shooting module, for implementing the method according to any one of claims 1 to 8.
10. A material property measurement system for traditional Chinese medicine extract, characterized in that, The system comprises: A phase division module, used for pre-dividing the measurement process of the specified material attribute into a first measurement phase and a second measurement phase; A first image acquisition module is used to acquire a reference image and an image to be determined obtained in the first measurement phase, and if the difference between the image to be determined and the reference image indicates that there is no hanging droplet in the image to be determined, a critical state image is determined based on the image to be determined; wherein the hanging droplet is suspended on a target needle; and the hanging droplet in the critical state image is in a critical state of being about to separate from the target needle; A first value acquisition module, configured to calculate characteristic parameters based on the critical state image to obtain a first value of a first type characteristic parameter of the hanging droplet; A second value acquisition module, used for acquiring a falling drop image sequence obtained in the second measurement phase, performing characteristic parameter calculation based on the falling drop image sequence, and obtaining a second value of a second type characteristic parameter of the falling drop; The material attribute determination module is used to calculate the material attribute based on the first value and the second value to obtain the value of the specified material attribute of the traditional Chinese medicine extract.
Citation Information
Patent Citations
Viscosity measuring method
CN106461525A
Method and apparatus for automatic determination of the behaviour of a drop of a liquid with respect to a surface of a material
FR2632728A1