Method, device and system for measuring material attributes of traditional Chinese medicine extract

By dividing the material attribute measurement process of traditional Chinese medicine extract into two stages, the characteristic parameters of suspended droplets and fallen droplets are obtained, and the material attribute value is calculated in combination with the regression model, the problem of low measurement efficiency in the existing technology is solved, and efficient and accurate material attribute measurement is achieved.

CN120028326AActive Publication Date: 2025-05-23ZHEJIANG UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510510694.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-05-23
Estimated Expiration
2045-04-23

AI Technical Summary

Technical Problem

The material properties measurement efficiency of traditional Chinese medicine extracts in the prior art is low, and different professional instruments are required to be used for measurement.

Method used

A method for measuring material properties of traditional Chinese medicine extract is proposed. By predividing the measurement process into the first measurement stage and the second measurement stage, the characteristic parameters of the suspended droplets and fallen droplets are obtained, and the material properties value of the traditional Chinese medicine extract is calculated based on the regression model.

Benefits of technology

It significantly improves the efficiency of measuring material properties of traditional Chinese medicine extracts, and improves the integration of measurements, allowing more accurate evaluation of the overall characteristics of the droplets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120028326A_ABST
    Figure CN120028326A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of material attribute measurement, and discloses a method, a device and a system for measuring material attributes of traditional Chinese medicine extracts.The measurement process of specified material attributes is pre-divided into two measurement stages, firstly, a reference image and a to-be-judged image obtained in the first measurement stage are obtained; if the difference between the to-be-judged image and the reference image shows that the suspended liquid drops do not exist in the to-be-judged image, determining a critical state image based on the to-be-judged image; performing characteristic parameter calculation based on the critical state image to obtain a first value of a first type of characteristic parameter of the suspended liquid drop; then, a falling liquid drop image sequence obtained in a second measurement stage is obtained, characteristic parameter calculation is carried out based on the falling liquid drop image sequence, and a second value of a second type of characteristic parameter of the falling liquid drop is obtained; finally, material attribute calculation is carried out based on the first value and the second value, the value of the specified material attribute of the traditional Chinese medicine extract is obtained, and the method remarkably improves the measurement efficiency of the material attribute.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of material property measurement, and in particular to a material property measurement method, device and system for 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 by extracting traditional Chinese medicine with water or organic solvents and then evaporating it. It is an important raw material for traditional Chinese medicine preparations (such as granules, tablets, oral liquids, etc.). The physical and chemical properties of traditional Chinese medicine extracts have a decisive influence on the quality consistency, molding properties, bioavailability and stability of subsequent preparations. Therefore, precise control of the various properties of traditional Chinese medicine extracts is extremely important to ensure the quality and safety of the final product.

[0003] In the related art, different professional instruments are needed to measure the various properties of Chinese medicine extracts, and the measurement efficiency needs to be improved. Therefore, a new measurement method is urgently needed. Summary of the invention

[0004] The present application provides a method, device and system for measuring the material properties of a traditional Chinese medicine extract, which solves the technical problem in the related art that the efficiency of measuring the material properties of a traditional Chinese medicine extract needs to be improved, and achieves the technical effect of efficiently measuring the material properties of a traditional Chinese medicine extract.

[0005] In order to achieve the above objectives, the main technical solutions adopted in this application include: In a first aspect, an embodiment of the present application provides a method for measuring material properties of a traditional Chinese medicine extract, the method comprising: Pre-dividing the measurement process of the specified material attribute into a first measurement phase and a second measurement phase; 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, determine a critical state image based on the image to be determined; wherein the hanging droplet is suspended on the 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; Calculating characteristic parameters based on the critical state image to obtain a first value of a first type characteristic parameter of the hanging droplet; Acquire a falling drop image sequence obtained in the second measurement phase, and calculate characteristic parameters based on the falling drop image sequence to obtain a second value of a second type characteristic parameter of the falling drop; The material property is calculated based on the first value and the second value to obtain the value of the specified material property of the traditional Chinese medicine extract.

[0006] Optionally, determining a critical state image based on the image to be determined includes: Determine a previous frame image that is located before the image to be determined; The previous frame image is determined as the critical state image.

[0007] Optionally, the difference between the image to be determined and the reference image is obtained in the following manner: Acquire a background image in which the target needle tip end is empty as the reference image; Image subtraction is performed based on the reference image and the image to be determined to obtain the difference.

[0008] Optionally, the calculating of characteristic parameters based on the critical state image to obtain a first value of the first type 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; The first value is obtained by performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the hanging droplet.

[0009] Optionally, the calculating of characteristic parameters based on the falling drop image sequence to obtain a second value of a second type characteristic parameter of the falling drop comprises: Performing image processing on each frame of the falling liquid drop image in the falling liquid drop image sequence to obtain contour edge curve data of the falling liquid drop; The second value is obtained by performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling drop.

[0010] Optionally, performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling drop to obtain the second value includes: Calculating the coordinates of the center of mass of the falling liquid drop based on the contour edge curve data of the falling liquid drop; The number of the falling droplets and the number of the falling droplets per unit time are determined based on the number of minimum value points corresponding to the centroid coordinates.

[0011] Optionally, the category of the Chinese medicine extract corresponds to a regression model set; the regression model set includes regression models corresponding to multiple material attributes; the specified material attribute corresponds to a target regression model in the regression model set; the material attribute calculation based on the first value and the second value to obtain the value of the specified material attribute 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.

