Packaging bag production method, device and equipment
Through image analysis and control technology, the position and size of the film can be accurately detected and adjusted, which solves the problems of low heat sealing efficiency and high cost in traditional packaging bag production, and improves production efficiency and sealing performance.
Patent Information
- Application Number
- CN202411058324.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the traditional packaging bag production process uses the heat sealing process, the production efficiency is low and manual or semi-automatic inspection of sealing is required, resulting in high scrap rates and high processing costs.
By acquiring images of the first film and the second film, analyzing the difference value and degree of overlap, the sealing device is precisely controlled to cover and seal the films to ensure a high degree of alignment and sealing performance.
The accuracy and sealing performance of the sealing interface are improved, rapid continuous production is achieved, and the scrap rate and production cost are reduced.
Smart Images

Figure CN118700636A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of packaging bag production, and in particular, relates to a packaging bag production method, device and equipment. Background Art
[0002] Packaging bags are flexible containers used to hold, protect, transport and display products. They are widely used in food, medicine, daily necessities, chemicals and other fields. There are many types of packaging bags, such as ziplock bags, heat-sealed bags, zipper bags, etc. Heat-sealed bags are packaging bags that are heated to fuse the sides and bottom of two films.
[0003] Traditional packaging bag production technology usually uses manual or semi-automatic heat sealing when using the heat sealing process. This method requires the sealing of the packaging bag to be checked again after heat sealing, resulting in low production efficiency of the packaging bag, and the scrap rate may be high, increasing processing costs. Summary of the invention
[0004] The embodiments of the present application provide a packaging bag production method, device and equipment, which can solve the problems of low production efficiency and high processing cost when heat-sealing the packaging bags.
[0005] In a first aspect, an embodiment of the present application provides a packaging bag production method, comprising:
[0006] Acquire a first film image; wherein the first film image is used to reflect the shape and size of the first film in the sealing device;
[0007] Acquire a second film image; wherein the second film image is used to reflect the shape and size of the second film that is about to enter the sealing device;
[0008] Analyze the first film image and the second film image to obtain a first difference value;
[0009] When the first difference value is less than a first preset threshold value, controlling the sealing device to cover the first film with the second film;
[0010] Acquire an image to be sealed; wherein the image to be sealed is used to indicate an image when the second film covers the first film;
[0011] Analyzing the image to be sealed to obtain a degree of overlap; wherein the degree of overlap is used to reflect the degree of coverage of the first film and the second film at the packaging location;
[0012] When the overlap degree is greater than a preset overlap degree, the sealing device is controlled to seal the first film and the second film to obtain a packaging bag.
[0013] The above technical solutions in the embodiments of the present application have at least the following technical effects:
[0014] The packaging bag production method provided by the present application is to obtain a first film image for reflecting the shape and size of the first film in the sealing device and obtain a second film image for reflecting the shape and size of the second film that is about to enter the sealing device; then analyze the first film image and the second film image to obtain a first difference value; when the first difference value is less than a first preset threshold value, control the sealing device to cover the second film on the first film; then obtain an image to be sealed that indicates the image when the second film is covered on the first film; analyze the image to be sealed to obtain the overlap; when the overlap is greater than the preset overlap, control the sealing device to seal the first film and the second film to obtain a packaging bag. The method accurately detects and adjusts the position and size of the film before sealing, ensures that the two layers of film are highly aligned when sealing, improves the accuracy and sealing performance of the sealing interface, reduces the sealing failure or leakage caused by misalignment, and realizes rapid and continuous production operations, improves overall production efficiency, reduces the scrap rate caused by poor sealing, saves raw materials, and reduces production costs.
[0015] In a possible implementation of the first aspect, the packaging bag production method further includes:
[0016] Comparing and analyzing the first film image with the standard image to obtain a second difference value;
[0017] The second difference value is compared with a second preset threshold value. If the second difference value is greater than the second preset threshold value, the sealing device is controlled to remove the first film and replace the second film with the first film.
[0018] In a possible implementation manner of the first aspect, the analyzing the first film image and the second film image to obtain the first difference value includes:
[0019] Analyze the first film image to obtain first feature information; wherein the first feature information is used to reflect the number and corresponding positions of feature points on the first film;
[0020] A first difference value is obtained based on the first feature information and the second film image.
[0021] In a possible implementation manner of the first aspect, obtaining a first difference value based on the first feature information and the second film image includes:
[0022] Acquire key feature points based on the first feature information;
[0023] Analyze the key feature point and the first feature information to obtain second feature information; wherein the second feature information is used to reflect the relationship between the key feature point and other feature points in the first feature information;
[0024] A first difference value is obtained based on the key feature point, the second feature information and the second film image.
[0025] In a possible implementation manner of the first aspect, obtaining the first difference value based on the key feature point, the second feature information, and the second film image includes:
[0026] Analyzing the second film image to obtain third feature information; wherein the third feature information is used to reflect the number and corresponding positions of feature points on the second film;
[0027] Analyzing the key feature points and the third feature information to obtain fourth feature information; wherein the fourth feature information is used to reflect the relationship between the key feature points and the feature points on the second film reflected in the third feature information;
[0028] The second feature information and the fourth feature information are compared and analyzed to obtain a first difference value.
[0029] In a possible implementation manner of the first aspect, analyzing the to-be-sealed images to obtain the overlap degree includes:
[0030] Analyze the image to be sealed to obtain sealing area information; wherein the sealing area information is used to reflect the position where the sealing device acts on the first film and the second film;
[0031] The overlap degree is obtained by analyzing the sealing area information.
[0032] In a possible implementation manner of the first aspect, analyzing according to the sealing area information to obtain the overlap degree includes:
[0033] When the sealing area information reflects that the sealing device does not act on the position to be sealed in the first film and / or the second film, the overlap degree is 0.
[0034] In a possible implementation manner of the first aspect, the analyzing according to the sealing area information to obtain the overlap degree further includes:
[0035] When the sealing area information reflects that the sealing device completely acts on the position to be sealed in the first film and / or the second film, the coverage area is calculated; wherein the coverage area is used to reflect the size of the area covered by the sealing device on the position to be sealed in the first film and / or the second film;
[0036] A degree of overlap is obtained based on the covered area.
[0037] In a second aspect, an embodiment of the present application provides a packaging bag production device, comprising:
[0038] A first acquisition module, used to acquire a first film image; wherein the first film image is used to reflect the shape and size of the first film in the sealing device;
[0039] A second acquisition module, used for acquiring a second film image; wherein the second film image is used for reflecting the shape and size of the second film that is about to enter the sealing device;
[0040] A first analysis module, configured to analyze the first film image and the second film image to obtain a first difference value;
[0041] a first control module, configured to control the sealing device to cover the first film with the second film when the first difference value is less than a first preset threshold;
[0042] A third acquisition module is used to acquire the image to be sealed; wherein the image to be sealed is used to indicate the image when the second film covers the first film;
[0043] A second analysis module is used to analyze the image to be sealed to obtain a degree of overlap; wherein the degree of overlap is used to reflect the coverage of the first film and the second film at the packaging location;
[0044] The second control module is used for controlling the sealing device to seal the first film and the second film to obtain a packaging bag when the overlap degree is greater than a preset overlap degree.
[0045] In a third aspect, an embodiment of the present application provides a packaging bag production device, comprising a sealing device and a control device, wherein the control device is electrically connected to the sealing device, and the control device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods described in the first aspect when executing the computer program.
[0046] 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.
[0047] 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 production device, the packaging bag production device executes the packaging bag production method described in any one of the above-mentioned first aspects.
[0048] 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
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.
[0050] Figure 1 It is a schematic diagram of the process of the packaging bag production method provided in the embodiment of the present application;
[0051] Figure 2 It is a schematic diagram of the implementation process of step S300 in the packaging bag production method provided in an embodiment of the present application;
[0052] Figure 3 It is a schematic diagram of the implementation process of step S320 in the packaging bag production method provided in an embodiment of the present application;
[0053] Figure 4 It is a schematic diagram of the implementation process of step S323 in the packaging bag production method provided in an embodiment of the present application;
[0054] Figure 5 It is a schematic diagram of the implementation process of step S600 in the packaging bag production method provided in an embodiment of the present application;
[0055] Figure 6 It is a schematic diagram of the implementation process of step S620 in the packaging bag production method provided in an embodiment of the present application;
[0056] Figure 7 It is a structural schematic diagram of a packaging bag production device provided in an embodiment of the present application;
[0057] Figure 8 It is a schematic diagram of the structure of the control device of the packaging bag production equipment provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also 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 prevent unnecessary details from obstructing the description of the present application.
[0059] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0060] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0061] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0062] 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.
[0063] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0064] Packaging bags are flexible containers used to hold, protect, transport and display products. They are widely used in food, medicine, daily necessities, chemicals and other fields. There are many types of packaging bags, such as ziplock bags, heat-sealed bags, zipper bags, etc. Heat-sealed bags are packaging bags that are heated to fuse the sides and bottom of two films.
[0065] Traditional packaging bag production technology usually uses manual or semi-automatic heat sealing when using the heat sealing process. This method requires the sealing of the packaging bag to be checked again after heat sealing, resulting in low production efficiency of the packaging bag, and the scrap rate may be high, increasing processing costs.
[0066] To solve the above problems, the embodiment of the present application provides a packaging bag production method, device and equipment. In the method, a first film image for reflecting the shape and size of the first film in the sealing device and a second film image for reflecting the shape and size of the second film about to enter the sealing device are obtained; then the first film image and the second film image are analyzed to obtain a first difference value; when the first difference value is less than a first preset threshold value, the sealing device is controlled to cover the second film on the first film; then an image to be sealed indicating the image when the second film is covered on the first film is obtained; according to the image to be sealed, the overlap is obtained; when the overlap is greater than the preset overlap, the sealing device is controlled to seal the first film and the second film to obtain a packaging bag. The method accurately detects and adjusts the position and size of the film before sealing, ensures that the two layers of film are highly aligned when sealing, improves the accuracy and sealing performance of the sealing interface, reduces the sealing failure or leakage caused by misalignment, and realizes rapid and continuous production operations, improves overall production efficiency, reduces the scrap rate caused by poor sealing, saves raw materials, and reduces production costs.
[0067] The packaging bag production method provided in the embodiment of the present application can be applied to packaging bag production equipment. In this case, the packaging bag production equipment is the executor of the packaging bag production 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 production equipment.
[0068] For example, a packaging bag production device may include a sealing device and a control device, and the control device is electrically connected to the sealing device. The sealing device is used to remove the first film or the second film that does not meet the quality requirements, and to cover the second film on the first film and then perform heat sealing. The sealing device includes a sealing module, a rejection mechanism and a workbench. The workbench is used to carry the first film and the second film. The sealing module is used to apply heat and pressure to the first film and the second film to ensure that a firm seal is formed between the first film and the second film, thereby forming a packaging bag. The sealing device can be a pulse heat sealer, a laser sealer, etc., but is not limited to this. The rejection device is used to reject the first film or the second film that does not meet the quality requirements, and to cover the second film on the first film. The rejection device can be a robotic arm rejector, a flap rejector, etc., but is not limited to this. The control device monitors and controls the sealing process.
[0069] In order to better understand the packaging bag production method provided in the embodiment of the present application, the specific implementation process of the packaging bag production method provided in the embodiment of the present application is exemplarily introduced below.
[0070] Figure 1 A schematic flow chart of a packaging bag production method provided in an embodiment of the present application is shown, and the packaging bag production method includes:
[0071] S100, acquiring a first film image; wherein the first film image is used to reflect the shape and size of the first film in the sealing device.
[0072] It is understandable that the first film image can be acquired by a high-definition camera or other imaging equipment.
[0073] S200, acquiring a second film image; wherein the second film image is used to reflect the shape and size of the second film that is about to enter the sealing device.
[0074] It is understandable that the second film image can be acquired by a high-definition camera or other imaging equipment.
[0075] S300, analyzing the first film image and the second film image to obtain a first difference value.
[0076] It can be understood that the first difference value is used to reflect the degree of difference between the first film and the second film. The first difference value can be obtained by comparing and analyzing the first film image and the second film image, calculating the pixel difference, and statistically analyzing the calculated pixel difference to summarize it into one or more values, namely the first difference value, to reflect the overall degree of difference between the two films. This can be an average difference, a maximum difference, or a confidence interval of a certain statistic, etc.; it can also be obtained by comparing and analyzing the first film image and the second film image with the standard film image respectively. The standard film image represents the ideal state of the target film, including the correct size, shape, etc. The standard film image can be manually input or obtained from the image database, etc. The image database contains standard film images corresponding to various models and sizes of packaging bags. These data can be obtained through laboratory experiments, on-site measurements and monitoring, and previous experience. After obtaining, the collected data will be sorted, classified and archived, useful information and rules will be extracted, and the relevant data will be saved in the database to form a packaging bag database. The first difference value may be obtained by calculating the pixel difference between the first film image and the standard film image, and the pixel difference between the second film image and the standard image, and then simply adding or subtracting the two pixel differences, etc., but not limited thereto.
[0077] In one possible implementation, see Figure 2 In step S300, the first film image and the second film image are analyzed to obtain a first difference value, including:
[0078] S310, analyzing the first film image to obtain first characteristic information; wherein the first characteristic information is used to reflect the number and corresponding positions of characteristic points on the first film.
[0079] It can be understood that the number and position of the feature points of the corresponding films of packaging bags of different specifications may be different. For example, the feature point can be the corner or center point of the first film or any other predetermined marking point, but it is not limited to this. The number and position of these points will vary according to the specifications and design of the packaging bag, and are an important basis for ensuring the alignment and sealing quality of the film. The first feature information can be obtained by inputting the first film image into the learning model and then outputting the learning model; the first film image can also be matched with the film image in the image database to obtain the first feature information matching the image database, and so on, but it is not limited to this. The learning model is trained with multiple sets of training data, and each set of training data in the multiple sets of training data includes the first film image and the corresponding first feature information. The image database contains different first film images and corresponding first feature information.
[0080] S320: Obtain a first difference value based on the first feature information and the second film image.
[0081] It is understood that the feature points corresponding to the first feature information can be mapped onto the second film image by image registration technology, and then the positions in the second film image that match the feature points in the first film image are identified, and finally the difference in the positions of each feature point in the two images is calculated, and the difference quantization values of all feature points are summarized to form a first difference value. This may be the average value or maximum value of all difference values, etc., but is not limited thereto.
[0082] In one possible implementation, see Figure 3 In step S320, obtaining a first difference value based on the first feature information and the second film image includes:
[0083] S321, acquiring key feature points based on the first feature information.
[0084] It can be understood that the key feature point is one of the feature points in the first feature information, which represents the film characteristics and plays a decisive role in the alignment and sealing process. For packaging bags of the same specification, the position of the key feature points is fixed and will not change due to changes in the size of the first film. The key feature points can be manually pre-set, or obtained from the packaging bag database, etc., but not limited to this. The packaging bag database refers to a database that contains packaging bags of all specifications and the corresponding key feature point location information. These data can be obtained through laboratory experiments, on-site measurements and monitoring, and past experience. After acquisition, the collected data will be sorted, classified and archived, useful information and rules will be extracted, and the relevant data will be saved in the database to form a packaging bag database.
[0085] S322, analyzing the key feature point and the first feature information to obtain second feature information; wherein the second feature information is used to reflect the relationship between the key feature point and other feature points in the first feature information.
[0086] It can be understood that after determining the key feature points, the distance and angle relationship between the key feature points and other feature points can be calculated based on the position information of other feature points reflected in the first feature information, thereby obtaining a correlation information layout diagram between the key feature points and other feature points. The correlation information reflected in this correlation information layout diagram is the second feature information.
[0087] S323, obtaining a first difference value based on the key feature point, the second feature information and the second film image.
[0088] It can be understood that the key feature points of the second film image are at the same position as the key feature points of the first film image. Therefore, the key feature points of the first film image can be matched with the key feature points of the second film image through image registration technology to ensure that the coordinate systems of the two images are consistent. Then, the first difference value is obtained based on the positional relationship between other feature points of the second feature information and the second film image, for example, the position deviation of other feature points on the two films, and all feature points with position deviations are counted, and the position deviations are quantified and summarized to obtain the first difference value.
[0089] In one possible implementation, see Figure 4 In step S323, obtaining a first difference value based on the key feature point, the second feature information and the second film image includes:
[0090] S3231, analyzing the second film image to obtain third feature information; wherein the third feature information is used to reflect the number and corresponding positions of feature points on the second film.
[0091] It can be understood that the third feature information can be obtained by adopting a similar method to that of obtaining the first feature information in step S310, which will not be described in detail here.
[0092] S3232, analyzing the key feature points and the third feature information to obtain fourth feature information; wherein the fourth feature information is used to reflect the relationship between the key feature points and the feature points on the second film reflected in the third feature information.
[0093] It can be understood that the key feature points of the first film image can be matched and aligned with the key feature points of the second film image, and then the other feature points of the second film image can be associated with the key feature points of the first film image, and the distance and angle relationship between the key feature points of the first film image and the other feature points of the second film image can be calculated, so as to obtain the association information layout diagram of the key feature points of the first film image and the other feature points of the second film image. The association information reflected by this association information layout diagram is the fourth feature information.
[0094] S3233: Compare and analyze the second feature information and the fourth feature information to obtain a first difference value.
[0095] It can be understood that the difference between the two associated information layout diagrams can be quantified by comparing and analyzing the associated information layout diagram corresponding to the second feature information and the associated information layout diagram corresponding to the fourth feature information, such as calculating the average distance deviation, angle deviation or overall layout similarity score between the feature points. The difference quantification values of all feature points are summarized to form a first difference value. Exemplarily, it is assumed that the key feature points of the first film and the second film are four corner points, and it is known that the corner point A on the first film and the corner point A' on the second film have been correctly matched. Next, the distance and angle information between the corner point A and other feature points on the first film (such as the edge midpoints B and C) are compared with the distance and angle information between the corner point A' and the corresponding position feature points on the second film. By calculating the distance deviation and angle deviation between these points, a numerical value of the quantitative difference can be obtained, that is, the local first difference value. Repeat this process for all key feature points, and finally summarize all local difference values to obtain the first difference value.
[0096] S400, when the first difference value is less than a first preset threshold, controlling the sealing device to cover the first film with the second film.
[0097] It can be understood that the first preset threshold is a pre-set value, which reflects the maximum acceptable difference between the first film and the second film. The first preset threshold can be manually set by humans, or can be obtained from the packaging bag database, etc., but is not limited to this. The packaging bag database refers to a database containing packaging bags of different specifications and corresponding first preset thresholds. These data can be obtained through laboratory experiments, on-site measurements and monitoring, and past experience. After obtaining, the collected data will be sorted, classified and archived, useful information and rules will be extracted, and the relevant data will be saved in the database to form a packaging bag database. When the first difference value is less than the first preset threshold, it means that the difference between the first film and the second film is small, which meets the prerequisite requirements of packaging, so the second film is covered on the first film.
[0098] Optionally, the packaging bag production method further includes: S401, when the first difference value is greater than a first preset threshold, controlling the sealing device to remove the second film, and acquiring the next film image, and determining it as the second film image.
[0099] It can be understood that when the first difference value is less than the first preset threshold, it means that the difference between the first film and the second film is large and does not meet the prerequisite requirements of packaging. Therefore, the second film covering is removed until the second film image that meets the composite requirements is covered on the first film.
[0100] S500, obtaining an image to be sealed; wherein the image to be sealed is used to indicate an image when the second film covers the first film.
[0101] It can be understood that the image to be sealed directly reflects the actual overlapping state of the two layers of film and is the basis for evaluating the alignment quality before sealing. The image to be sealed can be acquired by a high-definition camera or other imaging equipment.
[0102] S600, analyzing the image to be sealed to obtain a degree of overlap; wherein the degree of overlap is used to reflect the degree of coverage of the first film and the second film at the packaging location.
[0103] It can be understood that, first, the edge contours of the first film and the second film can be identified by edge detection algorithms (such as Canny edge detection, Sobel operator, etc.); then, based on the edge information of the film, the sealing area is segmented, and the sealing areas of the two films are matched, which may involve feature matching technology, such as shape-based matching or feature point matching, to ensure accurate correspondence between the corresponding parts of the two films; finally, the identified contours of the two films are fitted by software simulation to simulate the actual sealing process. In this process, the overlap ratio of the two films in the sealing area, i.e., the degree of overlap, is calculated. The calculation of the degree of overlap can be obtained based on the ratio of the area of the overlapping area to the total area that should be sealed theoretically, or a more complex algorithm can be used to evaluate the degree of fit of the two films, etc., but it is not limited to this.
[0104] In one possible implementation, see Figure 5 In step S600, the overlap degree is obtained by analyzing the image to be sealed, including:
[0105] S610, analyzing the image to be sealed to obtain sealing area information; wherein the sealing area information is used to reflect the position where the sealing device acts on the first film and the second film.
[0106] It can be understood that the sealing area information is the action position area of the sealing device to seal the first film and the second film during the sealing process. The sealing area information can be obtained by simulating the sealing of the image to be sealed; or the image to be sealed can be mapped to the image of the sealed packaging bag, and then the difference between the ideal sealing area and the current state to be sealed can be determined through algorithm matching and comparison, and the sealing area information can be further refined, etc., but not limited to this.
[0107] S620, analyzing the sealing area information to obtain the overlap degree.
[0108] It can be understood that the specifications of the packaging bag are determined by the overall size and the internal capacity. When the overall size difference is small, the specifications of the packaging bag are determined by the size of the internal capacity. At this time, the size of the internal capacity is determined by the size of the packaging area. In order to ensure the consistency of the function and appearance of the packaging bag, the sealing position remains unchanged when the sealing device seals the first film and the second film. However, since there may be differences between the first film and the second film, the sealing area information will change. The greater the proportion of the position where the sealing device acts on the first film and the second film reflected by the sealing area information, the higher the overlap.
[0109] In one possible implementation, see Figure 6 In step S620, the overlap degree is obtained by analyzing the sealing area information, including:
[0110] S621a: When the sealing area information reflects that the sealing device does not act on the position to be sealed in the first film and / or the second film, the overlap degree is 0.
[0111] It can be understood that when the sealing area information shows that the sealing device fails to properly align and cover the preset positions of the first film and the second film to be sealed, this means that the sealing process will not be able to proceed effectively because the sealing device fails to reach the exact position where it should operate. The "overlap degree is 0" here is a theoretical expression, which is intended to emphasize that the sealing area does not achieve any effective coverage, that is, the two layers of film do not overlap or align at all in the predetermined sealing area, so the sealing cannot be achieved, and there is no so-called "overlap". Further explanation, in the ideal sealing process, the sealing device needs to act accurately on the predetermined edges or specific areas of the two layers of film to ensure that the two layers of film can be tightly bonded together. If the operating position of the sealing device deviates from this predetermined area, whether it is due to deviation in the film position, alignment problems of the equipment or other factors, as long as the actual sealing operation fails to be carried out in the designed sealing area, the sealing attempt is considered to be a failure, and the overlap degree is therefore marked as 0, indicating that the basic requirements for sealing have not been met.
[0112] S621b, when the sealing area information reflects that the sealing device completely acts on the position to be sealed in the first film and / or the second film, calculate the coverage area; wherein the coverage area is used to reflect the size of the area covered by the sealing device on the position to be sealed in the first film and / or the second film.
[0113] It can be understood that the contours of the first film and the second film in the sealing area can be intersected to find the actual overlapping part of the two films. This can be achieved through pixel-level logical operations in image processing, such as calculating the "and" operation of two binary images to obtain a pixel set in the overlapping area. The overlapping area is then converted into the actual area by calculating the number of overlapping pixels and combining the actual physical size of the pixels (such as the actual area corresponding to each pixel). The formula is: Coverage area = (number of overlapping pixels) × (area of a single pixel).
[0114] S622b, obtaining the overlap degree based on the coverage area.
[0115] It can be understood that the overlap degree = (coverage area ÷ theoretical total sealing area) × 100%. Since the first film and the second film may have differences or changes, the theoretical total sealing area is not the total sealing area when the ideal film is sealed under ideal conditions, but the area reflected by the sealing area information on the first film and the second film.
[0116] With such an arrangement, in general sealing, the sealing area or region on one side may be smaller and the sealing area or region on the other side may be larger. At this time, the total sealing area may be equal to the total sealing area when the sealing areas or regions on both sides are the same, resulting in the quality of the packaging bags produced in the first case not meeting the requirements. However, in this method, due to the existence of key special points, the first situation will not occur, thereby effectively avoiding misjudgment caused by such asymmetric sealing.
[0117] S700, when the overlap degree is greater than a preset overlap degree, controlling a sealing device to seal the first film and the second film to obtain a packaging bag.
[0118] It can be understood that the preset overlap is a pre-set value, which can be obtained from the packaging bag database, or obtained through the learning model, etc., but is not limited to this. The packaging bag database refers to a database containing the preset overlaps corresponding to packaging bags of different specifications. These data can be obtained through laboratory experiments, on-site measurements and monitoring, and past experience. After acquisition, the collected data will be sorted, classified and archived, useful information and rules will be extracted, and the relevant data will be saved in the database to form a packaging bag database. The learning model is trained with multiple sets of training data, and each set of training data in the multiple sets of training data includes packaging bag production specification information and the corresponding preset overlap.
[0119] Optionally, the packaging bag production method further includes: S701, when the overlap degree is less than or equal to a preset overlap degree, controlling the sealing device to remove the second film.
[0120] It is understood that when the overlap is less than or equal to the preset overlap, it indicates that the alignment and coverage of the first film and the second film in the sealing area do not meet the set quality standards. In this case, sealing may not only result in loose sealing, but also affect the appearance and functionality of the packaging bag, such as causing leakage, insufficient sealing strength or uneven appearance. Therefore, controlling the sealing device to remove the second film is a quality control measure to ensure that each batch of packaging bags meets strict production standards.
[0121] In a possible implementation, the packaging bag production method further includes:
[0122] S301, comparing and analyzing the first film image with the standard film image to obtain a second difference value.
[0123] It can be understood that the film reflected by the standard film image is obtained under an ideal state. The standard film image can be manually input, or obtained from an image database, etc., but is not limited thereto. The difference between the first film image and the standard image is compared through image processing technology, such as pattern recognition, edge detection, color analysis, etc. This analysis may involve pixel-level comparison or feature-level comparison, such as detecting whether the printed pattern on the film is offset or defective. The result of the comparative analysis will be quantified into a numerical value, namely the second difference value.
[0124] S302, comparing the second difference value with the second preset threshold value, if the second difference value is greater than the second preset threshold value, controlling the sealing device to remove the first film and replace the second film with the first film.
[0125] It can be understood that the second preset threshold is a pre-set value, which reflects the maximum acceptable difference between the first film and the ideal film. The first preset threshold can be manually set by humans, or can be obtained from the packaging bag database, etc., but is not limited to this. When the second difference value is greater than the second preset threshold, it indicates that the difference between the first film and the standard film exceeds the predetermined allowable range, which may be due to film size mismatch, pattern misalignment, color deviation, defects or damage. At this time, the measure taken is to control the sealing device to remove the first film to avoid using unqualified materials for subsequent sealing steps and ensure the quality of the final product. Then, the second film is sent to the sealing device and used as a new first film, and the same image analysis process is carried out again to ensure that the film used subsequently meets the quality standards.
[0126] 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 the present application.
[0127] Corresponding to the packaging bag production method described in the above embodiment, the embodiment of the present application also provides a packaging bag production device, and each module of the device can implement each step of the packaging bag production method. Figure 7 A structural block diagram of a packaging bag production device 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.
[0128] Reference Figure 7 , the packaging bag production device comprises:
[0129] The first acquisition module is used to acquire a first film image; wherein the first film image is used to reflect the shape and size of the first film in the sealing device.
[0130] The second acquisition module is used to acquire the second film image; wherein the second film image is used to reflect the shape and size of the second film that is about to enter the sealing device.
[0131] The first analysis module is used to analyze the first film image and the second film image to obtain a first difference value.
[0132] The first control module is used to control the sealing device to cover the second film on the first film when the first difference value is less than a first preset threshold value.
[0133] The third acquisition module is used to acquire the image to be sealed; wherein the image to be sealed is used to indicate the image when the second film covers the first film.
[0134] The second analysis module is used to analyze the image to be sealed to obtain the overlap; wherein the overlap is used to reflect the coverage of the first film and the second film at the packaging location.
[0135] The second control module is used for controlling the sealing device to seal the first film and the second film to obtain a packaging bag when the overlap degree is greater than a preset overlap degree.
[0136] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0137] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above modules is used as an example for illustration. In actual applications, the above functions can be assigned to different modules as needed, that is, the internal structure of the device 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 a processing unit, or each unit can exist physically separately, 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 software functional units. 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 device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0138] An embodiment of the present application also provides a packaging bag production device, including a sealing device and a control device, and the control device is electrically connected to the sealing device. Figure 8 This is a schematic diagram of the structure of a control device 6 provided in an embodiment of the present application. Figure 8 As shown, the control device 6 of this embodiment includes: at least one processor 60 ( Figure 8 Only one is shown), at least one memory 61 ( Figure 8 Only one is shown) 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 in any of the above-mentioned packaging bag production method embodiments, or implements the functions of the modules in the above-mentioned device embodiments.
[0139] Exemplarily, 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 complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the control device 6.
[0140] 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 production device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will understand that Figure 8 It is only an example of the control device 6 and does not constitute a limitation on the control device 6. It 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.
[0141] 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, etc.
[0142] In some embodiments, the memory 61 may be an internal storage unit of the control device 6, such as a hard disk 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 disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the control device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the control device 6. The memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), 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 to be output.
[0143] 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.
[0144] An embodiment of the present application provides a computer program product. When the computer program product is run on a packaging bag production device, the packaging bag production device implements the steps in any of the above-mentioned method embodiments.
[0145] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the packaging bag production equipment, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0146] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0147] Those of ordinary skill 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 to be beyond the scope of this application.
[0148] In the embodiments provided in the present application, it should be understood that the disclosed packaging bag production devices, equipment and methods can be implemented in other ways. For example, the packaging bag production device and equipment embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0149] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A packaging bag production method, characterized in that: include: Acquire a first film image; wherein the first film image is used to reflect the shape and size of the first film in the sealing device; Acquire a second film image; wherein the second film image is used to reflect the shape and size of the second film that is about to enter the sealing device; Analyze the first film image and the second film image to obtain a first difference value; When the first difference value is less than a first preset threshold value, controlling the sealing device to cover the first film with the second film; Acquire an image to be sealed; wherein the image to be sealed is used to indicate an image when the second film covers the first film; Analyzing the image to be sealed to obtain a degree of overlap; wherein the degree of overlap is used to reflect the degree of coverage of the first film and the second film at the packaging location; When the overlap degree is greater than a preset overlap degree, the sealing device is controlled to seal the first film and the second film to obtain a packaging bag.
2. The packaging bag production method according to claim 1, characterized in that: The packaging bag production method also includes: Comparing and analyzing the first film image with the standard image to obtain a second difference value; The second difference value is compared with a second preset threshold value. If the second difference value is greater than the second preset threshold value, the sealing device is controlled to remove the first film and replace the second film with the first film.
3. The packaging bag production method according to claim 1, characterized in that: The step of analyzing the first film image and the second film image to obtain a first difference value includes: Analyze the first film image to obtain first feature information; wherein the first feature information is used to reflect the number and corresponding positions of feature points on the first film; A first difference value is obtained based on the first feature information and the second film image.
4. The packaging bag production method according to claim 3, characterized in that: The obtaining a first difference value based on the first feature information and the second film image includes: Acquire key feature points based on the first feature information; Analyze the key feature point and the first feature information to obtain second feature information; wherein the second feature information is used to reflect the relationship between the key feature point and other feature points in the first feature information; A first difference value is obtained based on the key feature point, the second feature information and the second film image.
5. The packaging bag production method according to claim 4, characterized in that: The obtaining a first difference value based on the key feature point, the second feature information and the second film image includes: Analyzing the second film image to obtain third feature information; wherein the third feature information is used to reflect the number and corresponding positions of feature points on the second film; Analyzing the key feature points and the third feature information to obtain fourth feature information; wherein the fourth feature information is used to reflect the relationship between the key feature points and the feature points on the second film reflected in the third feature information; The second feature information and the fourth feature information are compared and analyzed to obtain a first difference value.
6. The packaging bag production method according to claim 1, characterized in that: The step of analyzing the image to be sealed to obtain the overlap degree includes: Analyze the image to be sealed to obtain sealing area information; wherein the sealing area information is used to reflect the position where the sealing device acts on the first film and the second film; The overlap degree is obtained by analyzing the sealing area information.
7. The packaging bag production method according to claim 6, characterized in that: The analyzing according to the sealing area information to obtain the overlap degree includes: When the sealing area information reflects that the sealing device does not act on the position to be sealed in the first film and / or the second film, the overlap degree is 0.
8. The method for producing a packaging bag according to claim 7, characterized in that: The analyzing according to the sealing area information to obtain the overlap degree also includes: When the sealing area information reflects that the sealing device completely acts on the position to be sealed in the first film and / or the second film, the coverage area is calculated; wherein the coverage area is used to reflect the size of the area covered by the sealing device on the position to be sealed in the first film and / or the second film; A degree of overlap is obtained based on the covered area.
9. A packaging bag production device, characterized in that: include: A first acquisition module, used to acquire a first film image; wherein the first film image is used to reflect the shape and size of the first film in the sealing device; A second acquisition module, used for acquiring a second film image; wherein the second film image is used for reflecting the shape and size of the second film that is about to enter the sealing device; A first analysis module, configured to analyze the first film image and the second film image to obtain a first difference value; a first control module, configured to control the sealing device to cover the first film with the second film when the first difference value is less than a first preset threshold; A third acquisition module is used to acquire the image to be sealed; wherein the image to be sealed is used to indicate the image when the second film covers the first film; A second analysis module is used to analyze the image to be sealed to obtain a degree of overlap; wherein the degree of overlap is used to reflect the coverage of the first film and the second film at the packaging location; The second control module is used for controlling the sealing device to seal the first film and the second film to obtain a packaging bag when the overlap degree is greater than a preset overlap degree.
10. A packaging bag production equipment, characterized in that: The method comprises a sealing device and a control device, wherein the control device is electrically connected to the sealing device, and the control device comprises 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 8 when executing the computer program.
Citation Information
Cited By
Double-outlet square bag zippered bag making detection method and system based on image detection
CN120765551A
Image detection-based double-outside square bag zipper bag making detection method and system
CN120765551B
