A method, system and device for rapid quality detection of compressed candy

By processing the surface image of the tableted candy, detecting the crack edges and calculating relevant features, the problem of difficult tracking of the causes of cracks in the tableted candy is solved, rapid detection and cause analysis are achieved, and product quality management is improved.

CN118628491BActive Publication Date: 2024-10-15HEFEI HAN QI BIOLOGICAL SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411100182.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-15
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

In the production process of tabletted candy, it is difficult to quickly detect and determine the cause of cracks with existing technology, resulting in the inability to effectively improve product quality.

Method used

By obtaining the surface image of the tableted candy, perform simplification, noise reduction and grayscale processing, detect the crack edge, calculate the stress factor, synchronization coefficient and extension deflection coefficient, and analyze the crack characteristics to determine the cause of the crack.

Benefits of technology

It realizes the rapid detection and cause analysis of cracks in tableted candy, provides more comprehensive data support for the production of tableted candy, and helps optimize the production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628491B_ABST
    Figure CN118628491B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image data processing technology, and in particular to a method, system and device for rapid quality detection of compressed candy, wherein the method for rapid quality detection of compressed candy comprises: obtaining a surface image of the compressed candy; performing crack detection of the compressed candy on the surface image to obtain crack characteristics of the compressed candy; and determining the cause of cracks in the compressed candy according to the crack characteristics. The method can rapidly detect compressed candy with cracks, and can also determine the cause of cracks, providing more comprehensive data support for the refined management of compressed candy production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image data processing, and in particular to a method, system and device for rapid quality detection of compressed candies. Background Art

[0002] During the production process, compressed candies may have cracks on the surface or inside due to uneven pressure or improper temperature control, which will affect the overall quality of the compressed candies. For some high-end or quality-conscious consumers, cracks may be regarded as a sign of unqualified products, affecting their purchasing decisions.

[0003] Therefore, it is necessary to detect cracks in compressed candies during the production process. However, simply detecting cracks cannot meet the actual needs. This is because it is impossible to improve product quality without studying the causes of cracks. Summary of the invention

[0004] In order to solve the technical problem that the cause of cracks in compressed candies cannot be traced, the purpose of the present invention is to provide a method, system and device for rapid quality detection of compressed candies. The technical solutions adopted are as follows:

[0005] According to a first aspect of an embodiment of the present application, a method for quickly detecting the quality of a compressed candy is provided, the method comprising:

[0006] Acquire surface images of pressed candy.

[0007] The crack detection of the compressed candy is performed on the surface image to obtain the crack characteristics of the compressed candy.

[0008] Determine the causes of cracks in compressed candies based on crack characteristics.

[0009] In some optional embodiments of the present application, crack detection of the compressed candy is performed on the surface image to obtain crack features of the compressed candy, including:

[0010] The surface image is simplified to obtain a simplified image.

[0011] Crack detection is performed on the simplified image to obtain the crack characteristics of the compressed candy.

[0012] In some optional embodiments of the present application, the surface image is simplified to obtain a simplified image, including:

[0013] The surface image is subjected to denoising to obtain a denoised image.

[0014] The denoised image is grayed out to obtain a simplified image.

[0015] In some optional embodiments of the present application, crack detection is performed on the simplified image to obtain crack features of the compressed candy, including:

[0016] Perform edge detection on the simplified image to obtain the crack edges of the compressed candy.

[0017] Determine the crack characteristics of compressed candy based on the crack edges.

[0018] In some optional embodiments of the present application, determining crack characteristics of the compressed candy according to the crack edge includes:

[0019] Determine the stress factor of the crack based on the crack edge.

[0020] Determine the synchronization coefficient on both sides of the crack based on the crack edge.

[0021] The crack extension deflection coefficient is determined based on the crack edge.

[0022] In some optional embodiments of the present application, determining the stress factor of the crack according to the crack edge includes:

[0023] Construct edge chain codes based on crack edges.

[0024] The edge chain code fluctuation is calculated based on the edge chain code to obtain the stress factor of the crack.

[0025] In some optional embodiments of the present application, determining the synchronization coefficient on both sides of the crack according to the crack edge includes:

[0026] The grayscale value changes on both sides of the target pixel are calculated according to the crack edge.