[0012] Optionally, 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.

[0013] In a second aspect, an embodiment of the present application provides a material property measurement device for a traditional Chinese medicine extract, the measurement device comprising: 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 is communicatively connected to the shooting module and is used to implement the method described in any of the above embodiments.

[0014] In a third aspect, an embodiment of the present application provides a material property measurement system for a traditional Chinese medicine extract, the system comprising: 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.

[0015] In the embodiment of the present application, first, the measurement process of the specified material property is pre-divided into a first measurement stage in which the droplet is in a stationary state and a second measurement stage in which the droplet is in a moving state, so that the static and dynamic characteristics of the droplet can be comprehensively analyzed, providing suitable prerequisites 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 parameter calculation is performed based on the image, so as to more accurately obtain the first value of the first type characteristic parameter of the hanging droplet. Next, the characteristic parameter calculation is performed based on the falling droplet image sequence obtained in the second measurement stage, and the second value of the second type characteristic parameter 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 Chinese medicine extract. Compared with the use of different professional instruments to measure material properties in the related art, this method significantly improves the measurement efficiency and improves the integration. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 A flow chart of a method for measuring the material properties of a Chinese medicine extract provided in an embodiment of this specification; Figure 2A flow chart of a method for measuring the material properties of a Chinese medicine extract provided in an embodiment of this specification; Figure 3 A flow chart of a method for measuring the material properties of a Chinese medicine extract provided in an embodiment of this specification; Figure 4a A flow chart of a method for measuring the material properties of a Chinese medicine extract provided in an embodiment of this specification; Figure 4b A schematic diagram of the characteristic parameters of the hanging droplets of the traditional Chinese medicine extract provided in the embodiments of this specification; Figure 5 A flow chart of a method for measuring the material properties of a Chinese medicine extract provided in an embodiment of this specification; Figure 6a A flow chart of a method for measuring the material properties of a Chinese medicine extract provided in an embodiment of this specification; Figure 6b A schematic diagram showing the statistics of the number of falling drops of the traditional Chinese medicine extract provided in the embodiments of this specification; Figure 7 A flow chart of a method for measuring the material properties of a Chinese medicine extract provided in an embodiment of this specification; Figure 8a A schematic diagram of a correlation chart between material properties and characteristic parameters of a traditional Chinese medicine extract provided in an embodiment of this specification; Figure 8b A schematic diagram of a radar chart for analyzing the similarities and differences of Chinese medicine extract samples provided in the embodiments of this specification; Fig. 9 A schematic diagram of a material property measurement device for a Chinese medicine extract provided in an embodiment of this specification; Fig.10 A schematic diagram of a material property measurement system for a traditional Chinese medicine extract provided in an embodiment of this specification; Fig.11 A schematic diagram of a computer structure provided in an embodiment of this specification. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0019] The physicochemical properties of Chinese herbal extracts (such as viscosity, surface tension, pH value, etc.) have a decisive influence on the quality consistency, molding performance, bioavailability and stability of subsequent preparations. Therefore, precise control of the material properties of Chinese herbal extracts is extremely important for ensuring the quality and safety of the final product. In related technologies, different professional instruments are required to measure the various properties of Chinese herbal extracts, for example, rheometers are used for viscosity measurement, tensiometers are used for surface tension measurement, pH meters are used for pH value measurement, etc., resulting in low measurement efficiency.

[0020] Based on this, the present application proposes a material property measurement method for Chinese herbal medicine extract. First, the measurement process of the specified material property is pre-divided into a first measurement stage in which the droplet is in a stationary state and a second measurement stage in which the droplet is in a moving state, so that the static and dynamic characteristics of the droplet can be comprehensively analyzed, providing suitable prerequisites 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 parameter calculation is performed based on the image, so as to more accurately obtain the first value of the first type characteristic parameter of the static hanging droplet. Then, based on the falling droplet image sequence obtained in the second measurement stage, the characteristic parameter calculation is performed, and the second value of the second type characteristic parameter 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 Chinese herbal medicine extract. Compared with the use of different professional instruments to measure material properties in the related art, this method significantly improves the measurement efficiency and improves the integration.

[0021] According to an embodiment of the present application, an embodiment of a method for measuring the material properties of a traditional Chinese medicine extract is provided. 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 a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0022] In this embodiment, a method for measuring the material properties of a Chinese medicine extract is provided. Figure 1 , methods include: S110, pre-dividing the measurement process of the specified material attribute into a first measurement phase and a second measurement phase.

[0023] The specified material property may be any one of viscosity, surface tension, pH value, density, bulk density, conductivity and solid content. The measurement process may be to shoot the suspension and falling process of the droplet of the specified material through an industrial camera.

[0024] The second measurement phase is the time period during which the specified material continuously drips out from the target needle, the first measurement phase is the time period before the second measurement phase during the measurement process, and the first measurement phase includes the critical state and the time period before the critical state. The critical state may be the state in which the hanging droplet is about to detach from the target needle.

[0025] In some embodiments, a preset volume of Chinese medicine extract is obtained at a preset temperature, and the Chinese medicine extract is placed in a chamber (in subsequent embodiments, it is at a preset temperature). The chamber is placed vertically, with a target needle connected below, and a piston in the chamber, which can push the piston to make the Chinese medicine extract drip out from the target needle. In the first measurement stage, a slower speed is used to form a hanging droplet of the Chinese medicine extract at the target needle until the droplet falls. Then, in the second measurement stage, a faster speed is used to drip out all the Chinese medicine extract. During the entire measurement process, an industrial camera is used to take pictures of the target needle and the droplets, and the positions of the industrial camera and the target needle remain unchanged.

