Viscosity control method based on image recognition and application of viscosity control method in preparation of sesame pulp-wrapped bean curd
By using image recognition technology to regulate the viscosity of sesame-coated tofu, the problem of uneven sesame dispersion in tofu is solved, achieving uniform dispersion and green and healthy product production.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHONGQING DOU SHIZHANG AGRI TECH DEV CO LTD
- Filing Date
- 2026-01-23
- Publication Date
- 2026-05-08
AI Technical Summary
Existing technologies make it difficult to achieve uniform dispersion of sesame seeds in sesame-coated tofu without adding dispersants, which affects the uniformity and taste of the product.
By using an image recognition-based viscosity control method, the amount of substance A and the particle size of substance B are adjusted to obtain the uniformity of substance B in the system, ensuring that sesame seeds are evenly dispersed in tofu. Coagulant and sesame seeds are used as substances A and B, respectively, and the uniformity of the system image is analyzed using image recognition technology.
This method achieves uniform dispersion of sesame seeds in tofu, improving the product's taste and appearance, while avoiding the use of added reagents, making the product greener and healthier.
Abstract
Description
Technical Field
[0001] This invention relates to the field of viscosity control, and more specifically, to an image recognition-based viscosity control method and its application in the preparation of sesame-coated tofu. Background Technology
[0002] The uniformity of dispersion and suspension stability of solid substances in a system are usually directly related to the viscosity of the system. Therefore, adjusting the viscosity of the system is one of the important means to ensure that solid substances are uniformly dispersed within a certain period of time.
[0003] In the preparation of sesame-coated tofu, the timing of adding sesame seeds and the viscosity of the soy milk when adding sesame seeds both affect the uniformity of sesame seeds in the final product. There is an urgent need for a method to improve the uniformity of sesame seeds in sesame-coated tofu. Summary of the Invention
[0004] The purpose of this invention is to provide a viscosity control method based on image recognition, which solves the problem that existing technologies cannot effectively disperse solid substances without adding dispersants or other additives.
[0005] Another objective of this invention is to provide a viscosity control method for the preparation of sesame-coated tofu, which not only ensures the uniformity of sesame dispersion, but also makes the product greener and healthier because no additional reagents are added to help with uniform dispersion.
[0006] The embodiments of the present invention are achieved through the following technical solutions:
[0007] A viscosity control method based on image recognition, wherein the viscosity curve of the system gradually increases with the addition of substance A in at least one segment;
[0008] Obtain the first relationship curve between the amount of substance A and its viscosity;
[0009] Obtain the second relationship curve between the particle size and viscosity of substance B; when the number pair consisting of the particle size of substance B and the viscosity of the system lies on the second relationship curve, the uniformity of substance B in the system is greater than or equal to the threshold.
[0010] The minimum amount of substance A in the system when substance B is added is obtained from the first and second relationship curves.
[0011] The method for obtaining uniformity includes: after adding substance B, obtaining a system image, and obtaining uniformity through the system image.
[0012] Preferably, the method for obtaining the uniformity includes:
[0013] S100. After adding substance B, during the system disturbance process, the top and side images of the system are obtained.
[0014] S200. When the change in the number of blocks corresponding to substance B in the top image and the side image is less than or equal to the preset deviation, obtain the uniformity of the top image and the uniformity of the side image.
[0015] When the pair of particle size and viscosity of substance B lies on the second relationship curve, the uniformity of the top image and the uniformity of the side image are both greater than or equal to the threshold, and the difference between the uniformity of the top image and the uniformity of the side image is less than or equal to the preset difference.
[0016] Preferably, when the pair of particle size of substance B and viscosity of the system lies on the second relationship curve, the minimum time required to obtain the uniformity of substance B in the system ≥ the threshold is determined.
[0017] When the minimum time is less than or equal to the set duration, there is no need to adjust the water content of substance B; when the minimum time is greater than or equal to the set duration, the water content of substance B should be adjusted.
[0018] An application of the viscosity control method described above in the preparation of sesame-coated tofu, wherein substance A is a coagulant and substance B is sesame.
[0019] Preferably, the relationship between sesame particle size and sesame loss rate is obtained to obtain the maximum particle size of sesame when the sesame loss rate is ≤ the preset maximum loss rate during product cutting; and the particle size of substance B on the second relationship curve is ≤ the maximum particle size.
[0020] Preferably, the method for obtaining the sesame seed loss rate includes: obtaining the sesame seed shedding value of each cross section; when the sesame seed shedding value of a certain cross section is greater than the shedding threshold, the cross section is marked as an abnormal cross section, and the total area of the abnormal cross section is obtained;
[0021] Sesame seed loss rate = 100% × total area of abnormal sections / total area of all sections.
[0022] Preferably, the relationship between the uniformity deviation of the product cross-section and the image and the sesame particle size is obtained to obtain the initial particle size range of sesame.
[0023] The actual particle size range of sesame seeds is obtained by using the initial particle size range and the maximum particle size.
[0024] Preferably, the method for obtaining the number of blocks corresponding to substance B in S200 includes: processing the top image and the side image into grayscale and dividing them into several blocks; obtaining blocks within a preset grayscale value range as blocks corresponding to substance B.
[0025] Preferably, the minimum addition rate of substance B is obtained based on the total amount of substance A added, the minimum amount of substance A in the system, and the addition rate of substance A.
[0026] Preferably, a second relationship curve between the particle size of substance B, the addition rate of substance B, and the viscosity is obtained to determine the actual addition rate of substance B.
[0027] The present invention has at least the following beneficial effects:
[0028] This invention controls the viscosity of the system by adjusting the amount of substance A, and establishes a relationship between viscosity and particle size of substance B while meeting uniformity requirements. If the particle size of substance B is fixed, the amount of substance A corresponding to the minimum viscosity can be selected. After adding the appropriate amount of substance A to the system, substance B is added. If the particle size of substance B is still adjustable, the amount of substance A can be selected based on the second and first relationship curves after adjustment. Applying the viscosity control method to the preparation of sesame-coated tofu not only ensures the uniform dispersion of sesame and improves the product's flavor, but also makes the product greener and healthier because no external reagents are needed to promote the uniform dispersion of sesame. Detailed Implementation
[0029] To make the objectives, methods, and advantages of the embodiments of the present invention clearer, the methods in the embodiments of the present invention will be clearly and completely described. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0030] Example 1: A viscosity control method based on image recognition, wherein the viscosity curve of the system gradually increases with the addition of substance A in at least one segment;
[0031] Obtain the first relationship curve between the amount of substance A and its viscosity;
[0032] Obtain the second relationship curve between the particle size and viscosity of substance B; when the number pair consisting of the particle size of substance B and the viscosity of the system lies on the second relationship curve, the uniformity of substance B in the system is greater than or equal to the threshold.
[0033] The minimum amount of substance A in the system when substance B is added is obtained from the first and second relationship curves.
[0034] The method for obtaining uniformity includes: after adding substance B, obtaining a system image, and obtaining uniformity through the system image.
[0035] In practice, the uniform dispersion of a solid substance in a solution system is usually related to the viscosity of the solution itself. If the viscosity is too low, the solid substance may settle rapidly and cannot be effectively suspended, while if the viscosity is too high, the system may require a high stirring speed or stirring time to achieve uniform dispersion. When the solution system is not suitable for rapid stirring and the viscosity rises rapidly during the addition of substance A, followed by precipitation, the timing of adding solid substance B is particularly important. This embodiment controls the viscosity of the system by controlling the amount of substance A added, and then combines this with particle size control of substance B to achieve uniform dispersion of substance B in the system.
[0036] The viscosity curve of the system having at least one segment that gradually increases with the addition of substance A means that there exists a range in the first relationship curve where the amount of substance A is within which the curve monotonically increases. In this embodiment, the monotonically increasing segment can be considered the first relationship curve. Viscosity can be measured using an existing viscometer.
[0037] The minimum viscosity required by the system when a certain particle size substance B is uniformly dispersed in the system can be obtained through the second relationship curve. Then, the minimum amount of substance A required to achieve the minimum viscosity can be obtained through the first relationship curve.
[0038] The uniformity of substance B in the system can be obtained through existing image recognition technology.
[0039] As an example, the system image is acquired by a camera and processed into grayscale. The image is then divided into N patches. The number m of small patches corresponding to substance B in each patch and the number n of small patches corresponding to substance B per unit area of the system image are obtained.
[0040] Uniformity C = 1 - Δn / n, Δn = m i This represents the number of smaller tiles corresponding to substance B in the i-th tile. The closer C is to 1, the higher the uniformity. The threshold can be set as needed, for example, to 0.85.
[0041] Example 2: The method for obtaining the uniformity includes:
[0042] S100. After adding substance B, during the system disturbance process, the top and side images of the system are obtained.
[0043] S200. When the change in the number of blocks corresponding to substance B in the top image and the side image is less than or equal to the preset deviation, obtain the uniformity of the top image and the uniformity of the side image.
[0044] When the pair of particle size and viscosity of substance B lies on the second relationship curve, the uniformity of the top image and the uniformity of the side image are both greater than or equal to the threshold, and the difference between the uniformity of the top image and the uniformity of the side image is less than or equal to the preset difference.
[0045] In specific implementation, the disturbance process can be rotary stirring, up-and-down stirring, or a combination of both, etc., and this embodiment does not specify a particular method. The purpose of the disturbance process is at least to ensure that substances A and B are uniformly dispersed in the system. The speed of the disturbance process must not exceed the maximum speed specified by the process. When implementing the control method in this embodiment, the disturbance speed can be a preset fixed value.
[0046] The reason for obtaining system images during the disturbance process in this embodiment is at least as follows: during the system settling process, substance B needs to settle together with the precipitates that have precipitated and aggregated in the system, and thus the uniformity of the image obtained during the settling process is difficult to directly characterize the dispersion uniformity of substance B in the precipitate aggregates.
[0047] If the solution system is not completely transparent, a single image feature is insufficient to fully reflect the distribution of substance B in three-dimensional space. Therefore, this embodiment acquires a top image and a side image. The top image shows the distribution of substance B on the horizontal plane, and the side image shows the distribution of substance B in the vertical plane.
[0048] The preset difference can be set as needed. As an example, the preset difference is 0.4.
[0049] As an example, substance B can be added in batches, with uniformity measured in real time. Once the uniformity meets the requirements, the next batch can be added.
[0050] As an example, substance B can be continuously added, and the change in the uniformity of sesame seeds in the system after the addition of substance B is obtained.
[0051] Example 3: When the number pair of particle size and viscosity of substance B is located on the second relationship curve, the minimum time required for the uniformity of substance B in the system to be greater than or equal to the threshold is obtained; when the minimum time is less than or equal to the set duration, there is no need to adjust the water content of substance B; when the minimum time is greater than or equal to the set duration, the water content of substance B is adjusted.
[0052] In practice, if the density of substance B is too low, it tends to float on the surface when added to the system, making it difficult to achieve uniform dispersion of substance B in a short time. If the control method provided by this invention is to be used in a specific solution system, such as a solution system where all of substance A needs to be added in a short time and the stirring speed should not be too high, then the time required for uniform dispersion can be reduced by adjusting the water content of substance B.
[0053] The duration can be set according to process requirements. For example, the duration is set to 40 seconds.
[0054] As an example, the water content of substance B can be characterized by its density, while the viscosity of the system can be characterized by its density. When controlling the water content of substance B, its density can be made close to the density of the system; for example, the density of substance B can be equal to 1 ± 0.05 times the density of the system.
[0055] Example 4: Application of the viscosity control method described above in the preparation of sesame-coated tofu, wherein substance A is a coagulant and substance B is sesame.
[0056] In the specific implementation process, black sesame seeds can be used to facilitate the identification of sesame seeds when collecting image information. Common coagulants such as traditional brine, gypsum, organic lactones, and acids can be used.
[0057] The applicant discovered during the preparation of sesame-coated tofu that it is difficult to use sesame powder directly. When sesame powder is added directly to soy milk, it tends to agglomerate into small particles, affecting both the product's appearance and texture, as well as the protein coagulation process during coagulation. Using whole sesame seeds directly, however, makes it difficult to achieve uniform dispersion in the system, especially since rapid stirring during coagulation is not possible and the process typically only lasts a few minutes, further complicating the task. The increase in system viscosity and the overall processing time vary depending on the coagulant used. Using whole sesame seeds is ideal, but when this is not possible, they must be crushed to form small particles.
[0058] Because the density of soy milk, and especially soy milk after coagulation, is greater than that of commercially available dried sesame seeds, it is difficult for sesame seeds to be quickly and evenly dispersed in the system when added. The moisture content of sesame seeds can be controlled by adjusting the drying process of fresh sesame seeds, or they can be soaked in water after purchase.
[0059] To achieve uniform dispersion of sesame seeds in a system, it is not only related to the density of the system but also to the density of the sesame seeds themselves and the viscosity of the liquid. Therefore, choosing the appropriate time to add sesame seeds is crucial for the successful preparation of sesame-coated tofu. Although the system viscosity decreases slightly at the beginning of coagulation due to the ion shielding effect, it begins to rise after protein aggregation. Therefore, the applicant aims to add sesame seeds during the viscosity-rising period of coagulation to improve their dispersion uniformity. Once the protein has aggregated to a certain extent, the sesame seeds begin to settle to the bottom of the container along with the protein. After settling, stirring is stopped, and the protein network begins to contract, dehydrate, and attract any remaining free protein from nearby areas.
[0060] The sidewalls of the brine-fixing container are made of at least a portion of a transparent material, such as glass, to allow for the acquisition of side images.
[0061] Example 5: The relationship between sesame particle size and sesame defect rate was obtained, and the maximum particle size of sesame was obtained when the sesame defect rate was ≤ the preset maximum defect rate during product cutting; the particle size of substance B on the second relationship curve was ≤ the maximum particle size.
[0062] In practice, since tofu with a crispy skin is mainly sold in small pieces, the cutting process results in more and smaller cuts. If the tofu contains sesame seeds, and the seeds are too large, the cutting process may involve sesame seeds falling off and pressing against nearby tofu. Both this pressing and sesame seed loss affect the appearance of the cut surface. Furthermore, sesame seed loss can affect the product's flavor and add processing steps, such as cleaning or reusing the fallen sesame seeds. Therefore, controlling the sesame seed size is not only related to the uniform distribution of the sesame seeds but also to the final appearance and taste of the product.
[0063] In this embodiment, the maximum particle size of sesame seeds is limited by the loss rate of sesame seeds at the cut surface during the final product slicing process. When obtaining the second relationship curve, the particle size of substance B is always less than or equal to the maximum particle size, which ensures that the sesame seed loss rate during product slicing is less than or equal to the preset maximum loss rate.
[0064] Sesame seed loss rate can be defined as the percentage of sesame seeds lost from all cut surfaces out of the total number of sesame seeds in the cut surface. The total number of sesame seeds in the cut surface includes the number of lost sesame seeds.
[0065] Example 6: The method for obtaining the sesame seed loss rate includes: obtaining the sesame seed loss value of each cross section; when the sesame seed loss value of a certain cross section is greater than the loss threshold, the cross section is marked as an abnormal cross section, and the total area of the abnormal cross sections is obtained;
[0066] Sesame seed loss rate = 100% × total area of abnormal sections / total area of all sections.
[0067] In practice, when the sesame seeds are small in size, the loss of a small number of sesame seeds has almost no impact on the appearance of the cut surface or the taste of the product. Therefore, this embodiment sets a shedding threshold and only cut surfaces that exceed the shedding threshold are set as abnormal cut surfaces.
[0068] The reason for calculating the sesame seed loss rate based on area is at least because the size of each cut surface of tofu is usually not the same, so using quantity as a standard would not accurately represent the loss rate.
[0069] The sesame seed shedding threshold can be set according to actual conditions. For example, when the sesame seed size is large and the number of sesame seeds exposed on a single cut surface is small, the sesame seed shedding value can be directly the number of shed seeds, while the shed seed threshold is the set maximum number of shed seeds. As an example, the shed seed threshold is 2. Alternatively, when the sesame seed size is small and the number of sesame seeds exposed on a single cut surface is large, the sesame seed shedding value can be the percentage of shed sesame seeds out of the total number of sesame seeds. As an example, the shed seed threshold is 10%.
[0070] Example 7: Obtain the relationship between the uniformity deviation of the product cross-section and the image and the sesame seed particle size to obtain the initial particle size range of sesame seeds;
[0071] The actual particle size range of sesame seeds is obtained by using the initial particle size range and the maximum particle size.
[0072] In the specific implementation process, when the sesame seeds and bean curd settle synchronously, a large difference in their settling speed may lead to a significant discrepancy between the uniformity judged by the top or side images and the final uniformity of the product. Particle size control can influence the synchronous settling effect to some extent. Therefore, this embodiment obtains the relationship between the uniformity deviation of the product cross-section and the image and the sesame seed particle size. Image uniformity refers to the uniformity of the top image, the uniformity of the side image, or the average of the uniformities of both. The uniformity deviation between the product cross-section and the image can be directly the difference between the two, or it can be the quotient of the difference and the product uniformity. The method for obtaining uniformity can be found in Embodiment 1.
[0073] As an example, a deviation threshold of 5% is set to obtain a set of sesame seed sizes that satisfy a uniformity deviation of ≤5%, i.e., the initial particle size range. If the maximum value of the initial particle size range is less than or equal to the maximum particle size of sesame seeds when the sesame seed loss rate is ≤5% in Example 5, then the actual particle size range is the same as the initial particle size range. If the maximum value of the initial particle size range is greater than the maximum particle size of sesame seeds when the sesame seed loss rate is ≤5% in Example 5, then the actual particle size range is from the minimum value in the initial particle size range to the maximum particle size of sesame seeds when the sesame seed loss rate is ≤5%.
[0074] Example 8: The method for obtaining the number of blocks corresponding to substance B in S200 includes: after processing the top image and the side image into grayscale, dividing them into several blocks; obtaining blocks within a preset grayscale value range as blocks corresponding to substance B.
[0075] In practice, soy milk is usually white. When using black sesame seeds, the colors of the sesame seeds in the image will have different degrees of color difference due to the coverage of soy milk or precipitated protein. Therefore, it is necessary to set the grayscale value range of the corresponding block of substance B to improve the accuracy of uniformity judgment.
[0076] As an example, obtain the grayscale histogram of the image. The horizontal axis of the histogram represents grayscale, and the vertical axis represents the frequency of occurrence of that grayscale level. In the histogram, the grayscale value corresponding to soy milk or egg white is usually the smallest or second smallest. Since the amount of sesame added is usually less than that of soy milk, the grayscale value corresponding to the highest peak, i.e., the highest frequency, usually directly corresponds to soy milk. The closest grayscale value to soy milk is that of the extracted egg white, and the largest grayscale value is usually that of sesame. Obtain the difference ΔD between the largest grayscale value and the second smallest grayscale value, and set the grayscale value range to [D]. min +k△D,D max ], D min D is the second smallest gray value among the gray values that show a peak in the histogram. max This represents the largest gray value among the gray values that show a peak in the histogram, where 0 < k < 1. The value of k can be set by the user, for example, k = 0.5.
[0077] Example 9: Based on the total amount of substance A added, the minimum amount of substance A in the system, and the addition rate of substance A, the minimum addition rate of substance B is obtained.
[0078] In the specific implementation process, the total amount of coagulant added and the addition rate are the existing process settings for making tofu, which are known quantities. The minimum amount of substance A in the system is the amount of coagulant already added when substance B is added. From this, it is easy to determine how much more coagulant needs to be added, and then the remaining addition time of the coagulant can be obtained based on the addition rate.
[0079] Since stirring is usually not performed after the coagulant is added to prevent the tofu from crumbling, the sesame seeds should be added within the remaining time of the coagulant's addition. When the sesame seeds are added within the same time as the remaining time of the coagulant's addition, the addition rate of substance B is at its minimum.
[0080] As an example, the actual addition rate is 1.5 times the minimum addition rate.
[0081] Example 10: Obtain the second relationship curve between the particle size of substance B, the addition rate of substance B, and the viscosity, and obtain the actual addition rate of substance B.
[0082] Normally, in a general solution system, the slower the addition rate of substance B, the easier it is to disperse evenly. However, in the system of this invention, the coagulant is added to the soy milk at a uniform rate. The stirring speed in the later stage of coagulant addition is usually slower than in the early stage, and more soy milk particles gradually appear in the system. The existing soy milk particles are also gradually getting bigger. Therefore, the later the sesame seeds are added, the more difficult it is to achieve uniform dispersion of sesame seeds in the system.
[0083] This embodiment makes it easier for substance B to disperse uniformly in the system by controlling the addition rate of substance B. After introducing the addition rate of substance B as a variable into the second relationship curve, a three-dimensional curve is formed.
[0084] As an example, after adding a portion of substance A, the remaining substance A and substance B are added simultaneously, and the addition rate of substance B is controlled. Top and side images of the system are obtained when substance A addition is complete. Then, stirring is stopped. Refer to Example 2 to obtain the uniformity and determine if the uniformity meets the requirements. If there are many addition rates that meet the requirements, the addition rate corresponding to the highest uniformity can be selected as the variable for the second relationship curve, which is also the actual addition rate of substance B, i.e., the addition rate corresponding to the point on the second relationship curve. Furthermore, the viscosity on the second relationship curve can also be the minimum viscosity that meets the uniformity requirements, i.e., the minimum amount of substance A used. This allows for sufficient mixing of the system during the time between the addition of substance B and the completion of substance A addition. If the uniformity cannot meet the requirements by controlling the addition rate of substance B, refer to Example 3 for adjusting the moisture content of substance B.
[0085] As an example, the maximum particle size of substance B can be determined first, referring to Examples 5-6, to reduce experimental data.
[0086] The above are merely preferred embodiments of the present invention and are not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A viscosity control method based on image recognition, characterized in that, The viscosity curve of the system shows at least one segment where it gradually increases with the addition of substance A; Obtain the first relationship curve between the amount of substance A and its viscosity; Obtain the second relationship curve between the particle size and viscosity of substance B; when the number pair consisting of the particle size of substance B and the viscosity of the system lies on the second relationship curve, the uniformity of substance B in the system is greater than or equal to the threshold. The minimum amount of substance A in the system when substance B is added is obtained from the first and second relationship curves. The method for obtaining uniformity includes: after adding substance B, obtaining a system image, and obtaining uniformity through the system image.
2. The viscosity control method according to claim 1, characterized in that, The method for obtaining the uniformity includes: S100. After adding substance B, during the system disturbance process, the top and side images of the system are obtained. S200. When the change in the number of blocks corresponding to substance B in the top image and the side image is less than or equal to the preset deviation, obtain the uniformity of the top image and the uniformity of the side image. When the pair of particle size and viscosity of substance B lies on the second relationship curve, the uniformity of the top image and the uniformity of the side image are both greater than or equal to the threshold, and the difference between the uniformity of the top image and the uniformity of the side image is less than or equal to the preset difference.
3. The viscosity control method according to claim 1 or 2, characterized in that, When the pair of particle size of substance B and viscosity of the system lies on the second relationship curve, the minimum time required to obtain the uniformity of substance B in the system ≥ the threshold is determined. When the minimum time is less than or equal to the set duration, there is no need to adjust the water content of substance B; when the minimum time is greater than or equal to the set duration, the water content of substance B should be adjusted.
4. The application of the viscosity control method according to any one of claims 1-3 in the preparation of sesame-coated tofu, characterized in that, Substance A is a coagulant, and substance B is sesame seeds.
5. The application according to claim 4, characterized in that, The relationship between sesame particle size and sesame loss rate was obtained, and the maximum particle size of sesame was obtained when the sesame loss rate was ≤ the preset maximum loss rate during product cutting; the particle size of substance B on the second relationship curve was ≤ the maximum particle size.
6. The application according to claim 5, characterized in that, The method for obtaining the sesame seed loss rate includes: obtaining the sesame seed shedding value of each section; when the sesame seed shedding value of a section is greater than the shedding threshold, the section is marked as an abnormal section, and the total area of the abnormal sections is obtained. Sesame seed loss rate = 100% × total area of abnormal sections / total area of all sections.
7. The application according to claim 5, characterized in that, The relationship between the uniformity deviation of the product cross-section and the image and the sesame seed particle size is obtained to determine the initial particle size range of sesame seeds. The actual particle size range of sesame seeds is obtained by using the initial particle size range and the maximum particle size.
8. The application according to any one of claims 4-7, characterized in that, The method for obtaining the number of blocks corresponding to substance B in S200 includes: after processing the top image and the side image into grayscale, dividing them into several blocks; and obtaining blocks within a preset grayscale value range as blocks corresponding to substance B.
9. The application according to claim 8, characterized in that, The minimum addition rate of substance B can be obtained based on the total amount of substance A added, the minimum amount of substance A in the system, and the addition rate of substance A.
10. The application according to claim 8, characterized in that, Obtain the second relationship curve between the particle size of substance B, the addition rate of substance B, and the viscosity, and obtain the actual addition rate of substance B.