Paper adjustment method and device for folding machine based on image recognition

Through image recognition and neural network models, the wind force of the folding machine's suction nozzle is automatically adjusted, which solves the problem of difficult adjustment of the adsorption force, improves the efficiency and automation of the folding machine, reduces paper adhesion and overlap, and reduces production costs. .

CN118359027BActive Publication Date: 2024-08-27SHAANXI HAIFENG PRINTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410775767.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-27
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

When using existing folding machines, it is difficult to adjust the adsorption force of the nozzle, causing the paper to stick or overlap, which is inefficient. Especially when handling paper of different types and thicknesses, manual adjustments are required for many times, which is time-consuming and time-consuming. Powerful and difficult to guarantee consistent results.

Method used

A method based on image recognition is used to obtain and process the video of the process of absorbing paper, calculate the adhesion evaluation index of the edge of the paper, and use the neural network model to predict and adjust the wind force of the suction nozzle to automatically adjust the adsorption force to adapt to different paper types.

Benefits of technology

It improves the automation level and production efficiency of the folding machine, reduces the scrap rate caused by paper adhesion, saves raw materials, reduces production costs, and reduces manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118359027B
    Figure CN118359027B
Patent Text Reader

Abstract

The present application relates to the field of image recognition, and in particular to a paper adjustment method and device for a folding machine based on image recognition, the method comprising the steps of: obtaining an edge image of a paper pile, the edges of the paper being the first edge and the second edge from top to bottom, calculating the adhesion evaluation index of the first edge and the second edge, traversing to obtain the adhesion evaluation index of the first edge and the second edge in each historical frame image; constructing a prediction model, inputting the real-time wind force of the suction nozzle into the prediction model, generating a corresponding adhesion evaluation index, and adjusting the real-time wind force in response to the adhesion evaluation index being greater than or equal to a preset index threshold. The present application can efficiently and accurately adjust the effect of the folding machine suction nozzle in sucking paper.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition, and in particular to a paper adjustment method and device for a folding machine based on image recognition. Background Art

[0002] The folding machine is one of the indispensable equipment in the printing industry. The working principle of the folding machine is to achieve the folding and forming of different combinations of paper through the precise coordination of the fence and the folding knife.

[0003] In the process of taking paper from a folding machine, two key components, a suction nozzle and a blowing nozzle, are usually used. The suction nozzle sucks paper from the top of the paper pile, only sucking one sheet of paper at a time and separating it from the paper pile, and passing it to mechanical components such as the paper receiving roller for subsequent folding. While the paper is being sucked by the suction nozzle, the blowing nozzle blows air from the side of the paper pile to reduce the adhesion between the sucked paper and the next sheet of paper due to electrostatic adsorption and other reasons. For example, a Chinese patent with a publication number of CN213568588U discloses a paper taking mechanism for a stacking machine that is convenient for separating paper, which is provided with a material taking device (suction nozzle) and a wind knife (blowing nozzle). The material taking device sucks the paper, and the wind knife blows air to separate the upper and lower adjacent papers.

[0004] When the suction force of the nozzle on the paper is too weak, the paper cannot be sucked. When the suction force is too strong, the paper will be dragged together, overlapping, and multiple sheets of paper will be output. For thinner paper, a softer suction force is required to avoid damage to the paper; for thicker paper, a stronger suction force is required to ensure that the paper can be sucked smoothly.

[0005] The existing technology requires manual testing and adjustment of the suction force of the nozzle to achieve the ideal adsorption effect. This method is not only time-consuming and labor-intensive, but also difficult to ensure consistent adsorption effects every time, especially when dealing with different types and thicknesses of paper. In large-scale production processes, the efficiency is low. Summary of the invention

[0006] In order to solve the problem of low efficiency in manually adjusting the suction force of a suction nozzle, the present application provides a paper adjustment method and device for a folding machine based on image recognition.

[0007] In a first aspect, the present application provides a paper adjustment method for a folding machine based on image recognition, which adopts the following technical solution:

