A method and system for reverse scanning and forward slicing of cardboard boxes

By using a reverse scanning and forward cutting method for cardboard boxes, and utilizing an integrated line scanning camera and rotary encoder to control the carton's posture, cutting and creasing are completed directly with the printed pattern facing down. This solves the problem of positional offset caused by cardboard flipping, and improves positioning consistency and production adaptability.

CN123104151APending Publication Date: 2026-11-17SHANGHAI AOSE INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611612654.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-19
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing cardboard box cutting and creasing processes, the cardboard flipping process can easily lead to positional shifts and angular deflections, affecting the stability of the correspondence between the printed pattern and the cutting and creasing positions, and making it difficult to adapt to multi-variety, small-batch production.

Method used

The method of reverse scanning and forward cutting of carton is adopted. The printed pattern surface is scanned from below by an integrated line scanning camera. Combined with rotary encoder and sensor components, the carton posture is controlled in real time. Cutting and creasing are completed directly with the printed pattern surface facing down. Image processing and coordinate transformation technology are used to ensure positional correspondence.

Benefits of technology

It reduces positional shifts and angular deflections caused by cardboard flipping, improves the positioning consistency between printed patterns and cutting/creaming positions, and enhances adaptability to multi-variety, small-batch production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123104151A_ABST
    Figure CN123104151A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for reverse scanning and forward cutting of cardboard boxes, relating to the field of packaging and printing equipment technology. The method involves conveying a cardboard box with the printed pattern facing down to the cutting station via a conveying device, and continuously collecting the conveying displacement and speed via a rotary encoder. When the cardboard box reaches the feeding detection position, an integrated line scanner located below the cardboard box scans the printed pattern line by line through a glass, and is held in place by a feeding roller and a pressure roller. After scanning, the cardboard box continues to be conveyed while maintaining its original posture. The scanned image is preprocessed, pattern features are extracted, features are recognized and located, the center coordinates and rotation angle of the pattern are determined, and the cutting lines and creasing lines are converted and mapped to the physical coordinates of the equipment. Based on the physical coordinates and the cumulative conveying displacement, the cardboard box is positioned, and the cutter head and cutter holder located above the cardboard box are controlled to complete the cutting and creasing. This invention achieves continuous scanning positioning and cutting / creasing without flipping the cardboard box, improving positioning consistency and processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of packaging and printing equipment technology, specifically to a method and system for visual positioning, cutting and creasing of corrugated boxes, folding cartons and other packaging products after printing, involving machine vision positioning, image recognition, CNC cutting and automated collaborative control. Background Technology

[0002] Packaging products such as cardboard boxes and cartons typically undergo processes including printing, cutting, creasing, grooving, and folding during production. The cutting and creasing positions must accurately correspond to the printed patterns; otherwise, problems such as pattern misalignment and folding deviations may occur in the finished packaging.

[0003] Among the existing methods for cutting and creasing cartons, one method requires the creation of special die-cutting molds for cartons of different specifications, which results in high mold-making costs, long processing cycles, and difficulty in adapting to multi-variety, small-batch production. Another method involves manually creating positioning frames and placing the cartons manually after printing on the cardboard. The positioning effect largely depends on the operator's experience, and when changing carton specifications, it is usually necessary to remake the positioning frames, resulting in low changeover efficiency.

[0004] With the application of visual scanning technology, some processing methods involve first scanning the printed pattern surface of the cardboard, then flipping the cardboard over and determining the cutting and creasing positions based on the scanning results. However, the cardboard is prone to positional shifts and angular deflections during the flipping process, causing deviations between the scanned pattern position and the subsequent actual processing position. Furthermore, flipping and re-alignment increase processing steps and may increase equipment space requirements. Therefore, there is still room for improvement in how to maintain the correspondence between the printed pattern positioning result and the subsequent cutting and creasing positions while minimizing changes in cardboard posture. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for reverse scanning and forward cutting of cardboard boxes, so as to reduce the positional offset and angular deflection caused by the flipping of the cardboard box after the printed pattern is scanned, and to improve the stability of the correspondence between the printed pattern and the cutting and creasing positions.

[0006] To achieve the above-mentioned technical objectives, the present invention adopts the following technical solution: A method for reverse scanning and forward cutting of cardboard boxes, comprising: S1. Perform self-testing on the scanning device, conveying device, cutter head and cutter holder device and sensor assembly; S2. Control the conveying device to operate synchronously with the cutting machine conveying device, convey the carton with the printed pattern facing down to the cutting station, and collect the conveying displacement and conveying speed through a rotary encoder. S3. When the carton reaches the feeding detection position, the integrated line scanning camera located below the carton is activated. Through the glass flush with the conveying surface, the printed pattern on the lower surface of the carton is scanned line by line using the synchronous triggering method of the rotary encoder, and is pressed by the feeding roller and pressure roller located before and after the scanning position. S4. After scanning, the carton is kept in the above posture and continues to be conveyed. The rotary encoder continuously counts the conveying displacement during the scanning process and after scanning. The carton is determined to have reached the cutting station based on the cumulative conveying displacement. S5. Perform image preprocessing, pattern feature extraction, and feature recognition and positioning on the scanned printed pattern image. Identify positioning marks or feature graphics and determine the pattern center coordinates and rotation angle. Based on the preset relative positional relationship between the printed pattern and the cutting line and creasing line in the layout design file, convert the cutting line and creasing line from the local coordinates of the carton to the image coordinates. Then, convert them to physical coordinates according to the mapping relationship between the pre-calibrated image coordinates and the physical coordinates of the cutter head and cutter holder device. S6. Determine the carton is in position based on the physical coordinates and the cumulative conveying displacement, and control the cutter head and cutter holder device located above the carton to complete the cutting and creasing according to the corresponding physical coordinates; S7. After completing the cutting and creasing, restart the conveying device and the cutting machine conveyor and discharge the material; Throughout the process of scanning the printed pattern on the carton, from the time the pattern is scanned to the completion of cutting and creasing, the printed pattern face down. The integrated line scan camera captures the printed pattern from below, while the cutter head and cutter holder device performs cutting and creasing from above.

[0007] Optionally, in S3, the scanning line frequency of the integrated line scanner is determined based on the conveying speed of the carton, and the cumulative scanning displacement is determined based on the cumulative number of scanned lines, respectively according to... Formula 4 and formula 5 Perform the calculation; where, in formula 4, The scanning line frequency of the integrated line scan camera, This refers to the actual conveying speed of the cardboard boxes. The spacing between adjacent scan lines on the carton surface; in Formula 5, For cumulative scan displacement, To accumulate the number of scanned rows, The spacing between adjacent scan lines on the carton surface.

[0008] Optionally, in S5, when the printed pattern contains positioning marks, the positioning marks are identified through template matching, and the position and orientation of the printed pattern are determined based on the known physical dimensions of the positioning marks; when the printed pattern does not contain positioning marks, significant corner points in the printed pattern are extracted, and matching is performed between the relative geometric relationships between the corner points and the feature graphic descriptions in the layout design file; after matching is completed, according to... Formula 19 and formula 20 Determine the center coordinates of the printed pattern; where, in formula 19, Let x be the horizontal coordinate of the center of the printed pattern in the image coordinate system. The total number of feature points. For the first The horizontal image coordinates of each feature point; in Formula 20 Let be the vertical coordinate of the center of the printed pattern in the image coordinate system. The total number of feature points. For the first The vertical image coordinates of each feature point.

[0009] Optionally, in S5, according to Formula 21 and formula 22 Transform the endpoints of the cutting lines and creasing lines in the layout design file from the local coordinates of the carton to the image coordinates, and then follow the instructions. Formula 25 Formula 26 Formula 27 The image coordinates are converted into the physical coordinates of the tool head and tool holder device; wherein, in formula 21, The horizontal image coordinates are... Let x and y be the horizontal coordinates of the center of the printed pattern, x and y be the local coordinates of the carton, and L and W be the length and width of the carton, respectively. The rotation angle of the printed pattern; in Formula 22, The vertical image coordinates are... The vertical image coordinates of the center of the printed pattern are x, y, L, W, The meaning is the same as in Formula 21; in Formula 25, As a scale factor, , The physical coordinates of the tool head and tool holder assembly. It is a 3x3 homography matrix, where u and v are image coordinates. The symbol for matrix transpose; in formula 26, The vertical physical coordinates are represented by u and v, which are the image coordinates. , , , , , For elements of the homography matrix; in Formula 27, The horizontal physical coordinates are u and v, which are the image coordinates. , , , , , These are elements of the homography matrix.