[0027] The synchronization coefficient on both sides of the crack is determined according to the change of gray value.

[0028] In some optional embodiments of the present application, the crack extension deflection coefficient is determined according to the crack edge, including:

[0029] The distance between the point on the crack edge and the crack trend line is calculated based on the crack edge.

[0030] Determine the crack extension deflection factor based on the distance.

[0031] According to a second aspect of an embodiment of the present application, a device for rapid quality detection of compressed candy is provided, the device comprising:

[0032] The acquisition module is used to acquire the surface image of the compressed candy.

[0033] The crack detection module is used to perform crack detection on the surface image of the compressed candy to obtain crack characteristics of the compressed candy.

[0034] The crack cause determination module is used to determine the crack cause of the compressed candy according to the crack characteristics.

[0035] In some optional embodiments of the present application, the crack detection module includes:

[0036] The image simplification unit is used to simplify the surface image to obtain a simplified image.

[0037] The crack detection unit is used to perform crack detection on the simplified image to obtain crack features of the compressed candy.

[0038] In some optional embodiments of the present application, the image simplification unit includes:

[0039] The image denoising subunit is used to perform denoising on the surface image to obtain a denoised image.

[0040] The grayscale subunit is used to grayscale the denoised image to obtain a simplified image.

[0041] In some optional embodiments of the present application, the crack detection unit includes:

[0042] The edge detection subunit is used to perform edge detection on the simplified image to obtain the crack edge of the compressed candy.

[0043] The crack feature determination subunit is used to determine the crack features of the compressed candy according to the crack edges.

[0044] In some optional embodiments of the present application, the crack feature determination subunit includes:

[0045] The smoothness determination subunit is used to determine the stress factor of the crack based on the crack edge.

[0046] The correlation determination subunit is used to determine the synchronization coefficients on both sides of the crack according to the crack edge.

[0047] The extension deflection coefficient determination subunit is used to determine the crack extension deflection coefficient according to the crack edge.

[0048] In some optional embodiments of the present application, the smoothness determination subunit is specifically used to construct an edge chain code according to the crack edge; and calculate the edge chain code fluctuation according to the edge chain code to obtain the stress factor of the crack.

[0049] In some optional embodiments of the present application, the correlation determination subunit is specifically used to calculate the gray value change on both sides of the target pixel point according to the crack edge; and determine the synchronization coefficient on both sides of the crack according to the gray value change.

[0050] In some optional embodiments of the present application, the extension deflection coefficient determination subunit is specifically used to calculate the distance between a point on the crack edge and the crack trend line according to the crack edge; and determine the crack extension deflection coefficient according to the distance.

[0051] According to a third aspect of the embodiments of the present application, a system for rapid quality detection of compressed candies is provided, comprising: a memory and a processor, wherein the processor executes a computer program stored in the memory to implement a method for rapid quality detection of compressed candies as described in any one of the embodiments of the first aspect.

[0052] The present invention has the following beneficial effects:

[0053] The method of the embodiment of the present application detects cracks in the tablet candy by using the surface image to obtain crack characteristics of the tablet candy, and determines the cause of the cracks in the tablet candy based on the crack characteristics. The method can quickly detect tablet candies with cracks and determine the cause of the cracks, providing more comprehensive data support for the refined management of tablet candy production. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1 The present invention is a flowchart of a method for quickly detecting the quality of a compressed candy according to an embodiment of the present invention.

[0056] Figure 2 A schematic diagram of the structure of a device for quickly detecting the quality of compressed candies provided by one embodiment of the present invention.

[0057] Figure 3 This is a schematic diagram of the structure of a system for rapid quality detection of compressed candies provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a method, system and device for rapid quality detection of compressed candies proposed by the present invention, its specific implementation, structure, features and effects in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0059] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0060] The specific scheme of the method, system and device for rapid quality detection of tablet candies provided by the present invention will be described in detail below with reference to the accompanying drawings.

[0061] See also Figure 1 , which shows a flow chart of a method for rapid quality detection of a compressed candy according to an embodiment of the present invention. The method for rapid quality detection of a compressed candy may include:

[0062] S110: Acquire a surface image of the compressed candy.

[0063] S120: Detect cracks of the compressed candy on the surface image to obtain crack features of the compressed candy.