[0008] A paper adjustment method for a folding machine based on image recognition comprises the following steps: obtaining a historical video of a process of sucking paper by a suction nozzle, processing the historical video to obtain an edge image, wherein the edge of the sucked paper is a first edge, and the edge of the next paper of the sucked paper is a second edge; sorting the pixel points on the first edge to obtain a first sequence, dividing the first sequence at equal distances to obtain a plurality of subsequences, and similarly obtaining a subsequence of the second sequence corresponding to the second edge; taking the quotient of the cumulative sum of the Pearson correlation coefficients of the subsequences of each first sequence and each subsequence of the second sequence and the total number of subsequences of the first sequence as an adhesion evaluation index between the first edge and the second edge; for the historical video, constructing a data set about the suction nozzle wind force and the adhesion evaluation index according to the adhesion evaluation index and the suction nozzle wind force generated by the corresponding suction nozzle, training a preset neural network model according to the data set, and obtaining a prediction model; inputting the real-time wind force of the suction nozzle into the prediction model, generating an adhesion evaluation index as a real-time evaluation index, and adjusting the real-time wind force in response to the real-time evaluation index being greater than or equal to a preset index threshold.

[0009] Combined with image recognition and processing technology, during the paper picking process of the folding machine, the wind force is automatically adjusted according to different paper types, and it has strong adaptive capabilities. The larger the paper adhesion evaluation index, the greater the possibility of paper adhesion. According to the adhesion index under different suction nozzle wind forces, the real-time wind force adhesion index is predicted to find the most suitable wind force and accurately adjust the effect of the folding machine suction nozzle to absorb paper. Accurate wind force control can reduce the scrap rate caused by paper adhesion, save raw materials, and reduce production costs. Through image recognition and neural network model prediction, the paper adhesion situation can be quickly and accurately evaluated, thereby reducing manual intervention and improving the automation and production efficiency of the folding machine.

[0010] Optionally, the edge of the sucked paper is the first edge, and the edge of the next paper after the sucked paper is the second edge, comprising the steps of: moving a preset sliding window on the edge of the image, calculating the height difference between the first pixel point in the sliding window and the last pixel point in the sliding window on the edge image, taking the ratio of the height difference to the height of the first pixel point as the degree of tortuosity, in response to the degree of tortuosity in the sliding window being greater than a preset degree threshold, the first pixel point in the sliding window is the intersection point between the edge segments, and a plurality of edge segments are obtained; dividing the edge segments into a plurality of long edges and short edges, calculating the mean of the ordinates of the pixels on the long edges, the long edge corresponding to the maximum value of the mean is the first edge, and the long edge whose mean is only less than the maximum value of the mean is the second edge.

[0011] By calculating the height difference of the pixel points in the sliding window, it is possible to determine whether the pixel point of the sliding window is a pixel point at the junction of the long edge and the short edge, which is used as a basis for dividing the first edge and the second edge.

[0012] Optionally, dividing the edge segments into multiple long edges and short edges includes: treating edge segments between intersections that are greater than or equal to a preset length threshold as long edges, and treating edge segments between intersections that are less than the preset length threshold as short edges.

[0013] Using the length threshold as the division standard is simple to calculate, with a small amount of calculation, easy for operators to understand and implement, and convenient for rapid deployment and maintenance. In addition, the length threshold can be adjusted according to different paper sizes and folder models, so that the system can adapt to a variety of production environments and needs.

[0014] Optionally, dividing the edge segment into a plurality of long edge segments and short edge segments comprises the steps of: calculating the aspect ratio of the edge segment, and the calculation formula of the aspect ratio is: ,in, represents the aspect ratio of the edge segment, Represents the horizontal coordinate of the first edge point in the sliding window on any edge segment, Represents the horizontal coordinate of the last edge point in the sliding window on any edge segment, Represents the ordinate of the first edge point in the sliding window on any edge segment, Represents the ordinate of the last edge point in the sliding window on any edge segment; an aspect ratio of 1 is a long edge, and an aspect ratio of 0 is a short edge.