[0026] It should be noted that the overall characteristics of the droplets have a certain influence on the credibility of the material property measurement. For example, the more accurate the overall characteristics of the droplets, the higher the credibility of the material property measurement. Therefore, it is necessary to comprehensively and accurately analyze the overall characteristics of the droplets. Specifically, the division of the first measurement stage and the second measurement stage is to be able to more accurately analyze and evaluate the characteristics of the droplets from different angles. For example, the droplets can be evaluated in combination with the motion state of the droplets, and the motion state of the droplets includes a static state and a motion state. In this embodiment, in the first measurement stage, the droplets are in a static state. At this time, the morphology of the droplets is stable and suitable for extracting static features. These static features can provide the key characteristics of the droplets in the formation process. In the second measurement stage, the droplets are in a moving state. At this time, the dynamic characteristics of the droplets are more obvious, which is suitable for extracting dynamic characteristics. These dynamic characteristics can provide the changing characteristics of the droplets during the movement process. By comprehensively analyzing the static characteristics and dynamic characteristics, the overall characteristics of the droplets can be evaluated more accurately, thereby providing a more reliable basis for the measurement of material properties.

[0027] S120, obtaining 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 no hanging droplets exist in the image to be determined, determining a critical state image based on the image to be determined.

[0028] The hanging droplet is suspended on the target needle; the hanging droplet in the critical state image is in a critical state of being about to separate from the target needle. The critical state image can be an image of the instantaneous state of the hanging droplet about to separate from the target needle. The image to be judged can be an image that needs to be judged whether it is in a critical state. The reference image can be a reference image for judging the image to be judged.

[0029] In some embodiments, a preset volume of Chinese medicine extract is obtained and input into a chamber, the chamber is placed vertically, a target needle is connected below, and a piston is placed in the chamber. The industrial camera is facing the target needle, and the positions of the two remain unchanged. In the first measurement stage, the piston moves downward by 0.1 mm, waits for 1 second for the hanging droplets to stabilize, and then takes an image containing the target needle and the hanging droplets. 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 shooting, the image needs to undergo the following processing: first, smoothing is performed to remove noise, then graying is performed, and then the adaptive threshold method is used for binarization to ensure that the background is black and the needle 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 solid white, the next image is taken and the previous image is used as the reference image and the next image as the image to be judged, and so on, until the figure is detected to be solid white, indicating that there are no droplets in the image to be judged, but there are droplets in the reference image. The reference image at this time is the critical state image.

[0030] S130 , calculating characteristic parameters based on the critical state image to obtain a first value of a first type characteristic parameter of the hanging droplet.

[0031] The first type characteristic parameter may be multiple, including target contact angle, droplet profile width, droplet profile area, maximum curvature of droplet curve profile, droplet volume. The first value may be the value corresponding to each characteristic parameter in the first type characteristic parameter.

[0032] In some embodiments, the critical state image is first smoothed to remove noise, then grayed, and then binarized using an adaptive threshold method. Feature parameters are calculated based on the binarized critical state image to obtain a first value of the first type of feature parameter of the hanging droplet.

[0033] S140, acquiring a falling drop image sequence obtained in the second measurement phase, and performing characteristic parameter calculation based on the falling drop image sequence to obtain a second value of a second type characteristic parameter of the falling drop.

[0034] The falling drop image sequence may be an image sequence obtained by dropping the remaining Chinese medicine extract from the first measurement stage at a certain speed in the second measurement stage and photographing the falling drop with an industrial camera.

[0035] The second type of characteristic parameters may be multiple, and may include droplet equivalent diameter, droplet roundness, droplet quantity, and droplet production speed. The second value may be a value corresponding to each characteristic parameter in the second type of characteristic parameters.

[0036] In some embodiments, in the second measurement stage, the piston is pushed down at a certain speed until all the Chinese medicine extract in the chamber drips out. At this stage, the industrial camera shoots the target needle and the droplet at a preset frame rate to obtain a sequence of falling droplet images. For example, the piston is pushed down at a preset speed V, a droplet falls every 4 seconds, and 20 images need to be taken during the droplet falling process, then the frame rate of the industrial camera can be set to 5 frames / second.

[0037] It should be noted that there is at most one droplet in each falling droplet image, which requires the piston push-down speed to match the frame rate of the industrial camera. If the piston pushes down too fast and the frame rate of the industrial camera is too low, the droplets may not have enough time interval to be clearly separated during the falling process. In this case, multiple droplets may appear in one image, making it impossible to accurately distinguish the independence of each droplet, which in turn affects the characteristic analysis of the droplets; if the camera frame rate is too high and the droplets fall slowly, some image content may be repeated, which not only adds 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 the appropriate number of image frames can be captured during the droplet falling process.

[0038] In some embodiments, the falling droplet image sequence obtained in the second measurement stage is first smoothed to remove noise, then grayed, and then binarized using an adaptive threshold method. Feature parameters are calculated based on the binarized critical state image to obtain a second value of the second type of feature parameter of the falling droplet.

[0039] S150. Calculate the material property based on the first value and the second value to obtain the value of the specified material property of the traditional Chinese medicine extract.

[0040] There is a nonlinear relationship between the specified material attribute and the first value and the second value.