[0010] Optionally, in S4 and S6, the cumulative conveying displacement of the carton is determined based on the cumulative pulse count of the rotary encoder, and the final position displacement is determined based on the initial longitudinal position of the leading edge of the carton and the physical coordinates of the first processing line. Formula 28 Formula 29 Formula 30 Formula 31 Formula 32 Calculations and positioning determination are performed; among them, in formula 28, To accumulate the transported displacement, The number of cumulative pulses for the encoder. The encoder pulse corresponds to the transport displacement; in Formula 29, The transmission displacement corresponding to each encoder pulse. The radius of the drive roller, This represents the number of pulses per encoder revolution; in Formula 30, For the displacement to be in place, This is the cumulative encoder displacement when the leading edge of the carton enters the detection range of the cutting position sensor. The vertical physical coordinates of the first processing line. Let be the initial longitudinal position of the leading edge of the carton in the coordinate system of the cutter head and cutter holder device; in formula 31, To accumulate and transmit displacement in real time, For the displacement at position; in formula 32, To accumulate and transmit displacement in real time, For the displacement to be in place, To allow overshoot.

[0011] To achieve the above-mentioned technical objectives, the present invention adopts the following technical solution: A carton reverse scanning and forward cutting system includes a cutting machine conveying device, a cutter head and cutter holder device, a control box, a pressing mechanism, a scanning device, a feeding mechanism, a conveying device, and a sensor assembly. The conveying device is located behind the conveying device of the cutting machine and includes an aluminum profile frame, a drive roller, a driven roller, a drive motor and a conveyor belt. The drive roller and the driven roller are rotatably mounted on the aluminum profile frame, and the conveyor belt is wound around the drive roller and the driven roller to form a closed loop. The feeding mechanism is located at the front end of the conveying device near the cutting machine conveying device, and the scanning device is located at the connection position between the conveying device and the cutting machine conveying device. The scanning device includes an integrated line scanning camera located below the carton conveying path with the lens facing upward and a glass located above the integrated line scanning camera. The upper surface of the glass is flush with the upper surface of the conveyor belt of the conveying device. The pressing mechanism is located at the rear end of the cutting machine's conveying device and above the carton. The feeding mechanism and the pressing mechanism work together to hold the carton during the scanning process. The cutter head and cutter holder are located above the cutting machine's conveyor and include a pneumatic cutter for cutting cartons and a creasing cutter for forming fold lines. The sensor assembly includes a feed detection sensor, a rotary encoder, and a cutting detection sensor. The rotary encoder is coaxially connected to the drive component of the feeding mechanism. The control box is electrically connected to the cutting machine's conveying device, cutter head and cutter holder device, scanning device, conveying device and sensor assembly, and controls the carton conveying, cutting and creasing based on the printed pattern obtained by the integrated line scan camera and the conveying displacement fed back by the rotary encoder. In this process, the cardboard box passes through the scanning position and the cutting station in sequence with the printed pattern facing down. The integrated line scan camera captures the printed pattern from the bottom of the cardboard box, and the cutter head and cutter holder device performs cutting and creasing from the top of the cardboard box.

[0012] Optionally, the scanning device further includes a support frame, side sealing plates, a fixing profile, a buffer pad, and a reinforcing angle aluminum; the fixing profile is arranged laterally on the upper end of the support frame, the integrated line scanning camera is arranged laterally on the fixing profile and connected to the support frame through the reinforcing angle aluminum, and the two side sealing plates are respectively arranged at the two ends of the fixing profile and the integrated line scanning camera; the buffer pad includes a side sealing plate pad arranged on the upper surface of the side sealing plate, a camera pad arranged on the upper surface of the integrated line scanning camera, and a profile pad arranged on the upper surface of the fixing profile, the upper surfaces of the three are flush and together support the glass.

[0013] Optionally, the feeding mechanism includes a feeding bearing seat fixed to the aluminum profile frame and a feeding roller rotatably connected to the feeding bearing seat. The feeding roller is equipped with an upper gear, and the drive roller of the conveying device is equipped with a lower gear that is connected to the upper gear in a 1:1 transmission ratio. The distance between the lower surface of the feeding roller and the upper surface of the conveyor belt is less than the thickness of the carton. The pressing mechanism includes a bearing seat, a pressing roller, and a bearing. The two ends of the pressing roller are rotatably connected to the bearing seat through the bearings. The bearing seat is fixed to the cutting machine conveying device. The gap between the roller surface of the pressing roller and the carton conveying surface is less than the thickness of the carton. The surfaces of both the feeding roller and the pressing roller are covered with flexible material.

[0014] Optionally, the feeding detection sensor is a through-beam photoelectric sensor located at the feeding position of the feeding mechanism, used to detect the moment when the carton enters the feeding mechanism; the rotary encoder outputs pulse signals as the feeding mechanism moves, so that the control box determines the conveying displacement and conveying speed based on the pulse signals; the cutting detection sensor is a through-beam photoelectric sensor located at the front end of the integrated line scan camera, used to trigger a stop scanning after the carton has completely passed the integrated line scan camera.

[0015] Optionally, the cutting machine conveying device includes a machine body and a conveyor belt, with a crossbeam slidably connected to the machine body in the front-to-back direction; the cutter head and cutter holder device is slidably connected to the crossbeam in the transverse direction, including a lifting mechanism, a cutter holder, a pneumatic cutter and a creasing cutter, the cutter holder is slidably connected to the crossbeam in the up-down direction, the lifting mechanism drives the cutter holder to lift and lower using a screw lifting method, the pneumatic cutter and the creasing cutter are respectively installed on the cutter holder, the pneumatic cutter is used to cut out the unfolded outline of the carton and slots, and the creasing cutter is used to form fold lines.

[0016] The main advantages of this invention compared to existing technologies are as follows: This invention enables the carton to complete pattern scanning, transport positioning, and subsequent cutting and creasing while the printed pattern is facing down, eliminating the need to flip the carton after pattern scanning. This reduces positional offset and angular deviation caused by flipping, and helps improve the positioning consistency between the printed pattern and the cutting and creasing lines.

[0017] This invention uses an integrated line scan camera to scan the printed pattern on the lower surface of a carton line by line, and uses a feeding roller and a pressure roller to hold the carton during the scanning process. This reduces the carton from warping and drifting, and maintains a more stable positional relationship between the printed pattern and the scanning device, which is beneficial to improving the stability of image acquisition and subsequent feature recognition.

[0018] This invention determines the pattern position and rotation angle based on the feature recognition results of the printed pattern, and combines the preset relative positional relationship between the printed pattern and the cutting line and indentation line in the layout design file to convert the corresponding processing position to the physical coordinates of the cutter head and cutter holder device, thereby establishing the correspondence between the printing pattern positioning result and the actual cutting and indentation position.

[0019] This invention uses a rotary encoder to continuously detect the displacement of the carton during transport and determines the carton's arrival at the cutting station based on the cumulative transport displacement. This allows scanning, transport positioning, cutting, and creasing to be completed continuously in the same processing flow. When changing carton specifications, the corresponding control parameters can be adjusted for adaptation, which is beneficial to improving the adaptability of processing multiple varieties and small batches of cartons. Attached Figure Description

[0020] Figure 1 This is an overall assembly diagram of the carton reverse scanning and forward cutting system of the present invention; Figure 2 This is a top view of the carton reverse scanning and forward slicing system of the present invention; Figure 3 This is a top view of the pressing mechanism of the present invention; Figure 4 This is a side view of the pressing mechanism of the present invention; Figure 5 This is an assembly diagram of the camera device of the present invention; Figure 6 This is a perspective view of the camera device of the present invention; Figure 7 for Figure 6 Enlarged view at point E in the middle; Figure 8 This is a top view of the installation of the adhesive strip of the present invention; Figure 9 This is a schematic diagram of the installation of the reinforcing angle aluminum of the present invention; Figure 10 This is a flowchart of the steps of the cardboard box reverse scanning and forward cutting method of the present invention. Detailed Implementation

[0021] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are used to illustrate the technical solution of the present invention and are not intended to limit the scope of protection of the present invention.

[0022] like Figures 1 to 9As shown, this invention provides a carton reverse scanning and forward cutting system, including a cutting machine conveying device 1, a cutter head and cutter holder device 2, a control box 3, a pressing mechanism 4, a scanning device 5, a feeding mechanism 6, a conveying device 7, and a sensor assembly. The conveying device 7 is used to convey the carton to be processed towards the cutting machine conveying device 1. The feeding mechanism 6 is used to feed and press the carton before it enters the scanning area. The scanning device 5 is used to collect the printed pattern from below the carton with the printed pattern facing down. The pressing mechanism 4 is used to press the upper surface of the carton as it passes through the scanning area and enters the cutting machine conveying device 1. The cutting machine conveying device 1 is used to receive the carton conveyed by the conveying device 7 and transport it to the cutting station. The cutter head and cutter holder device 2 is used to complete cutting and creasing from above the carton. The control box 3 is used to coordinate and control the conveying, scanning, positioning, cutting, and creasing processes based on the printed pattern collected by the scanning device 5 and the carton conveying status fed back by the sensor assembly.