[0015] The long edge and the short edge are divided by calculating the aspect ratio. Compared with the division by manually setting the length threshold, it does not require human intervention and avoids the misjudgment caused by the fixed threshold. The long edge and the short edge can be divided according to the actual situation. The calculation of the aspect ratio takes into account the directionality of the edge segment, which can more accurately reflect the actual shape of the edge and can adapt to the detection of irregular edges with good adaptability.

[0016] Optionally, a historical video of the paper picking process is obtained, and an edge image is obtained after processing the historical video, including the steps of: obtaining a historical video of the side view angle of the paper pile, extracting frames from the historical video, and obtaining multiple historical frame images; graying the historical frame images to obtain an initial grayscale image; thresholding the initial grayscale image to obtain a grayscale image of the target area; and inputting the grayscale image of the target area into an edge detection model to obtain an edge image, in which pixel points with a pixel value of 1 are edge points, and pixel points with a pixel value of 0 are non-edge points.

[0017] Optionally, performing threshold segmentation on the initial grayscale image to obtain the grayscale image of the target area includes: setting a value range, removing pixels whose grayscale values ​​are not within the value range, and retaining pixels whose grayscale values ​​are within the value range.

[0018] The grayscale image of the paper area is extracted through the above technical solution, and the background image of the non-paper area is removed to achieve the purpose of threshold segmentation. Threshold segmentation helps to enhance the contrast between the paper area and the background in the image, which is conducive to improving the accuracy and efficiency of subsequent image processing.

[0019] Optionally, the edge detection model is a canny edge detection model.

[0020] In a second aspect, the present application provides a paper adjustment device for a folding machine based on image recognition, which adopts the following technical solution:

[0021] A paper adjustment device for a folding machine based on image recognition comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned paper adjustment method for a folding machine based on image recognition is implemented.

[0022] This application has the following technical effects:

[0023] 1. Combined with image recognition and processing technology, the adhesion evaluation index is calculated during the paper picking process of the folding machine. The larger the adhesion evaluation index, the greater the possibility of paper adhesion, so as to judge the paper adhesion situation. Combined with the neural network model for prediction, the real-time wind force of the suction nozzle is input into the prediction model to generate the corresponding adhesion evaluation index, accurately evaluate the paper adhesion situation, and find the most suitable wind force. For different paper conditions, the suction force of the suction nozzle of the folding machine can be accurately adjusted to achieve the best effect of sucking paper.

[0024] 2. It can divide long edges and short edges according to actual situations, avoiding misjudgment caused by fixed thresholds. The calculation of the aspect ratio takes into account the directionality of the edge segment, which can more accurately reflect the actual shape of the edge and adapt to the detection of irregular edges, with good adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-restrictive manner, and the same or corresponding numbers represent the same or corresponding parts.

[0026] Figure 1 It is a method flow chart of a folding machine paper adjustment method based on image recognition in an embodiment of the present application.

[0027] Figure 2 It is a method flow chart of step S1 in the folding machine paper adjustment method based on image recognition in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0029] It should be understood that when the terms "first", "second", etc. are used in the claims, specification and drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0030] The present application embodiment discloses a paper adjustment method for a folding machine based on image recognition, referring to Figure 1 , including steps S1 to S5, which are specifically as follows:

[0031] S1: Obtain a historical video of the paper picking process, and obtain an edge image after processing the historical video. In the edge image, the edge of the paper being picked up is the first edge, and the edge of the paper next to the paper being picked up is the second edge. Figure 2 , including steps S10 to S15, which are specifically as follows:

[0032] S10: The papers to be picked up are neatly stacked into a pile, and a camera is arranged at a frontal angle on the side of the pile where the long side of the paper is located to collect a historical video of the paper picking process.

[0033] If the four sides of the paper are equal, obtain the video of the side view angle of the paper pile where any side is located to obtain the historical video of the side view angle of the paper pile.

[0034] S11: extract frames from the historical video at a preset frequency to obtain multiple historical frame images.

[0035] For example, the image is drawn 60 times per second, and the historical frame image is an RGB (Red, Green, Blue) image.