[0041] 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: Y1=a1*A+a2*V+a3*D+a4*S+a5*W+a6*K max +a7*N+a8*M+a9*F Among them, Y1 represents the viscosity coefficient, A represents the target contact angle, W represents the width of the droplet profile, S represents the area of ​​the droplet profile, Kmax represents the maximum curvature of the droplet curve profile, V represents the droplet volume, D represents the equivalent droplet diameter, F represents the droplet roundness, N represents the number of droplets, M represents the droplet speed, and a1~a9 are constants. By bringing the first value and the second value into the above target regression model, the viscosity coefficient value of the Chinese medicine extract can be obtained.

[0042] In some embodiments, the Chinese medicine extract has multiple specified material properties, such as viscosity, surface tension, pH value, density, bulk density, conductivity, and solid content. There is a respective target regression model between each specified material property and the first value and the second value. The first value and the second value are input into the target regression model corresponding to each specified material property to obtain the values ​​of multiple specified material properties of the Chinese medicine extract.

[0043] In the above embodiment, first, the measurement process of the specified material property is pre-divided into a first measurement stage in which the droplet is in a stationary state and a second measurement stage in which the droplet is in a moving state, so that the static and dynamic characteristics of the droplet can be comprehensively analyzed, providing suitable prerequisites 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 parameter calculation is performed based on the image, so as to more accurately obtain the first value of the first type characteristic parameter of the static hanging droplet. Next, the characteristic parameter calculation is performed based on the falling droplet image sequence obtained in the second measurement stage, and the second value of the second type characteristic parameter 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 Chinese medicine extract. Compared with the use of different professional instruments to measure the various properties of the Chinese medicine extract in the related art, this method significantly improves the measurement efficiency and improves the integration.

[0044] In some embodiments, see Figure 2 , determining a critical state image based on the image to be judged, including: S210: Determine a previous frame image that is located before the image to be determined.

[0045] S220: Determine the previous frame image as a critical state image.

[0046] 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 shooting, the image needs to undergo the following processing: first, smoothing is performed to remove noise, then graying is performed, and then the adaptive threshold method is used for binarization to ensure that the background is black and the needle 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 solid white, continue to shoot 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 the figure is detected to be solid white, indicating that the droplets in the image to be judged have dripped, and the absolute value of the difference with the reference image in the previous frame where there are still critical droplets is the image of the critical droplet, so the previous frame image before the image to be judged is the critical state image.

[0047] In some embodiments, in the first measurement stage, first take an image of only the target needle but no droplets are generated as a reference image, and process it using the above method to obtain a reference binary image; then slowly push the piston, move it down 0.1 mm, wait for 1 second to ensure that the suspended droplets are stable, and then take an image as the image to be judged. After taking each image to be judged, the binary image to be judged is processed. Then, the binary image to be judged and the reference binary image are compared to determine whether the difference image contains any target. If the target is detected, continue to take and process the next image to be judged, and so on, until no target is detected in the difference image, indicating that the droplet in the image to be judged has dripped, which is the same as the reference image, with only the target needle. Therefore, the previous frame image is the critical state image.

[0048] In the above embodiment, 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 a more accurate first value of the first type characteristic parameter can be obtained, providing a reliable image data basis for measuring the material properties of the traditional Chinese medicine extract.

[0049] In some embodiments, see Figure 3 , the difference between the image to be judged and the reference image is obtained in the following way: S310, obtaining a background image in which the end of the target needle is empty as a reference image.

[0050] S320: Perform image subtraction based on the reference image and the image to be determined to obtain a difference.

[0051] The image subtraction may be to perform a subtraction operation on each pixel point of the two images to obtain a change area between the two images.

[0052] In some embodiments, in the first measurement stage, first take an image of only the target needle but no droplets are generated as a reference image, and process it using the above method to obtain a reference binary image; then slowly push the piston, move it down 0.1 mm, wait for 1 second to ensure that the suspended droplets are stable, and then take an image as the image to be judged. After taking each image to be judged, the binary image to be judged is processed. Next, perform image subtraction between the binary image to be judged and the reference binary image to determine whether any target is contained in the difference image. If a target is detected, continue to take and process the next image to be judged, and so on, until no target is detected in the difference image, indicating that the droplet in the image to be judged has dripped, and it is the same as the reference image, with only the target needle, so its previous frame image is a critical state image.

[0053] In the above embodiment, 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 a more accurate first value of the first type characteristic parameter can be obtained, providing a reliable image data basis for measuring the material properties of the traditional Chinese medicine extract.

[0054] In some embodiments, see Figure 4a , calculating characteristic parameters based on the critical state image to obtain a first value of the first type characteristic parameter of the hanging droplet, including: S410 , performing image processing on the critical state image to obtain the contour edge curve data of the hanging droplet.

[0055] S420 , performing pixel size conversion based on the image conversion ratio coefficient and the edge curve data of the outline of the hanging droplet to obtain a first value.

[0056] The first type of characteristic parameters may include a target contact angle, a droplet profile width, a droplet profile area, a maximum curvature of a droplet curve profile, and a droplet volume.

[0057] The contour edge curve data may refer to curve data extracted by analyzing the edge of a droplet in an image in critical state image processing.

[0058] The image conversion scale factor can be the ratio required to convert the pixel size in the image to the actual physical size. Its function is to help associate the measurement data in the digital image (usually in pixels) with the size in the actual physical world (such as millimeters, etc.).

