A vision-based method for detecting the fermentation maturity of black date wine

Through a vision-based detection method, combined with HSV color space and bubble activity index, the problem of subjectivity and lack of flexibility of traditional detection methods is solved, accurate assessment and real-time monitoring of the fermentation maturity of blackened date wine are achieved, and scientific basis for adjustment.

CN118408933BActive Publication Date: 2024-09-10LINYI UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410888753.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-10
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

The traditional fermentation maturity detection method of blackened date wine relies on manual observation and contact detection, which has problems of subjectivity, contamination risk and insufficient flexibility. Moreover, the existing technology only focuses on color parameters and cannot comprehensively evaluate the fermentation process.

Method used

Using a vision-based detection method, the fermentation maturity index is calculated through HSV color space image analysis, transparency index and bubble activity index, and a mapping table is established to evaluate fermentation maturity in real time.

Benefits of technology

It achieves an accurate and objective assessment of the fermentation maturity of blackened date wine, ensures the originality of the wine and the real-time detection, and provides a scientific basis to adjust fermentation conditions and predict the remaining time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118408933B
    Figure CN118408933B
Patent Text Reader

Abstract

The invention discloses a method for detecting the fermentation maturity of black jujube wine based on vision, and relates to the technical field of black jujube wine detection. The technical key points of the scheme are as follows: using an image acquisition device to shoot wine in real time during the fermentation process of black jujube wine, extracting a wine region image, calculating the HSV color state index through the H, S and V values ​​of each pixel in the HSV color space image of the black jujube wine, calculating the transparency index of the black jujube wine through the brightness value of each pixel in the black jujube wine image, calculating the bubble activity index by combining the number of bubbles, the bubble diameter and the bubble rising speed, calculating the fermentation maturity index through the transparency index of the black jujube wine, the HSV color state index and the bubble activity index, establishing a fermentation maturity mapping table, and avoiding direct contact detection according to the current fermentation days and the fermentation maturity index, thereby reducing the risk of wine being contaminated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of blackened jujube wine detection, and in particular to a blackened jujube wine fermentation maturity detection method based on vision. Background Art

[0002] With the increasing demand of consumers for high-quality alcoholic beverages, blackened jujube wine has become popular for its unique taste and nutritional value. Blackened jujube wine is a wine with unique flavor and nutritional value. The control of its fermentation maturity is crucial to the quality and taste of the wine. The traditional method of detecting the fermentation maturity of blackened jujube wine mainly relies on manual observation and empirical judgment. This method is not only time-consuming and labor-intensive, but the judgment results are often affected by subjective factors, and the accuracy is difficult to guarantee.

[0003] Current technologies usually rely on physical sensors for direct contact detection. However, this contact method may not only introduce contaminants into the wine, increasing the risk of wine contamination, but may also cause wear and tear or even damage to the detection equipment. More importantly, contact detection greatly limits the flexibility and convenience of detection, especially in scenarios where the fermentation process needs to be monitored frequently or for a long time. This limitation is particularly obvious.

[0004] Existing technologies often only focus on a single parameter such as color to evaluate fermentation maturity. This evaluation method lacks comprehensiveness and multi-dimensional considerations, and cannot provide a comprehensive and in-depth understanding of the fermentation process. At the same time, due to the failure to integrate different parameters to accurately evaluate fermentation maturity, these technologies often find it difficult to accurately capture subtle changes in the fermentation process, resulting in the accuracy of the evaluation results being affected. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a vision-based detection method for the fermentation maturity of blackened jujube wine, which calculates the HSV color state index through the H, S and V values ​​of each pixel in the HSV color space image of the blackened jujube wine, and calculates the transparency index of the blackened jujube wine through the brightness value of each pixel in the blackened jujube wine liquid image, and calculates the bubble activity index by combining the number of bubbles, bubble diameter and bubble rising speed, and calculates the fermentation maturity index through the transparency index, HSV color state index and bubble activity index of the blackened jujube wine liquid, establishes a fermentation maturity mapping table, and evaluates the fermentation maturity of the current blackened jujube wine liquid according to the current fermentation days and the fermentation maturity index, thereby solving the problems mentioned in the background technology.

[0006] To achieve the above purpose, the present invention is implemented by the following technical scheme: a method for detecting the fermentation maturity of blackened jujube wine based on vision, comprising the following steps:

[0007] The image acquisition device is used to take real-time photos of the black date wine during its fermentation process, and the taken image data is periodically sampled to extract the image of the wine area;

[0008] Perform color space conversion on the wine area image, convert the RGB image into an HSV color space image, obtain the H, S, and V values ​​of each pixel in the HSV color space image, and calculate the HSV color state index;

[0009] The blackened jujube wine is placed between a light source and an image acquisition device, and images of the blackened jujube wine liquid under the irradiation of a stable light source are periodically acquired, and the transparency index of the blackened jujube wine liquid is calculated by the brightness value of each pixel in the blackened jujube wine liquid image and the average brightness value of all pixels;

[0010] The number of bubbles and the diameter of each bubble in the blackened jujube wine image are used to calculate the bubble rising speed by tracking the position changes of the bubbles in consecutive image frames. The bubble activity index is calculated by combining the number of bubbles, bubble diameter and bubble rising speed.

[0011] The fermentation maturity index was calculated through the transparency index, HSV color state index and bubble activity index of the blackened jujube wine, and a fermentation maturity mapping table was established. The fermentation maturity of the current blackened jujube wine was evaluated according to the current fermentation days and the fermentation maturity index.

[0012] Furthermore, the red, green, and blue channel values ​​of the RGB image are normalized to the range of 0 to 1, and the maximum value Max and the minimum value Min are found;

[0013] When Max is equal to Min, the hue H is 0;

[0014] When Max is 0, the saturation S is 0, otherwise, ;

[0015] The brightness V is equal to the maximum value Max.

[0016] Furthermore, when Max is red R, ;

[0017] When Max is green G, then ;

[0018] When Max is blue B, then .

[0019] Furthermore, the HSV color state index is calculated by linearly normalizing the H, S, and V values ​​of each pixel in the HSV color space image. The calculation formula is as follows:

[0020]

[0021] Among them, HSVI represents the HSV color state index, M*N represents the total number of pixels, and for each pixel (i, j), , as well as Indicates the corresponding H, S and V values, , as well as represents the weight coefficient, , , .

[0022] Furthermore, the transparency index of the blackened jujube wine is calculated by the brightness value of each pixel and the average brightness value of all pixels. The calculation formula is as follows:

[0023]

[0024] Among them, TI stands for transparency index, represents the brightness value of pixel (i, j), M*N represents the total number of pixels, Represents the average value of all pixel brightness values, ε is a positive number, .

[0025] Furthermore, the number of bubbles in the blackened jujube wine image is counted, the diameter of each bubble is obtained, and the bubble rising speed is calculated by tracking the position change of the bubble in the continuous image frames. The calculation formula is as follows:

[0026]

[0027] in, represents the rising speed of the bubble, Indicates that bubbles are The height ascended during a time interval.

[0028] Furthermore, the bubble activity index is calculated by combining the number of bubbles, bubble diameter and bubble rising speed after linear normalization. The calculation formula is as follows:

[0029]

[0030] Among them, BI represents the bubble activity index, represents the diameter of the kth bubble, represents the rising speed of the kth bubble, , K represents the number of bubbles, , as well as represents the weight coefficient, , , .

[0031] Furthermore, the fermentation maturity index was calculated by the transparency index, HSV color state index and bubble activity index of the blackened jujube wine, and the calculation formula is as follows:

[0032]

[0033] Among them, FMI represents the fermentation maturity index, HSVI represents the HSV color state index, TI represents the transparency index, and BI represents the bubble activity index. , as well as is the weight coefficient, , , .

[0034] Furthermore, a fermentation maturity mapping table is established, and the corresponding maturity level is searched from the fermentation maturity mapping table according to the current fermentation days and the fermentation maturity index. When the fermentation maturity index corresponding to the fermentation days is within the expected maturity index range, the maturity level is output; when the fermentation maturity index corresponding to the fermentation days is not within the expected maturity index range, an early warning is automatically issued.

[0035] Beneficial effects of the present invention:

[0036] (1) The HSV color space consists of three components: hue (H), saturation (S), and brightness (V). This representation method is more in line with human intuitive perception of color. Compared with the traditional RGB color space, HSV can provide more intuitive and effective color information during image processing and analysis. The three components change independently and do not interfere with each other, making color analysis more accurate.