[0023] In this invention, "reverse scanning and forward cutting" means that the printed pattern side of the carton remains facing down throughout the conveying, scanning, positioning, and cutting / crimping processes. The scanning device 5 acquires the printed pattern from below the carton, while the cutter head and cutter holder device 2 performs cutting and creasing from above. Therefore, the carton does not need to be flipped after pattern scanning, nor does it need to be transferred from the scanning and positioning device to another positioning station. The carton's positional relationship established during scanning can continue to be used for subsequent cutting and creasing positioning.

[0024] like Figure 1 As shown, the cutting machine conveying device 1, the cutter head and cutter holder device 2, the control box 3, the pressing mechanism 4, the scanning device 5, the feeding mechanism 6, and the conveying device 7 are combined along the carton processing direction to form a continuous processing equipment.

[0025] The conveying device 7 is located behind the cutting machine conveying device 1, and the conveying direction of the conveying device 7 is the same as that of the cutting machine conveying device 1. The cartons to be processed are first placed on the conveying device 7 and conveyed by the conveying device 7 in the direction of the cutting machine conveying device 1. The feeding mechanism 6 is located at the front end of the conveying device 7 near the cutting machine conveying device 1. The scanning device 5 is located in the connection area between the conveying device 7 and the cutting machine conveying device 1. The pressing mechanism 4 is located at the rear end of the cutting machine conveying device 1 and above the carton conveying path.

[0026] Along the actual conveying direction of the carton, the feeding mechanism 6 and the pressing mechanism 4 are located at the front and rear positions of the scanning area, respectively. This ensures that after the carton enters the scanning area, the portions of the carton located at the front and rear of the scanning area are pressed by the feeding mechanism 6 and the pressing mechanism 4, respectively. This structure enables the printed pattern surface of the carton to remain close to the scanning plane and maintain a stable posture during the scanning process.

[0027] like Figure 2As shown, the conveying device 7 and the cutting machine conveying device 1 are arranged continuously in the horizontal direction. The scanning device 5 is set across the carton conveying path, and the cutter head and cutter holder device 2 is located above the cutting machine conveying device 1. The control box 3 is set in the corresponding position of the equipment and electrically connected to each controlled device to centrally complete the equipment start-up, self-test, conveying synchronization, image acquisition, position calculation, and cutting indentation control.

[0028] The cutting machine conveyor 1 includes a machine body and a conveyor belt mounted on the machine body. The conveyor belt runs along the front and rear conveying direction of the carton and is used to continue to carry the carton after scanning and to convey the carton to the cutting station.

[0029] The machine body is equipped with a crossbeam that moves in the front-to-back direction. The cutter head and cutter holder device 2 is located on the crossbeam and can move in the lateral direction of the crossbeam. As a result, the carton undergoes longitudinal displacement along the cutting machine conveyor device 1, and the cutter head and cutter holder device 2 undergoes lateral displacement along the crossbeam. Both of them correspond to the longitudinal and lateral positions in the subsequent physical coordinate system.

[0030] The cutter head and cutter holder assembly 2 includes a lifting mechanism, a cutter holder, a pneumatic cutter, and a creasing cutter. The cutter holder is movably mounted on the crossbeam in the vertical direction, and the lifting mechanism uses a screw-driven lifting method to drive the cutter holder to rise and fall. The pneumatic cutter and the creasing cutter are respectively mounted on the cutter holder. When cutting is required, the pneumatic cutter descends to the surface of the carton and forms the unfolded outline or groove of the carton along the corresponding processing trajectory; when fold lines are required, the creasing cutter descends to the surface of the carton and forms creasing along the corresponding processing position.

[0031] The lateral movement, lifting action, and actions of the pneumatic knife and creasing knife of the cutter head and knife holder device 2 are all controlled by the control box 3. After obtaining the positions of the cutting line and creasing line in the physical coordinate system of the cutter head and knife holder device 2, the control box 3 controls the longitudinal conveying position of the carton and the lateral position of the cutter head and knife holder device 2 according to the corresponding positions, so that the actual processing position corresponds to the layout design file.

[0032] like Figure 1 , Figure 2 and Figure 5 As shown, the conveying device 7 includes an aluminum profile frame, a drive roller, a driven roller, a drive motor, a conveyor belt, and idlers for supporting the conveyor belt.

[0033] The drive roller and driven roller are rotatably positioned at the front and rear of the aluminum profile frame, respectively, with the drive roller located at one end closer to the cutting machine conveyor device 1. A conveyor belt is wound around the drive roller and driven roller to form a closed conveying loop, with the upper surface of the conveyor belt constituting the carton bearing surface.

[0034] The output end of the drive motor is connected to the drive roller via a reducer. When the drive motor is running, it drives the drive roller to rotate. The drive roller drives the driven roller to rotate synchronously via the conveyor belt, so that the conveyor belt runs continuously in the set direction.

[0035] Idler rollers are spaced apart below the bearing surface of the conveyor belt along the conveying direction. The idler rollers support the conveyor belt, reduce the weight of the carton and the depression of the bearing surface caused by the pressing action of the feeding mechanism 6, and maintain a relatively stable conveying height when the carton passes through the scanning area.

[0036] The position of the driven roller relative to the aluminum profile frame can be adjusted. The tension of the conveyor belt can be adjusted by changing the distance between the driving roller and the driven roller, so that the conveyor belt remains stable during the carton conveying process.

[0037] like Figure 1 , Figure 2 and Figure 5 As shown, the feeding mechanism 6 is located on the conveying device 7 near the scanning device 5.

[0038] The feeding mechanism 6 includes a feeding bearing housing and a feeding roller. The feeding bearing housing is fixed to the aluminum profile frame of the conveying device 7. The two ends of the feeding roller are rotatably supported by the feeding bearing housing, so that the feeding roller can rotate around its own axis.

[0039] The feeding roller is equipped with an upper gear, and the drive roller of the conveying device 7 is equipped with a lower gear corresponding to the upper gear. The upper gear and the lower gear are connected in a 1:1 transmission ratio. Therefore, when the drive roller drives the conveyor belt, the feeding roller can form a synchronous feeding relationship with the conveyor belt, thereby reducing the relative slippage between the feeding roller and the carton caused by the speed difference.

[0040] The distance between the lower surface of the feeding roller and the upper surface of the conveyor belt is less than the thickness of the carton to be processed. When the carton enters the feeding mechanism 6, the feeding roller and the conveyor belt together clamp the carton, keeping the printed pattern side of the carton facing down as it moves toward the scanning device 5.

[0041] The surface of the feed roller is covered with a flexible material. The flexible surface reduces the pressure on the carton surface while forming a holding effect, and increases the friction between the feed roller and the carton, so that the actual conveying displacement of the carton can stably correspond to the motion amount fed back by the drive roller and the rotary encoder.

[0042] like Figures 5 to 9 As shown, the scanning device 5 includes a support stand 51, a side sealing plate 52, a fixing profile 53, an integrated line scanning camera 54, a glass 55, a buffer pad 56, and a reinforcing angle aluminum 57.

[0043] The support bracket 51 is fixed to the aluminum profile frame of the conveying device 7 to form the basic support structure of the scanning device 5.

[0044] The fixing profile 53 is fixed to the upper end of the support leg 51 and extends in a transverse direction perpendicular to the carton conveying direction. The length of the fixing profile 53 is adapted to the length of the integrated line scan camera 54 to form a continuous transverse support for the scanning area.

[0045] In this embodiment, the fixing profile 53 can be a European standard single-sided sealed aluminum profile that is compatible with the integrated line scan camera 54, and its specifications can be determined according to the size of the integrated line scan camera 54.

[0046] An integrated line scan camera 54 is positioned laterally on the corresponding position of the fixed profile 53, with its lens facing the upper carton conveying plane.

[0047] The integrated line scan camera 54 integrates a light source and a scanning unit to capture the printed pattern on the lower surface of the carton line by line as it moves continuously along the conveyor direction. Unlike the area array acquisition method that exposes the entire carton at once, the integrated line scan camera 54 acquires a single line image in the horizontal direction, and then acquires consecutive image lines in sequence as the carton moves in the vertical direction, forming a complete printed pattern image of the carton according to the scan line sequence.

[0048] After synchronous triggering with a rotary encoder, the distance between adjacent scan lines is established in relation to the actual conveying displacement of the carton, so that even when the conveying speed of the carton changes within a small range, it can still be sampled line by line based on the actual displacement.

[0049] like Figures 6 to 8 As shown, side sealing plates 52 are respectively provided at both ends of the fixed profile 53 in the horizontal direction, and the two ends of the integrated line scan camera 54 are respectively connected to the corresponding side sealing plates 52.

[0050] The side sealing plate 52 is used to limit and support the fixed profile 53, the integrated line scanning camera 54 and the upper glass 55 at the end, so as to keep the overall structure of the scanning area stable.