[0036] S12: grayscale the historical frame image to obtain an initial grayscale image; perform threshold segmentation on the initial grayscale image to obtain a target area grayscale image; input the target area grayscale image into an edge detection model to obtain an edge image, in which a pixel point with a pixel value of 1 is an edge point, and a pixel point with a pixel value of 0 is a non-edge point.

[0037] In one embodiment, the threshold segmentation method is: setting the value range of the paper gray value, exemplarily, the value range is , the grayscale values ​​in the initial grayscale image that do not belong to The area is eliminated to obtain the grayscale image of the target area, so as to extract the grayscale image of the paper area and remove the background image of the non-paper area. The value of the range can be adjusted according to the specific application scenario, and other threshold segmentation methods applicable to this application can also be used, which will not be described here.

[0038] In one embodiment, after threshold segmentation, the grayscale image of the target area is added to the edge detection model to obtain a 0-1 image as an edge image, wherein a point with a pixel value of 1 is an edge point, and a point with a pixel value of 0 is a non-edge point. Exemplarily, the edge detection model may be a canny edge detection model, which is a prior art, and other edge detection models in the prior art that can be applied to the present application may also be used, which will not be described in detail here.

[0039] S13: Move a preset sliding window on the edge of the image, calculate the height difference between the first pixel point in the sliding window and the last pixel point in the sliding window on the edge image, and use the ratio of the height difference to the height of the first pixel point as the degree of tortuosity. In response to the tortuosity in the sliding window being greater than a preset degree threshold, the first pixel point in the sliding window is the intersection point between the edge segments, and multiple edge segments are obtained.

[0040] In one embodiment, the top edge point of the edge image is set as the starting point, so that the preset sliding window slides along the edge from the starting point and stops sliding after traversing all edge points.

[0041] In this process, the tortuosity of the sliding window is calculated using the following formula: ,in, Indicates the tortuosity of the sliding window. Indicates the height of the first pixel in the sliding window on the edge image, Indicates the height of the last pixel in the sliding window on the edge image.

[0042] When the degree of tortuosity in the sliding window is greater than a preset threshold, the position of the first pixel point is the intersection point between the edge segments, so as to segment the edge in the edge image and obtain multiple edge segments. Otherwise, the sliding window continues to slide.

[0043] S14: Divide the edge segment into multiple long edge segments and short edge segments.

[0044] In one embodiment, the method of dividing edge segments into multiple long edges and short edges is: edge segments between intersections whose length is greater than or equal to a preset length threshold are regarded as long edges, and edge segments between intersections whose length is less than the preset length threshold are regarded as short edges.

[0045] Exemplarily, the length threshold is 50, and the length threshold can be set according to the actual application scenario. The length of the sliding window is 30 pixels, the height of the sliding window is the total number of pixels in the vertical direction of the edge image, and the step length of the sliding window is 15 pixels. The step length of the sliding window refers to the fixed distance that the sliding window moves from one position to the next position when processing data.

[0046] The step size is set to 15 pixels and the sliding window length is set to 30 pixels. The purpose is to reduce the intersection of the long edge and the short edge at the edge point of the sliding window, which is beneficial to the calculation of the sliding window tortuosity.

[0047] In one embodiment, the method of dividing the edge segment into multiple long edge segments and short edge segments is:

[0048] Calculate the aspect ratio of the edge segment. The aspect ratio of 1 is a long edge, and the aspect ratio of 0 is a short edge. The calculation formula of the aspect ratio is: ,in, represents the aspect ratio of the edge segment, Represents the horizontal coordinate of the first edge point in the sliding window on any edge segment, Represents the horizontal coordinate of the last edge point in the sliding window on any edge segment, Represents the ordinate of the first edge point in the sliding window on any edge segment, Represents the ordinate of the last edge point in the sliding window on any edge segment.

[0049] S15: Calculate the mean of the ordinates of the pixels on the long edge. The long edge corresponding to the maximum value of the mean is the first edge, and the long edge whose mean is only less than the maximum value of the mean is the second edge.

