Material packaging method and device, electronic equipment and computer readable storage medium
Patent Information
- Application Number
- CN202610799985.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-04
- Publication Date
- 2026-09-29
AI Technical Summary
[0003]目前相关技术中,通常是通过人工进行质量检测,并通过人工完成合格品与非合格品的分拣,在分拣完成后,再将合格的电子元器件封装在编带中,这种通过人工处理的方式,效率非常低
Smart Images

Figure CN122831008A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of material packaging technology, and in particular to a material packaging method, apparatus, electronic device and computer-readable storage medium. Background Technology
[0002] In the production process of electronic components, it is necessary to package the electronic components. For example, after the production of surface mount resistors, surface mount capacitors or other electronic components, the electronic components need to undergo appearance inspection and packaging.
[0003] Currently, in related technologies, quality inspection is usually carried out manually, and qualified and unqualified products are sorted manually. After sorting, qualified electronic components are then packaged in tape and reel. This manual process is very inefficient. Summary of the Invention
[0004] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a material packaging method, apparatus, electronic device, and computer-readable storage medium, which can automatically complete the appearance inspection and packaging of materials with high efficiency.
[0005] According to a first aspect of this application, a material packaging method is applied to a material packaging equipment. The material packaging equipment includes a vibration conveying module, a first shooting component, a first top-feeding module, a second top-feeding module, a tape conveying track, a waste module, and a transfer module. The transfer module includes a driving component and a turntable. The edge of the turntable is provided with multiple notches spaced circumferentially along the turntable. The tape conveying track and the waste module are respectively located below the opposite sides of the turntable. The first shooting component is located directly above the edge of the turntable. The material packaging method includes: The drive unit is controlled to periodically drive the turntable to rotate, and the vibration transport module is controlled to transport each material sequentially to each notch of the turntable; The first imaging component is controlled to capture images of materials that have moved to a position opposite to the first imaging component, thereby obtaining a first image to be detected and recording the first shooting time of the first image to be detected. The material in the first image to be detected is detected based on the first image to be detected, and the detection result is obtained; When the detection result indicates that the material in the first image to be detected is qualified, the first material feeding module is controlled to push the material in the first image to be detected from the notch into the tape transmission track based on the first shooting time. If the detection result indicates that the material in the first image to be detected is unqualified, the second material feeding module is controlled to push the material in the first image to be detected from the gap into the waste material module based on the first shooting time.
[0006] The material packaging method according to the embodiments of this application has at least the following beneficial effects: The material packaging method of the embodiments of this application is executed by a material packaging equipment. During execution, the drive component is first controlled to periodically drive the turntable to rotate. During the rotation of the turntable, the vibration transport module is controlled to transport the material sequentially to each notch on the turntable. Then, the first imaging component takes a picture of the material moving to the position opposite the first imaging component to obtain a first image to be detected and a first imaging time. The material is detected by the first image to be detected. If the detection result indicates that the material in the first image to be detected is qualified, the first top-feeding module is controlled based on the first imaging time to push the qualified material from the notch into the tape conveyor track, so that the qualified material falls into the packaging tape on the tape conveyor track to complete the packaging of the material. If the detection result indicates that the material in the first image to be detected is unqualified, the second top-feeding module is controlled based on the first imaging time to push the unqualified material into the waste module. Thus, the method of the embodiments of this application realizes automated material packaging, while realizing the detection of the appearance quality of the material and the sorting of qualified and unqualified materials, thereby improving the material packaging efficiency and production efficiency.
[0007] According to some embodiments of the first aspect of this application, the spacing between each of the notches is equal, and the control of the driving member to periodically drive the turntable to rotate includes: Obtain the preset speed, the preset cycle interval, and the first number of notches in the turntable; The target angle is determined based on the first quantity; Based on the preset periodic interval, the driving component is periodically controlled to drive the turntable to rotate at the preset speed and target angle.
[0008] According to some embodiments of the first aspect of this application, controlling the first material-ejecting module to push the material in the first image to be detected from the notch into the tape transport track based on the first shooting time includes: Obtain a first included angle, which represents the angle by which the turntable rotates to move the material from a position opposite to the first shooting component to directly below the first top material module; Based on the target angle and the preset speed, the duration of a single rotation is calculated; Based on the first included angle and the target angle, determine the first number of rotations; The first duration is calculated based on the first number of rotations, the duration of a single rotation, and the preset period interval; Based on the first duration and the first shooting time, the first target time is obtained; At the first target moment, the first feeding module is controlled to push the material in the first image to be detected from the notch into the tape conveyor track.
[0009] According to some embodiments of the first aspect of this application, controlling the second material-ejecting module to push the material in the first image to be detected from the notch into the waste module based on the first shooting time includes: Obtain the second included angle; the second included angle represents the angle by which the turntable rotates to move the material relative to the first shooting component to the position of the material directly below the second top material module. The second number of rotations is determined based on the second included angle and the target angle; The second duration is calculated based on the second number of rotations, the duration of a single rotation, and the preset period interval; Based on the second duration and the first shooting time, the second target time is obtained; At the second target moment, the second material feeding module is controlled to push the material in the first image to be detected from the gap into the waste material module.
[0010] According to some embodiments of the first aspect of this application, the tape conveyor track is used to drive the tape to move linearly along the length direction of the tape, and the tape is provided with a plurality of receiving grooves that match the material at intervals along the length direction; After controlling the first feeding module to push the material in the first image to be detected from the notch into the tape transport track based on the first shooting time, the method further includes: Each time the first top-feeding module completes a top-feeding operation, it controls the tape conveyor track to drive the tape to move a preset distance along the length direction, so that the next receiving slot in the tape is located directly below the first top-feeding module.
[0011] According to some embodiments of the first aspect of this application, the first image to be detected includes a front image and a back image, and the step of detecting the material in the first image to be detected based on the first image to be detected to obtain a detection result includes: The front image and the back image are converted to grayscale to obtain a front grayscale image and a back grayscale image, respectively. Calculate the first structural similarity index between the frontal grayscale image and the preset frontal standard grayscale image; Calculate the second structural similarity index between the back-side grayscale image and the preset back-side standard grayscale image; If the first structural similarity index is greater than or equal to a preset index threshold, and the second structural similarity index is greater than or equal to the preset index threshold, the detection result is determined to be that the material in the first image to be detected is qualified. If the first structural similarity index is less than the preset index threshold, or the second structural similarity index is less than the preset index threshold, the detection result is determined to be that the material in the first image to be detected is unqualified.
[0012] According to some embodiments of the first aspect of this application, the vibration transport module includes a vibratory plate, a second shooting component, an air blowing component, and a material transport track. The vibratory plate is used to drive the material to move along the side wall of the vibratory plate to the material transport track, and to transport the material to the notch along the material transport track. The air blowing component is disposed inside the vibratory plate, and the air outlet of the air blowing component is flush with the side wall of the vibratory plate. The control of the vibration transport module to transport each material sequentially to the respective gaps on the turntable includes: The vibratory feeder is controlled to drive the material to move along the side wall of the vibratory feeder to the material transport track, and then along the material transport track to the notch; During the operation of the vibratory feeder, the material located on the side wall of the vibratory feeder is photographed by the second imaging component to obtain a second image to be detected; Detection is performed based on the second image to be detected; If the side of the material in the second image to be detected that faces away from the sidewall of the vibrating plate is a preset reverse side, the blowing assembly is controlled to blow the material in the second image to be detected off the sidewall.
[0013] A second aspect of this application provides a material packaging device applied to material packaging equipment. The material packaging equipment includes a vibration transport module, a first shooting component, a first top material module, a second top material module, a tape conveyor track, a waste module, and a transfer module. The transfer module includes a drive component and a turntable. The edge of the turntable is provided with multiple notches spaced apart along the circumference of the turntable. The tape conveyor track and the waste module are respectively located below the opposite sides of the turntable. The material packaging device includes: The transport control unit is used to control the drive component to periodically drive the turntable to rotate, and to control the vibration transport module to transport each material sequentially to each notch of the turntable; The shooting control unit is used to control the first shooting component to shoot the material that has moved to the position opposite to the first shooting component, to obtain a first image to be detected and to record the first shooting time of the first image to be detected; The detection unit is used to detect the material in the first image to be detected based on the first image to be detected, and to obtain the detection result; The first material feeding control unit is used to control the first material feeding module to push the material in the first image to be detected from the notch into the tape conveyor track based on the first shooting time when the detection result indicates that the material in the first image to be detected is qualified. The second material feeding control unit is used to control the second material feeding module to push the material in the first image to be detected from the gap into the waste material module based on the first shooting time when the detection result indicates that the material in the first image to be detected is unqualified.
[0014] A third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the material packaging method described in any one of the first aspects of the embodiment.
[0015] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the material packaging method described in any one of the first aspects of the embodiment.
[0016] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0017] The present application will be further described below with reference to the accompanying drawings and embodiments, wherein: Figure 1 This is a simplified structural diagram of the material packaging equipment according to an embodiment of this application; Figure 2 This is a simplified schematic diagram of a partial structure of the sidewall of the vibratory feeder according to an embodiment of this application; Figure 3 This is a flowchart illustrating the steps of a material packaging method according to an embodiment of this application. Figure 4 This is a schematic diagram of the functional units of the material packaging device according to an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application.
[0018] Reference numerals: turntable 100; notch 110; tape conveyor track 200; tape 210; hopper 211; waste module 300; vibratory feeder 410; air pipe 411; material transport track 420. Detailed Implementation
[0019] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0020] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0021] In the description of this application, "several" means one or more, "multiple" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0022] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0023] In the description of this application, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0024] The first aspect of this application provides a material packaging method applied to material packaging equipment. This application first describes the material packaging equipment. (Refer to...) Figure 1 , Figure 1This is a simplified structural diagram of a material packaging device according to an embodiment of this application. The material packaging device includes a vibrating transport module, a first imaging component, a first top-feeding module, a second top-feeding module, a tape conveyor track 200, a waste module 300, and a transfer module. The transfer module includes a drive component and a turntable 100. The drive component is a rotary motor. The edge of the turntable 100 has multiple notches 110 spaced circumferentially along its edge. The spacing between each notch 110 is equal, and the shape of the notches 110 is generally rectangular. The material can be surface-mount capacitors, surface-mount resistors, or other sheet-like materials. The tape conveyor track 200 and the waste module 300 are respectively located below the opposite sides of the turntable 100.
[0025] It is worth noting that the first imaging component includes a first imaging camera and a second imaging camera. The first imaging camera is located directly above the edge of the turntable 100, and the second imaging camera is located directly below it. The turntable 100 is located between the first and second imaging cameras. The first imaging camera is used to capture an image of the end face of the material on the notch 110 directly below it; the second imaging camera is used to capture an image of the bottom face of the material on the notch 110 directly below it.
[0026] It is worth noting that the tape conveyor track 200 is used to drive the tape 210 to move linearly along its length. The tape 210 has multiple receiving slots 211 spaced apart along its length to accommodate materials. The tape conveyor track 200 can be composed of a motor and a conveyor belt; this application embodiment does not limit the specific structure of the tape conveyor track 200. Furthermore, the tape conveyor track 200 is connected to a tape assembly module, which is used to close the caps of the tape 210 onto the tape 210 to complete the packaging of the material. This application does not limit the tape assembly module; those skilled in the art can use existing tape assembly modules.
[0027] It is worth noting that the vibration transport module includes a vibratory feeder 410, a second shooting assembly, an air blowing assembly, and a material transport track 420. The vibratory feeder 410 is used to drive the material to move along the side wall of the vibratory feeder 410 to the material transport track 420, and then transport it along the material transport track 420 to the notch 110; see reference. Figure 2 , Figure 2This is a simplified schematic diagram of a partial structure of the sidewall of the vibratory feeder 410 according to an embodiment of this application. An air-blowing assembly is disposed inside the vibratory feeder 410, and the air outlet of the air-blowing assembly is flush with the sidewall of the vibratory feeder 410. The second imaging assembly is a third imaging camera, which is disposed above the vibratory transport module, with its lens facing the sidewall of the vibratory feeder 410. The air-blowing assembly consists of an air pipe 411 and a blower. The air pipe 411 is placed inside the sidewall of the vibratory feeder 410, and the opening of the air pipe 411 is flush with the sidewall of the vibratory feeder 410, so that the air pipe 411 does not interfere with the movement of the material. The blower enables the air pipe 411 to blow gas out. When the air pipe 411 blows gas out, it can blow the material that has just moved to the opening of the air pipe 411 from the sidewall of the vibratory feeder 410 to the bottom of the vibratory feeder 410. It is worth noting that the material to be sorted is placed at the bottom of the vibratory feeder 410. When the vibratory feeder 410 is running, it drives the material to move along the side wall of the feeder 410 in a spiral path. During the movement, the material first passes the shooting point of the third camera, then passes through the opening of the air pipe 411, and then enters the material transport track 420. It is then transported through the material transport track 420 and fits precisely into the notch 110 of the turntable 100. It is worth noting that the width of the side wall of the vibratory feeder 410 is slightly greater than the length of the material, so that only one piece of material can pass through the opening of the air pipe 411 at any given time.
[0028] It is worth noting that the waste module 300 is a waste collection box, which is located below the edge of the turntable 100. The second top-feeding module can push non-conforming materials from the notch 110 directly above the waste collection box into the waste collection box, thereby completing the collection of non-conforming products.
[0029] It is worth noting that the first top material module includes a first drive cylinder and a first push rod. The first drive cylinder is used to drive the first push rod to perform lifting and lowering movements so that the first push rod pushes the material in the notch 110 located directly below the first top material module onto the receiving groove 211 of the tape 210.
[0030] It is worth noting that the second top material module includes a second drive cylinder and a second push rod. The second drive cylinder is used to drive the second push rod to perform lifting and lowering movements so that the second push rod pushes the non-qualified material from the notch 110 directly above the waste collection box into the waste collection box.
[0031] Reference Figure 3 , Figure 3 This is a schematic flowchart illustrating the steps of a material packaging method according to an embodiment of this application. The material packaging method of this application is applied to the aforementioned material packaging equipment, including but not limited to steps S110 to S150.
[0032] Step S110: Control the drive component to periodically drive the turntable to rotate, and control the vibration transport module to transport each material to the different gaps on the turntable in sequence. Step S120: Control the first imaging component to capture images of the material that has moved to the position opposite the first imaging component, obtain the first image to be detected, and record the first shooting time of the first image to be detected; Step S130: Detect the material in the first image to be detected based on the first image to be detected, and obtain the detection result; Step S140: When the detection result indicates that the material in the first image to be detected is qualified, the first material feeding module is controlled to push the material in the first image to be detected from the notch into the tape conveyor track based on the first shooting time. In step S150, if the detection result indicates that the material in the first image to be detected is unqualified, the second material feeding module is controlled to push the material in the first image to be detected from the gap into the waste material module based on the first shooting time.
[0033] It is worth noting that, through steps S130 to S150, relying on the first image to be detected and the first shooting time, the two first and second top-loading modules can be driven to complete the separation of qualified and unqualified materials, without the need for additional multiple detection sensors or complex material tracking systems. The equipment has a compact structure and clear control logic, reducing hardware costs and the implementation difficulty of the control system.
[0034] The material packaging method according to the embodiments of this application has at least the following beneficial effects: The material packaging method of the embodiments of this application is executed by a material packaging equipment. During execution, the drive component is first controlled to periodically drive the turntable to rotate. During the rotation of the turntable, the vibration transport module is controlled to transport the material sequentially to each notch on the turntable. Then, the first imaging component takes a picture of the material moving to the position opposite the first imaging component to obtain a first image to be detected and a first imaging time. The material is detected by the first image to be detected. If the detection result indicates that the material in the first image to be detected is qualified, the first top-feeding module is controlled based on the first imaging time to push the qualified material from the notch into the tape conveyor track, so that the qualified material falls into the packaging tape on the tape conveyor track to complete the packaging of the material. If the detection result indicates that the material in the first image to be detected is unqualified, the second top-feeding module is controlled based on the first imaging time to push the unqualified material into the waste module. Thus, the method of the embodiments of this application realizes automated material packaging, while realizing the detection of the appearance quality of the material and the sorting of qualified and unqualified materials, thereby improving the material packaging efficiency and production efficiency. It achieves efficient separation of qualified and unqualified materials, prevents unqualified materials from being mixed into the finished product material belt, significantly improves the qualification rate of material packaging, reduces material waste and subsequent rework costs, greatly improves the overall efficiency and automation level of material packaging, adapts to the continuous packaging needs of large batches of materials, reduces human error in the production process, and improves production stability and product consistency.
[0035] In some embodiments, step S110 may include, but is not limited to, steps S111 to S113.
[0036] Step S111: Obtain the preset speed, preset cycle interval, and the first number of gaps in the turntable; Step S112: Determine the target angle based on the first quantity; Step S113: Based on a preset periodic interval, periodically control the drive component to drive the turntable to rotate at a preset speed to the target angle.
[0037] It is worth noting that the preset cycle interval refers to the duration of the turntable's pause. Those skilled in the art can set the preset speed, preset cycle interval, and first quantity according to actual conditions; this application does not impose specific limitations on this. In step S112, the target angle is equal to 360 / first quantity. For example, if the first quantity is 3, then the target angle is 360 / 3 = 120 degrees. Through steps S111 to S113, the turntable rotates at the target angle each time, and pauses once after each rotation, with the pause duration equal to the preset cycle interval. Through debugging, when the turntable pauses, one notch on the turntable precisely aligns with the end of the material transport track of the vibrating transport module, allowing the material transport track to transport the material into the notch. After pausing for the preset cycle interval, the drive unit starts, causing the turntable to rotate the target angle and stop again, at which point the next notch precisely aligns with the end of the material transport track. Thus, the automated transport of multiple materials sequentially to their respective notches is achieved.
[0038] In some embodiments, step S140 may include, but is not limited to, the following steps: Step S141: Obtain the first included angle, which represents the angle by which the turntable rotates to move the material from a position opposite to the first shooting component to directly below the first top material module; It is worth noting that the first included angle is determined based on the position of the first shooting camera and the position of the first top material module. The angle that the turntable needs to rotate during the process of the material moving from directly below the first shooting camera to directly below the first top material module is the first included angle.
[0039] Step S142: Calculate the duration of a single rotation based on the target angle and the preset speed; It is worth noting that the duration of a single rotation = target angle / preset speed.
[0040] Step S143: Determine the first number of rotations based on the first included angle and the target angle; It is worth noting that the first number of rotations = the first included angle / the target angle.
[0041] Step S144: Calculate the first duration based on the first number of rotations, the duration of a single rotation, and the preset period interval; Step S145: Based on the first duration and the first shooting time, obtain the first target time; It is worth noting that the first target time is calculated using the first formula, which is: ; Where T1 is the first target time, T0 is the first shooting time, k is the first number of rotations, Tr is the duration of a single rotation, Tp is the preset period interval, and k(Tr+Tp) is the first duration.
[0042] Step S146: At the first target moment, control the first material feeding module to push the material in the first image to be detected from the notch into the tape conveyor track.
[0043] This embodiment of the application, through steps S141 to S146, obtains a first included angle, calculates the duration of a single rotation by combining the target angle and a preset speed, and then determines the first number of rotations using the first included angle and the target angle. Finally, it accurately calculates the first duration from the shooting moment to the material ejection moment, thereby determining the first target moment and controlling the action of the first material ejection module. This achieves precise linkage between shooting detection and material ejection action, ensuring that the first material ejection module is triggered when qualified material moves directly below it. This allows the material to be accurately and smoothly ejected into the conveyor belt track, preventing material from deviating from the track, getting stuck in equipment gaps, or colliding with other components and causing damage due to premature or delayed ejection. This effectively improves the smoothness and safety of material transmission. It ensures that qualified material can accurately enter the corresponding position on the conveyor belt, improving the appearance quality and consistency of the packaged product, and reducing material loss and packaging scrap rate.
[0044] In some embodiments, step S150 may include, but is not limited to, the following steps: Step S151, obtain the second included angle; the second included angle represents the angle at which the turntable rotates to move the material relative to the first shooting component to the position directly below the second top material module; It is worth noting that the second included angle is determined based on the position of the first shooting camera and the position of the second top material module. The angle that the turntable needs to rotate during the process of moving from directly below the first shooting camera to directly below the second top material module is the second included angle.
[0045] Step S152: Determine the second number of rotations based on the second included angle and the target angle; It is worth noting that the second number of rotations = the second included angle / the target angle.
[0046] Step S153: Calculate the second duration based on the second number of rotations, the duration of a single rotation, and the preset period interval; Step S154: Based on the second duration and the first shooting time, obtain the second target time; It is worth noting that the second target time is calculated using the second formula, which is: ; Where T2 is the second target time, T0 is the first shooting time; n is the second number of rotations; Tr is the duration of a single rotation; Tp is the preset period interval; and n(Tr+Tp) is the second duration.
[0047] In step S155, at the second target time, the second material feeding module is controlled to push the material in the first image to be detected from the notch into the waste material module.
[0048] In this embodiment, through steps S151 to S155, the second included angle is obtained, and the duration of a single rotation is calculated by combining the target angle and the preset speed. Then, the second number of rotations is determined by the second included angle and the target angle. Finally, the second duration from the shooting time to the waste module is accurately calculated, thereby determining the second target time and controlling the action of the second top material module. This ensures that when the non-conforming material moves to the area directly below the second top material module, the second top material module is triggered in time, causing the non-conforming material to fall into the waste module, preventing the non-conforming material from being packaged, and reducing the packaging waste rate.
[0049] In some embodiments, the material packaging method of this application embodiment may further include the following steps after step S140: Each time the first feeding module completes a feeding operation, it controls the tape conveyor track to drive the tape to move a preset distance along the length direction so that the next receiving slot in the tape is located directly below the first feeding module.
[0050] It is worth noting that the ejection operation refers to the first ejection module ejecting qualified material from the first image to be inspected through the notch into the tape conveyor track, so that the qualified material falls into the receiving slot of the tape. Each time the first ejection module completes an ejection operation, it means that the current receiving slot has received qualified material. Therefore, the tape conveyor track is controlled to drive the tape to move a preset distance along its length so that the next receiving slot in the tape is located directly below the first ejection module, so that the next qualified material can fall into the receiving slot.
[0051] In some embodiments, the first image to be detected includes a front image and a back image, wherein the front image is captured by a first camera and the back image is captured by a second camera. Step S130 may include, but is not limited to, steps S131 to S132. Step S131: Perform grayscale conversion on the front image and the back image respectively to obtain a front grayscale image and a back grayscale image; Step S132: Calculate the first structural similarity index between the frontal grayscale image and the preset frontal standard grayscale image; Step S133: Calculate the second structural similarity index between the back grayscale image and the preset back standard grayscale image; Step S134: If the first structural similarity index is greater than or equal to the preset index threshold and the second structural similarity index is greater than or equal to the preset index threshold, the detection result is determined to be that the material in the first image to be detected is qualified. In step S135, if the first structural similarity index is less than the preset index threshold or the second structural similarity index is less than the preset index threshold, the detection result is determined to be that the material in the first image to be detected is unqualified.
[0052] It is worth noting that the Structural Similarity Index (SSIM) is a metric used to measure the similarity between two images. It is based on the human visual system's perception of image structural information and comprehensively evaluates image quality from three dimensions: brightness, contrast, and structure. The SSIM value ranges from -1 to 1; a value closer to 1 indicates greater structural similarity between the two images. When two images are completely identical, the SSIM value is 1. Those skilled in the art can set preset index thresholds according to actual circumstances; this application does not impose any limitations on this.
[0053] This embodiment of the application, through steps S131 to S135, realizes the appearance quality inspection of the front and back of the material, and realizes the appearance quality inspection of the material by using only one device, namely the material packaging equipment, to simultaneously realize the two processes of quality inspection and material packaging, thereby improving the production efficiency of the material.
[0054] In some embodiments, the control vibration transport module in step S110 transports each material sequentially to each notch of the turntable, which may include steps S210 to S240.
[0055] Step S210: Control the vibratory feeder to drive the material to move along the side wall of the vibratory feeder to the material transport track, and then move along the material transport track to the notch. Step S220: During the operation of the vibratory feeder, the material located on the side wall of the vibratory feeder is photographed by the second imaging component to obtain a second image to be detected; Step S230: Detection is performed based on the second image to be detected; In step S240, when it is detected that the side of the material in the second image to be detected facing away from the vibrating plate sidewall is a preset reverse side, the blowing assembly is controlled to blow the material in the second image to be detected off the sidewall.
[0056] It is worth noting that in some embodiments, the front of the material is marked, while the back is unmarked. For example, if the material is a surface mount resistor or other electronic component, when packaging the surface mount resistors, it is required that all the surface mount resistors on the tape are facing the same direction, generally with the front of each surface mount resistor facing upwards. During the operation of the vibratory feeder, the material adheres to the side wall of the vibratory feeder, and the material transport track is a horizontal straight track. During the movement from the vibratory feeder to the material transport track, the side of the material facing away from the side wall of the vibratory feeder faces upwards, and the orientation of the material does not change throughout the entire transport process.
[0057] It is worth noting that the side of the material with the markings is designated as the preset front side, while the side without markings is also designated as the preset front side. Therefore, through steps S210 to S240, the material with the side facing away from the vibrating plate sidewall (which is the preset back side) is blown off, ensuring that each piece of material transported to the material transport track has its preset front side facing up. This guarantees that when the material is packaged on the tape, the orientation of all materials on the tape is the same, ensuring the consistency of the material on the tape.
[0058] In some embodiments, when the material moves along the side wall of the vibratory feeder, the material's moving speed is fixed at a preset moving speed, and the time required for the material to move from the position relative to the third camera to the opening of the air tube is fixed at a third time. Therefore, in step S220, the time when the second image to be detected is captured is recorded as the second capture time. In step S240, if it is detected that the side of the material in the second image to be detected facing away from the vibratory feeder side wall is the preset reverse side, then based on the third time and the second capture time, a third target time is obtained, which is equal to the second capture time plus the third time. At the third target time, the air blowing component is controlled to blow air, so that the material with the side facing away from the vibratory feeder side wall being the preset reverse side falls to the bottom of the vibratory feeder. It should be noted that the algorithm for detecting the second image to be detected in step S230 can directly adopt algorithms in the prior art. It can be determined whether the side of the material facing away from the vibratory feeder side wall is the preset reverse side by identifying whether the side of the material in the image being captured has a mark. Those skilled in the art can select an algorithm according to the actual situation, and this application does not make specific limitations in this regard.
[0059] A second aspect of this application provides a material packaging device, applied to... Figure 1 and Figure 2 A schematic diagram of material packaging equipment. (Refer to...) Figure 4 , Figure 4 This is a functional unit diagram of a material packaging device according to an embodiment of this application. The material packaging device includes: The transport control unit 310 is used to control the drive component to periodically drive the turntable to rotate, and to control the vibration transport module to transport each material to each gap of the turntable in sequence. The shooting control unit 320 is used to control the first shooting component to shoot the material that has moved to the position opposite to the first shooting component, to obtain the first image to be detected and to record the first shooting time of the first image to be detected; The detection unit 330 is used to detect the material in the first image to be detected based on the first image to be detected, and to obtain the detection result; The first material feeding control unit 340 is used to control the first material feeding module to push the material in the first image to be detected from the notch into the tape conveyor track based on the first shooting time when the detection result indicates that the material in the first image to be detected is qualified. The second top material control unit 350 is used to control the second top material module to push the material in the first image to be detected from the gap into the waste material module based on the first shooting time when the detection result indicates that the material in the first image to be detected is unqualified.
[0060] The material packaging device of this application embodiment is used to execute the material packaging method of the first aspect embodiment. In executing the method, a drive component is first controlled to periodically drive a turntable to rotate. During the turntable rotation, a vibration transport module is controlled to sequentially transport materials to various notches on the turntable. Then, a first imaging component captures images of the materials moving to the position opposite the first imaging component to obtain a first image to be detected and a first imaging time. The materials are detected using the first image to be detected. If the detection result indicates that the materials in the first image to be detected are qualified, a first ejector module is controlled based on the first imaging time to eject the qualified materials from the notches into the tape conveyor track, so that the qualified materials fall onto the packaging tape on the tape conveyor track, thus completing the material packaging. If the detection result indicates that the materials in the first image to be detected are unqualified, a second ejector module is controlled based on the first imaging time to eject the unqualified materials into the waste module. Thus, the method of this application embodiment achieves automated material packaging while simultaneously detecting the appearance quality of the materials and sorting qualified and unqualified materials, improving material packaging efficiency and production efficiency.
[0061] It should be noted that the specific implementation method of this material packaging device is basically the same as the specific embodiment of the material packaging method described above, and will not be repeated here. Subject to meeting the requirements of the embodiments of this application, the material packaging device may also be equipped with other functional units to implement the material packaging method in the above embodiments.
[0062] A third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the material packaging method of any one of the first aspects of the embodiment. This electronic device can be any smart terminal, including tablet computers, desktop computers, etc.
[0063] Reference Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device according to one embodiment. The electronic device includes: The processor 401 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 402 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 402 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 402 and is called and executed by the processor 401 to execute the material packaging method of the embodiments of this application. Input / output interface 403 is used to implement information input and output; The communication interface 404 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 405 transmits information between various components of the device (e.g., processor 401, memory 402, input / output interface 403, and communication interface 404); The processor 401, memory 402, input / output interface 403 and communication interface 404 are connected to each other within the device via bus 405.
[0064] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the material packaging method of any one of the first aspects of this application.
[0065] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0066] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0067] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0068] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0069] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0070] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0071] It should be understood that in this application, "at least one (item)" means one or more, and "more than one" means two or more. "And / or" is used to describe the mapping relationship between the mapped objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following mapped objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0072] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0073] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0074] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0075] If the integrated unit is implemented as 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 this application, in essence, 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. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0076] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A method for packaging materials, characterized in that, The material packaging equipment includes a vibration conveying module, a first shooting component, a first top material module, a second top material module, a tape conveying track, a waste module, and a transfer module. The transfer module includes a driving component and a turntable. The edge of the turntable is provided with multiple notches spaced apart along the circumference of the turntable. The tape conveying track and the waste module are respectively located below the opposite sides of the turntable. The material packaging method includes: The drive unit is controlled to periodically drive the turntable to rotate, and the vibration transport module is controlled to transport each material sequentially to each notch of the turntable; The first imaging component is controlled to capture images of materials that have moved to a position opposite to the first imaging component, thereby obtaining a first image to be detected and recording the first shooting time of the first image to be detected. The material in the first image to be detected is detected based on the first image to be detected, and the detection result is obtained; When the detection result indicates that the material in the first image to be detected is qualified, the first material feeding module is controlled to push the material in the first image to be detected from the notch into the tape transmission track based on the first shooting time. If the detection result indicates that the material in the first image to be detected is unqualified, the second material feeding module is controlled to push the material in the first image to be detected from the gap into the waste material module based on the first shooting time.
2. The material packaging method according to claim 1, characterized in that, The spacing between each of the notches is equal, and the control of the driving component to periodically drive the turntable to rotate includes: Obtain the preset speed, the preset cycle interval, and the first number of notches in the turntable; The target angle is determined based on the first quantity; Based on the preset periodic interval, the driving component is periodically controlled to drive the turntable to rotate at the preset speed and target angle.
3. The material packaging method according to claim 2, characterized in that, Based on the first shooting time, the first feeding module is controlled to push the material in the first image to be detected from the notch into the tape conveyor track, including: Obtain a first included angle, which represents the angle by which the turntable rotates to move the material from a position opposite to the first shooting component to directly below the first top material module; Based on the target angle and the preset speed, the duration of a single rotation is calculated; Based on the first included angle and the target angle, determine the first number of rotations; The first duration is calculated based on the first number of rotations, the duration of a single rotation, and the preset period interval; Based on the first duration and the first shooting time, the first target time is obtained; At the first target moment, the first feeding module is controlled to push the material in the first image to be detected from the notch into the tape conveyor track.
4. The material packaging method according to claim 3, characterized in that, Based on the first shooting time, the second material-ejecting module is controlled to push the material in the first image to be detected from the notch into the waste module, including: Obtain the second included angle; the second included angle represents the angle by which the turntable rotates to move the material relative to the first shooting component to the position of the material directly below the second top material module. The second number of rotations is determined based on the second included angle and the target angle; The second duration is calculated based on the second number of rotations, the duration of a single rotation, and the preset period interval; Based on the second duration and the first shooting time, the second target time is obtained; At the second target moment, the second material feeding module is controlled to push the material in the first image to be detected from the gap into the waste material module.
5. The material packaging method according to claim 1, characterized in that, The tape conveyor track is used to drive the tape to move linearly along the length direction of the tape, and the tape is provided with multiple receiving slots that match the material at intervals along the length direction; After controlling the first feeding module to push the material in the first image to be detected from the notch into the tape transport track based on the first shooting time, the method further includes: Each time the first top-feeding module completes a top-feeding operation, it controls the tape conveyor track to drive the tape to move a preset distance along the length direction, so that the next receiving slot in the tape is located directly below the first top-feeding module.
6. The material packaging method according to claim 1, characterized in that, The first image to be detected includes a front image and a back image. The step of detecting the material in the first image to be detected and obtaining a detection result includes: The front image and the back image are converted to grayscale to obtain a front grayscale image and a back grayscale image, respectively. Calculate the first structural similarity index between the frontal grayscale image and the preset frontal standard grayscale image; Calculate the second structural similarity index between the back-side grayscale image and the preset back-side standard grayscale image; If the first structural similarity index is greater than or equal to a preset index threshold, and the second structural similarity index is greater than or equal to the preset index threshold, the detection result is determined to be that the material in the first image to be detected is qualified. If the first structural similarity index is less than the preset index threshold, or the second structural similarity index is less than the preset index threshold, the detection result is determined to be that the material in the first image to be detected is unqualified.
7. The material packaging method according to claim 1, characterized in that, The vibration transport module includes a vibratory plate, a second shooting component, an air blowing component, and a material transport track. The vibratory plate is used to drive the material to move along the side wall of the vibratory plate to the material transport track, and to transport the material to the notch along the material transport track. The air blowing component is located inside the vibratory plate, and the air outlet of the air blowing component is flush with the side wall of the vibratory plate. The control of the vibration transport module to transport each material sequentially to the respective gaps on the turntable includes: The vibratory feeder is controlled to drive the material to move along the side wall of the vibratory feeder to the material transport track, and then along the material transport track to the notch; During the operation of the vibratory feeder, the material located on the side wall of the vibratory feeder is photographed by the second imaging component to obtain a second image to be detected; Detection is performed based on the second image to be detected; If the side of the material in the second image to be detected that faces away from the sidewall of the vibrating plate is a preset reverse side, the blowing assembly is controlled to blow the material in the second image to be detected off the sidewall.
8. A material packaging device, characterized in that, The material packaging equipment includes a vibration conveying module, a first shooting component, a first top material module, a second top material module, a tape conveying track, a waste module, and a transfer module. The transfer module includes a driving component and a turntable. The edge of the turntable is provided with multiple notches spaced apart along the circumference of the turntable. The tape conveying track and the waste module are respectively located below the opposite sides of the turntable. The material packaging device includes: The transport control unit is used to control the drive component to periodically drive the turntable to rotate, and to control the vibration transport module to transport each material sequentially to each notch of the turntable; The shooting control unit is used to control the first shooting component to shoot the material that has moved to the position opposite to the first shooting component, to obtain a first image to be detected and to record the first shooting time of the first image to be detected; The detection unit is used to detect the material in the first image to be detected based on the first image to be detected, and to obtain the detection result; The first material feeding control unit is used to control the first material feeding module to push the material in the first image to be detected from the notch into the tape conveyor track based on the first shooting time when the detection result indicates that the material in the first image to be detected is qualified. The second material feeding control unit is used to control the second material feeding module to push the material in the first image to be detected from the gap into the waste material module based on the first shooting time when the detection result indicates that the material in the first image to be detected is unqualified.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the material packaging method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the material packaging method according to any one of claims 1 to 7.