[0059] In some embodiments, the critical state image is smoothed to remove the influence of noise, then grayed, and then an adaptive threshold is used to obtain a binary droplet image. Figure 4b , and adopt edge detection operation to obtain the contour edge curve data of the hanging drop. 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 drop.

[0060] In some embodiments, an image conversion ratio coefficient is first obtained according to the actual diameter and pixel length of the target needle, and then the droplet outline is converted from the pixel size to the actual physical size according to the image conversion ratio coefficient.

[0061] In some embodiments, please refer to Figure 4bAccording to the contour edge curve data, the target contact angle A between its end tangent and the vertical line of the target needle tip is first determined; then, the droplet contour width W is calculated according to the horizontal projection length of the droplet; then, based on the contour edge curve data, the droplet contour area S is calculated by the integral method, and the droplet volume V is calculated by the layer-by-layer integration method; finally, the curvature of the contour edge curve data is calculated, and the maximum curvature K of the droplet curve contour is extracted from it. max .

[0062] In the above embodiment, based on image processing of the critical state image, the contour edge curve data of the hanging droplet is obtained, and further, based on the image conversion ratio coefficient and the contour edge curve data of the hanging droplet, the pixel size conversion is performed to obtain the first value, which provides a reliable static characteristic parameter value basis for accurately obtaining the specified material attribute value.

[0063] In some embodiments, see Figure 5 , calculating characteristic parameters based on the falling drop image sequence to obtain a second value of the second type characteristic parameter of the falling drop, including: S510, performing image processing on each frame of the falling liquid drop image in the falling liquid drop image sequence to obtain contour edge curve data of the falling liquid drop; S520 , performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling drop to obtain a second value.

[0064] The second type of characteristic parameters that can be obtained through the contour edge curve data of the falling droplet may include the droplet equivalent diameter and the droplet roundness.

[0065] In some embodiments, each frame of the falling droplet image in the falling droplet image sequence is smoothed to remove noise, then grayed, and then an adaptive threshold is used to obtain the binarized 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 of python to obtain the contour edge curve data of the falling droplet.

[0066] In some implementations, the droplet outline is converted from pixel size to actual physical size according to the image conversion scale factor.

[0067] In some embodiments, the shape of the falling droplet is close to a sphere, and its contour in the falling droplet image sequence is close to a circle. Therefore, the actual area S of the droplet contour can be obtained by first using the cv2.contourArea function in the python openCV library, and then the equivalent diameter D of the droplet can be calculated based on the relationship between the area and diameter of the circle.

[0068] In some embodiments, the droplet roundness is obtained by comparing the deviation between the actual contour of the falling droplet and the ideal circle. For example, the actual area Sactual of the droplet contour is obtained using the cv2.contourArea function of the python openCV library, and then the area Scircle of the droplet circumscribed circle is obtained using the cv2.minEnclosingCircle function, and finally the droplet roundness F of the falling droplet is obtained by dividing Sactual by Scircle.

[0069] In the above embodiment, firstly, image processing is performed on each frame of the falling drop image in the falling drop image sequence to obtain the contour edge curve data of the falling drop; then, pixel size conversion is performed based on the image conversion ratio coefficient and the contour edge curve data of the falling drop to obtain the second value, which provides a reliable dynamic characteristic parameter value basis for accurately obtaining the specified material attribute value.

[0070] In some embodiments, see Figure 6a , performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling drop to obtain a second value, including: S610 , calculating the centroid coordinates of the falling liquid drop based on the contour edge curve data of the falling liquid drop.

[0071] S620: Determine the number of falling liquid drops and the number of falling liquid drops per unit time based on the number of minimum value points corresponding to the centroid coordinates.

[0072] In some embodiments, for each frame of a falling drop image in a falling drop image sequence, the cv2.findContours function in the python openCV library is first used to obtain the contour edge curve data of the falling drop, and then the cv2.moments function is used to obtain the coordinates of its center of mass.

[0073] In some embodiments, see Figure 6b , establish a coordinate system in which the horizontal axis is the time axis and the vertical axis is the height axis. Mark the longitudinal value (i.e., height) of the center of mass coordinate of each droplet in the falling droplet image sequence and the corresponding shooting time into the coordinate system. Furthermore, count the number of minimum values ​​of the center of mass coordinate height in the coordinate system, which is the number of falling droplets, and add the number of drops 1 in the first measurement stage to get the total number of droplets N. Further, obtain the start and end time of the image sequence, and calculate the length of time the droplets fall. Finally, divide the number of droplets N by the length of time to get the number of falling droplets per unit time, i.e., the dripping speed M.

[0074] In the above embodiment, the centroid coordinates of the falling droplets are first calculated based on the contour edge curve data of the falling droplets; then the number of falling droplets and the number of falling droplets per unit time are determined based on the number of minimum value points corresponding to the centroid coordinates, which provides a reliable dynamic characteristic parameter value basis for accurately obtaining the specified material attribute value.

[0075] In some embodiments, see Figure 7 , the category of Chinese herbal medicine extract corresponds to a regression model set; the regression model set includes regression models corresponding to various material attributes; the specified material attribute corresponds to a target regression model in the regression model set; the material attribute is calculated based on the first value and the second value, and the value of the specified material attribute of the Chinese herbal medicine extract is obtained, including: S710. 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.

[0076] The material property may be viscosity, surface tension, pH value, density, bulk density, conductivity, solid content, etc. The specified material property may be one of them.

