Automatic bag opening method and system and storage medium

By automatically matching the size of the packaging bag and the air source and detecting bag opening abnormalities, the problems of mismatch between the air source size and poor quality of the bag opening during the bag opening of the packaging machine are solved, and efficient bag opening process and high-quality packaging are achieved.

CN119503239AActive Publication Date: 2025-02-25HEFEI HAOPU INTELLIGENT EQUIP TECH CO LTD

Patent Information

Application Number
CN202510087981.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-02-25
Estimated Expiration
2045-01-21

AI Technical Summary

Technical Problem

During the bag opening process of the packaging machine, there are problems such as mismatch in the size of the air source, packaging bag quality problems and unstable gas source, resulting in poor quality of the bag opening.

Method used

By automatically matching the size of the packaging bag and the air source, image matching and air source size adaptation methods are used to detect and record bag opening abnormalities, and fault warnings are issued in a timely manner.

Benefits of technology

Ensure the successful opening of the bag, prevent abnormal opening of the bag caused by accidental factors, promptly detect problems such as unstable air supply or loose suction cups, and improve packaging quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119503239A_ABST
    Figure CN119503239A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of packaging machine bag opening, in particular to an automatic bag opening method and system and a storage medium, according to the automatic bag opening method and system, the size of an air source is matched with a current packaging bag, when the packaging bag is not matched, the size of the air source is automatically matched with the packaging bag, and the size of the air source of a packaging machine can be automatically matched with the client packaging bag; the problem of packaging quality reduction caused by unsuitable air source size is prevented; by arranging the bag opening abnormity detection network, when bag opening abnormity is detected in the normal operation process of the packaging machine, bag opening abnormity caused by accidental factors is prevented through multiple times of bag opening operation; furthermore, by monitoring the number of times of bag opening or packaging bag discarding for many times, the bag opening fault problem is found, an operator is reminded to handle in time, and the bag opening quality problem further caused by unstable air supply, air supply pipe leakage, sucker loosening and the like is prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of bag opening of packaging machines, and in particular to an automatic bag opening method, system and storage medium. Background Art

[0002] Bag opening by packaging machine is an important part of the automated packaging process. It involves the process of automatically opening packaging materials (such as plastic bags, paper bags, aluminum foil bags, etc.) and preparing to fill the products. The quality of bag opening directly affects the subsequent filling and sealing effects. Therefore, during the packaging process, it is necessary to ensure the mechanical accuracy of the bag opening device and the stability of the control system to ensure the quality of bag opening. According to research, there are generally three reasons why the bag opening of the packaging machine cannot be completed normally: 1. The size of the customer's packaging bag does not match the air source of the packaging machine, resulting in the bag not being sucked up or multiple bags being sucked up at one time; 2. Abnormal bag opening caused by accidental factors such as quality problems of the packaging bag itself or dust on the packaging bag; 3. The air source is not stable when the packaging machine is just started. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide an automatic bag opening method, system and storage medium, which can automatically match the air source size corresponding to the packaging bag to ensure successful bag opening. At the same time, when the bag opening is unsuccessful, multiple bag opening methods are used to open the bag to prevent bag opening abnormalities caused by accidental factors. Finally, during the packaging operation of the packaging machine, the bag opening abnormality tracking continues, and the bag opening abnormality caused by unstable air supply or loose suction cup can be discovered in time, and a bag opening fault warning will be issued to remind the operator to deal with it in time.

[0004] To achieve the above object, the present invention provides the following technical solution: an automatic bag opening method. When the packaging machine switches from a stop or pause state to a start state, the automatic bag opening method matches the air source size with the current packaging bag. The matching rules are as follows: (1) Collect the current packaging bag image data img0 and use the image matching method to match the packaging bag ID in the database; (2) When the matching fails, the automatic bag opening method issues a data non-entry warning; (3) When the match is successful, the automatic bag opening method extracts the gas source size p1 currently used by the packaging machine, and simultaneously extracts the gas source size p0 corresponding to the current ID in the database. When p1≠p0, the gas source parameters of the packaging machine are reset.