[0051] A glass 55 is mounted above the integrated line scan camera 54. The glass 55 is made of optical glass with high light transmittance, and its upper surface is basically flush with the upper surface of the conveyor belt of the conveyor device 7, thereby forming a continuous carton passing plane.

[0052] When the carton passes through the scanning device 5, the printed pattern is facing down and passes over the glass 55. The integrated line scan camera 54 captures the printed pattern of the carton through the glass 55. Since the carton does not need to leave the transport plane, it is possible to avoid a significant height difference at the scanning position that could cause the carton to warp or change its posture.

[0053] like Figure 7 and Figure 8 As shown, a cushioning pad 56 is provided below the glass 55.

[0054] The cushioning pad 56 includes a side sealing plate pad 561, a camera pad 562, and a profile pad 563.

[0055] Side sealing plate pad 561 is located on the upper surface of side sealing plate 52; camera pad 562 is located on the corresponding upper surface of integrated line scan camera 54; profile pad 563 is located on the upper surface of fixed profile 53. The upper surfaces of side sealing plate pad 561, camera pad 562 and profile pad 563 are basically flush, together forming a flexible support surface for glass 55.

[0056] When the conveying device 7, the feeding mechanism 6 and the cutting machine conveying device 1 vibrate during operation, the buffer pad 56 can form a buffer effect between the glass 55 and the lower rigid structure, reducing the vibration directly transmitted to the glass 55 and the integrated line scan camera 54.

[0057] like Figure 9 As shown, the reinforcing aluminum angle 57 is located at the corresponding position of the support leg 51, and its upper part is connected to the structure where the fixed profile 53 and the integrated line scan camera 54 are located.

[0058] The reinforced aluminum angle 57 is used to improve the connection rigidity between the support bracket 51 and the transverse structure of the scanning device 5, reduce the positional changes of the integrated line scan camera 54 during equipment operation, and maintain a stable relative position between the scanning plane, the integrated line scan camera 54 and the carton conveying plane.

[0059] like Figure 3 and Figure 4 As shown, the pressing mechanism 4 includes a bearing seat 41, a pressing roller 42, and a bearing 43.

[0060] The pressure roller 42 extends along the width of the carton, and both ends of the pressure roller 42 are rotatably connected to the corresponding bearing seats 41 via bearings 43. The bearing seats 41 are fixed to the cutting machine conveying device 1.

[0061] The gap between the roller surface of the pressure roller 42 and the carton conveying surface is smaller than the thickness of the carton to be processed. Therefore, when the carton passes under the pressure roller 42, the upper surface of the carton contacts the pressure roller 42, and the pressure roller 42 rotates with the carton conveying and exerts a downward pressing force on the carton.

[0062] The surface of the pressure roller 42 is covered with a flexible material to reduce localized indentations or surface damage while maintaining the stability of the carton.

[0063] During the scanning process, the feeding roller in the feeding mechanism 6 and the pressing roller 42 in the pressing mechanism 4 act on the front and rear sides of the scanning area, respectively. The feeding roller presses the side of the carton that has not yet entered the scanning area, and the pressing roller 42 presses the part of the carton that has entered the cutting machine conveying device 1, so that the carton located between the two and passing above the glass 55 remains flat.

[0064] Therefore, the relative distance between the integrated line scan camera 54 and the printed pattern surface of the carton remains stable during the scanning process, reducing the impact of carton warping, drifting and vibration on image acquisition.

[0065] The sensor assembly includes a feed detection sensor, a rotary encoder, and a cut detection sensor.

[0066] The feed detection sensor is a through-beam photoelectric sensor and is located at the feed position of the feeding mechanism 6. When the leading edge of the carton enters the detection range of the feed detection sensor, the output state of the feed detection sensor changes. Based on this, the control box 3 determines the moment when the carton enters the scanning process and starts the scanning control process corresponding to that carton.

[0067] The rotary encoder is coaxially connected to the drive component of the feeding mechanism 6. In this embodiment, the feeding roller is synchronously driven with the drive roller of the conveying device 7 in a 1:1 ratio via upper and lower gears. Therefore, the actual conveying displacement of the feeding mechanism 6 can be acquired by the rotary encoder coaxially connected to the corresponding drive component. For every certain angle the drive roller or corresponding drive component rotates, the rotary encoder outputs a corresponding pulse. The control box 3 obtains the carton conveying displacement by accumulating the number of pulses and obtains the carton conveying speed based on the pulse changes per unit time.

[0068] The cutting detection sensor is a through-beam photoelectric sensor, located at the corresponding position on the front end of the integrated line scan camera 54. When the carton has completely passed through the integrated line scan camera 54, the detection state of the cutting detection sensor changes, and the control box 3 accordingly ends the scanning and acquisition of the current carton, causing the integrated line scan camera 54 to stop acquiring images of the carton.

[0069] The control box 3 is electrically connected to the cutting machine conveyor 1, the cutter head and cutter holder 2, the scanning device 5, the conveying device 7, and the sensor assembly.

[0070] The control box 3 is used to receive the detection signals fed back by the feed detection sensor, rotary encoder and cutting detection sensor, and output corresponding control commands to the conveying device 7, the cutting machine conveying device 1, the integrated line scan camera 54 and the cutter head and cutter holder device 2.

[0071] The image processing section of the control box 3 receives the printed pattern image acquired by the integrated line scan camera 54, and sequentially performs image preprocessing, pattern feature extraction, feature recognition and positioning, coordinate transformation of cutting lines and indentation lines, and mapping of image coordinates to physical coordinates of the device.

[0072] Control box 3 stores pre-defined layout design files corresponding to the cartons to be processed. These layout design files must at least contain the predetermined relative positions of the printed patterns, cutting lines, and creasing lines. For cartons of different sizes, the corresponding layout design files can be retrieved to determine the appropriate cutting and creasing lines.

[0073] The control box 3 also pre-stores the calibration relationship between the image coordinate system and the physical coordinate system of the cutter head and tool holder device 2. After the installation positions of the integrated line scan camera 54, scanning device 5 and cutter head and tool holder device 2 are determined, the corresponding homography matrix is ​​obtained through pre-calibration and stored in the control box 3 for converting the image coordinates into physical coordinates that can be executed by the cutter head and tool holder device 2 during the production process.

[0074] When the present invention is in operation, the carton to be processed is first placed on the conveying device 7 with the printed pattern side down and the back of the carton up.

[0075] The conveying device 7 operates synchronously with the cutting machine conveying device 1. The cartons first pass through the feeding mechanism 6. The feeding rollers and the conveyor belt work together to press and feed the cartons, while the rotary encoder associated with the drive components of the feeding mechanism 6 continuously provides feedback on the conveying displacement and conveying speed.

[0076] Once the leading edge of the carton is detected by the feed detection sensor, the control box 3 activates the integrated line scan camera 54. As the carton continues to move forward, the integrated line scan camera 54 synchronously captures the printed pattern on the carton line by line according to the conveying displacement of the rotary encoder.

[0077] When the carton passes through the glass 55, the feeding mechanism 6 and the pressing mechanism 4 press the carton from the front and rear sides of the scanning area respectively. The upper surface of the glass 55 is flush with the conveying surface, so that the carton keeps the printed pattern facing down and basically flat during the scanning process.

[0078] After scanning, the carton is neither flipped over nor repositioned, but continues to enter the cutting machine's conveyor device 1 in its original posture. At the same time, the rotary encoder continues to accumulate the carton's conveying displacement, so that the position of the scanned carton can still be tracked along the same displacement reference.

[0079] The control box 3 performs image preprocessing and pattern feature extraction on the scanned image, and determines the actual position and rotation angle of the printed pattern through positioning marks or feature graphics. Then, based on the relative position between the printed pattern and the cutting lines and indentation lines in the layout design file, the layout design coordinates are converted into the current actual image coordinates, and then converted into the physical coordinates of the cutter head and cutter holder device 2 through a pre-calibrated mapping relationship.

[0080] After the carton reaches the corresponding processing position, the control box 3 stops the conveying device 7 and the cutting machine conveying device 1, and drives the cutter head and cutter holder device 2 according to the calculated physical coordinates, so that the pneumatic knife or creasing knife reaches the corresponding position and completes the cutting or creasing.

[0081] After processing is completed, the conveying device 7 and the cutting machine conveying device 1 restart, transporting the processed cartons to the discharge position and receiving the next cartons to be processed, thus forming a continuous processing process.

[0082] like Figure 10 As shown, the present invention also provides a method for reverse scanning and forward cutting of cardboard boxes, including S1-S7.

[0083] S1-S7 correspond one-to-one with the seven main steps of claim 1. The following only provides further detailed steps within the corresponding main steps to illustrate the specific execution process of each main step, without changing the overall processing order between S1-S7.

[0084] S1. Perform self-test on the scanning device, conveying device, cutter head and tool holder assembly, and sensor assembly. After the system is powered on, the control box 3 first starts the self-test program. Before the self-test is completed, the conveyor device 7 and the cutting machine conveyor device 1 do not enter the normal carton processing state.