[0064] S130: Determine the cause of cracks in the compressed candy according to the crack characteristics.

[0065] The method of this embodiment can quickly detect compressed candies containing cracks, and can also determine the causes of the cracks, providing more comprehensive data support for the refined management of compressed candy production.

[0066] The compressed candy of this embodiment is formed by injecting syrup or mixture into a mold and then applying high pressure to form it. The surface image of the compressed candy can be collected by an industrial camera.

[0067] In some embodiments, S120: performing crack detection on the surface image of the compressed candy to obtain crack features of the compressed candy includes:

[0068] S121: Simplify the surface image to obtain a simplified image.

[0069] S122: Perform crack detection on the simplified image to obtain crack features of the compressed candy.

[0070] Since the collected surface images are mostly color images, the subsequent processing calculation is large, so this embodiment simplifies the surface images to reduce the calculation. In addition, the crack detection in this embodiment is to use the edge characteristics and generation conditions of the cracks in the tablet candy to analyze the causes of the cracks and then optimize and adjust the production.

[0071] In some embodiments, S121: simplifying the surface image to obtain a simplified image includes:

[0072] S1211: Perform noise reduction processing on the surface image to obtain a noise-reduced image.

[0073] S1212: grayscale the denoised image to obtain a simplified image.

[0074] This embodiment reduces the influence of noise on the image through noise reduction processing, simplifies the image through grayscale processing, and reduces the amount of calculation for subsequent processing.

[0075] In some embodiments, S122: performing crack detection on the simplified image to obtain crack features of the compressed candy includes:

[0076] S1221: Perform edge detection on the simplified image to obtain crack edges of the compressed candy.

[0077] S1222: Determine crack characteristics of the compressed candy based on crack edges.

[0078] Research has found that there are two main reasons for cracks in compressed candies: one is cracks caused by moisture content, and the other is cracks caused by stress. The characteristics of the cracks caused by the two are different, so the crack characteristics can be analyzed to infer the cause of the cracks.

[0079] In addition, the edge detection of this embodiment can use the canny edge detection algorithm to detect the edge part in the image, and perform crack detection on the edge of the obtained compressed candy to obtain the candy with cracks, and obtain the partially connected domain of the compressed candy and the crack edge inside it. Among them, the improper moisture content has a great impact on the tableting process. If the moisture content is too high, steam pressure may be generated during the tableting to cause cracks. The location where the cracks are generated is generally located in the middle of the compressed candy. Due to the stress generated, the cracks are often located at the edge of the compressed candy.

[0080] In some embodiments, S1222: determining crack characteristics of the compressed candy according to the crack edge includes:

[0081] S12221: Determine the stress factor of the crack based on the crack edge.

[0082] S12222: Determine the synchronization coefficient on both sides of the crack based on the crack edge.

[0083] S12223: Determine the crack extension deflection coefficient based on the crack edge.

[0084] This example analyzes crack characteristics from three aspects. The first is the stress factor of the crack. If the crack is caused by excessive moisture content, particles will stick together on both sides of the crack due to improper moisture content, and the crack edge will be smoother, and the stress factor of the crack will be lower. However, the crack edge caused by stress propagation is smoother than that caused by moisture, and the stress factor of the crack is higher. The second is the correlation of the edges on both sides of the crack. Since the crack caused by stress will quickly propagate along the stress, the compressed candies on both sides of the stress crack are relatively complete, and there is a correlation between the gray values ​​on both sides of the crack. However, for moisture, The cracks caused by improper moisture will cause adhesion on both sides of the crack when the crack occurs, thus destroying the correlation between the two sides of the crack; the third is the crack extension deflection coefficient. The cracks caused by improper moisture are usually related to the expansion and contraction of the material. At this time, the cracks will be formed along the areas with uneven moisture distribution or limited expansion, so the shape of the cracks is irregular; but the shape of the cracks caused by stress is more regular. Due to the relatively uniform stress distribution, the cracks will expand along the minimum energy path in a straight line, and the change trend of the crack edge is close to the trend line.

[0085] In some embodiments, S12221: determining a stress factor of a crack according to a crack edge includes:

[0086] S122211: Construct edge chain code based on crack edge.