[0050] The purpose is to obtain the edges of the two top sheets of paper in the paper pile, with the edge of the long side of the sucked paper being used as the first edge and the edge of the long side of the next sheet of paper being sucked being used as the second edge.

[0051] S2: Sort the pixels on the first edge to obtain a first sequence, divide the first sequence into equal distances to obtain multiple subsequences, and similarly obtain subsequences of the second sequence corresponding to the second edge.

[0052] The number of subsequences corresponding to the first sequence is the same as the number of subsequences corresponding to the second sequence. The purpose is to keep the lengths of the two subsequences consistent when calculating the Pearson correlation coefficient later.

[0053] S3: taking the quotient of the cumulative sum of the Pearson correlation coefficients of the subsequences of each first sequence and each subsequence of the second sequence and the total number of subsequences of the first sequence as the adhesion evaluation index between the first edge and the second edge.

[0054] Specifically, the calculation formula of the adhesion evaluation index is:

[0055] ,in, Represents the adhesion evaluation index between the first edge and the second edge, is the number of subsequences of the first sequence, represents the Pearson correlation coefficient, Indicates subsequences of the first sequence, Indicates the second edge A subsequence of the second sequence.

[0056] Represents the Pearson correlation coefficient, which is used to calculate the correlation between the subsequences of the first sequence and the subsequences of the second sequence. The value of the Pearson correlation coefficient is between and between, indicates a completely positive correlation. indicates a completely negative correlation. Indicates no correlation. The larger the adhesion evaluation index, the greater the possibility of paper adhesion.

[0057] S4: For historical videos, a data set about nozzle wind force and adhesion evaluation index is constructed according to the adhesion evaluation index and the nozzle wind force generated by the corresponding nozzle, and a preset neural network model is trained according to the data set to obtain a prediction model.

[0058] In one embodiment, the wind force of the nozzle is linearly enhanced and adjusted according to a preset PID (Proportional-Integral-Derivative) control system. In this process, the adhesion evaluation index corresponding to the wind force of each nozzle is calculated, and a training set is set. The neural network model is trained according to the training set. The neural network model uses RNN (Recurrent Neural Network), and the loss function is the mean square error loss function. The model training process is a prior art and will not be described in detail here.

[0059] S5: inputting the real-time wind force of the suction nozzle into the prediction model, generating an adhesion evaluation index as the real-time evaluation index, and adjusting the real-time wind force in response to the real-time evaluation index being greater than or equal to a preset index threshold.

[0060] In response to the real-time evaluation index being less than the preset index threshold, the real-time wind force is the optimal wind force, and the nozzle wind force at this time is maintained without wind force adjustment. Otherwise, the real-time wind force is adjusted until the real-time wind force is the optimal wind force and then the adjustment is stopped.

[0061] Exemplarily, the preset index threshold may be set to 0.5, and the preset index threshold may be set according to actual application scenarios.

[0062] If the real-time evaluation index is less than 0.5, the wind force of the suction nozzle is the optimal wind force at this time. If the real-time evaluation index is greater than or equal to 0.5, the wind force of the suction nozzle is not the optimal wind force at this time, and the wind force of the suction nozzle needs to be adjusted until the wind force of the suction nozzle reaches the optimal wind force. In this way, the effect of efficiently and accurately adjusting the suction nozzle of the folding machine to absorb paper can be achieved.

[0063] An embodiment of the present application also discloses a folding machine paper adjustment device based on image recognition, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a folding machine paper adjustment method based on image recognition according to the present application is implemented.

[0064] The above-mentioned device also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, whose configuration and functions are known in the art and thus will not be described in detail here.