[0077] In some embodiments, each category of Chinese herbal extract has multiple material properties, each material property corresponds to a regression model, and these regression models constitute a regression model set of the Chinese herbal extract of this category. Exemplarily, the scutellaria baicalensis paste has material properties such as viscosity, surface tension, pH value, density, bulk density, conductivity, and solid content, and the regression models corresponding to each material property are: Y1=0.11*V-0.06*D-0.05*S-0.01*Kmax-0.01*M+0.14*F 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 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 Y4=-0.05*V+0.02*D+0.06*S-0.01*F 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 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 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 Among them, Y1 to Y7 represent viscosity, surface tension, pH value, density, bulk density, conductivity and solid content respectively, and the above seven regression models constitute the regression model set of the sargassum paste. For example, when a new sargassum paste material is obtained and its surface tension needs to be measured, 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.

[0078] In the above embodiment, the category of Chinese herbal extract corresponds to a regression model set; the regression model set includes regression models corresponding to multiple material attributes; the specified material attribute 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 attribute of the Chinese herbal extract can be obtained. This also shows that by obtaining the first value and the second value of a Chinese herbal extract once, using the regression model set, multiple specified material attribute values ​​can be calculated. Compared with the related art that relies on various professional instruments for sampling and measurement, the method of this embodiment can significantly improve the measurement efficiency of material attributes.

[0079] In some embodiments, the first measurement phase is pre-corresponded to a first type of characteristic parameter, and the second measurement phase is pre-corresponded to a second type of characteristic parameter. The first type of characteristic parameter and the second type of 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.

[0080] The preset characteristic parameter set includes target contact angle, droplet contour width, droplet contour area, maximum curvature of droplet curve contour, droplet volume, droplet equivalent diameter, droplet roundness, number of droplets and dripping 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 dripping speed is used to characterize the number of falling droplets per unit time; the number of droplets is used to characterize the total number of droplets generated by the preset volume of traditional Chinese medicine extract in the first measurement stage and the second measurement stage.

[0081] The material property set includes viscosity coefficient, surface tension, pH value, density, bulk density, conductivity and solid content.

[0082] In some embodiments, multiple samples of a certain category of Chinese medicine extract are first 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 Chinese medicine extract. Then, for each sample, the value of each preset characteristic parameter is obtained. Then, all material property values ​​of each sample are measured using a variety of professional instruments. Then, using the preset characteristic parameter values ​​and material property values ​​of the above samples, the correlation coefficient value of each material property and each preset characteristic parameter is calculated using the Pearson correlation coefficient formula. For example, please refer to Figure 8a , after calculating the correlation coefficient value of each material attribute of the swollen knotweed paste and each preset characteristic parameter, a correlation chart can be obtained.

[0083] In some embodiments, the initial regression model is determined according to the correlation coefficient value in the correlation chart, and multiple initial regression models can constitute an initial regression model set. Exemplarily, if the correlation coefficient value between a certain material attribute and a certain preset characteristic parameter is greater than a preset threshold, the two are determined to be related, 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 Chinese medicine extract is: Y1=a1*A+a2*V+a3*D+a4*S+a5*W+a6*Kmax+a7*N+a8*M Y2=b1*A+b2*V+b3*D+b4*S+b5*W+b6*Kmax+b7*N+b8*M+b9*F Y3=c1*A+c2*V+c3*D+c4*S+c5*W+c6*Kmax+c7*N+c8*F Y4=d1*A+d2*V+d3*D+d4*S+d5*W+d6*Kmax+d7*N+d8*M+d9*F Y5=e1*A+e2*V+e3*D+e4*S+e5*W+e6*Kmax+e7*N+e8*M+e9*F Y6=f1*A+f2*V+f3*D+f4*S+f5*W+f6*Kmax+f7*N+f8*M+f9*F Y7=g1*A+g2*V+g3*D+g4*S+g5*W+g6*Kmax+g7*N+g8*M+g9*F Among them, am, bn, cm, dn, en, fn and gn are coefficients of characteristic parameters, among which, the value of m is a positive integer from 1 to 8, and the value of n is a positive integer from 1 to 9.

[0084] In some embodiments, after establishing an initial regression model for a material property, such as an initial regression model for viscosity, the coefficients in the initial regression model are solved by a stepwise regression method using preset characteristic parameter values ​​and material property values ​​of multiple samples to obtain the corresponding target regression model.

[0085] In some embodiments, see Figure 8b , use radar charts to visualize the preset feature parameter values ​​of multiple samples. The angle and distance of the radar chart can intuitively show the distribution and differences of each sample in different feature dimensions, thereby helping to identify and select samples with large differences. These samples with large differences usually represent significant changes in the preset feature parameters, which can provide more diversity information for the initial regression model, thereby helping to build a more accurate and reliable target regression model.

[0086] In this embodiment, a sample of a certain type of Chinese medicine extract is measured multiple times to obtain its characteristic parameter values, and then the relative standard deviation (RSD) of these characteristic parameter values ​​is calculated. If the RSD is less than the preset threshold, it is determined that this type of Chinese medicine extract is suitable for the measurement method of the present application and has good repeatability. For example, please refer to Table 1. The RSD of each characteristic parameter value is less than the preset threshold of 5%, indicating that the Chinese medicine extract is suitable for measuring its material attribute value using the method of the present application.