[0087] S122212: Calculate the edge chain code fluctuation based on the edge chain code to obtain the stress factor of the crack.

[0088] In this embodiment, the stress factor is the correlation degree of the cause of cracks in the compressed candy caused by stress. The cracks are caused by water cracks, which cause the cracks to stick together when they are generated, and then the edge parts are adhered, so the crack edges are relatively rough; while the cracks caused by stress are caused by stress transmission. The cracks are generated more directly, so the crack edges are relatively smooth. The smaller the edge chain code fluctuation, the smoother the edge, and the larger its stress factor, that is, the stress factor is negatively correlated with the degree of smoothness. Therefore, the stress factor can be calculated by calculating the degree of smoothness of the chain code. The stress factor can be calculated by the following formula:

[0089]

[0090] In the formula, is the stress factor at the crack edge, exp() is the exponential function, is any code number on the edge chain code of the crack edge, is the edge chain code of the crack edge Code, It is the minimum distance between the two end points of the crack edge and the edge of the pressed candy.

[0091] Since the cracks caused by stress are smoother than those caused by moisture, the difference between each code number on the crack edge chain and the next code number is compared and the average is obtained. , for the minimum distance between the two end points of the edge and the edge of the pressed candy The smaller the value, the closer the end point of the crack edge is to the edge of the tablet candy. Since the stress spreads on the tablet candy, the stress crack is at the edge. Therefore, the smaller the value, the greater the probability that it is a crack edge caused by stress. Therefore, it is related to the stress factor There is a negative correlation.

[0092] In some embodiments, S12222: determining the synchronization coefficient on both sides of the crack according to the crack edge, including:

[0093] S122221: Calculate the grayscale value change on both sides of the target pixel based on the crack edge.

[0094] S122222: Determine the synchronization coefficient on both sides of the crack based on the change in grayscale value.

[0095] Since cracks will separate the complete compressed candy, the cracks caused by stress will quickly propagate along the stress, so the compressed candy on both sides of the stress crack is relatively complete, and there is a correlation between the grayscale values ​​on both sides of the crack, and the grayscale value changes on both sides are relatively synchronous; however, for cracks caused by moisture, due to improper moisture, when the cracks occur, the two sides of the crack will be adhered, thereby destroying the correlation on both sides of the crack, and the grayscale value changes on both sides will have a sudden change. Therefore, the cause of cracks in compressed candy can be analyzed by calculating the grayscale value changes on both sides of the crack edge.

[0096] For each pixel point on the edge, for each edge pixel point in the 8-neighborhood, select one pixel point on both sides of the edge, and the more the fitting straight line between the selected pixel point and the edge pixel point is perpendicular to the current edge, the two selected pixel points are recorded as the left and right pixel points of the edge pixel point respectively; thus, the synchronization coefficient on both sides of the crack edge can be obtained:

[0097]

[0098] In the formula, is the synchronization coefficient on both sides of the crack edge, indicating the correlation degree of the gray value changes on both sides of the crack edge. The first The grayscale value of the pixel on the right and left sides of the pixel.

[0099] For the crack edge, the average difference between the left and right pixels is , its value reflects the change of grayscale value on both sides of the current edge. The smaller its value is, the less obvious the change of grayscale value on both sides of the current edge is, and the synchronization on both sides is stronger. The synchronization coefficient on both sides of the crack edge can be obtained through the synchronization on both sides of the crack edge. Its value can reflect whether the current crack edge is a crack with high correlation on both sides caused by stress, or a crack with low correlation on both sides caused by adhesion on both sides due to moisture.

[0100] In some embodiments, S12223: determining a crack extension deflection coefficient according to a crack edge includes:

[0101] S122231: Calculate the distance between a point on the crack edge and the crack trend line based on the crack edge.

[0102] S122232: Determine the crack extension deflection coefficient based on the distance.

[0103] Cracks caused by improper moisture are usually related to the expansion and contraction of the material. At this time, the cracks will form along areas with uneven moisture distribution or limited expansion. Therefore, the shape of the cracks is irregular and the extension deflection coefficient is large. However, for cracks caused by stress, due to the relatively uniform stress distribution, the cracks will expand along the straight line of the minimum energy path. The shape of the cracks is more regular and the extension deflection coefficient is smaller.