[0085] S11. Conveying device self-test The system controls the drive motor to perform start, stop, and speed adjustment actions, and detects whether the drive motor, drive roller, conveyor belt, and corresponding feedback signals can work according to the control commands.

[0086] For drive motors with forward and reverse control, forward and reverse action checks are performed separately to confirm that the drive output is normal.

[0087] S12. Self-test of cutter head and tool holder assembly The tool head and tool holder device 2 is controlled to move laterally along the crossbeam, and the lifting mechanism is controlled to drive the tool holder to rise and fall, in order to confirm that the lateral movement and tool lifting and falling actions can be completed normally.

[0088] S13. Self-test of scanning device and sensor components Start the integrated line scan camera 54 to perform image acquisition and confirm that the integrated line scan camera 54 can output image data.

[0089] Simultaneously read the feedback status of the feed detection sensor, rotary encoder, and cutting detection sensor to confirm that each sensor can output a valid detection signal to the control box 3.

[0090] The comprehensive judgment of each test item is based on: Formula 1 conduct.

[0091] In formula 1, This indicates the overall status of the system self-check. For the first The status variables of each self-test item, when the self-test item passes. =1, failed. =0; This refers to the self-inspection item number; The total number of self-inspection items involved in the judgment; This is the multiplication operator.

[0092] when When =1, it indicates that all self-test items have passed, and control box 3 allows the system to enter standby mode; when When =0, it indicates that at least one self-test item has failed. Control box 3 keeps the equipment in a prohibited start state and displays the corresponding failed item through the human-machine interface.

[0093] After S1 is completed, the system moves from the equipment preparation stage to the carton feeding stage S2.

[0094] S2. The control conveyor and the cutting machine conveyor operate synchronously, conveying the printed carton face down to the cutting station, and collecting the conveyor displacement and conveyor speed through a rotary encoder. S21. Cardboard box placement The operator or the preceding conveying equipment places the printed cartons onto the conveyor 7.

[0095] When placing cartons, the printed side should face the conveyor belt, i.e., the printed side should be facing down, and the unprinted side or the side that will be used for processing should be facing up.

[0096] During S2 and subsequent S3-S6 processes, the carton maintains this posture, and no flipping step is set after the scan is completed.

[0097] S22, Synchronous Conveying Start the conveyor 7 and the cutting machine conveyor 1 to make their carton conveying directions consistent and to run at mutually matched conveying speeds.

[0098] Since the cartons need to cross the scanning device 5 from the conveyor device 7 into the cutting machine conveyor device 1, the two conveyor devices are controlled to operate synchronously to reduce sudden speed changes and relative slippage when the cartons cross the equipment connection position.

[0099] The feeding mechanism 6 rotates synchronously with the drive roller through a 1:1 gear transmission relationship, and the feeding roller and the conveyor belt together push the carton to move towards the scanning device 5.

[0100] S23, Conveying speed calculation The control box 3 determines the actual conveying speed of the carton based on the conveying displacement increment fed back by the rotary encoder within a set time interval.

[0101] Conveying speed is according to: Formula 2 Sure.

[0102] In formula 2, This refers to the actual conveying speed of the cardboard boxes; Time interval The internal displacement increment is obtained based on the rotary encoder; The time interval used to calculate the conveying speed.

[0103] S24, Conveying speed closed-loop control The drive motor runs at the set conveying speed. The control box 3 compares the actual conveying speed fed back by the rotary encoder with the set conveying speed and adjusts the drive motor accordingly.

[0104] Speed ​​deviation is based on: Formula 3 determination.

[0105] In formula 3, This refers to the actual conveying speed; The target conveying speed is set in advance; The allowable speed deviation threshold.

[0106] When the deviation between the actual conveying speed and the set conveying speed is within the allowable range, the current conveying state is maintained; when the deviation exceeds the allowable range, the speed of the drive motor is adjusted.

[0107] After a stable conveying state is established through S2, the carton continues to move to the feeding detection position and enters S3.

[0108] S3. When the carton reaches the feeding detection position, the integrated line scan camera located under the carton is activated. It uses a rotary encoder to synchronously trigger and scan the printed pattern on the lower surface of the carton line by line. The feeding roller and the pressure roller press the carton respectively. S31, Scan Start When the leading edge of the carton enters the detection range of the feed detection sensor, the feed detection sensor outputs a trigger signal to the control box 3.

[0109] The control box 3 activates the integrated line scan camera 54 based on the trigger signal, and establishes the current cardboard box as the object to be scanned.

[0110] An integrated line scan camera 54 is located below the carton conveying path, with its lens facing upwards, and scans the printed pattern surface of the carton through the glass 55.

[0111] S32. Determine the scanning line frequency To ensure that the scanning sampling interval in the carton conveying direction is adapted to the actual conveying speed of the carton, the scanning line frequency of the integrated line scanning camera 54 is determined based on the actual conveying speed of the carton and the predetermined spacing between adjacent scanning lines on the surface of the carton.

[0112] Scan line frequency according to: Formula 4 Sure.

[0113] In formula 4, The scanning line frequency of the integrated line scan camera 54; This refers to the actual conveying speed of the cardboard boxes; This represents the actual spacing between adjacent scan lines on the carton surface.

[0114] Therefore, when the carton conveying speed changes, the corresponding scanning line frequency is matched with the actual conveying speed to maintain a stable sampling interval between adjacent scanning lines on the carton.

[0115] S33, Cumulative Scan Displacement The rotary encoder continuously outputs displacement pulses as the carton is conveyed, and the integrated line scan camera 54 acquires images line by line according to the triggering method corresponding to the displacement conveyed by the encoder.

[0116] Cumulative scan displacement is calculated as follows: Formula 5 Sure.

[0117] In formula 5, Accumulate the scanning displacement for the currently scanned carton conveying direction; This represents the cumulative number of scanned rows that have been collected. This represents the actual spacing between adjacent scan lines on the carton surface.

[0118] The length of the carton can be obtained from the current carton specifications or the corresponding layout design file. Once the cumulative scanning range covers the effective pattern area of ​​the current carton along the conveying direction, the carton printing pattern acquisition is considered complete.

[0119] S34. Pressing down the cardboard box during scanning. During the scanning process, the feeding roller of the feeding mechanism 6 acts on the carton section upstream of the scanning area, and the pressing roller 42 of the pressing mechanism 4 acts on the carton section downstream of the scanning area.

[0120] The feeding roller and the pressure roller 42 press the carton from the front and back of the scanning area respectively, so that the carton located above the glass 55 remains flat.

[0121] Since the upper surface of the glass 55 is basically flush with the upper surface of the conveyor belt, the carton can pass through the scanning device 5 in a continuous manner, avoiding changes in the carton's posture caused by the obvious step formed by the scanning device 5.

[0122] Once the carton has completely passed the integrated line scan camera 54 and the corresponding status is detected by the cutting detection sensor, the control box 3 stops image acquisition for the current carton. The continuously acquired image lines are arranged in the acquisition sequence to form a complete printed pattern image of the current carton.

[0123] At the end of S3, the carton still has the printed pattern facing down and continues to move in the original conveying direction, thus directly entering S4.

[0124] S4. After scanning, maintain the original posture of the carton and continue conveying it, and continuously count the conveying displacement during and after the scanning process based on the rotary encoder. After S3 ends, the cumulative position of the rotary encoder is not re-established, nor is the carton flipped or repositioned. Instead, the carton continues to be tracked according to the transport displacement reference used in the scanning stage.

[0125] S41, Continuous Displacement Tracking The rotary encoder continues to output pulses from the carton scanning stage, and the control box 3 continuously accumulates the encoder pulses, so that the carton scanning position and the subsequent cutting position are in the same continuous conveying displacement chain.

[0126] Therefore, even if the carton has left the scanning device 5, the control box 3 can still determine the distance the carton moves relative to the scanning reference towards the cutting station based on the feedback from the rotary encoder.

[0127] S42. Continue delivery after scanning. The control conveyor 7 and the cutting machine conveyor 1 operate synchronously, and the carton continues to move from the scanning device 5 to the processing area where the cutter head and cutter holder device 2 is located.

[0128] In actual control, the conveying displacement in S4 is continuously accumulated, while the image processing in S5 can be completed while the carton continues to be conveyed. Therefore, image processing does not require the carton to stop at the scanning position again, nor does it interrupt the encoder's continuous tracking of the carton's position.

[0129] S43. Displacement data for subsequent positioning determination. The cumulative conveying displacement continuously obtained by S4 is used as the real-time position data for S6 to determine the precise positioning of the cutting station.

[0130] That is, S4 is responsible for maintaining the continuous displacement relationship between the carton from the scanning position to the cutting position; S5 is responsible for determining the physical coordinates of the equipment corresponding to the cutting line and the creasing line; after S5 outputs the corresponding physical coordinates, S6 combines the physical coordinates with the cumulative conveying displacement continuously obtained by S4 to complete the determination of the specific processing position.