[0087] Table 1 Repeatability of the detection method See also Fig. 9 In this embodiment, a material property measuring device 900 for a Chinese medicine extract is provided. The material property measuring device 900 for a Chinese medicine extract comprises: The chamber 901 is used to hold the Chinese medicine extract and is fixed to the bracket by a fixing block 903. A piston is arranged inside the chamber 901, and the piston contacts the inner wall of the chamber 901 to form a closed cavity. When the piston moves upward, the Chinese medicine extract can be sucked into the chamber 901 through the target needle 910 below the chamber 901, and when the piston moves downward, the Chinese medicine extract can be discharged from the chamber 901. The piston is connected to an electric push rod 913, which is driven by a linear motor. By controlling the motor, the movement speed of the piston can be accurately adjusted, thereby controlling the extrusion speed of the Chinese medicine extract.

[0088] The shooting module includes a lens 904 and an industrial camera 905, which 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 falling, providing accurate visual support for subsequent material property regression.

[0089] The light source module includes a light source controller 908 and a planar backlight source 909. The light source controller 908 can adjust the brightness of the planar backlight source 909 to ensure that the field of view of the shooting module has sufficient brightness, thereby improving image quality.

[0090] The temperature control module includes a semiconductor module 902, a temperature controller 907 and a temperature probe 911, which are used to monitor and adjust the temperature of the Chinese medicine extract in the chamber 901. The temperature probe 911 is close to the outer wall of the chamber and is used to detect the temperature of the sample. The temperature controller 907 uses a PID control algorithm to adjust 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, 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, the device also has a cooling fan 912, which is fixed to the bracket and is used to dissipate heat for the semiconductor module 902 to further ensure the stability of the extract temperature.

[0091] The power supply 906 can supply power to the motor, the industrial camera 905 and the planar backlight source 909 . Through precise power regulation, the power supply 906 can ensure the driving accuracy of the motor, the image capturing capability of the industrial camera 905 and the light source stability of the planar backlight source 909 .

[0092] A computer device is communicatively connected to the shooting module and is used to implement any method in the above embodiments.

[0093] It should be noted that the movement speed of the electric push rod 913 and the shooting speed of the industrial camera 905 need to match each other to ensure that the image of the droplet can be accurately captured during the process of droplet formation and falling, thereby obtaining accurate measurement data.

[0094] In some embodiments, in the first measurement phase, first, an image of only the target needle 910 but no droplets are generated is captured by the shooting module as a reference image, and the image is processed using the aforementioned method to obtain a reference binary image; then, by adjusting the motor output, the piston is slowly pushed, and after each downward movement of 0.1 mm, one second is waited to ensure that the suspended droplets are stable, and then an image is captured as the image to be judged. After each image to be judged is captured, a binary image to be judged is obtained. Next, the binary image to be judged and the reference binary image are compared for difference to determine whether any target is contained in the difference image. If a target is detected, the next image to be judged is captured and processed, and so on, until no target is detected in the difference image, indicating that the droplet in the image to be judged has dripped, which is the same as the reference image, with only the target needle 910, so the previous frame image is the critical state image.

[0095] In some embodiments, in the second measurement phase, the piston is pushed down at a certain speed until the preset volume of the Chinese medicine extract in the chamber 901 is completely dripped out. At this stage, the shooting module shoots 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. 20 images need to be taken during the droplet falling process, and the frame rate of the industrial camera can be set to 5 frames / second.

[0096] It should be noted that in the production environment, Chinese herbal extracts may be stored in medicine barrels or transported through pipelines.

[0097] In some embodiments, when the Chinese herbal medicine extract is stored in a medicine barrel, sampling can be performed first, and then a preset volume of the Chinese herbal medicine extract can be aspirated using the material property measurement device 900 for the Chinese herbal medicine extract, and the first measurement phase and the second measurement phase can be photographed. By analyzing the image, the characteristic parameters of the droplets can be extracted, and the specified material property value of the Chinese herbal medicine extract can be calculated through the target regression model.

[0098] In some embodiments, when the Chinese medicine extract is transported through a pipeline, a discharge conduit can be set on the transport pipeline, and the Chinese medicine extract liquid to be tested is introduced into the chamber 901 of the material property measuring device 900 of the Chinese medicine extract by opening and closing the valve, and then the specified material property value is obtained according to the method in the above embodiment to realize online measurement.

[0099] In some embodiments, when the Chinese herbal medicine extract is transported through a pipeline, the Chinese herbal medicine extract production and delivery pipeline can be used to introduce a preset volume of Chinese herbal medicine extract into a medicine bottle through a catheter. A needle is arranged under the medicine bottle. During the falling process of the droplets, an industrial camera is used to obtain images of the hanging droplets and the falling droplets. Then, the specified material property value is obtained according to the method in the above embodiment to achieve online measurement.

[0100] See also Fig.10 In this embodiment, a material property measurement system 1000 for a Chinese medicine extract is provided. The material property measurement system 1000 for a Chinese medicine extract includes: The phase division module 1001 is used to pre-divide the measurement process of the specified material attribute into a first measurement phase and a second measurement phase; The first image acquisition module 1002 is used to acquire the reference image and the 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, determine a critical state-image based on the image to be determined; wherein the hanging droplet is hanging on the 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 1003 is used 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 1004 is used to acquire a falling drop image sequence obtained in the second measurement phase, and calculate characteristic parameters based on the falling drop image sequence to obtain a second value of a second type characteristic parameter of the falling drop; The material attribute determination module 1005 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.