[0104] The end points on both sides of the crack edge can be connected by a straight line and recorded as the trend line of the crack edge. The extension deflection coefficient can be obtained by quantifying the distance between each pixel point on the edge and the trend line of the crack edge, that is, the extension deflection coefficient of the crack:

[0105]

[0106] In the formula, is the extension deflection coefficient of the crack edge, The first The distance of a point from the crack edge trend line is To obtain the variance, is a hyperbolic function.

[0107] The variance of the distance of each point on the crack edge to the trend line of the crack edge The larger the value, the greater the change in distance between the point on the crack edge and its trend line, and therefore the stronger the deflection of the crack edge during extension.

[0108] Based on the stress factor of the crack obtained by the above operation, the synchronization coefficient on both sides and the extension deflection coefficient, the generation coefficient of the crack can be obtained:

[0109]

[0110] In the formula, is the generation coefficient of the crack edge, indicating the cause of the crack.

[0111] Because the stress factor The larger the crack is, the higher the possibility that the crack is a stress-induced crack; and the synchronization coefficient on both sides of the crack The larger the value, the more synchronized the two sides of the crack are. Due to the crack generation conditions, the greater the possibility that the crack is a stress-generated crack. For the extension deflection coefficient of the crack edge The larger the value, the more deflected the edge is, so the possibility that the crack is a stress-induced crack is smaller.

[0112] Therefore, the generation coefficient of the crack edge can be obtained By comparing with the preset threshold, the cause of the crack can be obtained, wherein the preset threshold can be measured according to actual experiments.

[0113] For example, the preset value can be set to 0.5. When If the cracks are caused by improper moisture, adjust the production pressure and disassemble the candy materials for production; if the cracks are caused by improper moisture, adjust the moisture in the candy raw materials and continue production.

[0114] It should be noted that the execution subject of the method for rapid quality detection of tablet candies provided in the embodiment of the present application may be a rapid quality detection device for tablet candies, or a control module in the rapid quality detection device for tablet candies for executing the method for rapid quality detection of tablet candies. In the embodiment of the present application, the rapid quality detection device for tablet candies executing the method for rapid quality detection of tablet candies is taken as an example to illustrate the rapid quality detection device for tablet candies provided in the embodiment of the present application.

[0115] Figure 2 A schematic diagram of a device for quickly detecting the quality of a compressed candy according to an embodiment of the present invention is shown in FIG. Figure 2 As shown, the device comprises:

[0116] The acquisition module 210 is used to acquire the surface image of the compressed candy.

[0117] The crack detection module 220 is used to perform crack detection on the surface image of the compressed candy to obtain crack features of the compressed candy.

[0118] The crack cause determination module 230 is used to determine the crack cause of the compressed candy according to the crack characteristics.

[0119] In some embodiments, the crack detection module 220 includes:

[0120] The image simplification unit is used to simplify the surface image to obtain a simplified image.

[0121] The crack detection unit is used to perform crack detection on the simplified image to obtain crack features of the compressed candy.

[0122] In some embodiments, the image simplification unit includes:

[0123] The image denoising subunit is used to perform denoising on the surface image to obtain a denoised image.

[0124] The grayscale subunit is used to grayscale the denoised image to obtain a simplified image.

[0125] In some embodiments, the crack detection unit comprises:

[0126] The edge detection subunit is used to perform edge detection on the simplified image to obtain the crack edge of the compressed candy.

[0127] The crack feature determination subunit is used to determine the crack features of the compressed candy according to the crack edges.

[0128] In some embodiments, the crack feature determination subunit includes:

[0129] The smoothness determination subunit is used to determine the stress factor of the crack based on the crack edge.

[0130] The correlation determination subunit is used to determine the synchronization coefficients on both sides of the crack according to the crack edge.

[0131] The extension deflection coefficient determination subunit is used to determine the crack extension deflection coefficient according to the crack edge.

[0132] In some embodiments, the smoothness determination subunit is specifically used to construct an edge chain code according to the crack edge; and calculate the edge chain code fluctuation according to the edge chain code to obtain the stress factor of the crack.

[0133] In some embodiments, the correlation determination subunit is specifically used to calculate the grayscale value change on both sides of the target pixel point according to the crack edge; and determine the synchronization coefficient on both sides of the crack according to the grayscale value change.