[0131] This allows S4, S5, and S6 in the claims to form a continuous data loop without adding a new main step.

[0132] S5. Perform image preprocessing, pattern feature extraction, feature recognition and localization on the scanned printed pattern image, and complete the coordinate transformation of cutting lines and indentation lines. S5 includes image preprocessing, pattern feature extraction, feature recognition and positioning, local coordinate transformation of the carton, and mapping of image coordinates to the physical coordinates of the cutter head and cutter holder device 2.

[0133] S51, Image Preprocessing S511, Grayscale Conversion When the original image acquired by the integrated line scan camera 54 is a color image, the RGB three-channel image is converted into a grayscale image.

[0134] Grayscale conversion is performed according to: Formula 6 conduct.

[0135] In formula 6, R is the converted pixel grayscale value; G is the original pixel red channel value; B is the original pixel green channel value; and the weighting coefficients in the formula represent the weight of the corresponding color channel in the grayscale conversion.

[0136] S512, Gaussian filter To reduce random noise caused by light source fluctuations, surface dust, and equipment vibration, a two-dimensional Gaussian filter is applied to the grayscale image.

[0137] Gaussian kernel according to: Formula 7 Sure.

[0138] In formula 7, y is the weight value of the Gaussian kernel at position (x, y); x and y are the horizontal and vertical positions of the current kernel element relative to the center of the Gaussian kernel, respectively. The standard deviation is the Gaussian distribution. It is a natural constant; Pi is the mathematical constant of a circle.

[0139] In this embodiment, A value of 1.0 can be used, with a Gaussian filter window of 5 rows × 5 columns. By using Gaussian weighting, the main gradient information of the printed pattern edges is preserved while suppressing random noise.

[0140] S513, Adaptive Histogram Equalization The filtered grayscale image is divided into multiple local regions. The grayscale distribution is statistically analyzed and equalization is performed in each local region. Then, interpolation is performed between adjacent local regions.

[0141] Grayscale mapping is based on: Formula 8 Sure.

[0142] In formula 8, This represents the mapped gray value of the k-th gray level after equalization. Original grayscale level The corresponding probability density; Let j be the j-th gray level; j is the gray level index; k is the gray level currently undergoing cumulative mapping. This is the summation symbol.

[0143] Gray-scale probability density is based on: Formula 9 Sure.

[0144] In formula 9, grayscale The probability density; The grayscale value of the current local area The number of pixels; This represents the total number of pixels in the current local region. It represents the j-th gray level.

[0145] The above preprocessing results in a grayscale enhanced image for pattern feature extraction.

[0146] S52, Pattern Feature Extraction S521, Sobel gradient calculation Calculate the first-order gray-level gradients in the horizontal and vertical directions of the image, respectively.

[0147] The horizontal gradient is as follows: Formula 10 Sure.

[0148] In formula 10, This represents the gradient component of the image in the horizontal direction. Image coordinates The gray value at the location; x and y are the horizontal and vertical coordinates of the image, respectively.

[0149] The vertical gradient is as follows: Formula 11 Sure.

[0150] In formula 11, This represents the gradient component of the image in the vertical direction. The meanings of x and y are the same as in Formula 10.

[0151] Gradient magnitude is determined according to: Formula 12 Sure.

[0152] In formula 12, This represents the gradient magnitude of the current pixel. The gradient is in the horizontal direction; This represents the gradient in the vertical direction.

[0153] The gradient direction is according to: Formula 13 Sure.

[0154] In formula 13, The gradient direction angle of the current pixel; The gradient is in the horizontal direction; The gradient is in the vertical direction; This indicates the arctangent operation.

[0155] S522, Nonmaximum suppression Compare the gradient magnitude of each candidate edge pixel with its neighboring pixels along the gradient direction.

[0156] If the current pixel is not a local maximum gradient point in the gradient direction, remove the pixel from the candidate edge; if the current pixel is a local maximum, retain it, so that the original wider edge region converges into a narrower edge.

[0157] S523, Dual Threshold Filtering High threshold according to: Formula 14 Sure.

[0158] In formula 14, A high threshold is used for edge filtering; α is the high threshold ratio coefficient; This represents the maximum gradient magnitude in the entire image being processed.

[0159] In this embodiment, α can be 0.3.

[0160] Low threshold according to: Formula 15 Sure.

[0161] In formula 15, The low threshold used for edge filtering; β is the low threshold ratio coefficient; This is the high threshold obtained from Formula 14.

[0162] In this embodiment, β can be 0.4.

[0163] Pixels with gradient magnitudes greater than the high threshold are identified as defined edges; pixels with gradient magnitudes lower than the low threshold are removed; and pixels between the two thresholds are retained based on whether they are connected to defined edges.

[0164] S524, Morphological Closure Operation Perform a dilation-erosion closing operation on the binary edge map after double thresholding.

[0165] Closing operation is performed according to: Formula 16 conduct.

[0166] In formula 16, The input is a binary edge map; Structural elements used for morphological processing; This represents the expansion operation; This represents the erosion operation; Represents the binary edge map Use structural elements The result after performing the closing operation.

[0167] In this embodiment, structural elements A rectangular structure with 5 rows and 5 columns can be used as the core.

[0168] S525, Area Filtering Calculate the area of ​​each connected region formed by the closing operation, and follow the procedure as follows: Formula 17 Perform the filtering.

[0169] In formula 17, For the first The area of ​​each connected region; The area filtering threshold; Number the connected regions.

[0170] In this embodiment, It can be set to 30% of the minimum effective pattern feature area. Connected regions that meet the screening criteria are used as effective pattern feature regions for subsequent feature recognition.

[0171] S53. Feature Recognition and Carton Position Determination This embodiment uses positioning mark recognition or feature graphic recognition based on whether the printed pattern has preset positioning marks.

[0172] When the printed pattern corresponding to the layout design file has cross marks, circle marks, QR codes, or other positioning marks that can be pre-saved with templates, template matching can be used.

[0173] Normalized cross-correlation matching is based on: Formula 18 conduct.

[0174] In formula 18, The normalized cross-correlation matching coefficient; This represents the grayscale value of the template image at template coordinates (x, y). The average gray level of the template image; The gray value of the image to be searched relative to the current search offset position (u,v); y is the grayscale mean of the corresponding search window; x and y are the pixel coordinates inside the template; u and v are the position offsets of the template in the image to be searched. This indicates that the corresponding pixels within the template coverage area are summed.

[0175] When the matching coefficient reaches the preset matching condition, the position of the positioning mark is determined, and the actual position and orientation of the printed pattern on the carton are determined using the known size of the positioning mark and the pixel position in the image.

[0176] When the printed pattern does not have a dedicated positioning mark, significant corner points are extracted from the pattern feature area. Feature descriptions are formed based on the relative geometric relationships between the corner points and matched with the corresponding feature graphics in the layout design file to determine the actual position and orientation of the printed pattern.

[0177] After matching is completed, the center coordinates of the printed pattern are determined based on the valid feature points.

[0178] The horizontal center coordinates are as follows: Formula 19 Sure.

[0179] In formula 19, The horizontal coordinate of the center of the printed pattern in the image coordinate system; This represents the total number of feature points involved in the calculation. For the first The horizontal image coordinates of each feature point; The feature point number; This represents the summation of all feature points involved in the localization process.

[0180] The vertical center coordinates are based on: Formula 20 Sure.

[0181] In formula 20, The vertical coordinate of the center of the printed pattern in the image coordinate system; This represents the total number of feature points; For the first Vertical image coordinates of each feature point; The feature point number; This indicates a summation.

[0182] At the same time, the rotation angle of the printed pattern is determined based on the angle between the main direction of the pattern edge and the image coordinate axis.

[0183] Depend on , and Together they represent the actual pose of the printed pattern under the current cardboard box scanning state.

[0184] S54. Transformation of local coordinates of cardboard box to image coordinates Establish a local coordinate system for the cardboard box based on the box layout design file. The length direction of the cardboard box is the local coordinate x-direction, and the width direction is the local coordinate y-direction. The endpoints of the cutting lines and crease lines have corresponding design coordinates within this local coordinate system.

[0185] Based on the actual identified pattern center position and rotation angle, the coordinates of the cutting lines and indentation lines in the layout design file are transformed to the current image coordinate system.

[0186] The horizontal image coordinates are based on: Formula 21 Sure.

[0187] In formula 21, The coordinates of the transformed horizontal image; y is the horizontal image coordinate of the center of the printed pattern; x and y are the coordinates of the point to be transformed in the local coordinate system of the carton; L is the length of the carton; W is the width of the carton. To identify the rotation angle of the obtained printed pattern.

[0188] Vertical image coordinates are based on: Formula 22 Sure.

[0189] In formula 22, The coordinates of the transformed vertical image; The vertical image coordinates of the center of the printed pattern; x, y, L, W and The meaning is the same as in Formula 21.

