Improved plastic packaging structure of medicine packaging machine
By using deep learning models in the drug packaging machine to identify the color and grayscale images of the drug packaging, and combining with the PID controller to optimize the plastic packaging parameters, the problem of misjudgment of plastic packaging quality detection in the existing technology is solved, and higher detection accuracy and plastic packaging quality are achieved.
Patent Information
- Application Number
- CN202510200271.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-06-06
AI Technical Summary
Existing pharmaceutical packaging machines have misjudgment problems in plastic sealing quality testing, and it is difficult to comprehensively evaluate the plastic sealing quality of pharmaceutical packaging.
The photographing device and grayscale conversion module in the detection device are used to obtain the color image and grayscale image of the drug packaging, and the image is damaged through the trained deep learning model to comprehensively judge the plastic packaging quality. At the same time, ideal plastic packaging parameters are analyzed based on the drug packaging parameters, and the plastic packaging temperature and pressure are adjusted through the PID controller.
By combining the information of color images and grayscale images, the broken characteristics are more comprehensively evaluated, misjudgment is reduced, detection accuracy is improved, and the quality of plastic sealing is ensured. At the same time, the plastic sealing quality is further improved by optimizing the plastic sealing parameters.
Smart Images

Figure CN120096896A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of packaging machines, in particular to an improved plastic sealing structure of a medicine packaging machine. Background Art
[0002] When medicines are packed into boxes, in order to better protect the medicines, they will be sealed with plastic. This will form a protective film on the surface of the medicine box, thereby separating the medicine box from the outside world, thereby ensuring the quality and safety of the medicines. Therefore, how to ensure the quality of plastic sealing is crucial. Summary of the invention
[0003] The present invention is to solve the technical problems existing in the prior art. The present invention provides an improved plastic sealing structure of a medicine packaging machine, comprising: a conveying device, a plastic sealing device, a cooling device and a detection device; The conveying device is used to convey the medicine packages to the plastic sealing device, the cooling device and the detection device in sequence; The plastic sealing device is used to plastic seal the medicine package; The cooling device is used to cool the sealed medicine package; The detection device is used to detect the plastic sealing quality of the cooled medicine packaging; The detection device includes: a photographing device, a database, a first deep learning model, a grayscale conversion module, a second deep learning model and a damage judgment module; The photographing device is used to take a color image of the plastic seal of the cooled medicine package; The grayscale conversion module is used to convert the packaging plastic seal color image into a packaging plastic seal grayscale image; The database is used to store a set of historical packaging plastic sealing color images and a set of historical packaging plastic sealing grayscale images corresponding to the set of historical packaging plastic sealing color images; the set of historical packaging plastic sealing color images includes a plurality of historical packaging plastic sealing color images, the set of historical packaging plastic sealing grayscale images includes a plurality of historical packaging plastic sealing grayscale images, and damaged areas are marked on the historical packaging plastic sealing color images and the historical packaging plastic sealing grayscale images. The first deep learning model is used to perform damage recognition on the plastic-sealed color image of the packaging to obtain a first recognition result; The second deep learning model is used to perform damage recognition on the grayscale image of the plastic seal of the package to obtain a second recognition result; The first deep learning model is obtained by using a set of historical plastic packaging color images as training samples for damage feature recognition training; the second deep learning model is obtained by using a set of historical plastic packaging grayscale images as training samples for damage feature recognition training; The damage judgment module is used to judge whether the plastic sealing quality of the medicine packaging corresponding to the plastic sealing color image of the packaging is qualified according to the first recognition result and the second recognition result.
[0004] Further, judging whether the plastic sealing quality of the medicine packaging corresponding to the plastic sealing color image of the packaging is qualified according to the first recognition result and the second recognition result is specifically: If both the first recognition result and the second recognition result indicate that the drug packaging is damaged, the plastic sealing quality of the drug packaging corresponding to the plastic sealing color image of the packaging is unqualified.
[0005] Furthermore, the plastic packaging device comprises: A receiving module, used for receiving drug packaging parameters and first preset plastic sealing parameters input by a staff member, wherein the first preset plastic sealing parameters include a first preset plastic sealing temperature and a first preset plastic sealing pressure; The third deep learning model analyzes the second preset plastic sealing parameters according to the drug packaging parameters, wherein the second preset plastic sealing parameters include a second preset plastic sealing temperature and a second preset plastic sealing pressure; A comprehensive analysis module, used for analyzing ideal plastic sealing parameters according to the first preset plastic sealing parameters and the second preset plastic sealing parameters, wherein the ideal plastic sealing parameters include an ideal plastic sealing temperature and an ideal plastic sealing pressure; The control module is used to control the sealing roller to seal the medicine package according to the ideal sealing parameters.
[0006] Furthermore, the ideal plastic encapsulation parameters are analyzed according to the first preset plastic encapsulation parameters and the second preset plastic encapsulation parameters, specifically: The average of the first preset molding temperature and the second preset molding temperature is used as the ideal molding temperature, and the first preset molding pressure and the second preset molding pressure are used as the ideal molding pressure.
[0007] Furthermore, the plastic sealing device also includes a temperature sensor and a pressure sensor; The temperature sensor is used to obtain the real-time sealing temperature of the sealing roller, and the pressure sensor is used to obtain the real-time sealing pressure of the sealing roller.
[0008] Furthermore, the plastic packaging device also includes an error analysis module, a first PID controller and a second PID controller; An error analysis module, used to analyze a plastic sealing parameter error according to an ideal plastic sealing parameter and a real-time plastic sealing temperature and a real-time plastic sealing pressure of a plastic sealing roller, wherein the plastic sealing parameter error includes a temperature error and a pressure error; A first PID controller is used to adjust the sealing temperature of the sealing roller to an ideal sealing temperature according to the temperature error; The second PID controller is used to adjust the sealing pressure of the sealing roller to an ideal sealing pressure according to the pressure error.
[0009] Furthermore, the drug packaging parameters include drug packaging size and drug packaging material.
[0010] Furthermore, the detection device also includes a first alarm module, which is used to send an alarm message to the staff to re-seal the drug packaging with unqualified plastic sealing quality when the drug packaging with unqualified plastic sealing quality appears.
[0011] Furthermore, the detection device also includes a statistical module and a second alarm module; A statistical module is used to count the number of times that the plastic sealing quality is unqualified when the plastic sealing of the drug packages with the same drug packaging parameters is performed; The second alarm module is used to notify the staff to readjust the first preset plastic sealing parameter corresponding to the drug packaging parameter when the number of unqualified plastic sealing quality of the drug packaging with the drug packaging parameter is greater than the preset threshold.
[0012] Furthermore, the conveying device is specifically a conveyor belt.
[0013] Compared with the prior art, the present invention has the following beneficial effects: The present invention obtains the packaging plastic seal color image and the packaging plastic seal grayscale image of the current drug packaging through the photographic device and the grayscale conversion module in the detection device, and then uses the trained first deep learning model and the second deep learning model to respectively perform damage recognition on the packaging plastic seal color image and the packaging plastic seal grayscale image, so as to make a comprehensive judgment based on the two recognition results, and use the color change of the packaging plastic seal color image and the brightness change of the packaging plastic seal grayscale image to capture the damage features from different angles. By combining the information of the two, the damage information is more comprehensively evaluated, the misjudgment is reduced, the detection accuracy is improved, and the plastic seal quality is guaranteed; The present invention further improves the plastic sealing quality by analyzing the second preset plastic sealing parameters based on the drug packaging parameters and the first preset plastic sealing parameters input by the staff and the third deep learning model based on the drug packaging parameters, and comprehensively analyzing the ideal plastic sealing temperature and the ideal plastic sealing pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0016] Figure 1 It is a structural diagram of an improved plastic sealing structure of a medicine packaging machine of the present invention; Figure 2 It is a structural block diagram of a detection device for an improved plastic sealing structure of a medicine packaging machine of the present invention. DETAILED DESCRIPTION
[0017] 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.
[0018] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0019] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0020] Embodiment 1 See also Figure 1 As shown, the present invention provides an improved plastic sealing structure of a medicine packaging machine, which specifically includes: Conveying device, plastic sealing device, cooling device and detection device.
[0021] The conveying device is used to convey the drug packages to the plastic sealing device, the cooling device and the detection device in sequence; The plastic sealing device is used to plastic seal the drug packaging; The cooling device is used to cool the sealed medicine packaging; The detection device is used to detect the plastic sealing quality of the cooled medicine packaging.
[0022] The conveying device is specifically a conveyor belt.
[0023] See also Figure 2As shown, the detection device includes: a photographic device, a database, a first deep learning model, a grayscale conversion module, a second deep learning model and a damage judgment module; A photographic device for taking a color image of the plastic seal of the cooled pharmaceutical package; A grayscale conversion module, used for converting the packaging plastic seal color image into a packaging plastic seal grayscale image; A database, used to store a set of historical packaging plastic sealing color images and a set of historical packaging plastic sealing grayscale images corresponding to the set of historical packaging plastic sealing color images; The historical packaging plastic sealing color image set includes a plurality of historical packaging plastic sealing color images, and the historical packaging plastic sealing grayscale image set includes a plurality of historical packaging plastic sealing grayscale images, and the historical packaging plastic sealing color images and the historical packaging plastic sealing grayscale images are marked with damaged areas, A first deep learning model is used to perform damage recognition on the plastic-sealed color image of the packaging to obtain a first recognition result; The first deep learning model is obtained by performing damage feature recognition training using a collection of historical packaging plastic seal color images as training samples; A second deep learning model is used to perform damage recognition on the grayscale image of the plastic seal of the package to obtain a second recognition result; The second deep learning model is obtained by performing damage feature recognition training using a set of historical plastic packaging grayscale images as training samples; The damage judgment module is used to judge whether the plastic sealing quality of the drug packaging corresponding to the plastic sealing color image of the packaging is qualified according to the first recognition result and the second recognition result, specifically: If both the first recognition result and the second recognition result indicate that the drug packaging is damaged, the plastic sealing quality of the drug packaging corresponding to the plastic sealing color image of the packaging is unqualified.
[0024] In some embodiments, the plastic packaging device includes: A receiving module, used to receive drug packaging parameters and first preset plastic sealing parameters input by a staff member, the first preset plastic sealing parameters including a first preset plastic sealing temperature and a first preset plastic sealing pressure; the drug packaging parameters including drug packaging size and drug packaging material; The third deep learning model analyzes the second preset plastic sealing parameters according to the drug packaging parameters, wherein the second preset plastic sealing parameters include a second preset plastic sealing temperature and a second preset plastic sealing pressure; A comprehensive analysis module, used for analyzing ideal plastic sealing parameters according to the first preset plastic sealing parameters and the second preset plastic sealing parameters, wherein the ideal plastic sealing parameters include an ideal plastic sealing temperature and an ideal plastic sealing pressure; The control module is used to control the sealing roller to seal the medicine package according to the ideal sealing parameters.
[0025] The plastic sealing device also includes a temperature sensor and a pressure sensor; The temperature sensor is used to obtain the real-time sealing temperature of the sealing roller, and the pressure sensor is used to obtain the real-time sealing pressure of the sealing roller.
[0026] The plastic packaging device also includes an error analysis module, a first PID controller and a second PID controller; An error analysis module, used to analyze a plastic sealing parameter error according to an ideal plastic sealing parameter and a real-time plastic sealing temperature and a real-time plastic sealing pressure of a plastic sealing roller, wherein the plastic sealing parameter error includes a temperature error and a pressure error; A first PID controller is used to adjust the sealing temperature of the sealing roller to an ideal sealing temperature according to the temperature error; The second PID controller is used to adjust the sealing pressure of the sealing roller to an ideal sealing pressure according to the pressure error.
[0027] The detection device also includes a first alarm module, which is used to send an alarm message to the staff to reseal the medicine packaging with unqualified plastic sealing quality when the medicine packaging with unqualified plastic sealing quality appears.
[0028] The detection device also includes a statistical module and a second alarm module; A statistical module is used to count the number of times that the plastic sealing quality is unqualified when the plastic sealing of the drug packages with the same drug packaging parameters is performed; The second alarm module is used to notify the staff to readjust the first preset plastic sealing parameter corresponding to the drug packaging parameter when the number of unqualified plastic sealing quality of the drug packaging with the drug packaging parameter is greater than the preset threshold.
[0029] In some embodiments, the cooling device includes a cooling rack, a lifting device, two fans, a protective cover and a driving motor.
[0030] The two fans and the protective cover are located on the upper surface of the cooling rack, and the protective cover is located between the two fans; the driving motor is located at one end of the protective cover, and the lifting device is movably installed inside the cooling rack. A transmission shaft is fixedly installed on the output end of the driving motor, and one end of the transmission shaft extends inside the protective cover. A No. 1 bevel gear is fixedly sleeved on the surface of the transmission shaft near both ends, and the rotating No. 1 bevel gear can drive the No. 2 bevel gear to rotate; lifting grooves are longitudinally opened on the inner two side surfaces of the cooling rack, and a No. 2 bevel gear is movably installed on the upper surface of the cooling rack and above the lifting groove, and a threaded rod is fixedly installed on the lower surface of the No. 2 bevel gear, and the rotating threaded rod can control the threaded sleeve to move up and down on its surface; the lower end of the threaded rod extends into the lifting groove, and the No. 2 bevel gear is meshed with the No. 1 bevel gear; the lifting device It consists of a vacuum air guide tube, a hanging plate and a threaded sleeve block. A movable shaft is fixedly installed on the surfaces of both ends of the vacuum air guide tube, a hanging plate is movably installed on the surface of one end of the movable shaft, a threaded sleeve block is fixedly installed on the upper rear surface of the hanging plate, a spring is sleeved on the surface of the movable shaft, a vacuum suction cup is fixedly installed on the upper surface of the vacuum air guide tube, and the vacuum suction cup can adsorb the bottom of the plastic-sealed medicine on the surface of the vacuum air guide tube; there are seven vacuum suction cups, and the seven vacuum suction cups are evenly distributed on the upper surface of the vacuum air guide tube; one end of the spring is connected to the vacuum air guide tube, and the other end of the spring is connected to the hanging plate, and the threaded sleeve block is sleeved on the surface of the threaded rod.
[0031] Embodiment 2 The present invention also provides an electronic device, including: a processor, a sending device, an input device, an output device and a memory. The processor can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit, or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in the embodiment of the present application. The memory can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM), and is used to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes a method as described in any of the above possible implementation methods.
[0032] Embodiment 3 The present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method as described in any possible implementation manner.
[0033] The beneficial effects of the present invention are: The present invention obtains the packaging plastic seal color image and the packaging plastic seal grayscale image of the current drug packaging through the photographic device and the grayscale conversion module in the detection device, and then uses the trained first deep learning model and the second deep learning model to respectively perform damage recognition on the packaging plastic seal color image and the packaging plastic seal grayscale image, so as to make a comprehensive judgment based on the two recognition results, and use the color change of the packaging plastic seal color image and the brightness change of the packaging plastic seal grayscale image to capture the damage features from different angles. By combining the information of the two, the damage information is more comprehensively evaluated, the misjudgment is reduced, the detection accuracy is improved, and the plastic seal quality is guaranteed; The present invention further improves the plastic sealing quality by analyzing the second preset plastic sealing parameters based on the drug packaging parameters and the first preset plastic sealing parameters input by the staff and the third deep learning model based on the drug packaging parameters, and comprehensively analyzing the ideal plastic sealing temperature and the ideal plastic sealing pressure.
[0034] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0035] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. 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 technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (RandomAccess Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0036] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may 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 claimed herein.
Claims
1. An improved plastic sealing structure of a medicine packaging machine, characterized in that: include: Conveying device, plastic sealing device, cooling device and testing device; The conveying device is used to convey the medicine packages to the plastic sealing device, the cooling device and the detection device in sequence; The plastic sealing device is used to plastic seal the medicine package; The cooling device is used to cool the sealed medicine package; The detection device is used to detect the plastic sealing quality of the cooled medicine packaging; The detection device includes: a photographic device, a database, a first deep learning model, a grayscale conversion module, a second deep learning model and a damage judgment module; The photographing device is used to take a color image of the plastic seal of the cooled medicine package; The grayscale conversion module is used to convert the packaging plastic seal color image into a packaging plastic seal grayscale image; The database is used to store a set of historical packaging plastic sealing color images and a set of historical packaging plastic sealing grayscale images corresponding to the set of historical packaging plastic sealing color images; the set of historical packaging plastic sealing color images includes a plurality of historical packaging plastic sealing color images, the set of historical packaging plastic sealing grayscale images includes a plurality of historical packaging plastic sealing grayscale images, and damaged areas are marked on the historical packaging plastic sealing color images and the historical packaging plastic sealing grayscale images. The first deep learning model is used to perform damage recognition on the plastic-sealed color image of the packaging to obtain a first recognition result; The second deep learning model is used to perform damage recognition on the grayscale image of the plastic seal of the packaging to obtain a second recognition result; The first deep learning model is obtained by using a set of historical plastic packaging color images as training samples for damage feature recognition training; the second deep learning model is obtained by using a set of historical plastic packaging grayscale images as training samples for damage feature recognition training; The damage judgment module is used to judge whether the plastic sealing quality of the medicine packaging corresponding to the plastic sealing color image of the packaging is qualified according to the first recognition result and the second recognition result.
2. The improved plastic sealing structure of the medicine packaging machine according to claim 1 is characterized in that: The step of judging whether the plastic sealing quality of the medicine packaging corresponding to the plastic sealing color image of the packaging is qualified according to the first recognition result and the second recognition result is specifically as follows: If both the first recognition result and the second recognition result indicate that the drug packaging is damaged, the plastic sealing quality of the drug packaging corresponding to the plastic sealing color image of the packaging is unqualified.
3. The improved plastic sealing structure of the medicine packaging machine according to claim 1 is characterized in that: The plastic sealing device comprises: A receiving module, used for receiving drug packaging parameters and first preset plastic sealing parameters input by a staff member, wherein the first preset plastic sealing parameters include a first preset plastic sealing temperature and a first preset plastic sealing pressure; The third deep learning model analyzes the second preset plastic sealing parameters according to the drug packaging parameters, wherein the second preset plastic sealing parameters include a second preset plastic sealing temperature and a second preset plastic sealing pressure; A comprehensive analysis module, used for analyzing ideal plastic sealing parameters according to the first preset plastic sealing parameters and the second preset plastic sealing parameters, wherein the ideal plastic sealing parameters include an ideal plastic sealing temperature and an ideal plastic sealing pressure; The control module is used to control the sealing roller to seal the medicine package according to the ideal sealing parameters.
4. The improved plastic sealing structure of the medicine packaging machine according to claim 3 is characterized in that: The ideal plastic sealing parameters are analyzed according to the first preset plastic sealing parameters and the second preset plastic sealing parameters, specifically: The average of the first preset molding temperature and the second preset molding temperature is used as the ideal molding temperature, and the first preset molding pressure and the second preset molding pressure are used as the ideal molding pressure.
5. The improved plastic sealing structure of the medicine packaging machine according to claim 3 is characterized in that: The plastic sealing device also includes a temperature sensor and a pressure sensor; The temperature sensor is used to obtain the real-time sealing temperature of the sealing roller, and the pressure sensor is used to obtain the real-time sealing pressure of the sealing roller.
6. The improved plastic sealing structure of the medicine packaging machine according to claim 5, characterized in that: The plastic packaging device also includes an error analysis module, a first PID controller and a second PID controller; An error analysis module, used to analyze a plastic sealing parameter error according to an ideal plastic sealing parameter and a real-time plastic sealing temperature and a real-time plastic sealing pressure of a plastic sealing roller, wherein the plastic sealing parameter error includes a temperature error and a pressure error; A first PID controller is used to adjust the sealing temperature of the sealing roller to an ideal sealing temperature according to the temperature error; The second PID controller is used to adjust the sealing pressure of the sealing roller to an ideal sealing pressure according to the pressure error.
7. The improved plastic sealing structure of the medicine packaging machine according to claim 3, characterized in that: The drug packaging parameters include drug packaging size and drug packaging material.
8. The improved plastic sealing structure of the medicine packaging machine according to claim 1, characterized in that: The detection device also includes a first alarm module, which is used to send an alarm message to the staff to re-seal the medicine package with unqualified plastic sealing quality when the medicine package with unqualified plastic sealing quality appears.
9. The improved plastic sealing structure of the medicine packaging machine according to claim 3, characterized in that: The detection device also includes a statistical module and a second alarm module; A statistical module is used to count the number of times that the plastic sealing quality is unqualified when the plastic sealing of the drug packages with the same drug packaging parameters is performed; The second alarm module is used to notify the staff to readjust the first preset plastic sealing parameter corresponding to the drug packaging parameter when the number of unqualified plastic sealing quality of the drug packaging with the drug packaging parameter is greater than the preset threshold.
10. The improved plastic sealing structure of the medicine packaging machine according to claim 1, characterized in that: The conveying device is specifically a conveyor belt.