[0005] In particular, the automatic bag opening method also includes a bag opening abnormality detection model, and the detection model detection types include at least: normal, no bag, unopened bag, and bag opening detachment, among which no bag, unopened bag, and bag opening detachment belong to bag opening abnormalities. When a bag opening abnormality is detected, the automatic bag opening method issues a bag opening abnormality warning and records the abnormality type and updates the abnormality count Re.

[0006] In particular, the automatic bag opening method fits the air source size equation as f(L, W, ty) according to the accumulated historical data, where f(L, W, ty) represents the air source size, L represents the length of the packaging bag, W represents the width of the packaging bag, and ty represents the type of bag opening suction cup used.

[0007] Furthermore, when the image matching method fails to match the packaging bag, the automatic bag opening method also performs automatic adaptation of the air source size to the packaging bag, including: (a) Wait for a set time after the packaging machine starts. (b) Combine the image processing method with the camera parameters to calculate the actual length L and width W of the packaging bag corresponding to the img0 image. (c) Calculate the initial air source size g0 according to the air source size adaptation equation f(L, W, ty) and use g0 for bag opening. When the bag opening is normal for M consecutive times, set α = -1 and continue to judge the condition J = "the bag opening is normal for M consecutive times"; otherwise, set α = 1 and continue to judge the condition J = "there is an abnormality in M bag openings", where M is a preset value. (d) Set the air source size used , where Δg represents the preset air source size adjustment step. When g1 < g_min or g1 > g_max, the automatic adaptation exits, and the automatic bag opening method reports a warning that the air source size exceeds the threshold, where g_min and g_max are the preset minimum and maximum air source thresholds. (e) Use g1 for bag opening. When J meets the condition, reassign g0 = g1 and return to step (d). When J does not meet the condition, exit the loop of steps (d) and (e), and set the bag opening air source size ; (f) Create a new current packaging bag ID and save the packaging bag ID, the corresponding image img0, and the air source size g to the database.

[0008] Preferably, during the normal operation stage of the packaging machine, the bag opening abnormality detection model monitors in real time. When a bag opening abnormality occurs, the automatic bag opening method sets the bag opening suction cup to open the bag n more times. If the bag opening is normal during these n times, the packaging machine operates normally, and at the same time, the multiple bag opening counter Rn is incremented by 1. If the bag opening is abnormal during all n times, discard the current packaging bag and re-grab the bag for operation. At the same time, the bag loss counter Rl is incremented by 1, where n is a preset value.

[0009] In particular, when the bag opening abnormality count Rn + Rl > threshR, the automatic bag opening method issues a bag opening failure warning, where threshR is the preset abnormality count threshold.

[0010] Specifically, during the normal operation stage of the packaging machine, each time the packaging machine runs, the total packaging counter N is incremented by 1. When N < threshN, the open - bag anomaly - related counters Rn and Rl do not record, where threshN is a preset value.

[0011] Specifically, at every set time interval, the automatic bag - opening method incorporates newly added data in the database to update the bag - opening anomaly detection model and the air - source size adaptation equation f(L, W, ty).