[0037] (2) The transparency of black jujube wine is detected by image acquisition and analysis. There is no need to change the physical or chemical properties of the wine, which ensures the originality and integrity of the wine. The transparency index can directly reflect the changes in the physical properties of black jujube wine during the fermentation process. As fermentation proceeds, suspended matter, pigments, and microbial metabolites in the wine will gradually affect the transparency of the wine. Therefore, by monitoring the transparency index, the progress of fermentation can be intuitively understood.

[0038] (3) The bubble activity index reflects the activity level of the black jujube wine fermentation process in real time. By real-time monitoring of parameters such as the number of bubbles, diameter, and rising speed, the progress of the fermentation can be timely understood, thereby evaluating the maturity of the fermentation. The changing trend of the bubble activity index can predict the remaining time and progress of the fermentation. When the bubble activity index reaches a certain value, it means that the fermentation is about to be completed or enters a critical stage, which provides a basis for producers to adjust the fermentation conditions and prepare for subsequent operations.

[0039] (4) By calculating the fermentation maturity index based on a comprehensive set of multiple indicators and combining it with a mapping table, the fermentation maturity of the blackened jujube wine can be quickly and accurately evaluated. Compared with the traditional subjective evaluation method, the detection method based on vision and image processing technology is more objective and accurate, and can monitor the changes of various indicators during the fermentation process in real time, providing a scientific basis for timely adjustment of fermentation parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] FIG1 is a schematic diagram of the steps of a method for detecting fermentation maturity of blackened jujube wine based on vision according to the present invention;

[0041] FIG2 is a schematic diagram of the process of the vision-based method for detecting the fermentation maturity of blackened jujube wine according to the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] Referring to FIG. 1 and FIG. 2 , the present invention provides a method for detecting the fermentation maturity of blackened jujube wine based on vision, comprising the following steps:

[0044] Step 1: Use an image acquisition device to take real-time photos of the blackened jujube wine during its fermentation process, perform periodic sampling on the taken image data, and extract images of the wine area;

[0045] The step 1 includes the following contents:

[0046] Step 101: Select a suitable image acquisition device, such as a high-resolution camera or video camera, to ensure that the blackened jujube wine during the fermentation process can be clearly photographed, and adjust the position and angle of the image acquisition device according to the size and shape of the fermentation container;

[0047] It should be noted that the position and angle of the image acquisition device should be set before shooting so that the changes in the wine can be fully and accurately captured. The lighting conditions of the image acquisition device should be good to avoid too dark or too bright conditions affecting the image quality. Appropriate shooting parameters, such as resolution and frame rate, should be set to ensure that continuous and clear image data can be obtained.

[0048] Step 102: Start the image acquisition device to take real-time photos of the blackened jujube wine during the fermentation process to obtain continuous image data, and set a fixed time interval, such as every hour, every two hours, etc., to periodically sample the captured image data;

[0049] It should be noted that when taking images of wine, it is necessary to ensure that the lighting conditions during image acquisition are consistent to reduce the impact of lighting on color analysis. Use a transparent and color-neutral container to hold black date wine to reduce the interference of the container on color analysis.

[0050] Step 103: Preprocess the collected image data, including denoising, contrast enhancement and other operations to improve image quality, and use image processing technology (such as threshold segmentation, edge detection, morphological operation, etc.) to segment the preprocessed image and extract the wine area image.

[0051] Step 2: Perform color space conversion on the wine area image, convert the RGB image into an HSV color space image, obtain the H, S, and V values ​​of each pixel in the HSV color space image, and calculate the HSV color state index;

[0052] The step 2 includes the following contents:

[0053] Step 201: Acquire a wine region image, and perform color space conversion on the wine region image, converting the RGB image into an HSV color space image, specifically including:

[0054] Divide the channel values ​​(red, green, blue) of the RGB image by 255 and convert them into decimals between 0 and 1. This is because the calculation of the HSV color space is usually based on the range of 0 to 1. Find the maximum value Max and the minimum value Min in the normalized RGB value;

[0055] If Max is equal to Min, then the hue H is 0 (indicating achromaticity), and if Max is red (R), then ;

[0056] If Max is green (G), then ;

[0057] If Max is blue (B), then ;

[0058] If Max is 0, the saturation S is 0 (indicating the color is gray), otherwise, , the brightness V is directly equal to the maximum value Max;