[0190] When it is necessary to inversely calculate the local coordinates of the cardboard box from the image coordinates, follow these steps: Formula 23 and Formula 24 Perform the inverse transform.

[0191] In formula 23, The coordinates of the length direction in the local coordinate system of the cardboard box; This refers to the length of the cardboard box; , The image coordinates of the point to be inversely calculated; , The coordinates of the center image of the printed pattern; Rotation angle for the printed pattern.

[0192] In formula 24, The width coordinates are located in the local coordinate system of the cardboard box. This refers to the width of the cardboard box; , , , as well as The meaning is the same as in Formula 23.

[0193] Through the above transformation, the cutting lines and crease lines in the layout design file, which were originally arranged relative to the printed pattern, are changed synchronously with the actual translation and rotation of the carton.

[0194] S55, Image coordinates to device physical coordinates conversion The control box 3 converts the image coordinates of the cutting line and indentation line endpoints obtained in S54 into the physical coordinates of the equipment according to the homography mapping relationship between the pre-calibrated and stored image coordinate system and the physical coordinate system of the cutter head and cutter holder device 2.

[0195] Homogeneous coordinate mapping is based on: Formula 25 conduct.

[0196] In formula 25, is the scale factor in homogeneous coordinate transformation; , These are the converted physical coordinates of the device; The 3×3 homography matrix is ​​obtained by pre-calibration; u and v are the image coordinates of the points to be transformed; T represents the matrix transpose; the constant 1 in the homogeneous coordinates is used to construct the homogeneous representation of the two-dimensional coordinates.

[0197] The vertical physical coordinates of the equipment are based on: Formula 26 Expand the calculation.

[0198] In formula 26, The vertical physical coordinates correspond to the carton conveying direction; u and v are the image coordinates. , , , , , is the corresponding matrix element in the homography matrix H.

[0199] The physical coordinates of the horizontal equipment are based on: Formula 27 Expand the calculation.

[0200] In formula 27, is the transverse physical coordinate of the cutter head and cutter holder device 2 along the direction of the crossbeam; u and v are the image coordinates. , , , , , is the corresponding matrix element in the homography matrix H.

[0201] After S55 is completed, each cutting line and indentation line has physical coordinates that the tool head and tool holder device 2 can use, providing input for the positioning control of S6 and actual processing.

[0202] S6. Determine the carton's position based on physical coordinates and cumulative conveying displacement, and control the cutter head and cutter holder to complete cutting and creasing according to the corresponding physical coordinates. S6 uses the carton conveying displacement continuously obtained by S4 and the physical coordinates of the processing line obtained by S5 to determine whether the specific processing position of the carton has reached the corresponding position of the cutter head and cutter holder device 2.

[0203] S61, Cumulative Transport Displacement Calculation The rotary encoder continuously outputs pulses, and the cumulative conveying displacement of the carton is calculated according to: Formula 28 Sure.

[0204] In formula 28, This represents the current cumulative transport displacement of the cardboard box. This represents the current cumulative number of pulses for the rotary encoder. This refers to the carton conveying displacement corresponding to each pulse of the rotary encoder.

[0205] The transport displacement corresponding to each encoder pulse is as follows: Formula 29 Sure.

[0206] In formula 29, The transport displacement corresponding to each encoder pulse; Pi; The radius of the drive roller corresponding to the displacement of the rotary encoder; This represents the number of pulses output per revolution of the rotary encoder.

[0207] S62. Determine the positioning displacement. The cumulative displacement of the encoder when the front edge of the carton enters the corresponding cutting position detection reference is used as the position reference, and the longitudinal physical coordinates of the first processing line obtained by S5 are combined to determine the position displacement when the processing line reaches the corresponding position of the tool.

[0208] Position displacement is based on: Formula 30 Sure.

[0209] In formula 30, This is the cumulative encoder displacement required for the first processing line of the current carton to reach the corresponding position of the cutting tool; This is the cumulative encoder displacement recorded when the leading edge of the carton enters the cutting detection position; The longitudinal physical coordinates of the first cutting line or indentation line to be processed in the physical coordinate system of the cutter head and tool holder device 2; This represents the initial longitudinal position of the leading edge of the carton in the physical coordinate system of the cutter head and cutter holder device 2.

[0210] S63. Cardboard Box Arrival Determination When the real-time cumulative transport displacement satisfies: Formula 31 And simultaneously satisfy: Formula 32 At that time, control box 3 determines that the carton has reached the permissible processing position range.

[0211] In formula 31, The rotary encoder is currently accumulating the transmitted displacement in real time; The displacement is obtained from formula 30.

[0212] In Equation 32, To accumulate and transmit displacement in real time; For the displacement to be in place; For the allowable overshoot.

[0213] in, This serves as the allowable deviation range between the actual stopping position of the carton and its theoretical position, used to avoid incorrectly determining that the carton is not in place due to a small amount of conveying deviation caused by control response time.

[0214] S64. Stop conveying and perform cutting and indentation. Once the carton meets the delivery requirements, the control box 3 controls the conveying device 7 and the cutting machine conveying device 1 to stop operating.

[0215] Based on the physical coordinates of each cutting line and indentation line obtained from S5, the tool head and tool holder device 2 is controlled to move to the corresponding lateral position.

[0216] When the current processing object is a cutting line, control the pneumatic knife to descend and complete the unfolding outline or grooving of the carton; when the current processing object is a creasing line, control the creasing knife to descend and form the corresponding folding line.

[0217] Throughout the cutting and creasing process, the carton maintains the same printed pattern-facing orientation as during the scanning stage. Therefore, there is no coordinate re-establishment process caused by flipping the carton between the establishment of the printed pattern positioning reference by the integrated line scan camera 54 and the actual processing by the cutter head and cutter holder device 2.

[0218] S7. After completing cutting and creasing, restart the conveyor and cutting machine conveyor and discharge the material. After the required cutting and creasing of the carton is completed, the cutter head and cutter holder device 2 disengages from the carton processing surface, and the control box 3 restarts the conveyor device 7 and the cutting machine conveyor device 1.

[0219] The processed cartons continue to move along the cutting machine conveyor 1 in the discharge direction and leave the processing area.

[0220] In continuous production, after the next carton enters the conveyor 7, the system continues to perform the corresponding feeding, scanning, positioning, cutting, creasing and unloading processes according to S2-S7; S1 is mainly implemented when the equipment is started for the first time, powered on again, or when the equipment status check needs to be performed again.

[0221] Through the above S1-S7, the printed pattern side of the carton to be processed remains facing down from the time it enters the system until the cutting and creasing are completed. The integrated line scan camera 54 captures the printed pattern through the glass 55 from below the carton. The feeding mechanism 6 and the pressing mechanism 4 work together to keep the carton's posture stable during the scanning process. The rotary encoder continuously establishes the carton's conveying displacement reference before and after scanning. After the scanned image undergoes image preprocessing, pattern feature extraction, feature recognition and positioning, page coordinate transformation, and equipment physical coordinate mapping, the cutter head and cutter holder device 2 completes the cutting and creasing from above the carton according to the corresponding physical coordinates, thus forming a continuous reverse scanning and forward cutting process of scanning, conveying, positioning, and processing.

[0222] The above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for reverse scanning and forward cutting of cardboard boxes, characterized in that, include: S1. Perform self-testing on the scanning device, conveying device, cutter head and cutter holder device and sensor assembly; S2. Control the conveying device to operate synchronously with the cutting machine conveying device, convey the carton with the printed pattern facing down to the cutting station, and collect the conveying displacement and conveying speed through a rotary encoder. S3. When the carton reaches the feeding detection position, the integrated line scanning camera located below the carton is activated. Through the glass flush with the conveying surface, the printed pattern on the lower surface of the carton is scanned line by line using the synchronous triggering method of the rotary encoder, and is pressed by the feeding roller and pressure roller located before and after the scanning position. S4. After scanning, the carton is kept in the above posture and continues to be conveyed. The rotary encoder continuously counts the conveying displacement during the scanning process and after scanning. The carton is determined to have reached the cutting station based on the cumulative conveying displacement. S5. Perform image preprocessing, pattern feature extraction, and feature recognition and positioning on the scanned printed pattern image. Identify positioning marks or feature graphics and determine the pattern center coordinates and rotation angle. Based on the preset relative positional relationship between the printed pattern and the cutting line and creasing line in the layout design file, convert the cutting line and creasing line from the local coordinates of the carton to the image coordinates. Then, convert them to physical coordinates according to the mapping relationship between the pre-calibrated image coordinates and the physical coordinates of the cutter head and cutter holder device. S6. Determine the carton is in position based on the physical coordinates and the cumulative conveying displacement, and control the cutter head and cutter holder device located above the carton to complete the cutting and creasing according to the corresponding physical coordinates; S7. After completing the cutting and creasing, restart the conveying device and the cutting machine conveyor and discharge the material; Throughout the process of scanning the printed pattern on the carton, from the time the pattern is scanned to the completion of cutting and creasing, the printed pattern face down. The integrated line scan camera captures the printed pattern from below, while the cutter head and cutter holder device performs cutting and creasing from above.