[0065] In the present application, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high bandwidth memory HBM (High Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device.

[0066] Although this specification has shown and described a plurality of embodiments of the present application, it is obvious to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will think of many changes, modifications and alternatives without departing from the thought and spirit of the present application. It should be understood that in the process of practicing the present application, various alternatives to the embodiments of the present application described herein may be adopted.

[0067] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A paper adjustment method for a folding machine based on image recognition, characterized in that: Includes steps: A historical video of a process of sucking paper by a suction nozzle is obtained, and an edge image is obtained after processing the historical video. In the edge image, the edge of the sucked paper is a first edge, and the edge of a paper next to the sucked paper is a second edge. The pixel points on the first edge are sorted to obtain a first sequence, and the first sequence is divided into multiple subsequences at equal distances. Similarly, subsequences of the second sequence corresponding to the second edge are obtained; The quotient of the cumulative sum of the Pearson correlation coefficients of each subsequence of the first sequence and each subsequence of the second sequence and the total number of subsequences of the first sequence is used as the adhesion evaluation index between the first edge and the second edge; For historical videos, a data set of nozzle wind force and adhesion evaluation index is constructed according to the adhesion evaluation index and the nozzle wind force generated by the corresponding nozzle, and a preset neural network model is trained according to the data set to obtain a prediction model; The real-time wind force of the suction nozzle is input into the prediction model, and an adhesion evaluation index is generated and used as the real-time evaluation index. In response to the real-time evaluation index being greater than or equal to a preset index threshold, the real-time wind force is adjusted.

2. The paper adjustment method for a folding machine based on image recognition according to claim 1, characterized in that: The edge of the sucked paper is the first edge, and the edge of the next paper to the sucked paper is the second edge, comprising the steps of: Move a preset sliding window on the edge of the image, calculate the height difference between the first pixel point in the sliding window and the last pixel point in the sliding window on the edge image, take the ratio of the height difference to the height of the first pixel point as the degree of tortuosity, and in response to the tortuosity in the sliding window being greater than a preset degree threshold, the first pixel point in the sliding window is the intersection point between the edge segments, and obtain multiple edge segments; The edge segments are divided into multiple long edges and short edges, and the ordinate mean of the pixels on the long edge is calculated. The long edge corresponding to the maximum value of the mean is the first edge, and the long edge whose mean is only less than the maximum value of the mean is the second edge.

3. The paper adjustment method for a folding machine based on image recognition according to claim 2, characterized in that: Dividing the edge segments into multiple long edges and short edges includes: treating edge segments between intersections that are greater than or equal to a preset length threshold as long edges, and treating edge segments between intersections that are less than the preset length threshold as short edges.

4. The paper adjustment method for a folding machine based on image recognition according to claim 2, characterized in that: Dividing the edge segment into multiple long edge segments and short edge segments includes the following steps: Calculate the aspect ratio of the edge segment. The calculation formula for the aspect ratio is: ,in, represents the aspect ratio of the edge segment, Represents the horizontal coordinate of the first edge point in the sliding window on any edge segment, Represents the horizontal coordinate of the last edge point in the sliding window on any edge segment, Represents the ordinate of the first edge point in the sliding window on any edge segment, Represents the ordinate of the last edge point in the sliding window on any edge segment; An aspect ratio of 1 is a long edge, and an aspect ratio of 0 is a short edge.

5. The paper adjustment method for a folding machine based on image recognition according to any one of claims 1 to 4, characterized in that: Obtain a historical video of a process of sucking paper through a nozzle, and process the historical video to obtain an edge image, including the following steps: Obtain a historical video of a paper pile from a side view angle, extract frames from the historical video, and obtain multiple historical frame images; Grayscale the historical frame image to obtain an initial grayscale image; Perform threshold segmentation on the initial grayscale image to obtain a grayscale image of the target area; The grayscale image of the target area is input into the edge detection model to obtain an edge image. In the edge image, the pixel points with a pixel value of 1 are edge points, and the pixel points with a pixel value of 0 are non-edge points.

6. The paper adjustment method for a folding machine based on image recognition according to claim 5, characterized in that: Performing threshold segmentation on the initial grayscale image to obtain the grayscale image of the target area includes: setting a value range, removing pixels whose grayscale values ​​are not within the value range, and retaining pixels whose grayscale values ​​are within the value range.

7. The paper adjustment method for a folding machine based on image recognition according to claim 5, characterized in that: The edge detection model is the canny edge detection model.

8. A paper adjustment device for a folding machine based on image recognition, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the folding machine paper adjustment method based on image recognition according to any one of claims 1 to 7 is implemented.