[0059] It should be noted that the HSV color space is used because it can more intuitively represent the hue, saturation and brightness of the color; among them, the hue indicates the type of color, ranging from 0-360 degrees. The change in the hue of black date wine is related to the generation of pigments during the fermentation process; the saturation indicates the purity or intensity of the color, ranging from 0-1. As the fermentation proceeds, the saturation may increase, indicating that the color deepens; the brightness indicates the lightness or darkness of the color, also ranging from 0-1;

[0060] Step 202: Obtain the H, S and V values ​​of each pixel of the HSV color space image, evaluate the HSV color state during the fermentation of black date wine, and calculate the HSV color state index. The calculation formula is as follows:

[0061]

[0062] Among them, HSVI represents the HSV color state index, M*N represents the total number of pixels, and for each pixel (i, j), , as well as Indicates the corresponding H, S and V values, , as well as Represents the weight coefficient, which is used to adjust the importance of H, S and V values ​​in the index calculation. , , ;

[0063] It should be noted that in the RGB color space, illumination changes often lead to significant changes in image brightness and color, thus affecting the accuracy of color analysis, while the brightness (V) component in the HSV color space is separated from the color information and is therefore more robust to illumination changes.

[0064] When used, combine the contents of step 201 to step 202:

[0065] The HSV color space consists of three components: hue (H), saturation (S), and brightness (V). This representation method is more in line with human's intuitive perception of color. Compared with the traditional RGB color space, HSV can provide more intuitive and effective color information during image processing and analysis. The three components change independently and do not interfere with each other, making color analysis more accurate.

[0066] Step 3: placing the blackened jujube wine between the light source and the image acquisition device, periodically acquiring images of the blackened jujube wine liquid under the irradiation of the stable light source, and calculating the transparency index of the blackened jujube wine liquid through the brightness value of each pixel in the blackened jujube wine liquid image and the average brightness value of all pixels;

[0067] The step three includes the following contents:

[0068] Step 301: prepare a stable light source to ensure that the light is evenly irradiated on the wine, place the blackened jujube wine between the light source and the image acquisition device to ensure that the light can pass through the wine and be captured by the image acquisition device, set a fixed time interval, such as every hour, every two hours, etc., and periodically sample the captured image data to obtain the blackened jujube wine image;

[0069] It should be noted that in the early stage of fermentation, the wine may be turbid, because the yeast is actively metabolizing the raw materials and producing various metabolites; in the middle stage of fermentation, as the fermentation progresses, the yeast gradually consumes the raw materials and produces substances such as ethanol. In this process, the transparency of the wine may gradually increase; in the late stage and at the end of fermentation, when the fermentation is basically completed, the impurities and suspended matter in the wine will gradually decrease, and the transparency will reach a relatively stable level;

[0070] Step 302: Obtain the brightness value of each pixel of the blackened jujube wine image, and calculate the transparency index of the blackened jujube wine through the brightness value of each pixel and the average brightness value of all pixels after dimensionless processing. The calculation formula is as follows:

[0071]

[0072] Among them, TI stands for transparency index, represents the brightness value of pixel (i, j), M*N represents the total number of pixels, Represents the average value of all pixel brightness values, ε is a positive number, , ε is a very small positive number used to avoid division by zero;

[0073] It should be noted that when the transmittance of the blackened jujube wine is high, that is, the light penetration intensity is large, it means that the wine has good transparency in the visible light range. Conversely, if the transmittance is low, that is, the light penetration intensity is small, it means that the transparency of the wine is poor.

[0074] When used, combine the contents of step 301 to step 302:

[0075] The transparency of blackened jujube wine is detected by image acquisition and analysis. There is no need to change the physical or chemical properties of the wine, which ensures the originality and integrity of the wine. The transparency index can directly reflect the changes in the physical properties of blackened jujube wine during the fermentation process. As the fermentation proceeds, the suspended matter, pigments and microbial metabolites in the wine will gradually affect the transparency of the wine. Therefore, by monitoring the transparency index, the progress of fermentation can be intuitively understood.

[0076] Step 4: The number of bubbles and the diameter of each bubble in the blackened jujube wine image are used to calculate the bubble rising speed by tracking the position change of the bubble in the continuous image frames. The bubble activity index is calculated by combining the bubble number, bubble diameter and bubble rising speed.