[0134] In some embodiments, the extension deflection coefficient determination subunit is specifically used to calculate the distance between a point on the crack edge and the crack trend line according to the crack edge; and determine the crack extension deflection coefficient according to the distance.

[0135] The device for rapid quality detection of compressed candies in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0136] The device for rapid quality detection of compressed candies in the embodiment of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0137] The rapid quality detection device for compressed candy provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0138] Figure 3 The schematic diagram of the structure of the rapid quality detection system of the tablet candy provided by one embodiment of the present invention is as follows: Figure 3 As shown, a system 300 for rapid quality detection of compressed candies includes: a memory 302 and a processor 301. The processor 301 executes a computer program stored in the memory 302. When the program or instruction is executed by the processor 301, each process of the embodiment of the method for rapid quality detection of compressed candies described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0139] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0140] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0141] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for rapid quality detection of compressed candy, characterized in that: The method comprises: Acquire a surface image of a compressed candy; Performing crack detection on the surface image of the compressed candy to obtain crack characteristics of the compressed candy; determining the cause of the cracks in the compressed candy according to the crack characteristics; The step of performing crack detection on the surface image of the compressed candy to obtain crack characteristics of the compressed candy includes: Simplifying the surface image to obtain a simplified image; Performing crack detection on the simplified image to obtain crack characteristics of the compressed candy; The performing crack detection on the simplified image to obtain crack characteristics of the compressed candy includes: Performing edge detection on the simplified image to obtain crack edges of the compressed candy; determining crack characteristics of the compressed candy according to the crack edges; The step of determining the crack characteristics of the compressed candy according to the crack edges comprises: determining a stress factor of the crack based on the crack edge; Determining a synchronization coefficient on both sides of the crack according to the crack edge; A crack extension deflection coefficient is determined based on the crack edge.

2. The method for rapid quality detection of compressed candy according to claim 1, characterized in that: The step of simplifying the surface image to obtain a simplified image includes: Performing noise reduction processing on the surface image to obtain a noise-reduced image; The denoised image is grayed to obtain a simplified image.

3. The method for rapid quality detection of compressed candy according to claim 1, characterized in that: Determining the stress factor of the crack according to the crack edge includes: constructing an edge chain code according to the crack edge; The edge chain code fluctuation is calculated according to the edge chain code to obtain the stress factor of the crack.

4. The method for rapid quality detection of compressed candy according to claim 1, characterized in that: Determining the synchronization coefficient on both sides of the crack according to the crack edge includes: The grayscale value change on both sides of the target pixel point is calculated according to the crack edge; The synchronization coefficients on both sides of the crack are determined according to the gray value change.

5. The method for rapid quality detection of compressed candy according to claim 1, characterized in that: Determining the crack extension deflection coefficient according to the crack edge includes: Calculating the distance between a point on the crack edge and the crack trend line according to the crack edge; A crack extension deflection factor is determined based on the distance.

6. A rapid quality detection device for compressed candy, characterized in that: The device comprises: An acquisition module, used for acquiring a surface image of a compressed candy; A crack detection module, used for performing crack detection of the compressed candy on the surface image to obtain crack characteristics of the compressed candy; A crack cause determination module, used to determine the crack cause of the compressed candy according to the crack characteristics; The step of performing crack detection on the surface image of the compressed candy to obtain crack characteristics of the compressed candy includes: Simplifying the surface image to obtain a simplified image; Performing crack detection on the simplified image to obtain crack characteristics of the compressed candy; The performing crack detection on the simplified image to obtain crack characteristics of the compressed candy includes: Performing edge detection on the simplified image to obtain crack edges of the compressed candy; determining crack characteristics of the compressed candy according to the crack edges; The step of determining the crack characteristics of the compressed candy according to the crack edge comprises: determining a stress factor of the crack based on the crack edge; Determining a synchronization coefficient on both sides of the crack according to the crack edge; A crack extension deflection coefficient is determined based on the crack edge.

7. A rapid quality detection system for compressed candies, characterized in that: include: A memory and a processor, wherein the processor executes a computer program stored in the memory to implement the method for quickly detecting the quality of a compressed candy according to any one of claims 1 to 5.