[0012] Specifically, the present invention further provides an automatic bag - opening system, including: An image acquisition module that acquires the image data img0 of the packaging bag for packaging - bag ID matching, open - bag anomaly detection, and calculation of the packaging - bag dimensions L and W; An open - bag detection module that runs the open - bag anomaly detection model and outputs the detection results. The detection results at least include: normal, no - bag, not - opened, and opened - and - dropped. Among them, no - bag, not - opened, and opened - and - dropped belong to open - bag anomalies. When an open - bag anomaly is detected, the data display module gives an open - bag anomaly warning display. At the same time, the data storage module stores the current anomaly type and updates the anomaly count value; An air - source matching module that runs the method for automatically adapting the air - source size to the packaging bag; An open - bag processing module that completes the processing logic during the normal operation stage of the packaging machine; A model update module that, at every set time interval, incorporates the newly added data in the data storage module to update the open - bag anomaly detection model and the air - source size adaptation equation f(L, W, ty); A data display module that displays the working information of the packaging machine. The information at least includes: a reminder for matching the air - source size with the current packaging bag, the open - bag anomaly detection result, a reminder for automatically adapting the air - source size to the packaging bag, an anomaly warning, the open - bag anomaly count Re, the multiple - bag - opening count Rn, the packet - loss count Rl, and the total packaging count N; A data storage module that stores the open - bag anomaly detection model, the air - source size adaptation equation f(L, W, ty), the data of the used packaging bags, the type of suction cups used by the packaging machine, the open - bag anomaly count Re, the multiple - bag - opening count Rn, the packet - loss count Rl, and the total packaging count N. Among them, the data of the used packaging bags at least includes the packaging - bag matching image set, the packaging - bag assigned ID, and the adapted air - source size p0.

[0013] Furthermore, the present invention also provides a storage medium. The storage medium is a computer - readable storage medium for computer - readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to perform the steps of the automatic bag - opening method.

[0014] Compared with the prior art, the beneficial effects of the present invention are:

[0015] 1. The present invention can automatically match the gas source size of the packaging machine with the customer's packaging bag by matching the gas source size with the current packaging bag and automatically adapting the gas source size to the packaging bag when the packaging bag does not match, thereby preventing the problem of reduced packaging quality due to inappropriate gas source size.

[0016] 2. The present invention sets up a bag opening abnormality detection network. When a bag opening abnormality is detected during the normal operation of the packaging machine, the bag opening abnormality caused by accidental factors is prevented by performing multiple bag opening operations.

[0017] 3. The present invention applies a bag opening abnormality detection network during the operation of the packaging machine. When the number of times the bag is opened or the number of times the packaging bag is discarded exceeds a certain threshold, the system issues a bag opening failure warning to remind the operator to handle it in time to prevent problems such as unstable air supply, air supply pipe leakage, loose suction cup, etc. from further causing bag opening quality problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a logical diagram of the method for matching the gas source size with the current packaging bag of the present invention.

[0019] Figure 2 This is a logical diagram of automatic adaptation of the gas source size and the packaging bag of the present invention.

[0020] Figure 3 This is a schematic diagram of the automatic bag opening system module of the present invention. DETAILED DESCRIPTION

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

[0022] like Figure 3 As shown, the functional modules of an automatic bag opening system of the present invention mainly include: an image acquisition module, a bag opening detection module, an air source matching module (operating in the initial stage when the packaging machine is restarted), a bag opening processing module (operating in the stable working stage of the packaging machine), a model update module, a data display module and a data storage module, wherein the data display module can be integrated with the original display of the packaging machine, and the automatic bag opening system of the present invention displays the relevant information of bag opening by sending the corresponding data to the display of the packaging machine; the newly added data integrated by the model update module can be the packaging bag data newly added by the packaging machine user himself, or the packaging bag data newly added by the packaging machine manufacturer from different users. By adding data, the model is updated to improve the judgment ability and generalization ability of the model.

[0023] During operation, the present invention divides the packaging machine into two stages: one is when the packaging machine is just turned on or switched from a pause state to a running state. During this stage, work such as changing packaging bags may be performed, so it is necessary to recheck whether the packaging bags have been replaced; the second is when the packaging machine is in normal operation. During this stage, parameters such as the size of the gas source of the packaging machine have been successfully matched. During this process, if the gas source is unstable (the gas supply is unstable or the gas supply pipe leaks, etc.) or the suction cup becomes loose, the packaging machine may not be able to open the bag normally, so it is necessary to detect and inform the staff to carry out maintenance.

[0024] Specifically, when the packaging machine is just starting to work, Figure 1 As shown, the automatic bag opening method of the present invention first collects img0 and uses an image matching method to match the packaging bag ID, wherein the image matching here is an image processing method, which can be performed using template matching, feature matching or deep learning methods. If the match is successful, it means that the packaging bag currently in use is a packaging bag whose relevant parameters have been entered into the system. The air source size p0 corresponding to the current ID packaging bag in the database is directly extracted and compared with the air source size parameter p1 currently used by the packaging machine. When p1≠p0, the packaging machine air source parameters are reset.