[0077] The step 4 includes the following contents:

[0078] Step 401: placing the blackened jujube wine between a stable light source and an image acquisition device (such as a camera or a camera), ensuring that the light source is stable and bright enough to clearly capture bubbles in the wine, and periodically acquiring images of the blackened jujube wine, such as every hour or every two hours, to ensure that sufficient image data can be obtained at different fermentation stages;

[0079] Step 402: By using image processing technology, the number of bubbles in the image is counted to obtain the diameter of each bubble, and the rising speed of the bubble is calculated by tracking the position change of the bubble in the continuous image frames. The calculation formula is as follows:

[0080]

[0081] in, represents the rising speed of the bubble, Indicates that bubbles are The height of ascent during the time interval;

[0082] Step 403: The bubble activity index is calculated by combining the number of bubbles, the bubble diameter and the bubble rising speed after linear normalization. The calculation formula is as follows:

[0083]

[0084] Among them, BI represents the bubble activity index, represents the diameter of the kth bubble, represents the rising speed of the kth bubble, , K represents the number of bubbles, , as well as represents the weight coefficient, , , .

[0085] It should be noted that the bubble activity index is an indicator that comprehensively evaluates the number, size and dynamic characteristics of bubbles. It is used to quantify the bubble activity during the fermentation process of blackened jujube wine. In the early stages of fermentation, the bubble activity index may be low. As fermentation proceeds, the index gradually rises and reaches a peak. After that, as fermentation is completed, the index gradually decreases.

[0086] When used, combine the contents of step 401 to step 403:

[0087] The bubble activity index reflects the activity level of the black jujube wine fermentation process in real time. By real-time monitoring of parameters such as the number of bubbles, diameter and rising speed, the progress of the fermentation can be timely understood, thereby evaluating the maturity of the fermentation. The changing trend of the bubble activity index can predict the remaining time and progress of the fermentation. When the bubble activity index reaches a certain value, it means that the fermentation is about to be completed or enters a critical stage, which provides a basis for producers to adjust the fermentation conditions and prepare for subsequent operations.

[0088] Step 5: Calculate the fermentation maturity index through the transparency index, HSV color state index and bubble activity index of the blackened jujube wine, establish a fermentation maturity mapping table, and evaluate the current fermentation maturity of the blackened jujube wine according to the current fermentation days and the fermentation maturity index.

[0089] The step five includes the following contents:

[0090] Step 501: Obtain the transparency index, HSV color state index and bubble activity index of the blackened jujube wine, perform linear normalization, and calculate the fermentation maturity index through the transparency index, HSV color state index and bubble activity index of the blackened jujube wine. The calculation formula is as follows:

[0091]

[0092] Among them, FMI represents the fermentation maturity index, HSVI represents the HSV color state index, TI represents the transparency index, and BI represents the bubble activity index. , as well as is the weight coefficient, , , ;

[0093] Step 502: Establish a fermentation maturity mapping table, and search the corresponding maturity level from the mapping table according to the current fermentation days and the fermentation maturity index. When the fermentation maturity index corresponding to the fermentation days is within the expected maturity index range, output the maturity level; when the fermentation maturity index corresponding to the fermentation days is not within the expected maturity index range, automatically issue an early warning to indicate that there may be problems with the fermentation, for example:

[0094]

[0095] Use this mapping table to assess the fermentation maturity of the black date wine based on the current fermentation days and the calculated FMI, for example:

[0096] If the current fermentation days are 8 days and the calculated FMI is 0.6, then according to the mapping table, the current maturity level is level 3, that is, partially mature; if the current fermentation days are 17 days and the calculated FMI is 0.95, then the maturity level is level 5, that is, fully mature; if it is not within the expected FMI range, it means that there may be a problem with the fermentation and the fermentation conditions and steps need to be checked.

[0097] When used, combine step 501 to step 502:

[0098] By comprehensively calculating the fermentation maturity index based on multiple indicators and combining it with a mapping table, the fermentation maturity of the blackened jujube wine can be quickly and accurately evaluated. Compared with the traditional subjective evaluation method, the detection method based on vision and image processing technology is more objective and accurate, and can monitor the changes of various indicators during the fermentation process in real time, providing a scientific basis for timely adjustment of fermentation parameters.

