Packaging bag tearing line processing method and equipment
By combining first and then etching, the sealing problem caused by holes in traditional tearing lines is solved, and the packaging bag with outer etching does not affect inner protection is achieved, meeting the requirements of high sealing.
Patent Information
- Application Number
- CN202510909692.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-02
- Publication Date
- 2025-09-02
AI Technical Summary
The tearing lines in the prior art are usually porous structures, which leads to easy access to the inside of the packaging bag, making it difficult to meet the sealing requirements of packaging bags such as food and sanitary products, especially the microbial penetration testing standards for infant food packaging.
The method of first composite and then etching is adopted to recombine the outer layer film and form a composite film, and then laser etching is performed on the outer layer film, or laser etching is performed on the outer layer film first, and then composite with the inner layer film to form a tear line composite film to ensure that the etching is only applied to the outer layer and avoid affecting the protection of the inner layer.
It realizes that the shallow microcracks are formed on the outer layer through laser etching without affecting the protection of the inner layer, which not only realizes the tearing function of the packaging bag, but also provides internal protection and meets the requirements of high sealing.
Smart Images

Figure CN120572797A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of packaging bag processing, and in particular relates to a packaging bag tear line processing method and equipment. Background Art
[0002] Packaging bags are widely used in food, pharmaceuticals, daily necessities, and other fields due to their excellent barrier properties, mechanical strength, and weather resistance. To facilitate user opening of the package, tear lines are often added to the bag, allowing it to be torn open in a controlled manner at specific locations.
[0003] Existing tear lines typically feature holes. This allows external bacteria to easily enter food and hygiene product packaging through these holes. As consumer demand for food and hygiene product safety increases, relevant industry standards (such as GB10440-2008, "Cylindrical Composite Film Bags") have placed higher demands on packaging sealability. For example, infant food packaging must pass microbial penetration testing, a requirement that traditional perforated tear lines struggle to meet. Summary of the Invention
[0004] The embodiments of the present application provide a method and apparatus for processing tear lines on packaging bags, which can solve the problem that traditional tear lines with holes are difficult to meet the requirements of packaging sealing.
[0005] In a first aspect, an embodiment of the present application provides a packaging bag tear line processing method, which is applied to a packaging bag tear line processing device. The packaging bag tear line processing device includes a composite device, a laser marking device, and a control device. The control device is electrically connected to the composite device and the laser marking device, respectively. The method includes: The control device controls the compounding device to compound the outer layer film and the inner layer film to obtain a composite film; The control device controls the laser marking device to laser mark the outer layer of the composite film to obtain a tear line composite film; Alternatively, the method comprises: The control device controls the laser marking device to laser mark the outer film to obtain a tear line outer film; The control device controls the compounding device to compound the tear line outer layer film and the inner layer film to obtain a tear line compound film.
[0006] The above technical solutions in the embodiments of the present application have at least the following technical effects: The present application provides a method for processing tear lines in packaging bags, comprising laminating an outer film with an inner film to obtain a composite film; then laser engraving the outer film of the composite film to obtain a tear line composite film; and / or first laser engraving the outer film to obtain a tear line outer film; then laminating the tear line outer film with the inner film to obtain a tear line composite film. The "laminating first, engraving later" method is suitable for scenarios where the inner film is easily damaged (such as a PE inner film), ensuring that the engraving only acts on the outer layer and does not affect the protection of the inner layer; the "engraving first, laminating later" method uses vacuum hot pressing to fix the engraving shape, and is suitable for materials with high outer film hardness (such as PET). This method forms shallow microcracks in the outer layer of the composite film through laser engraving, so that the packaging bag made of the tear line composite film can both play a tearing role and protect the interior of the packaging bag.
[0007] In a possible implementation of the first aspect, the control device controls the laser scribing device to laser scribble the outer layer of the composite film to obtain a tear line composite film, including: Acquire composite film images; Determining a pre-processing area based on the composite film image; wherein the pre-processing area is used to reflect the area range of the outer film of the composite film that can be laser-scribed; Determining regional features based on the pre-processed region; wherein the regional features are used to reflect the length, width and curvature of the pre-processed region; Determining a processing area based on the regional characteristics; wherein the processing area is used to reflect the area where the outer film is laser-scribed; The control device controls the laser scribing device to perform laser scribing on the composite film based on the processing area to obtain a tear line composite film.
[0008] In a possible implementation manner of the first aspect, determining the pre-processing area based on the composite film image includes: performing edge detection on the composite film image to obtain a composite film contour; Determining a dimensional feature based on the composite film profile; wherein the dimensional feature is used to reflect the length and width of the packaging bag; A pre-processing area is determined based on the size feature.
[0009] In a possible implementation of the first aspect, determining the processing area based on the regional features includes: Determining a region centerline based on the region features; wherein the region centerline is used to indicate a geometric centerline of the pre-processed region; Calculating the curvature of each point on the center line of the region, and determining the starting position and the ending position of each bending processing subdomain based on the curvature; wherein the bending processing subdomain is an area where the curvature of the points on the center line of the region is greater than a preset curvature, and any two bending processing subdomains do not overlap; The starting position and the ending position of each bending processing subdomain are connected to form a continuous area boundary, and the area boundary is determined as the processing area.
[0010] In a possible implementation of the first aspect, the control device controls a laser scribing device to laser scribble the composite film based on the processing area to obtain a tear line composite film, including: The control device controls the laser scribing device to laser scribing the composite film based on the processing area, and obtains a tear line image in real time; wherein the tear line image is used to indicate an image of the composite film that has completed laser scribing; Extracting the coordinates of the marking line position based on the tear line image; The track of the scoring is corrected in real time based on the scoring position coordinates to obtain a tear line composite film.
[0011] In a possible implementation of the first aspect, extracting the coordinates of the score line position based on the tear line image includes: performing binarization processing on the tear line image to obtain the edge contour of the tear line; The center line coordinates of the tear line are calculated based on the edge contour, and the center line coordinates are confirmed as the scoring line position coordinates.
[0012] In a possible implementation of the first aspect, the real-time correction of the scribed line trajectory based on the scribed line position coordinates includes: Obtaining edge coordinates; wherein the edge coordinates are used to indicate the position coordinates of the edge of the composite film; The track of the scribed line is corrected in real time based on the scribed line position coordinates and the edge coordinates.
[0013] In a possible implementation of the first aspect, the real-time correction of the scribed line trajectory based on the scribed line position coordinates and the edge coordinates includes: Extracting a first key point based on the coordinates of the scribed line position; wherein the first key point is used to reflect the coordinate point where the coordinates of the scribed line position begin to mutate; Extracting a second key point based on the first key point and the edge coordinates; wherein the second key point is used to reflect the coordinate point on the edge coordinates corresponding to the first key point; The marking trajectory is corrected in real time based on the first key point and the second key point.
[0014] In a possible implementation of the first aspect, the real-time correction of the scribed line trajectory based on the first key point and the second key point includes: Based on the matching relationship between the first key point and the second key point, a homography matrix is calculated using a RANSAC algorithm; the homography matrix is used to reflect the perspective transformation relationship between the coordinates of the scribed line position and the coordinates of the edge; Obtaining a shift trend based on the homography matrix; The track of the engraved lines is corrected in real time based on the deviation trend.
[0015] In a possible implementation manner of the first aspect, obtaining the offset trend based on the homography matrix includes: Performing eigenvectoring on the homography matrix; wherein the eigenvector includes rotation, scaling and translation components; Based on the feature vector, calculating the offset information of the scribed line position coordinates relative to the edge coordinates; wherein the offset information includes an offset angle, an offset ratio, and an offset direction; According to a plurality of homography matrices continuously calculated within a preset time window, a curve of the change of the offset information over time is obtained by fitting, and the offset trend is obtained based on the change curve.
[0016] In a second aspect, an embodiment of the present application provides a packaging bag tear line processing system, comprising: An acquisition module, used for acquiring composite film images; A first determining module is configured to determine a pre-processing area based on the composite film image; wherein the pre-processing area is configured to reflect an area of the outer layer of the composite film that can be laser-scribed; a second determining module, configured to determine a region feature based on the pre-processed region; wherein the region feature is configured to reflect the length, width, and curvature of the pre-processed region; A third determining module is configured to determine a processing area based on the regional features; wherein the processing area is used to reflect the area where the outer film is to be laser-scribed; The control module is used to control the laser marking device to perform laser marking on the composite film based on the processing area to obtain a tear line composite film.
[0017] In a third aspect, an embodiment of the present application provides a packaging bag tear line processing device, the device comprising a composite device, a laser engraving device and a control device, the control device being electrically connected to the laser engraving device and the composite device, respectively, the control device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing any one of the methods described in the first aspect when executing the computer program.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above-mentioned first aspects is implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a packaging bag tear line processing device, the packaging bag tear line processing device executes the packaging bag tear line processing method described in any one of the above-mentioned first aspects.
[0020] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 This is a flow chart of a method for processing a tear line of a packaging bag provided in an embodiment of the present application; Figure 2 This is the second flow chart of the method for processing the tear line of a packaging bag provided in an embodiment of the present application; Figure 3 2 is a flow chart of step S200 in the packaging bag tear line processing method provided in an embodiment of the present application; Figure 4 1 is a schematic diagram of the implementation process of step S200 in the packaging bag tear line processing method provided in an embodiment of the present application; Figure 5 This is a structural diagram of a packaging bag tear line processing system provided in an embodiment of the present application; Figure 6 It is a structural schematic diagram of the control device of the packaging bag tear line processing equipment provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0024] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0025] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0026] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if the described condition or event is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of the described condition or event" or "in response to detecting the described condition or event," depending on the context.
[0027] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0028] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0029] Existing tear lines typically feature holes. This allows external bacteria to easily enter food and hygiene product packaging through these holes. As consumer demand for food and hygiene product safety increases, relevant industry standards (such as GB10440-2008, "Cylindrical Composite Film Bags") have placed higher demands on packaging sealability. For example, infant food packaging must pass microbial penetration testing, a requirement that traditional perforated tear lines struggle to meet.
[0030] To solve the above-mentioned problems, the embodiments of the present application provide a method and apparatus for processing tear lines in packaging bags. In this method, an outer film and an inner film are laminated to obtain a composite film; the outer film of the composite film is then laser-engraved to obtain a tear line composite film; and / or, the outer film is first laser-engraved to obtain a tear line outer film; and the tear line outer film is then laminated with the inner film to obtain a tear line composite film. "Lamination first, then engraving" can be applied to scenarios where the inner film is easily damaged (such as a PE inner film), ensuring that the engraving only acts on the outer layer and does not affect the protection of the inner layer; "engraving first, then lamination" fixes the engraving shape through vacuum hot pressing, and can be applied to materials with high outer film hardness (such as PET). This method forms shallow microcracks in the outer layer of the composite film through laser engraving, so that the packaging bag made of the tear line composite film can both play a tearing role and protect the interior of the packaging bag.
[0031] The packaging bag tear line processing method provided in the embodiment of the present application can be applied to the packaging bag tear line processing equipment. At this time, the packaging bag tear line processing equipment is the executor of the packaging bag tear line processing method provided in the embodiment of the present application. The embodiment of the present application does not impose any restrictions on the specific type of packaging bag tear line processing equipment.
[0032] For example, packaging bag tear line processing equipment may include a laminating device, a laser marking device, and a control device. The control device is electrically connected to the laser marking device and the transmission device. The laminating device is used to laminate the outer film and the inner film. For example, the laminating device may be a dry laminating machine, a solventless laminating machine, etc., but is not limited to such. The laser marking device is used to laser mark the outer layer of the composite film. The marking depth of the laser emitter of the laser marking device is controlled by the material and thickness of the outer layer to achieve laser marking only on the outer layer. The control device monitors and controls the entire laminating and marking process.
[0033] For example, the control device can be a mobile phone, tablet computer, wearable device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), desktop computer, smart large screen, smart TV and other terminal devices, handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, Internet of Things terminal, computer, laptop computer, etc.
[0034] In order to better understand the packaging bag tear line processing method provided in the embodiment of the present application, the specific implementation process of the packaging bag tear line processing method provided in the embodiment of the present application is exemplarily introduced below.
[0035] Figure 1 A schematic flow chart of a packaging bag tear line processing method provided in an embodiment of the present application is shown. The packaging bag tear line processing method is applied to a packaging bag tear line processing device. The packaging bag tear line processing device includes a composite device, a laser scribing device, and a control device. The control device is electrically connected to the composite device and the laser scribing device, respectively. The packaging bag tear line processing method includes: S100, the control device controls the compounding device to compound the outer layer film and the inner layer film to obtain a composite film.
[0036] S200, the control device controls the laser marking device to laser mark the outer layer of the composite film to obtain a tear line composite film.
[0037] In another implementation, see Figure 2 , the packaging bag tear line processing methods include: S101, the control device controls the laser marking device to laser mark the outer layer film to obtain a tear line outer layer film.
[0038] S201, the control device controls the compounding device to compound the tear line outer layer film and the inner layer film to obtain a tear line compound film.
[0039] In this arrangement, the outer film and the inner film are laminated to form a composite film; the outer film of the composite film is then laser-scribed to form a tear-line composite film; and / or the outer film is first laser-scribed to form a tear-line outer film; and the tear-line outer film is then laminated to the inner film to form a tear-line composite film. The "laminate first, then scribble" method is suitable for use in situations where the inner film is easily damaged (such as a PE inner film), ensuring that the scribbles only affect the outer layer and do not affect the protection of the inner layer. The "scribble first, then laminate" method uses vacuum hot pressing to fix the scribbles, and is suitable for materials with high outer film hardness (such as PET). This method uses laser scribing to create shallow microcracks in the outer layer of the composite film, allowing packaging bags made from the tear-line composite film to both tear and protect the interior.
[0040] In one possible implementation, see Figure 3 and Figure 4 In step S200, the control device controls the laser marking device to laser mark the outer layer of the composite film to obtain a tear line composite film, including: S210, acquiring a composite film image.
[0041] It is understood that the composite film image reflects the position and size of the composite film. For example, the composite film image can be captured using a camera or other imaging device. The captured composite film image must be digitized and converted into a digital signal that can be recognized and processed by a computer, such as an RGB or grayscale image format, to facilitate subsequent algorithmic analysis and processing.
[0042] S220, determining a pre-processing area based on the composite film image; wherein the pre-processing area is used to reflect the area range of the outer film of the composite film that can be laser-scribed.
[0043] As you can understand, the structure of a packaging bag typically includes a packaging area and a sealing area. The packaging area is the main portion used to hold the product, while the sealing area secures the edges of the composite film through heat sealing or bonding to ensure the contents are sealed and preserved. The tear line is located in the sealing area. Depending on the specifications of the packaging bag, the scope of the packaging area and the sealing area may vary. Depending on the size of the sealing area, the location of the tear line may also vary. The pre-processing area refers to the area within the sealing area of the packaging bag where the placement of a tear line will not affect the manufacturing and use of the packaging bag.
[0044] For example, the dimensional information of the packaging bag can be analyzed using composite film images, and the pre-processing area can be determined based on the dimensional information. Alternatively, the composite film image can be input into a composite film database for matching to obtain the corresponding pre-processing area, and so on, but the present invention is not limited to these. A composite film database is a database containing composite films of various specifications and their corresponding pre-processing areas. This data can be obtained through laboratory experiments, on-site measurements and monitoring, and historical experience. Once acquired, the collected data is organized, classified, and archived to extract useful information and patterns. The relevant data is then stored in the database to form a composite film database.
[0045] In one possible implementation, in step S220, determining the pre-processing area based on the composite film image includes: S221, performing edge detection on the composite film image to obtain the composite film contour.
[0046] It can be understood that edge detection is to identify areas in the composite film image where pixel values change sharply through algorithms. These areas usually correspond to the physical boundaries of the composite film.
[0047] S222, determining a dimensional feature based on the composite film profile; wherein the dimensional feature is used to reflect the length and width of the packaging bag.
[0048] It is understood that different composite film profiles correspond to the specifications of a packaging bag. The specifications of the packaging bag can be determined by the composite film profile, and then the corresponding dimensional features can be extracted from the specifications of the packaging bag.
[0049] S223, determining a pre-processing area based on the size feature.
[0050] It's understandable that determining the pre-processing area based on dimensional features requires integrating the design specifications and functional requirements of the packaging bag, converting abstract dimensional parameters into specific areas where scoring lines can be applied. First, the design requirements (such as the tear line distance from the top edge, score line length, and distance from the seal edge) are converted into mathematical expressions. For example, for a three-side-seal bag, the design specifications may require the tear line to be located in the top packaging area, 1.5 cm from the top seal edge, and 80% of the bag width. In this case, the system calculates the location of the top seal edge based on the length (bag length) and width (bag width) dimensional features (e.g., the top 5 mm in the bag's length direction is the seal edge). The system then demarcates the pre-processing area by offsetting the tear line downward by 1.5 cm and using 80% of the bag width as the score line length. The boundary of the pre-processing area may also need to meet multiple constraints. For example, based on the seal edge width (e.g., 3 mm), the pre-processing area must maintain a distance of ≥ 0.5 cm from the seal edge to prevent the score line from damaging the seal. The pre-processing area is determined through calculations based on pre-set geometric rules and dimensional features.
[0051] In this way, this method of determining the pre-processing area based on dimensional features converts the functional requirements of packaging design into calculable geometric parameters, and realizes automatic demarcation of the area through algorithms. It not only ensures the accuracy of the engraving position, but also improves the intelligence level and adaptability of the production line. It is the core link for achieving precise control of the laser engraving process.
[0052] S230 , determining regional features based on the pre-processed region; wherein the regional features are used to reflect the length, width, and curvature of the pre-processed region.
[0053] As you can understand, the pre-processed area is typically a regular geometric shape (such as a rectangle or polygon) or an irregular area. For regular shapes, the length and width can be calculated directly from the circumscribed rectangle of the outline. For irregular areas (such as the tear line area that curves with the bag shape), the outline must first be simplified to a polygon with a small number of vertices using a polygonal approximation (such as the Douglas-Peucker algorithm), and then the dimensions of its minimum enclosing rectangle must be calculated. For example, if the pre-processed area is a top curved area, the curved outline must first be described using a curve fitting (such as a B-spline curve). The chord length of the curve is then calculated as the length, and the chord height as the width. The outline of the pre-processed area is discretized into a series of coordinate points. For each point i, its preceding and succeeding points i and i+n (n is typically 2-5) are taken. A quadratic curve is fitted through these 2n+1 points to calculate the radius of curvature at that point, where curvature k = 1 / radius.
[0054] S240, determining a processing area based on the regional characteristics; wherein the processing area is used to reflect the area where the outer film is to be laser-scribed.
[0055] For example, the pre-processing area can be divided into different processing subdomains based on the curvature distribution in the regional features. The characteristics of each subdomain are then analyzed to determine the final processing area. Alternatively, the regional features can be input into a learning model, which then outputs the corresponding processing area, and so on, but is not limited to these. The learning model is trained using multiple sets of training data, each of which includes regional features and processing areas.
[0056] In a possible implementation, in step S240, determining the processing area based on the regional features includes: S241, determining a region centerline based on the region features; wherein the region centerline is used to indicate a geometric centerline of the pre-processing region.
[0057] It can be understood that determining the region centerline is an abstract representation of the pre-processed area's geometry. Essentially, it extracts the region's skeleton structure, reflecting its overall orientation and curvature. For a regular rectangular pre-processed area, the centerline can be determined by calculating the intersection of the diagonals of the minimum circumscribed rectangle of the contour and combining it with the region's axis of symmetry. For irregular areas (such as arcs and waves), the Voronoi diagram method accurately reflects the region's geometric center by calculating the shortest distance from each point within the area to the contour and connecting the points with local maximum distances to form a skeleton. For example, for a top-curved pre-processed area, the Voronoi skeleton accurately captures the arc's central orientation. The distance transform method, by generating a grayscale image (pixel values represent distances to the contour) and extracting the pixel with the maximum grayscale value as the centerline, is suitable for areas with complex shapes. Because the pre-processed area's contour may contain jagged noise (e.g., contour fluctuations caused by image edge detection errors), the extracted centerline may exhibit non-smooth fluctuations. Therefore, the centerline needs to be smoothed using B-spline curve fitting or Gaussian filtering. For example, a cubic B-spline curve is used to fit discrete skeleton points, and the curve's tension parameter is controlled to balance smoothness and shape fidelity, ensuring that the centerline truly reflects the geometric trend of the area. For areas with multiple branches (such as bifurcated pre-processing areas), topological analysis is first performed to determine the main skeleton, eliminating secondary branches to avoid centerline ambiguity.
[0058] S242, calculating the curvature of each point on the center line of the region, and determining the starting position and end position of each bending processing subdomain based on the curvature; wherein the bending processing subdomain is the area where the curvature of the points on the center line of the region is greater than the preset curvature, and any two bending processing subdomains do not overlap.
[0059] It can be understood that curvature calculation and the division of bending processing subdomains are a refined analysis of the pre-processing area morphology. Its core is to segment the continuous centerline according to the degree of curvature, providing a basis for differentiated processing. For a sequence of discrete points on the centerline, a differential approximation method is used to calculate the curvature of each point: take point Pi and its n adjacent points before and after it (for example, n=2), and fit the quadratic curve y=ax²+bx+c using the least squares method to calculate the curvature of that point k=|2a| / (1+(2ax+b)²)^(3 / 2). For example, for the sequence of points P1-P5, a quadratic curve passing through P1-P5 is fitted to calculate the curvature of point P3. This method, while ensuring accuracy, can achieve real-time curvature calculation using a sliding window (window size 2n+1), making it suitable for high-speed moving composite film images.
[0060] S243: Connect the starting position and the ending position of each bending processing sub-domain to form a continuous area boundary, and determine the area boundary as the processing area.
[0061] It can be understood that connecting the boundaries of bending processing subdomains to form a continuous processing area is a key step in converting abstract curvature analysis into a specific engraving range. For the starting and ending points of each bending processing subdomain, a straight line or curve is used to connect the boundary points of adjacent subdomains to form the processing area outline. In scenarios where the distance between subdomains is small or the curvature changes gently, the end point of the previous subdomain is directly connected to the starting point of the next subdomain to form a broken line boundary. For example, when the distance between two adjacent bending subdomains is less than 0.5mm, a straight line connection can simplify calculations and has a negligible impact on the engraving quality. For scenarios with drastic curvature changes or large distances between subdomains, a cubic Bezier curve is used to connect the boundary points to ensure the smoothness of the connecting curve. For example, the tangent direction of the end point of the previous subdomain is 30°, and the tangent direction of the starting point of the next subdomain is 60°. By adjusting the Bezier curve control points, the tangent direction of the connecting curve is smoothly transitioned, avoiding sharp corners at the boundary that affect the continuity of the engraving trajectory.
[0062] With this setting, by determining the center line of the area based on the regional characteristics, calculating the curvature of each point on the center line to divide the non-overlapping bending processing sub-domains, and then connecting the sub-domain boundaries to form the processing area, the line marking range is accurately planned according to the geometric shape and bending degree of the pre-processed area, so that the laser line marking parameters can be adaptively adjusted according to the curvature characteristics of different areas. While ensuring the continuity and accuracy of the line marking, it improves the adaptability to complex-shaped packaging and effectively optimizes the line marking quality and production efficiency.
[0063] S250, the control device controls the laser scribing device to perform laser scribing on the composite film based on the processing area to obtain a tear line composite film.
[0064] As you can understand, the control device generates a laser marking trajectory based on the coordinate data of the processing area, driving the laser marking device's galvanometer system and motion platform to work together. For example, for a curved processing area, the control device breaks the trajectory into dense discrete points and uses a servo motor to control the galvanometer's deflection angle, ensuring that the laser spot scans along a predetermined path.
[0065] With this setting, by acquiring the composite film image and determining the pre-processing area, and combining the length, width, curvature and other characteristics of the pre-processing area to further determine the processing area, the laser engraving device can operate accurately based on the processing area, realizing the automation of the entire process from image recognition to regional feature analysis to engraving processing, which not only ensures that the tear line position is adapted to the packaging structure, but also optimizes the engraving parameters according to characteristics such as regional curvature, effectively improving the accuracy, consistency and production efficiency of tear line processing, while avoiding the impact of engraving on key parts such as the packaging sealing area, ensuring the packaging function and usage experience.
[0066] In one possible implementation, in step S250, the control device controls the laser scribing device to laser scribing the composite film based on the processing area to obtain the tear line composite film, including: S251, the control device controls the laser scribing device to laser scribble the composite film based on the processing area, and obtains a tear line image in real time; wherein the tear line image is used to indicate an image of the composite film that has completed laser scribing.
[0067] It can be understood that the tear line image can be obtained by a camera or other imaging devices.
[0068] S252: Extracting the coordinates of the marking line position based on the tear line image.
[0069] It can be understood that the tear line image can be grayscale processed, and then the shape of the tear line can be extracted, the positions of each point corresponding to the shape of the tear line can be substituted into the coordinate system, the center line of the shape can be calculated, and the coordinates of the center line can be confirmed as the engraved line position coordinates; the shape can also be substituted into the coordinate system, and the coordinates corresponding to the edge of the shape can be confirmed as the engraved line position coordinates, and so on, but not limited to this.
[0070] In a possible implementation, in step S252, extracting the coordinates of the scoring line position based on the tear line image includes: S2521, performing binarization processing on the tear line image to obtain the edge contour of the tear line.
[0071] It can be understood that binarization converts a grayscale image into an image containing only black and white pixel values, separating the tear line from the background by setting a threshold. Because laser engraving can carbonize or melt the outer layer of the composite film, there is a difference in grayscale between the engraved and unengraved areas. For example, the engraved area has a low grayscale value due to carbonization, while the background area has a high grayscale value. The Otsu algorithm automatically calculates the optimal threshold, setting pixels in the image with grayscale values below the threshold to black (engraved area) and those above the threshold to white (background), thereby highlighting the tear line shape. After binarization, isolated noise points or discontinuous engraved edge points may exist. Morphological operations (such as 3×3 pixel dilation and erosion operators) are required to optimize the edge contour. The dilation operation connects the broken engraved edge, and the erosion operation removes noise points, ultimately resulting in a continuous and clear tear line edge contour.
[0072] S2522, calculating the center line coordinates of the tear line based on the edge contour, and confirming the center line coordinates as the marking line position coordinates.
[0073] As you can understand, after edge contour extraction, a skeleton extraction algorithm is used to calculate the centerline of the tear line to represent the actual position of the scribed line. For straight scribed lines, the least squares method can be used to fit a straight line, with points on the line used as the centerline coordinates. For curved scribed lines, the centerline is generated using the Voronoi skeleton method or distance transform method. The Voronoi skeleton method calculates the shortest distance from each point within the edge contour to the two edges and connects points of equal distance to form a centerline, ensuring that the centerline lies at the geometric center of the scribed line. For example, for curved scribed lines, the centerline must conform to the curvature of the edge contour. Discrete skeleton points are smoothed using B-spline interpolation to generate a continuous sequence of centerline coordinates. The centerline coordinates must be converted from the image pixel coordinate system to the physical coordinate system. Using the intrinsic parameter matrix (focal length, principal point coordinates) and extrinsic parameter matrix (rotation and translation vectors) obtained from camera calibration, the pixel coordinates (x, y) are mapped to physical coordinates (X, Y). The conversion error must be ≤0.1mm to meet the accuracy requirements of laser scribed line trajectory correction.
[0074] This setup allows for accurate quantification of the tear line's position by extracting the edge contour through binarization and calculating the centerline coordinates based on this contour. Binarization combined with morphological operations eliminates image noise, ensuring that the edge contour aligns with the actual shape of the engraved line, providing a reliable basis for centerline calculation. The centerline, representing the geometric center of the engraved line, accurately reflects the actual positional offset of the engraved line, such as the deviation from the preset trajectory. This method, after converting image pixel coordinates into physical coordinates, can be directly used for real-time correction of the laser engraved line trajectory.
[0075] S253, correcting the scoring trajectory in real time based on the scoring position coordinates to obtain a tear line composite film.
[0076] It is understood that during the laser scribing of a composite film, factors such as conveyor belt speed fluctuations, material tension changes, and equipment vibrations may cause the composite film's position to shift slightly (typically within a range of ±0.5mm), causing the scribing trajectory to deviate from the preset position. For example, conveyor belt slippage can cause the composite film's transmission speed to fluctuate, resulting in a cumulative offset of the scribing along its length. When the material becomes damp, it expands, causing dimensional changes in the width direction and causing the scribing position to deviate from the edge. For example, the distance between the scribing position coordinates and the composite film's edge coordinates can be calculated, and the position of the laser scribing can be adjusted based on the distance value and the offset direction and angle. Alternatively, the scribing position coordinates and the previously obtained coordinates of the processing area can be substituted into the same coordinate system, and the trend of change can be analyzed after comparison. The position of the laser scribing can then be adjusted based on the trend of change, and so on, but the present invention is not limited to these.
[0077] With this setting, the tear line image is acquired in real time and the coordinates of the engraved line position are extracted. The engraved line trajectory is dynamically corrected based on the comparison results between the engraved line position coordinates and the preset trajectory, forming a closed-loop control system of "engraving-detection-correction". It effectively compensates for the position offset of the composite film caused by factors such as conveyor belt speed fluctuations and material tension changes, is compatible with composite films of different materials, improves the stability of the engraved line quality, and enhances the intelligence level and flexible production capacity of the production line.
[0078] In a possible implementation, in step S253, the scribed line trajectory is corrected in real time based on the scribed line position coordinates, including: S2531, obtaining edge coordinates; wherein the edge coordinates are used to indicate the position coordinates of the edge of the composite film.
[0079] Understandably, the edge position of the composite film may shift during transport due to factors such as conveyor belt vibration and tension variations. Acquiring edge coordinates is crucial for monitoring the overall position of the composite film in real time. To ensure the accuracy of edge coordinates, the camera must be calibrated to eliminate lens distortion and perspective errors, achieving a physical positioning accuracy of ±0.1mm for the edge coordinates. Furthermore, the acquisition frequency of edge coordinates must match the line speed. For example, on a high-speed production line (100m / min), the edge coordinate update frequency must be ≥100Hz to ensure real-time accuracy.
[0080] S2532, correcting the engraved line trajectory in real time based on the engraved line position coordinates and the edge coordinates.
[0081] It can be understood that the line position coordinates reflect the offset of the actual line relative to the preset trajectory, while the edge coordinates reflect the overall position change of the composite film. The combination of the two can more accurately determine the cause of the offset and correct the trajectory. For example, if the offset of the line position coordinates is consistent with the edge coordinates, it means that the composite film is offset as a whole, and the line trajectory needs to be adjusted as a whole; if the line position is offset and the edge coordinates are stable, it means that there is a local error in the laser engraving device (such as galvanometer jitter). Exemplarily, the coordinate matrix can be transformed by the coordinate point where the offset first occurs in the line position coordinates and the edge coordinate point of the corresponding position, and the laser engraving position can be adjusted in real time according to the characteristics of the coordinate matrix; the line position coordinates and edge coordinates can also be input into a learning model, and the learning model outputs the corresponding correction strategy, etc., but is not limited to this.
[0082] With this setting, by obtaining the edge coordinates of the composite film and combining them with the coordinates of the line position, the overall offset of the composite film or the local error of the laser line engraving device can be analyzed in real time, and the cause of the offset can be accurately determined, so that the line engraving trajectory can be corrected in a targeted manner, effectively improving the line position accuracy and reducing the scrap rate. At the same time, it can adapt to the dynamic offset compensation of high-speed production lines, enhance the adaptability to the deformation of composite film materials, provide data support for equipment maintenance, and improve the stability and reliability of the production line.
[0083] In one possible implementation, in step S2532, the scribed line trajectory is corrected in real time based on the scribed line position coordinates and the edge coordinates, including: S25321, extracting a first key point based on the coordinates of the marking line position; wherein the first key point is used to reflect the coordinate point where the coordinates of the marking line position begin to change suddenly.
[0084] It can be understood that the extraction of the first key point is the key starting point for identifying the offset of the scribed line trajectory. By analyzing the temporal changes in the scribed line position coordinates, the mutation characteristics are captured. In specific implementation, the position difference (such as Δx, Δy) of adjacent coordinate points is calculated. When the difference exceeds the preset threshold (such as 0.3mm) and three consecutive points show an increasing trend, the point is determined to be the starting point of the mutation. For example, if the scribed line position suddenly changes from (100,50)mm to (100.5,50.4)mm, and the subsequent point offset continues to increase, (100,50)mm is extracted as the first key point. To avoid noise interference, a sliding window filter (window size 5) is used to calculate the dynamic threshold and adaptively adjust the mutation judgment criteria to ensure that the true mutation point is accurately captured in high-speed motion (such as 150m / min) or material fluctuation scenarios.
[0085] S25322, extracting a second key point based on the first key point and the edge coordinates; wherein the second key point is used to reflect the coordinate point on the edge coordinates corresponding to the first key point.
[0086] It can be understood that the extraction of the second key point requires establishing a spatiotemporal correlation between the line mutation and the edge offset of the composite film. Using the timestamp of the first key point as a reference, the edge coordinate points at the same or adjacent moments (time difference <5ms) are searched in the edge coordinate sequence. For example, the first key point corresponds to the line position at time t=100ms. The edge points within the range of t=100ms±2ms are extracted from the edge coordinate data, and the second key point is determined by weighted averaging (the closer the time, the higher the weight). If there are multiple edge coordinate points during this period, the dynamic time warping (DTW) algorithm is used to match the offset pattern of the line and the edge to ensure that the second key point can truly reflect the edge state of the composite film at the time of the line mutation, avoiding correction deviations caused by time misalignment.
[0087] S25323, correcting the marking trajectory in real time based on the first key point and the second key point.
[0088] For example, a perspective transformation relationship between the first key point and the second key point can be established, and the characteristics of the perspective transformation relationship can be analyzed to obtain the offset trend, and then targeted corrections can be made; or the distance between the first key point and the second key point can be directly calculated, and corresponding corrections can be made according to the deviation of the distance value, etc., but not limited to this.
[0089] With this setting, by extracting the first key point where the mutation begins in the scribed line position coordinates, and based on this point extracting the corresponding second key point on the edge coordinates, the correlation analysis of the starting point of the scribed line offset and the edge state of the composite film is realized, thereby accurately distinguishing the overall offset from the local error, effectively reducing the scrap rate caused by sudden offset, and providing data support for equipment fault diagnosis, thereby improving the stability of the production line and the level of intelligent maintenance.
[0090] In one possible implementation, in step S25323, the scribed line trajectory is corrected in real time based on the first key point and the second key point, including: S253231, based on the matching relationship between the first key point and the second key point, calculate the homography matrix using the RANSAC algorithm; the homography matrix is used to reflect the perspective transformation relationship between the coordinates of the scribed line position and the edge coordinates.
[0091] As you can understand, a homography matrix describes the perspective transformation relationship between two planes. In this scenario, the coordinates of the first key point (the line mutation point) are matched with the second key point (the corresponding edge point), and the RANSAC (Random Sample Consensus) algorithm is used to eliminate outliers to solve the optimal homography matrix. This matrix maps the line position coordinates to the plane of the edge coordinates, reflecting the perspective transformation relationship between the two, such as translation, rotation, scaling, and perspective distortion. RANSAC calculates the matrix and verifies consistency by randomly sampling a subset of the matrix, effectively eliminating erroneous matching points caused by noise or local errors, ensuring matrix accuracy. It can still provide a stable solution even when 30% of the matching points are outliers.
[0092] S253232, get the offset trend based on the homography matrix.
[0093] It can be understood that the eigenvectors of the homography matrix contain rotation, scaling, and translation components. By decomposing the matrix (e.g., SVD decomposition), it is possible to extract information about the offset of the scribed line position relative to the edge coordinates, including the offset angle, offset ratio, and offset direction. For example, the translation component in the matrix reflects the overall translation of the scribed line, the rotation component is calculated by the orthogonality of the first two columns of the matrix, and the scaling factor is determined by the absolute value of the matrix determinant. By analyzing the homography matrix over multiple consecutive frames (e.g., updated every 10ms), a time-varying curve of the offset information can be fitted, such as a linear offset trend, a periodic fluctuation trend, or a nonlinear mutation trend, thereby predicting the subsequent offset direction and magnitude.
[0094] In a possible implementation, in step S253232, obtaining the offset trend based on the homography matrix includes: S2532321, perform eigenvectoring on the homography matrix; wherein the eigenvector includes rotation, scaling and translation components.
[0095] It can be understood that the homography matrix H can be decomposed into a combination of basic transformations such as rotation, scaling, translation and shear. Through singular value decomposition (SVD) H=UΣV T , where U and V are orthogonal matrices, Σ is a diagonal matrix, and the rotation angle θ=arctan2(U 10 ,U 100 ). Scaling factor s1=Σ 00 s2=Σ 11 , and the translation component t x =H 02 , t y =H 12 .
[0096] S2532322, based on the feature vector, calculate the offset information of the scribed line position coordinates relative to the edge coordinates; wherein the offset information includes an offset angle, an offset ratio, and an offset direction.
[0097] It can be understood that the rotation, scaling, and translation components obtained by decomposing the eigenvector directly quantify the relative offset between the scribed line and the edge. For example, the rotation component θ represents the rotation angle of the scribed line relative to the edge. When θ=1.5°, it means that the scribed line rotates 1.5° counterclockwise. The ratio of the scaling factors s1 and s2 reflects the change in aspect ratio. If s1 / s2=1.05, it means that the scribed line is stretched 5% more than the edge in the X direction. The translation component (t x ,t y ) directly indicates the displacement of the center of the scale line relative to the edge reference point. For example, (0.3, −0.2) mm means a 0.3 mm rightward offset and a 0.2 mm downward offset.
[0098] S2532323: According to a plurality of homography matrices continuously calculated within a preset time window, a curve of the change of the offset information over time is obtained by fitting, and a offset trend is obtained based on the change curve.
[0099] For example, within a 50ms time window (e.g., 10 consecutive homography matrices), a polynomial fit (e.g., a quadratic polynomial f(t) = at² + bt + c) is performed on the offset information (angle, scale, and direction) at each time point. The coefficients a, b, and c are solved using the least squares method to generate a curve. The first-order derivative f′(t) of the curve represents the offset velocity, while the second-order derivative f′′(t) represents the acceleration, which is used to predict future offset trends. For example, when the derivative of the angular offset curve f′(θ) = 0.05° / ms and f′′(θ) > 0, the predicted rotation of the graticule is accelerating, and the correction amount needs to be increased in advance.
[0100] With this setup, multi-dimensional quantification and trend prediction of the track offset are achieved through eigenvector decomposition and time series analysis, transforming the trajectory correction from passive compensation to active prediction.
[0101] S253233, real-time correction of the engraved track based on the offset trend.
[0102] It can be understood that the scribed line trajectory is dynamically adjusted based on the offset trend. If the offset trend is linear growth (such as a 0.5mm offset per second), a linear compensation instruction is generated; if it is a periodic fluctuation (such as a ±0.1mm offset every 20ms caused by conveyor belt vibration), a periodic correction mode is enabled. For example, when the homography matrix shows that the scribed line position is offset to the right at a rate of 0.2mm / s, the control device adjusts the X-axis coordinate of the laser galvanometer in real time, sending a compensation amount of 0.002mm every 10ms to form a forward-looking correction. The correction process combines Kalman filtering, integrating historical offset data and current trend predictions, to control the correction delay to less than 5ms, ensuring that the trajectory adjustment is synchronized with the movement of the composite film.
[0103] With this setup, the RANSAC algorithm is used to solve the homography matrix and analyze the offset trends, enabling dynamic perspective correction of the scribed line trajectory. This method effectively addresses complex offset scenarios such as rotation, scaling, and perspective distortion during composite film transport. This method improves the mapping accuracy between scribed line position and edge coordinates to sub-pixel levels (error <0.05 pixels). Even when the composite film undergoes a 3° rotation or a 5% scaling, the relative position error between the scribed line and edge remains ≤0.1mm. For example, when the composite film undergoes nonlinear warping due to tension changes, the homography matrix can capture the local offset trends of each region in real time, increasing the correction response speed by three times compared to traditional translation compensation and reducing the scrap rate from 3.7% to 0.9%. Furthermore, offset trend analysis can provide a basis for optimizing production line parameters. For example, if periodic offset is found to be correlated with conveyor roller speed, the roller speed can be automatically adjusted to eliminate the offset source, achieving an upgrade from passive correction to active optimization.
[0104] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0105] Corresponding to the packaging bag tear line processing method described in the above embodiment, the embodiment of the present application also provides a packaging bag tear line processing system, and each module of the system can implement each step of the packaging bag tear line processing method. Figure 5 A structural block diagram of a packaging bag tear line processing system provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0106] Reference Figure 5 , the packaging bag tearing line processing system includes: The acquisition module is used to acquire the composite film image.
[0107] The first determining module is configured to determine a pre-processing area based on the composite film image; wherein the pre-processing area is configured to reflect the area range where the outer layer of the composite film can be laser-scribed.
[0108] The second determining module is used to determine the regional features based on the pre-processing area; wherein the regional features are used to reflect the length, width and curvature of the pre-processing area.
[0109] The third determination module is used to determine the processing area based on the regional characteristics; wherein the processing area is used to reflect the area where the outer film is laser-scribed.
[0110] The control module is used to control the laser marking device to perform laser marking on the composite film based on the processing area to obtain a tear line composite film.
[0111] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above modules is used as an example for illustration. In actual applications, the above functions can be distributed and completed by different modules as needed, that is, the internal structure of the system can be divided into different modules to complete all or part of the functions described above. The modules in the embodiment can be integrated into one processing unit, or each module can exist physically alone, or two or more modules can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of the modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application. The specific working process of the modules in the above system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0113] An embodiment of the present application also provides a packaging bag tear line processing device, which includes a composite device, a laser engraving device and a control device, and the control device is electrically connected to the laser engraving device and the composite device respectively. Figure 6 This is a schematic diagram of the structure of the control device 6 provided in one embodiment of the present application. Figure 6 As shown, the control device 6 of this embodiment includes: at least one processor 60 ( Figure 6 Only one is shown), at least one memory 61 ( Figure 6 Only one is shown in the figure) and a computer program 62 stored in the at least one memory 61 and executable on the at least one processor 60. When the processor 60 executes the computer program 62, the control device 6 implements the steps of any of the above-mentioned embodiments of the packaging bag tear line processing method, or implements the functions of the modules in the above-mentioned device embodiments.
[0114] For example, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to implement the present application. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the control device 6.
[0115] The control device 6 can be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The packaging bag tear line processing device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will understand that Figure 6 This is merely an example of the control device 6 and does not constitute a limitation on the control device 6 . The control device 6 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, buses, etc.
[0116] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0117] In some embodiments, the memory 61 may be an internal storage unit of the control device 6, such as a hard drive or memory of the control device 6. In other embodiments, the memory 61 may also be an external storage device of the control device 6, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. equipped on the control device 6. Furthermore, the memory 61 may include both the internal storage unit of the control device 6 and an external storage device. The memory 61 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program. The memory 61 may also be used to temporarily store data that has been output or is about to be output.
[0118] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0119] An embodiment of the present application provides a computer program product. When the computer program product is run on a packaging bag tear line processing device, the packaging bag tear line processing device implements the steps of any of the above-mentioned method embodiments.
[0120] If the integrated unit is implemented as a software functional unit and sold or used as a standalone product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process steps in the above-mentioned method embodiments by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to the packaging bag tear line processing equipment, a recording medium, computer memory, read-only memory (ROM), random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Examples include a USB flash drive, a removable hard drive, a magnetic disk, or an optical disk.
[0121] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0122] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0123] In the embodiments provided herein, it should be understood that the disclosed packaging bag tear line processing equipment and system can be implemented in other ways. For example, the packaging bag tear line processing system embodiment described above is merely illustrative. For example, the module division is merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple modules into another system, or ignoring or not implementing certain features. Furthermore, the mutual coupling, direct coupling, or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device, or module, which may be electrical, mechanical, or other forms.
[0124] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0125] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for processing tear lines of packaging bags, characterized in that: Applicable to packaging bag tear line processing equipment, the packaging bag tear line processing equipment includes a composite device, a laser marking device and a control device, the control device is electrically connected to the composite device and the laser marking device respectively, and the method includes: The control device controls the compounding device to compound the outer layer film and the inner layer film to obtain a composite film; The control device controls the laser marking device to laser mark the outer layer of the composite film to obtain a tear line composite film; Alternatively, the method comprises: The control device controls the laser marking device to laser mark the outer film to obtain a tear line outer film; The control device controls the compounding device to compound the tear line outer layer film and the inner layer film to obtain a tear line compound film.
2. The packaging bag tear line processing method according to claim 1, characterized in that: The control device controls the laser marking device to laser mark the outer layer of the composite film to obtain a tear line composite film, including: Acquire composite film images; Determining a pre-processing area based on the composite film image; wherein the pre-processing area is used to reflect the area range of the outer film of the composite film that can be laser-scribed; Determining regional features based on the pre-processed region; wherein the regional features are used to reflect the length, width and curvature of the pre-processed region; Determining a processing area based on the regional characteristics; wherein the processing area is used to reflect the area where the outer film is laser-scribed; The control device controls the laser scribing device to perform laser scribing on the composite film based on the processing area to obtain a tear line composite film.
3. The packaging bag tear line processing method according to claim 2, characterized in that: The determining of the pre-processing area based on the composite film image comprises: performing edge detection on the composite film image to obtain a composite film contour; Determining a dimensional feature based on the composite film profile; wherein the dimensional feature is used to reflect the length and width of the packaging bag; A pre-processing area is determined based on the size feature.
4. The method for processing the tear line of a packaging bag according to claim 2, wherein: The determining of the processing area based on the regional features includes: Determining a region centerline based on the region features; wherein the region centerline is used to indicate a geometric centerline of the pre-processed region; Calculating the curvature of each point on the center line of the region, and determining the starting position and the ending position of each bending processing subdomain based on the curvature; wherein the bending processing subdomain is an area where the curvature of the points on the center line of the region is greater than a preset curvature, and any two bending processing subdomains do not overlap; The starting position and the ending position of each bending processing subdomain are connected to form a continuous area boundary, and the area boundary is determined as the processing area.
5. The method for processing the tear line of a packaging bag according to claim 2, wherein: The control device controls the laser scribing device to perform laser scribing on the composite film based on the processing area to obtain a tear line composite film, including: The control device controls the laser scribing device to laser scribing the composite film based on the processing area, and obtains a tear line image in real time; wherein the tear line image is used to indicate an image of the composite film that has completed laser scribing; Extracting the coordinates of the marking line position based on the tear line image; The track of the scoring is corrected in real time based on the scoring position coordinates to obtain a tear line composite film.
6. The method for processing the tear line of a packaging bag according to claim 5, characterized in that: The extracting of the coordinates of the marking line position based on the tear line image includes: performing binarization processing on the tear line image to obtain the edge contour of the tear line; The center line coordinates of the tear line are calculated based on the edge contour, and the center line coordinates are confirmed as the scoring line position coordinates.
7. The method for processing the tear line of a packaging bag according to claim 5, characterized in that: The real-time correction of the scribed line trajectory based on the scribed line position coordinates includes: Obtaining edge coordinates; wherein the edge coordinates are used to indicate the position coordinates of the edge of the composite film; The track of the scribed line is corrected in real time based on the scribed line position coordinates and the edge coordinates.
8. The method for processing a tear line of a packaging bag according to claim 7, wherein: The real-time correction of the scribed line trajectory based on the scribed line position coordinates and the edge coordinates includes: Extracting a first key point based on the coordinates of the scribed line position; wherein the first key point is used to reflect the coordinate point where the coordinates of the scribed line position begin to mutate; Extracting a second key point based on the first key point and the edge coordinates; wherein the second key point is used to reflect the coordinate point on the edge coordinates corresponding to the first key point; The marking trajectory is corrected in real time based on the first key point and the second key point.
9. The method for processing a tear line of a packaging bag according to claim 8, wherein: The real-time correction of the marking trajectory based on the first key point and the second key point includes: Based on the matching relationship between the first key point and the second key point, a homography matrix is calculated using a RANSAC algorithm; the homography matrix is used to reflect the perspective transformation relationship between the coordinates of the scribed line position and the coordinates of the edge; Obtaining a shift trend based on the homography matrix; The track of the engraved lines is corrected in real time based on the deviation trend.
10. A packaging bag tear line processing equipment, characterized in that: The device includes a composite device, a laser marking device and a control device, wherein the control device is electrically connected to the laser marking device and the composite device respectively, and the control device includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 9 when executing the computer program.