2. The method for reverse scanning and forward cutting of cardboard boxes according to claim 1, characterized in that, In S3, the scanning line frequency of the integrated line scanner is determined based on the carton conveying speed, and the cumulative scanning displacement is determined based on the cumulative number of scan lines, respectively according to... Official 4 Japanese Official 5 Perform the calculation; where, in formula 4, The scanning line frequency of the integrated line scan camera, This refers to the actual conveying speed of the cardboard boxes. The spacing between adjacent scan lines on the carton surface; in Formula 5, For cumulative scan displacement, To accumulate the number of scanned rows, The spacing between adjacent scan lines on the carton surface.

3. The method for reverse scanning and forward cutting of cardboard boxes according to claim 1, characterized in that, In S5, when the printed pattern contains positioning marks, the positioning marks are identified through template matching, and the position and orientation of the printed pattern are determined based on the known physical dimensions of the positioning marks; when the printed pattern does not contain positioning marks, significant corner points in the printed pattern are extracted, and matching is performed between the relative geometric relationships between the corner points and the feature graphic descriptions in the layout design file; after matching is completed, according to... Official 19 Japanese Official 20 Determine the center coordinates of the printed pattern; where, in formula 19, Let x be the horizontal coordinate of the center of the printed pattern in the image coordinate system. The total number of feature points. For the first The horizontal image coordinates of each feature point; in Formula 20 Let be the vertical coordinate of the center of the printed pattern in the image coordinate system. The total number of feature points. For the first The vertical image coordinates of each feature point.

4. The method for reverse scanning and forward cutting of cardboard boxes according to claim 1, characterized in that, In S5, according to Formula 21 and formula 22 Transform the endpoints of the cutting lines and creasing lines in the layout design file from the local coordinates of the carton to the image coordinates, and then follow the instructions. Official 25 Official 26 Official 27 The image coordinates are converted into the physical coordinates of the tool head and tool holder device; wherein, in formula 21, The horizontal image coordinates are... Let x and y be the horizontal coordinates of the center of the printed pattern, x and y be the local coordinates of the carton, and L and W be the length and width of the carton, respectively. The rotation angle of the printed pattern; in Formula 22, The vertical image coordinates are... The vertical image coordinates of the center of the printed pattern are x, y, L, W, The meaning is the same as in Formula 21; in Formula 25, As a scale factor, , The physical coordinates of the tool head and tool holder assembly. It is a 3x3 homography matrix, where u and v are image coordinates. The symbol for matrix transpose; in formula 26, The vertical physical coordinates are represented by u and v, which are the image coordinates. , , , , , For elements of the homography matrix; in Formula 27, The horizontal physical coordinates are u and v, which are the image coordinates. , , , , , These are elements of the homography matrix.

5. The method for reverse scanning and forward cutting of cardboard boxes according to claim 1, characterized in that, In S4 and S6, the cumulative conveying displacement of the carton is determined based on the cumulative pulse count of the rotary encoder, and the final position displacement is determined based on the initial longitudinal position of the leading edge of the carton and the physical coordinates of the first processing line. Official 28 Official 29 Equation 30 Official 31 Official 32 Calculations and positioning determination are performed; among them, in formula 28, To accumulate the transported displacement, The number of cumulative pulses for the encoder. The encoder pulse corresponds to the transport displacement; in Formula 29, The transmission displacement corresponding to each encoder pulse. The radius of the drive roller, This represents the number of pulses per encoder revolution; in Formula 30, For the displacement to be in place, This is the cumulative encoder displacement when the leading edge of the carton enters the detection range of the cutting position sensor. The vertical physical coordinates of the first processing line. Let be the initial longitudinal position of the leading edge of the carton in the coordinate system of the cutter head and cutter holder device; in formula 31, To accumulate and transmit displacement in real time, For the displacement at position; in formula 32, To accumulate and transmit displacement in real time, For the displacement to be in place, To allow overshoot.

6. A cardboard box reverse scanning and forward cutting system, characterized in that, It includes a cutting machine conveyor, a cutter head and cutter holder assembly, a control box, a pressing mechanism, a scanning device, a feeding mechanism, a conveying device, and a sensor assembly; The conveying device is located behind the conveying device of the cutting machine and includes an aluminum profile frame, a drive roller, a driven roller, a drive motor and a conveyor belt. The drive roller and the driven roller are rotatably mounted on the aluminum profile frame, and the conveyor belt is wound around the drive roller and the driven roller to form a closed loop. The feeding mechanism is located at the front end of the conveying device near the cutting machine conveying device, and the scanning device is located at the connection position between the conveying device and the cutting machine conveying device. The scanning device includes an integrated line scanning camera located below the carton conveying path with the lens facing upward and a glass located above the integrated line scanning camera. The upper surface of the glass is flush with the upper surface of the conveyor belt of the conveying device. The pressing mechanism is located at the rear end of the cutting machine's conveying device and above the carton. The feeding mechanism and the pressing mechanism work together to hold the carton during the scanning process. The cutter head and cutter holder are located above the cutting machine's conveyor and include a pneumatic cutter for cutting cartons and a creasing cutter for forming fold lines. The sensor assembly includes a feed detection sensor, a rotary encoder, and a cutting detection sensor. The rotary encoder is coaxially connected to the drive component of the feeding mechanism. The control box is electrically connected to the cutting machine's conveying device, cutter head and cutter holder device, scanning device, conveying device and sensor assembly, and controls the carton conveying, cutting and creasing based on the printed pattern obtained by the integrated line scan camera and the conveying displacement fed back by the rotary encoder. In this process, the cardboard box passes through the scanning position and the cutting station in sequence with the printed pattern facing down. The integrated line scan camera captures the printed pattern from the bottom of the cardboard box, and the cutter head and cutter holder device performs cutting and creasing from the top of the cardboard box.

7. The carton reverse scanning and forward cutting system according to claim 6, characterized in that, The scanning device also includes a support frame, side sealing plates, a fixing profile, a buffer pad, and a reinforcing aluminum angle. The fixing profile is horizontally positioned on the upper end of the support frame, and the integrated line scanning camera is horizontally positioned on the fixing profile and connected to the support frame through the reinforcing aluminum angle. Two side sealing plates are respectively positioned at the horizontal ends of the fixing profile and the integrated line scanning camera. The buffer pad includes a side sealing plate pad on the upper surface of the side sealing plate, a camera pad on the upper surface of the integrated line scanning camera, and a profile pad on the upper surface of the fixing profile. The upper surfaces of the three are flush and together support the glass.

8. The carton reverse scanning and forward cutting system according to claim 6, characterized in that, The feeding mechanism includes a feeding bearing seat fixed to the aluminum profile frame and a feeding roller rotatably connected to the feeding bearing seat. The feeding roller is equipped with an upper gear, and the drive roller of the conveying device is equipped with a lower gear that is connected to the upper gear in a 1:1 transmission ratio. The distance between the lower surface of the feeding roller and the upper surface of the conveyor belt is less than the thickness of the carton. The pressing mechanism includes a bearing seat, a pressing roller, and a bearing. The two ends of the pressing roller are rotatably connected to the bearing seat through the bearings. The bearing seat is fixed to the cutting machine conveying device. The gap between the roller surface of the pressing roller and the carton conveying surface is less than the thickness of the carton. The surfaces of both the feeding roller and the pressing roller are covered with flexible material.

9. The carton reverse scanning and forward cutting system according to claim 6, characterized in that, The feeding detection sensor is a through-beam photoelectric sensor located at the feeding position of the feeding mechanism, used to detect the moment when the carton enters the feeding mechanism; the rotary encoder outputs pulse signals as the feeding mechanism moves, so that the control box determines the conveying displacement and conveying speed based on the pulse signals; the cutting detection sensor is a through-beam photoelectric sensor located at the front end of the integrated line scan camera, used to trigger a stop scanning after the carton has completely passed the integrated line scan camera.

10. The carton reverse scanning and forward cutting system according to claim 6, characterized in that, The cutting machine conveyor includes a machine body and a conveyor belt. A crossbeam is slidably connected to the machine body along the front-to-back direction. The cutter head and cutter holder are slidably connected to the crossbeam along the transverse direction. The cutter head and cutter holder include a lifting mechanism, a cutter holder, a pneumatic cutter, and a creasing cutter. The cutter holder is slidably connected to the crossbeam along the up-down direction. The lifting mechanism drives the cutter holder to lift and lower using a screw lifting method. The pneumatic cutter and the creasing cutter are respectively installed on the cutter holder. The pneumatic cutter is used to cut out the unfolded outline and grooves of the carton, and the creasing cutter is used to form fold lines.