[0099] In the application, the several formulas involved are all calculated by removing dimensions and taking their numerical values. The formula is a formula of the most recent real situation obtained by collecting a large amount of data and performing software simulation. The coefficients in the formula are set by technicians in this field according to actual conditions.

[0100] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. A person of ordinary skill in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented in combination with electronic hardware, computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution.

[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0102] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for detecting the fermentation maturity of blackened jujube wine based on vision, characterized in that: The following steps are involved: The image acquisition device is used to take real-time photos of the black date wine during its fermentation process, and the taken image data is periodically sampled to extract the image of the wine area; Perform color space conversion on the wine area image, convert the RGB image into an HSV color space image, obtain the H, S, and V values ​​of each pixel in the HSV color space image, and calculate the HSV color state index; The blackened jujube wine is placed between a light source and an image acquisition device, and images of the blackened jujube wine liquid under the irradiation of a stable light source are periodically acquired, and the transparency index of the blackened jujube wine liquid is calculated by the brightness value of each pixel in the blackened jujube wine liquid image and the average brightness value of all pixels; The number of bubbles and the diameter of each bubble in the blackened jujube wine image are used to calculate the bubble rising speed by tracking the position changes of the bubbles in consecutive image frames. The bubble activity index is calculated by combining the number of bubbles, bubble diameter and bubble rising speed. The fermentation maturity index is calculated through the transparency index, HSV color state index and bubble activity index of the blackened jujube wine, and a fermentation maturity mapping table is established. According to the current fermentation days and the fermentation maturity index, the fermentation maturity of the current blackened jujube wine is evaluated. The HSV color state index is calculated by linearly normalizing the H, S, and V values ​​of each pixel in the HSV color space image. The calculation formula is as follows: ; Among them, HSVI represents the HSV color state index, M*N represents the total number of pixels, and for each pixel (i, j), , as well as Indicates the corresponding H, S and V values, , as well as represents the weight coefficient, , , ; The transparency index of the blackened jujube wine is calculated by the brightness value of each pixel and the average brightness value of all pixels. The calculation formula is as follows: ; Among them, TI stands for transparency index, represents the brightness value of pixel (i, j), M*N represents the total number of pixels, Represents the average value of all pixel brightness values, ε is a positive number, ; The number of bubbles in the blackened jujube wine image is counted, the diameter of each bubble is obtained, and the bubble rising speed is calculated by tracking the position change of the bubble in the continuous image frames. The calculation formula is as follows: ; in, represents the rising speed of the bubble, Indicates that bubbles are The height of ascent during the time interval; Combining the number of bubbles, bubble diameter and bubble rising speed, after linear normalization, the bubble activity index is calculated. The calculation formula is as follows: ; Among them, BI represents the bubble activity index, represents the diameter of the kth bubble, represents the rising speed of the kth bubble, , K represents the number of bubbles, , as well as represents the weight coefficient, , , .

2. A visual-based method for detecting fermentation maturity of blackened jujube wine according to claim 1, characterized in that: Normalize the red, green, and blue channel values ​​of the RGB image to the range of 0 to 1, and find the maximum value Max and the minimum value Min; When Max is equal to Min, the hue H is 0; When Max is 0, the saturation S is 0, otherwise, ; The brightness V is equal to the maximum value Max.

3. A visual-based method for detecting fermentation maturity of blackened jujube wine according to claim 2, characterized in that: When Max is red R, then ; When Max is green G, then ; When Max is blue B, then .

4. The method for detecting fermentation maturity of blackened jujube wine based on vision according to claim 1, characterized in that: The fermentation maturity index was calculated by the transparency index, HSV color state index and bubble activity index of the blackened jujube wine. The calculation formula is as follows: ; Among them, FMI represents the fermentation maturity index, HSVI represents the HSV color state index, TI represents the transparency index, and BI represents the bubble activity index. , as well as is the weight coefficient, , , .

5. A visual-based method for detecting fermentation maturity of blackened jujube wine according to claim 4, characterized in that: A fermentation maturity mapping table is established. According to the current fermentation days and the fermentation maturity index, the corresponding maturity level is found from the fermentation maturity mapping table. When the fermentation maturity index corresponding to the fermentation days is within the expected maturity index range, the maturity level is output; when the fermentation maturity index corresponding to the fermentation days is not within the expected maturity index range, an early warning is automatically issued.