[0101] In some implementations, the first image acquisition module 1002 further includes: A previous frame image determination unit, used to determine a previous frame image that is located before the image to be determined; The critical state image determining unit is used to determine the previous frame image as a critical state image.

[0102] In some implementations, the first image acquisition module 1002 further includes: A reference image acquisition unit, used to acquire a background image in which the end of the target needle is empty as a reference image; The difference acquisition unit is used to perform image subtraction based on the reference image and the image to be judged to obtain the difference situation.

[0103] In some implementations, the first value acquisition module 1003 further includes: A first image processing unit is used to perform image processing on the critical state image to obtain the contour edge curve data of the hanging droplet; The first value acquisition unit is used to perform pixel size conversion based on the image conversion ratio coefficient and the outline edge curve data of the hanging droplet to obtain a first value.

[0104] In some implementations, the second value acquisition module 1004 further includes: A second image processing unit is used to perform image processing on each frame of the falling liquid drop image in the falling liquid drop image sequence to obtain the contour edge curve data of the falling liquid drop; The second value acquisition unit is used to perform pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling drop to obtain a second value.

[0105] In some implementations, the second value acquisition module 1004 further includes: A centroid acquisition unit, used for calculating the centroid coordinates of the falling droplet based on the contour edge curve data of the falling droplet; The droplet number determination unit is used to determine 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.

[0106] In some embodiments, the category of Chinese medicine extract corresponds to a regression model set; the regression model set includes regression models corresponding to multiple material attributes; the specified material attribute corresponds to a target regression model in the regression model set; the material attribute determination module 1005 also includes: The calculation unit is used to 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.

[0107] In some embodiments, the first measurement stage is pre-corresponded to a first type of characteristic parameter, and the second measurement stage is pre-corresponded to a second type of characteristic parameter; the material property measurement system 1000 of the traditional Chinese medicine extract also 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 between the extract properties and the characteristic parameters based on a preset characteristic parameter set and a material property set; wherein the preset characteristic parameter set includes a target contact angle, a droplet contour width, a droplet contour area, a maximum curvature of a droplet curve contour, 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 vertical angle between the hanging droplet and the target needle; 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 the preset volume of traditional 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.

[0108] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0109] The material property measurement system of the traditional Chinese medicine extract in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0110] See also Fig.11 , Fig.11 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, such as Fig.11 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional 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 group of blade servers, or a multi-processor system). Fig.11 A processor 10 is taken as an example.

[0111] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0112] 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 embodiment.

[0113] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application 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-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0114] 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 memory.

[0115] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0116] The embodiment of the present application also provides a computer-readable storage medium. The above method according to the embodiment of the present application can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can 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. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0117] The embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a 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.

[0118] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.

[0119] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, 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.

[0120] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed 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, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0121] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. 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.

[0122] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0123] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0124] It is understandable that in the specific implementation of the present application, related data such as user information, location information, navigation data, etc. are involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0125] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may 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 a combination of any of these devices.

[0126] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0127] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt 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 codes.

[0128] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0129] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0130] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0131] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0132] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and 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 partial description of the method embodiment.

[0133] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

[0134] Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all 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 comprises: Pre-dividing the measurement process of the specified material attribute into a first measurement phase and a second measurement phase; 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, determine a critical state image based on the image to be determined; wherein the hanging droplet is suspended on the 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; Calculating characteristic parameters based on the critical state image to obtain a first value of a first type characteristic parameter of the hanging droplet; Acquire a falling drop image sequence obtained in the second measurement phase, and calculate characteristic parameters based on the falling drop image sequence to obtain a second value of a second type characteristic parameter of the falling drop; The material property is calculated based on the first value and the second value to obtain the value of the specified material property of the traditional Chinese medicine extract.

2. The method according to claim 1, characterized in that The determining of the critical state image based on the image to be determined includes: Determine a previous frame image that is located before the image to be determined; The previous frame image is determined as the critical state image.

3. The method according to claim 2, characterized in that The difference between the image to be judged and the reference image is obtained by: Acquire a background image in which the target needle tip end is empty as the reference image; Image subtraction is performed based on the reference image and the image to be determined to obtain the difference.

4. The method according to claim 1, characterized in that The calculating of characteristic parameters based on the critical state image to obtain a first value of the first type 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; The first value is obtained by performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the hanging droplet.

5. The method according to claim 1, characterized in that The calculating of characteristic parameters based on the falling drop image sequence to obtain a second value of the second type characteristic parameter of the falling drop comprises: Performing image processing on each frame of the falling liquid drop image in the falling liquid drop image sequence to obtain contour edge curve data of the falling liquid drop; The second value is obtained by performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling drop.

6. The method according to claim 5, characterized in that The step of performing pixel size conversion based on the image conversion ratio coefficient and the contour edge curve data of the falling drop to obtain the second value includes: Calculating the coordinates of the center of mass of the falling liquid drop based on the contour edge curve data of the falling liquid drop; The number of the falling droplets and the number of the falling droplets per unit time are determined based on the number of minimum value points corresponding to the centroid coordinates.

7. The method according to claim 1, characterized in that The category of the Chinese medicine extract corresponds to a regression model set; the regression model set includes regression models corresponding to a plurality of material attributes; the specified material attribute corresponds to a target regression model in the regression model set; The 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 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 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 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

  • Liquid droplet operating apparatus

    JP2004085322A

  • Method for measuring particle number concentration of suspension by using ink jet

    JP2012127670A

  • Method and device for measuring minute volume of liquid

    US20200080880A1