[0025] In practical applications, the packaging bags used by a manufacturer using a packaging machine are generally determined. During the debugging stage of the packaging machine, all packaging bag parameters will be input into the system. Subsequently, if a small number of new packaging bags are added, the automatic bag opening method of the present invention will automatically adapt to the size of the air source required to match the new packaging bag.

[0026] As a supplement to the above method, the currently matched ID can also be directly compared with the packaging bag ID currently used by the packaging machine to see if they are consistent (the parameters stored in the packaging machine correspond one-to-one to the packaging bag ID).

[0027] When the above process fails to match the packaging bag, it may be that the match is incorrect or the current packaging bag is a newly added type. At this time, the system will alarm and require manual confirmation. If it is a matching error (it should be noted that the database of the present invention stores a template set of a certain type of packaging bag, including template images of various angles and scales, and the probability of matching errors is low), the packaging bag type is directly selected manually and the subsequent air source adaptation process is skipped. Otherwise, the new packaging bag air source size is automatically adapted, such as Figure 2As shown, the automatic adaptation of the present invention is based on the condition "opening the bag normally for M consecutive times" (M is preset, and M=5 in this embodiment). When the condition is met, it means that the current size of the gas source is sufficient to open the bag, but the gas volume may be too large, which may cause multiple packaging bags to be sucked at the same time when sucking the packaging bags. On the other hand, it will cause waste of resources. Therefore, it is necessary to try to reduce the size of the gas source until the condition "opening the bag normally for M consecutive times" cannot be met. When the debugging of reducing the gas source is cut off, the last set of values ​​that meet the conditions are taken; when the condition "opening the bag normally for M consecutive times" is not met, that is, there are abnormalities in the M bag openings, at this time, the gas source size is too small, and the gas source needs to be increased until the condition "opening the bag normally for M consecutive times" is just met. At this time, the gas source size value that just meets the condition is directly taken. It should be noted that there are two points to note in this process:

[0028] When the packaging machine is just started, the air source may be unstable. This is normal. At this time, you need to wait for a while before adapting. After the air source of the packaging machine is stable, you can do the adaptation work.

[0029] The Δg value of increasing or decreasing the gas source size during the adaptation process is an empirical value. It is necessary to consider both the rapid and stable adjustment process of the gas source size and the reasonable critical value corresponding to the final adapted gas source size when the conditions are met or not met during the adaptation process (Δg=0.01MPa in the present invention). As a supplement to this solution, the final adapted gas source size can be set with a margin to ensure stable bag opening of the packaging machine, that is, the final adapted gas source size value is the result of the A times (such as A=2) before the adaptation is terminated, that is, .

[0030] It should be further explained that the air source size adaptation equation f(L, W, ty) is a function of the length and width L, W of the packaging bag and the suction cup type ty. In this embodiment, considering the limited types of suction cups, the air source size adaptation equation is established separately for different suction cup types. In practical applications, the required air source size value is essentially positively correlated with the mass of the packaging bag, and the mass of the packaging bag generally grasped by a suction cup is positively correlated with the size of the packaging bag. Therefore, the initial value of the air source size is calculated directly based on the visible and easy-to-measure packaging bag size, such as a 30 mm diameter corrugated suction cup, f = 1.64 * L * W.

[0031] During the normal operation stage of the packaging machine, the present invention takes into account the situation where the suction force of the suction cup decreases due to certain reasons, resulting in abnormal bag opening. At the same time, it also considers the elimination of accidental factors, such as the packaging bag not being cut off (the packaging bag itself has no opening and cannot be opened), a large amount of dust on a certain packaging bag, and the decrease in the suction force of the suction cup. The reasons for the decrease in the suction force of the suction cup generally include the decrease in the supply air pressure, the leakage of the supply air pipe, and the loosening of the suction cup. Accordingly, the present invention performs real-time detection of abnormal bag opening during the normal working stage. When abnormal bag opening occurs, an alarm for abnormal bag opening of the packaging bag is issued, and the bag opening abnormal counter Re is immediately updated. However, the bag opening failure alarm is not immediately issued (the alarm level of the failure alarm is relatively high), mainly considering two points:

[0032] The abnormal bag opening may be accidental. Therefore, the system will issue an instruction to open the bag n more times (such as n = 2). If the bag is opened normally during the n times, only the multiple bag opening counter Rn is incremented by 1 this time, and no bag opening failure alarm is issued. If the bag cannot be opened successfully during the n times, the current packaging bag is discarded and a new bag is grabbed for operation this time, and the lost bag counter Rl is incremented by 1 to ensure the continuity of the operation of the packaging machine and prevent abnormal bag opening caused by the quality problem of the packaging bag itself rather than the problem of the packaging machine. However, when Rn + Rl > threshR (such as threshR = 10), at this time, the abnormal bag opening of the packaging machine is too frequent and problem checking is required. The system issues a high-level alarm - the bag opening failure alarm. In the application, it can be further set that the packaging machine stops working when the high-level alarm is triggered.

[0033] When the packaging machine starts to work, if the packaging bag is correctly matched and the size of the air source is also appropriate, the system does not enter the adaptation process and does not wait for the air source of the packaging machine to stabilize. Therefore, the present invention compares the total count N of the packaging operation with the preset threshN (such as threshN = 10). When N < threshN and abnormal bag opening occurs, no bag opening abnormal count is performed, that is, Rn and Rl are not incremented, and only the total counter N is incremented by 1.

[0034] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An automatic bag opening method, characterized in that: When the packaging machine switches from the stopped or paused state to the startup state, the automatic bag-opening method performs the work of matching the air source size with the current packaging bag, and the matching rules are as follows: (1) Collect the image data img0 of the current packaging bag and use the image matching method to perform packaging bag ID matching in the database; (2) When the matching fails, the automatic bag-opening method issues a warning that the data has not been entered; (3) When the matching is successful, the automatic bag-opening method extracts the air source size p1 currently applied by the packaging machine, and at the same time extracts the air source size p0 corresponding to the current ID in the database. When p1≠p0, reset the air source parameters of the packaging machine.

2. The automatic bag opening method according to claim 1, characterized in that: The automatic bag-opening method further includes a bag-opening abnormality detection model. The detection types of the detection model at least include: normal, no bag, not opened, and bag-opening dropped off. Among them, no bag, not opened, and bag-opening dropped off belong to bag-opening abnormalities. When a bag-opening abnormality is detected, the automatic bag-opening method issues a bag-opening abnormality warning and records the abnormality type and updates the abnormality count Re.

3. The automatic bag opening method according to claim 2, characterized in that: The automatic bag-opening method fits the air source size equation as f(L, W, ty) according to the accumulated historical data, where f(L, W, ty) represents the air source size, L represents the length of the packaging bag, W represents the width of the packaging bag, and ty represents the type of the bag-opening suction cup used.

4. The automatic bag opening method according to claim 3, characterized in that: When the packaging bag matching fails by using the image matching method, the automatic bag-opening method also performs automatic adaptation of the air source size to the packaging bag, including: (a) Wait for a set time after the packaging machine starts; (b) Combine the image processing method with the camera parameters to calculate the actual length L and width W of the packaging bag corresponding to the img0 image; (c) Calculate the initial air source size g0 according to the air source size adaptation equation f(L, W, ty) and use g0 for bag-opening. When the bag-opening is normal for M consecutive times, set α = -1 and continue to judge the condition J = "the bag-opening is normal for M consecutive times", otherwise set α = 1 and continue to judge the condition J = "there is an abnormality in M times of bag-opening", where M is a preset value; (d)Set the size of the air source used , where Δg represents the preset step size for adjusting the air source size. When g1 < g_min or g1 > g_max, it automatically adapts and exits. The automatic bag-opening method reports a warning that the air source size exceeds the threshold, where g_min and g_max are the preset minimum and maximum thresholds of the air source; (e) Use g1 to open the bag. When J meets the condition, reassign g0=g1 and return to step d. When J does not meet the condition, exit the cycle of steps d and e and set the size of the bag opening air source. ; (f) Create and save the current packaging bag ID, and save the image img0 and the air source size g corresponding to the ID to the database.

5. The automatic bag opening method according to claim 4, characterized in that: During the normal working stage of the packaging machine, the bag-opening abnormality detection model monitors in real time. When a bag-opening abnormality occurs, the automatic bag-opening method sets the bag-opening suction cup to open the bag n more times. When the bag-opening is normal during the n times, the packaging machine works normally, and at the same time, the multiple bag-opening counter Rn counts up by 1. When the bag-opening is abnormal during the n times, discard the current packaging bag and re-grab the bag for work. At the same time, the lost bag counter Rl counts up by 1, where n is a preset value.

6. The automatic bag opening method according to claim 5, characterized in that: When the bag-opening abnormality count Rn + Rl > threshR, the automatic bag-opening method issues a bag-opening failure warning, where threshR is a preset abnormality count threshold.

7. The automatic bag opening method according to claim 6, characterized in that: During the normal working stage of the packaging machine, each time the packaging machine runs, the total packaging counter N counts up by 1. When N < threshN, the bag-opening abnormality-related counters Rn and Rl are not recorded, where threshN is a preset value.

8. The automatic bag opening method according to claim 7, characterized in that: Every interval of a set time, the automatic bag-opening method integrates the newly added data in the database to update the bag-opening abnormality detection model and the air source size adaptation equation f(L, W, ty).

9. An automatic bag opening system using the automatic bag opening method according to any one of claims 1 to 8, characterized in that: The system includes: Image acquisition module, which collects packaging bag image data img0 to perform packaging bag ID matching, bag opening anomaly detection, and packaging bag size L and W calculation; The bag opening detection module runs the bag opening abnormality detection model and outputs the detection results. The detection results include at least: normal, no bag, unopened bag, and bag opening detachment. Among them, no bag, unopened bag, and bag opening detachment belong to bag opening abnormality. When the bag opening abnormality is detected, the data display module displays the bag opening abnormality warning, and the data storage module stores the current abnormality type and updates the abnormality count value; An air source matching module, which runs the method for automatically matching the air source size with the packaging bag; The bag opening processing module completes the processing logic of the normal working stage of the packaging machine; The model update module, at set intervals, integrates the newly added data from the data storage module to update the bag opening anomaly detection model and the gas source size adaptation equation f(L, W, ty); The data display module displays the working information of the packaging machine, which includes at least: the reminder of the matching of the gas source size with the current packaging bag, the result of the abnormal bag opening detection, the reminder of the automatic adaptation of the gas source size and the packaging bag, the abnormal alarm, the abnormal bag opening count Re, the multiple bag opening count Rn, the bag loss count Rl, and the total packaging count N; The data storage module stores the bag opening anomaly detection model, the air source size adaptation equation f(L, W, ty), the packaging bag data used, the suction cup type used by the packaging machine, the bag opening anomaly count Re, the multiple bag opening count Rn, the packet loss count Rl, and the total packaging count N. The packaging bag data used includes at least the packaging bag matching image set, the packaging bag allocation ID, and the adapted air source size p0.

10. A storage medium, the storage medium being a computer-readable storage medium, used for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the automatic bag opening method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Device for opening double-layer plastic film packaging bag automatically

    CN104443551A

  • Automatic bag feeding and opening device

    CN115092470A

  • Adsorption force control method, system and equipment for labeling module and medium

    CN115973553A

  • Packaging system, method and equipment for enlarging bag opening area of packaging bag and medium

    CN118083259A

Cited By

  • Multi-station automatic packaging control method and system

    CN119774085A

  • A multi-station automatic packaging control method and system

    CN119774085B