Material image detection method and device, material packaging method and device, equipment and storage medium
By automatically identifying and adjusting the orientation and length of materials using material image detection equipment, fully automated packaging is achieved, solving the problems of low efficiency and material wear caused by manual assistance in existing technologies, thereby improving production efficiency and reducing costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-04-07
AI Technical Summary
In existing technologies, the material packaging process requires manual assistance, which is inefficient and the materials are easily worn when transported between different devices.
The material image inspection equipment enables the inspection of the appearance quality and orientation of the material. The drive module and the suction module automatically adjust the length direction of the material, and the packaging module enables fully automated packaging.
It improves material inspection and packaging efficiency, reduces production costs, and reduces wear and tear on materials during transport between equipment.
Smart Images

Figure CN121810601A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing, and in particular to an image detection method, packaging method, apparatus, device and storage medium for materials. Background Technology
[0002] During the production process, materials need to be packaged. For example, after production, electronic components such as surface mount resistors and capacitors need to be packaged in tape and reel. Furthermore, during the packaging process, it is necessary to distinguish the orientation of the materials and to perform appearance quality inspection.
[0003] In related technologies, during the production process, the materials are typically first inspected for appearance quality using testing equipment. Materials that pass the appearance inspection are then conveyed to packaging equipment. Inside the packaging equipment, workers use pliers to ensure the materials are facing upwards before sealing them. This entire process requires manual assistance and is extremely 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 image detection method, apparatus, device, and storage medium, which can detect the appearance quality of materials using only a material image detection device. While detecting the materials, the orientation of the materials can be distinguished, and the length direction of the materials can be adjusted to facilitate subsequent packaging. Moreover, the entire process requires no manual assistance, achieving full automation, high efficiency, and low cost.
[0005] The material image detection method according to the first aspect of this application is applied to a material image detection device, the material image detection device including a material suction module, a driving module, a first camera module, a second camera module, a vibration flipping module, and a packaging module; multiple materials are placed on the vibration flipping module; The method includes: The first camera module is controlled to capture an image of the vibration flipping module to obtain a frontal detection image; The material on the vibration flipping module is detected based on the front detection image, and the material facing up is identified as the first candidate material. Based on the front detection image, the appearance quality of the front of each of the first candidate materials is inspected to determine the second candidate materials that are qualified on the front. The target material is determined from the second candidate materials, and the driving module is controlled to drive the suction module to pick up the target material and transport the target material to the top of the second camera module. The second camera module is controlled to capture images of the bottom surface of the target material to obtain a bottom surface inspection image. Based on the bottom surface inspection image, the appearance quality of the bottom surface of the target material is inspected. If the bottom surface of the target material is detected as qualified, the current direction vector of the length direction of the target material is obtained based on the bottom surface detection image; Obtain the vector of the preset length direction of the groove in the target packaging tape, and use it as the target direction vector; Based on the current direction vector and the target direction vector, the driving module is controlled to drive the suction module to perform a length direction adjustment operation so that the length direction of the target material is parallel to the preset length direction, and the groove is used to place the material.
[0006] The material image detection method according to the embodiments of this application has at least the following beneficial effects: The material image detection method first identifies materials facing upwards as first candidate materials based on a front detection image, and then performs appearance quality inspection on each first candidate material based on the front detection image to identify second candidate materials with qualified front surfaces. From the second candidate materials, the target material is identified. The target material is then transported above the second camera module via a driving module and a suction module, and captured by the second camera module to obtain a bottom surface detection image. Based on the bottom surface detection image, detection is performed. When the bottom surface of the target material is found to be qualified, the driving module makes the length direction of the target material parallel to a preset length direction. In this process, only two images are needed, completing not only the quality inspection of the front surface and the quality inspection of the bottom surface of the material, but also the identification of materials facing upwards, and simultaneously adjusting the orientation of the material. This improves the material detection efficiency and the efficiency of subsequent material packaging. Furthermore, the process of performing appearance quality inspection on the front surfaces of multiple first candidate materials does not require separate images of the front surfaces of each first candidate material; instead, it is based on the front detection image, further improving production efficiency. Moreover, it requires no manual assistance, achieving full automation. Furthermore, compared with the related technologies where the packaging process and appearance quality inspection process are implemented using different equipment, the production cost of this application is lower and the efficiency is higher.
[0007] According to some embodiments of this application, the material image inspection device further includes a defective product placement module; after performing appearance quality inspection on the bottom surface of the target material based on the bottom surface inspection image, it further includes: If the bottom surface of the target material is found to be defective, the drive module is controlled to drive the suction module to transport the target material to the defective product receiving module. The target material is re-determined from the second candidate materials, and the process jumps to the control of the drive module to drive the suction module to pick up the target material.
[0008] According to some embodiments of this application, before determining the face-up material as the first candidate material, the method further includes: Obtain the target quantity of material facing upwards on the vibration flipping module; If the number of targets is detected to be less than a preset number, the vibration flipping module is controlled to vibrate. The first imaging module is controlled to capture an image to reacquire the frontal detection image, and then the process jumps to the detection of the material on the vibration flipping module based on the frontal detection image.
[0009] According to some embodiments of this application, the step of detecting the material on the vibration flipping module based on the front detection image and determining the material facing upwards as the first candidate material includes: The frontal detection image is converted to HSV space to obtain the first converted image; Pixels in the first converted image that are within the preset HSV parameter range are set to white, and pixels in the first converted image that are outside the HSV parameter range are set to black, to obtain a first mask image. Contour detection is performed on the first mask image to obtain first candidate contours where each contour is a rectangle; Calculate the contour area of each of the first candidate contours, and determine the second candidate contour from each of the first candidate contours based on the contour area; the area of the second candidate contour is greater than a preset area. Calculate the target percentage of white pixels in the corresponding region of the second candidate contour in the first mask image; A target contour is determined from the second candidate contours based on the target proportion; wherein the target proportion corresponding to the target contour is greater than a preset proportion; The material corresponding to the target contour is determined as the first candidate material.
[0010] According to some embodiments of this application, the step of performing appearance quality inspection on the front of each of the first candidate materials based on the front detection image to determine the second candidate materials with qualified front surfaces includes: Obtain a preset standard grayscale image of the front of the material; Based on the target contour, the frontal detection image is segmented to obtain multiple third images; Each of the third images is converted to grayscale to obtain the grayscale image to be detected; Calculate the first structural similarity index between the grayscale image to be detected and the standard grayscale image of the front of the material; Based on the first structural similarity index, a target grayscale image is determined from each of the grayscale images to be detected, and the material corresponding to the target grayscale image is determined as the second candidate material; wherein, the first structural similarity index corresponding to the target grayscale image is greater than a first preset index threshold.
[0011] According to some embodiments of this application, obtaining the current direction vector of the length direction of the target material based on the bottom surface detection image includes: The bottom surface detection image is converted into a binary image, and the material outline of the target material is extracted based on the binary image; Determine the minimum bounding rectangle of the material outline, and calculate the vector of any long side of the minimum bounding rectangle as the current direction vector; The length direction adjustment operation includes: Calculate the angle between the current direction vector and the target direction vector; Based on the included angle, the driving module drives the target material to rotate around the center of the minimum bounding rectangle, so that any long side of the minimum bounding rectangle is parallel to the preset length direction.
[0012] A second aspect of this application provides a method for packaging materials, applied to a material image detection device. The material image detection device includes a material suction module, a drive module, a first camera module, a second camera module, a vibration flipping module, and a packaging module. Multiple materials are placed on the vibration flipping module. The packaging module includes a first release component, a second release component, a pressing component, a transfer track, and a winding component. The method includes an image detection method for materials as described in any one of the embodiments of the first aspect; The method also includes: The first release component is controlled to release the first encapsulation strip so that the first encapsulation strip is located on the transmission track; the first encapsulation strip is provided with grooves at intervals, and the length direction of the grooves is the preset length direction; The drive module controls the suction module to transport the target material into the groove; The first packaging tape is driven to move along the transport track so that the portion of the first packaging tape containing the target material is located below the pressing assembly. The second release component is controlled to release the second encapsulation tape onto the transfer track, such that the second encapsulation tape is positioned below the pressing component and above the portion of the first encapsulation tape where the target material is placed. The pressing component is controlled to press the second encapsulation strip against the portion of the first encapsulation strip where the target material is placed, thereby forming the target encapsulation strip; The target packaging tape is transported to the winding assembly via the transport track, and the winding assembly winds up the target packaging tape.
[0013] A third aspect of this application provides a material packaging device based on image detection, applied to a material image detection device. The material image detection device includes a material suction module, a drive module, a first camera module, a second camera module, and a vibration flipping module; multiple materials are placed on the vibration flipping module. The device includes: The first imaging unit is used to control the first camera module to capture images of the vibration flipping module to obtain a front detection image; The first detection unit is used to detect the material on the vibration flipping module based on the front detection image, and to determine the material facing up as the first candidate material. The second detection unit is used to perform appearance quality inspection on the front of each of the first candidate materials based on the front detection image, and to determine the second candidate materials that are qualified on the front. The determining unit is used to determine the target material from the second candidate materials, control the driving module to drive the suction module to pick up the target material, and transport the target material to above the second camera module; The third detection unit is used to control the second camera module to take pictures of the bottom surface of the target material to obtain a bottom surface detection image, and to perform appearance quality inspection on the bottom surface of the target material based on the bottom surface detection image; The first vector acquisition unit is used to acquire the current direction vector of the length direction of the target material based on the bottom surface detection image when the bottom surface of the target material is detected as qualified. The second vector acquisition unit is used to acquire the vector of the preset length direction of the groove in the target packaging tape, as the target direction vector; An adjustment unit is used to control the drive module to drive the suction module to perform a length direction adjustment operation based on the current direction vector and the target direction vector, so that the length direction of the target material is parallel to the preset length direction, and the groove is used to place the material.
[0014] A fourth 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 image detection method for materials according to any one of the first aspect embodiments, or the packaging method for materials according to the second aspect embodiment.
[0015] A fifth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the image detection method for materials according to any one of the first aspect embodiments, or the material packaging method according to the second aspect 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 schematic diagram of the structure of the material image detection device according to an embodiment of this application; Figure 2 This is a schematic diagram of the packaging module in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of the first encapsulation strip according to an embodiment of this application; Figure 4 This is a flowchart illustrating the steps of the material image detection method according to an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a material packaging device based on image detection according to an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application.
[0018] Figure label: First linear drive assembly 110; second linear drive assembly 120; lifting drive assembly 130; rotary drive component 140; Material suction module 200; first camera module 300; vibration flipping module 400; second camera module 500; encapsulation module 600; first release component 610; first encapsulation tape 611; groove 612; second release component 620; second encapsulation tape 621; winding component 630; target encapsulation tape 631; pressing drive component 640; pressing component 650; transfer track 660. 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] In related technologies, the production process typically begins with visual quality inspection of the produced materials using testing equipment. Materials that pass this inspection are then conveyed to packaging equipment. Inside the packaging equipment, workers use pliers to ensure the materials are facing upwards before sealing them. This entire process requires manual assistance and is extremely inefficient. Furthermore, the materials are prone to wear and tear during the conveyance process, and the manual handling with pliers can easily damage them.
[0025] Based on this, the embodiments of the present application provide an image detection method, a packaging method, a device, a device and a storage medium for materials, which can realize the appearance quality detection and packaging of materials only through a material image detection device, and the whole process does not require manual assistance, realizing full automation, with high efficiency and low cost. When it is detected that both the front and bottom surfaces of the material are qualified, the material is immediately transported to the packaging module for packaging through the driving module and the material suction module, which can reduce the wear generated during the transportation of the material between different devices.
[0026] In the first aspect of the embodiments of the present application, an image detection method for materials is provided. The image detection method for materials is applied to a material image detection device, and a control system is set in the material image detection device. The control system is used to control each module of the material image detection device to execute the image detection method for materials. Refer to Figure 1 , Figure 1 is a schematic structural diagram of the material image detection device in the embodiments of the present application. The material image detection device includes a material suction module 200, a driving module, a first camera module 300, a second camera module 500, a vibration and flipping module 400, and a packaging module 600. The material suction module 200 is arranged above the vibration and flipping module 400. The driving module can drive the material suction module 200 to move in all directions. The packaging module 600 is arranged on one side of the vibration and flipping module 400. The first camera module 300 is arranged directly above the vibration and flipping module 400. The second camera module 500 is arranged between the vibration and flipping module 400 and the packaging module 600. The driving module includes a first linear driving component 110, a second linear driving component 120, a lifting driving component 130, and a rotating driving part 140. The second linear driving component 120 is installed on the first linear driving component 110. The lifting driving component 130 is installed on the second linear driving component 120. The rotating driving part 140 is installed on the lifting driving component 130. The suction component is a suction nozzle, and the suction nozzle is installed on the rotating driving part 140. The first linear driving component 110 is used to drive the second linear driving component 120 to move along the first horizontal direction, so as to drive the suction nozzle to move along the first horizontal direction. The second linear driving component 120 is used to drive the lifting component to move along the second horizontal direction, so as to drive the suction nozzle to move along the second horizontal direction. The lifting component is used to drive the rotating driving part 140 to perform a lifting movement, so as to drive the suction nozzle to perform a lifting movement. The rotating driving part 140 is used to drive the suction nozzle to rotate.
[0027] It should be noted that the vibration and flipping module 400 can vibrate, and the orientation of the materials in the vibration and flipping module 400 is changed through vibration. For example, when there are fewer materials with the front side facing up in the vibration and flipping module 400, the vibration and flipping module 400 is controlled to vibrate, so that some materials are converted from the state with the bottom side facing up to the state with the front side facing up.
[0028] Refer to Figure 2 , Figure 2 This is a schematic diagram of the packaging module 600 according to an embodiment of this application. The packaging module 600 includes a first release component 610, a second release component 620, a pressing component, a transfer track 660, and a winding component 630.
[0029] The first release component 610 is used to release the first packaging tape 611, and the second release component 620 is used to release the second packaging tape 621. The first release component 610 includes a first release shaft on which the first packaging tape 611 is wound. The second release component 620 includes a second release shaft on which the second packaging tape 621 is wound. The pressing component includes a pressing member 650 and a pressing drive member 640. The pressing drive member 640 is connected to the pressing member 650, which is located above the transmission track 660. The pressing drive member 640 is used to drive the pressing member 650 to move up and down. When the pressing member 650 descends, it presses the second packaging tape 621 onto the first packaging tape 611. The pressed first packaging tape 611 and the second packaging tape 621 form a target packaging tape 631. The pressing drive member 640 can be a drive cylinder. The transmission track 660 is provided with a conveyor belt and a belt drive member. The belt drive member is a motor used to drive the conveyor belt, thereby driving the first packaging tape 611 to move. The take-up assembly 630 includes a take-up spool for taking up the target packaging tape 631.
[0030] In some embodiments, the target package tape 631 is a reel, the first package tape 611 is a carrier tape, and the second package tape 621 is a cover tape. The material is a surface mount capacitor or surface mount resistor, or other material, with a different front and back color.
[0031] In some embodiments, refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of the first encapsulation strip 611 according to an embodiment of this application. The first encapsulation strip 611 has grooves 612 spaced apart along its length, and the length direction of the grooves 612 is a preset length direction. The preset length direction is perpendicular to the length direction of the first encapsulation strip 611.
[0032] based on Figures 1 to 3 A schematic diagram of a material image detection device is provided, and an embodiment of the material image detection method of this application is proposed. (Refer to...) Figure 4 , Figure 4 This is a schematic flowchart illustrating the steps of an image detection method for materials according to an embodiment of this application. The image detection method for materials according to an embodiment of this application includes, but is not limited to, steps S410 to S480.
[0033] Step S410: Control the first camera module to capture an image of the vibration flipping module to obtain a front detection image; Step S420: Detect the material on the vibration flipping module based on the front detection image, and determine the material facing up as the first candidate material; Step S430: Based on the front detection image, perform appearance quality inspection on the front of each first candidate material to determine the second candidate material with qualified front. Step S440: Determine the target material from the second candidate materials, control the drive module to drive the suction module to pick up the target material, and transport the target material to the top of the second camera module; It should be noted that there are usually multiple second candidate materials. When there are multiple second candidate materials, one second candidate material is randomly selected from the vibration and flipping module as the target material.
[0034] Step S450: Control the second camera module to take a picture of the bottom surface of the target material to obtain a bottom surface inspection image, and perform appearance quality inspection on the bottom surface of the target material based on the bottom surface inspection image; Step S460: If the bottom surface of the target material is found to be qualified, the current direction vector of the length direction of the target material is obtained based on the bottom surface detection image. Step S470: Obtain the vector of the preset length direction of the groove in the target packaging tape, as the target direction vector; It is worth noting that an image of the groove in the target packaging tape is obtained, and the coordinate information of any long side of the groove is extracted from the image. A vector is calculated based on the coordinate information and used as the target direction vector.
[0035] Step S480: Based on the current direction vector and the target direction vector, the control drive module drives the suction module to perform a length direction adjustment operation so that the length direction of the target material is parallel to the preset length direction, and the groove is used to place the material.
[0036] It should be noted that, in the method for image detection of materials according to the embodiments of the present application, through the above steps S410 to S480, first based on the front detection image, the materials with the front facing up are determined as the first candidate materials, and the appearance quality of each first candidate material is detected based on the front detection image to determine the second candidate materials with qualified fronts. The target material is determined from the second candidate materials. Through the driving module and the material suction module, the target material is transported above the second imaging module, and is photographed by the second imaging module to obtain the bottom detection image. Detection is performed based on the bottom detection image. When it is detected that the bottom of the target material is qualified, the driving module is used to make the length direction of the target material parallel to the preset length direction, and packaging is performed through the packaging module. In this process, only two shootings are required, which not only complete the quality detection of the front of the material, the quality detection of the bottom of the material, but also complete the identification of the materials with the front facing up, and at the same time complete the adjustment of the direction of the material, which can improve the detection efficiency of the material and the subsequent packaging efficiency; and in the process of detecting the appearance quality of the fronts of multiple first candidate materials, there is no need to separately photograph the fronts of each first candidate material again, but it is realized based on the front detection image, which further improves the production efficiency. And no manual assistance is required, achieving full automation. Moreover, compared with the related art in which the packaging process and the appearance quality detection process are realized by different devices respectively, the production cost of the present application is lower and the efficiency is higher. And when it is detected that both the front and the bottom of the material are qualified, the material is immediately transported to the packaging module for packaging through the driving module and the material suction module, which can reduce the wear generated during the transportation of the material between different devices.
[0037] It can be understood that in step S460, obtaining the current direction vector of the length direction of the target material based on the bottom detection image includes steps S461 and S462.
[0038] Step S461, convert the bottom detection image into a binary image, and extract the material contour of the target material based on the binary image; Step S462, determine the minimum circumscribed rectangle of the material contour, and calculate the vector of any long side of the minimum circumscribed rectangle as the current direction vector.
[0039] It should be noted that through steps S461 and S462, any long side of the minimum circumscribed rectangle of the material contour is determined, the coordinates of any two points of the long side are calculated, and the direction vector calculated based on the coordinates is used as the current direction vector.
[0040] Correspondingly, the length direction adjustment operation in step S480 includes steps S481 and S482.
[0041] Step S481, calculate the included angle between the current direction vector and the target direction vector; Step S482: Based on the included angle control drive module, drive the target material to rotate around the center of the minimum bounding rectangle so that any long side of the minimum bounding rectangle is parallel to the preset length direction.
[0042] It is worth noting that, through steps S481 to S482, the target material is driven to rotate around the center of the smallest bounding rectangle as the rotation center, so that any long side of the smallest bounding rectangle is parallel to the preset length direction, which is the length direction of the groove. This makes it easier for the target material to be directly transported onto the groove through the drive module and the suction module during the subsequent packaging process, thereby improving the efficiency of the subsequent packaging.
[0043] It is understandable that the material image inspection equipment also includes a defective product placement module; after inspecting the appearance quality of the bottom surface of the target material based on the bottom surface inspection image, it also includes steps S510 and S520.
[0044] Step S510: If the bottom surface of the target material is found to be unqualified, the control drive module drives the suction module to transport the target material to the defective product receiving module. Step S520: The target material is re-determined from the second candidate materials, and the process jumps to the control drive module to drive the suction module to pick up the target material.
[0045] The material image detection method of this embodiment, through steps S510 to S520, transports target materials with non-conforming bottom surfaces to the defective product holding module, achieving separation of qualified and non-conforming products. Then, in step S520, if the vibration flipping module still has a second candidate material, one is randomly selected from the second candidate material as the new target material, and the process jumps to the control drive module to drive the suction module to pick up the target material. If the vibration flipping module no longer has a second candidate material, for example, if all the second candidate materials on the vibration flipping module have been picked up by the suction module, the first camera module is controlled to re-capture the vibration flipping module to obtain a new front-side detection image. Based on the new front-side detection image, the process jumps to step S420. Thus, by combining steps S510 and S520, as well as steps S410 to S470, the appearance quality of the front surfaces of multiple materials is inspected, the appearance quality of the bottom surfaces of multiple materials is inspected, and the materials with qualified front surfaces and bottom surfaces are packaged.
[0046] It is understandable that steps S610 to S630 are included before the material facing up is identified as the first candidate material.
[0047] Step S610: Obtain the target number of materials facing upwards on the vibration flipping module; Step S620: If the number of targets is less than the preset number, control the vibration flipping module to vibrate. Step S630: Control the first imaging module to take a picture to reacquire the front detection image, and jump to the detection of the material on the vibration flipping module based on the front detection image.
[0048] It is worth noting that after acquiring the front-facing detection image, the target number of materials facing upwards on the vibration flipping module is determined based on the image. If the target number is less than a preset number, the vibration flipping module is controlled to vibrate, causing some materials to change from a bottom-up state to a front-up state, thus ensuring more materials are facing upwards. The first imaging module is then controlled to capture another front-facing detection image, and the process jumps to inspecting the materials on the vibration flipping module based on that image. This allows for appearance quality inspection of a large number of first-candidate materials using only a single front-facing detection image in subsequent processing, thereby improving production efficiency.
[0049] It is understood that step S420, which involves detecting the material on the vibration flipping module based on the front detection image and determining the material facing up as the first candidate material, includes, but is not limited to, steps S421 to S427.
[0050] Step S421: Convert the front detection image to HSV space to obtain the first converted image; It's important to note that HSV (Hue, Saturation, Value) is a color model based on human visual perception, widely used in image processing and computer vision. Unlike the RGB (Red, Green, Blue) color space, HSV decomposes color information into three intuitive components: Hue, Saturation, and Value. Hue represents the basic color type, such as red, green, and blue, and is represented by angles (0°~360°) on the color wheel. Saturation describes the purity or vividness of a color, typically ranging from 0% to 100%. Higher saturation results in a more vibrant color, while lower saturation makes the color closer to gray. Value (also called lightness) reflects the brightness of a color, ranging from 0 (black) to the maximum value (brightest), controlling overall brightness without altering hue or saturation. HSV is insensitive to lighting conditions, and its color thresholds can accurately separate front and back images, avoiding misjudgments of color mixing during stacking. By converting the front detection image into the first transformed image, the accuracy of subsequent image processing can be improved.
[0051] Step S422: Set the pixels in the first converted image that are within the preset HSV parameter range to white, and set the pixels in the first converted image that are outside the HSV parameter range to black, to obtain the first mask image; It is worth noting that those skilled in the art can obtain a preset HSV parameter range based on pre-captured images of the front of the material. For example, a first camera module can be used to capture images of the front of multiple materials, resulting in multiple preset front images. These preset front images are then converted to HSV space, yielding multiple preset converted images. The first average value of each HSV parameter in each preset converted image is calculated. Then, the corresponding first average values of the first HSV parameters across the multiple preset converted images are averaged to obtain a second average value of the HSV parameters. Based on this second average value, a corresponding HSV parameter range is constructed, thus obtaining the preset HSV parameter range. HSV parameters include hue, saturation, and brightness. Therefore, the first average value of the HSV parameters includes the first average value of the hue parameter, the first average value of the saturation parameter, and the first average value of the brightness parameter; the second average value of the HSV parameters includes the second average value of the hue parameter, the second average value of the saturation parameter, and the second average value of the brightness parameter. Therefore, the preset HSV parameter range includes the hue range, saturation parameter, and brightness parameter. For example, a hue range is H, where H is the average value of the second hue parameter; a saturation range is [Sx, S+x], where S is the average value of the second saturation parameter and x is a preset value; and a brightness range is [Vy, V+y], where V is the average value of the second brightness parameter and y is a preset value.
[0052] Since both the preset frontal image and the frontal detection image are captured by the first camera module, the accuracy of image processing can be improved, and interference caused by capturing images through different camera modules can be avoided.
[0053] Step S423: Perform contour detection on the first mask image to obtain first candidate contours where each contour is a rectangle; It is worth noting that the material encapsulated in the image detection method of this application is a rectangular or approximately rectangular material.
[0054] Step S424: Calculate the contour area of each first candidate contour, and determine the second candidate contour from each first candidate contour based on the contour area; the area of the second candidate contour is greater than the preset area. In some embodiments, the preset area is set based on the cross-sectional area of the material, for example, the preset area is set to be smaller than the cross-sectional area.
[0055] Step S425: Calculate the target proportion of white pixels in the corresponding region of the second candidate contour in the first mask image; Step S426: Determine the target contour from the second candidate contours based on the target proportion; wherein the target proportion corresponding to the target contour is greater than the preset proportion; those skilled in the art can set the preset proportion according to the actual situation.
[0056] Step S427: The material corresponding to the target contour is determined as the first candidate material.
[0057] It is worth noting that, through steps S421 to S427, this embodiment achieves automated identification of materials facing upwards based on the front detection image, without manual assistance, thus improving production efficiency. Furthermore, during image processing, by utilizing the characteristics of HSV spatial images—that they are insensitive to illumination and that color thresholds can accurately separate the front and back sides—the accuracy of subsequent image processing can be improved by converting the front detection image into a first converted image, avoiding misjudgments of color mixing during stacking.
[0058] It is understood that step S430, which involves performing appearance quality inspection on the front of each of the first candidate materials based on the front detection image to determine the second candidate materials that are qualified on the front, includes, but is not limited to, steps S431 to S435.
[0059] Step S431: Obtain a preset standard grayscale image of the front of the material; It is worth noting that the front of the qualified materials should be photographed in advance and converted to grayscale to obtain a preset standard grayscale image of the front of the materials.
[0060] Step S432: Based on the target contour, segment the front detection image to obtain multiple third images; It is worth noting that each third image corresponds to a target contour.
[0061] Step S433: Convert each third image to grayscale to obtain the grayscale image to be detected; Step S434: Calculate the first structural similarity index between the grayscale image to be detected and the standard grayscale image of the front of the material; Step S435: Based on the first structural similarity index, determine the target grayscale image from each grayscale image to be detected, and determine the material corresponding to the target grayscale image as the second candidate material; wherein, the first structural similarity index corresponding to the target grayscale image is greater than the first preset index threshold.
[0062] It should be noted that the Structural Similarity Index (SSIM) is an indicator used to measure the similarity between two images. It is based on the perceptual characteristics of the human visual system in understanding image structure, comprehensively evaluating 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 a first preset index threshold according to actual circumstances; this application does not impose any limitations on this. Since the first structural similarity index corresponding to the target grayscale image is greater than the first preset index threshold, the target grayscale image can be considered relatively similar to the standard grayscale image of the material's front side. Therefore, the material corresponding to the target grayscale image is judged to be qualified on the front side.
[0063] In some embodiments, step S450, which involves performing appearance quality inspection on the bottom surface of the target material based on the bottom surface detection image, includes steps S451 to S455.
[0064] Step S451: Obtain a preset standard grayscale image of the material bottom surface; It is worth noting that the bottom surface of qualified materials should be photographed in advance and converted to grayscale to obtain a preset standard grayscale image of the bottom surface of the materials.
[0065] Step S452: Convert the bottom surface detection image to grayscale to obtain the grayscale image of the bottom surface to be detected; Step S453: Calculate the second structural similarity index between the grayscale image of the bottom surface to be detected and the standard grayscale image of the bottom surface of the material; Step S454: When the second structural similarity index is detected to be greater than the second index threshold, the bottom surface of the target material is determined to be of qualified quality.
[0066] Step S455: When the second structural similarity index is detected to be less than or equal to the second index threshold, the bottom surface of the target material is determined to be of unqualified quality.
[0067] It should be noted that the values of both the first preset index threshold and the second preset index threshold are within the range [0, 1). The first preset index threshold and the second preset index threshold can be the same or different. For example, the first preset index threshold is 0.8 and the second preset index threshold is 0.8; or the first preset index threshold is 0.7 and the second preset index threshold is 0.9. Those skilled in the art can set the first preset index threshold and the second preset index threshold according to the actual situation, and this application does not limit them in this regard.
[0068] In step S440 of some embodiments, one of the multiple second candidate materials is randomly selected as the target material. Based on the target contour corresponding to the target material, the center point coordinates of the target material are determined. For example, if the target material is a rectangle, the center point coordinates of the rectangle are determined. The drive module drives the suction module to move directly above the center point coordinates of the rectangle. Then, the drive module drives the suction module's nozzle to descend to pick up the target material. The center of the smallest circumscribed rectangle coincides with the center point coordinates of the target material. Thus, in step S463, since the suction module's nozzle picks up the center point coordinates of the target material, rotation can be directly driven by the rotation drive component, thereby driving the target material to rotate around the center of the smallest circumscribed rectangle.
[0069] It is understood that the second aspect of this application provides a method for packaging materials, applied to... Figures 1 to 3 A schematic diagram of a material image inspection device. The material packaging method of the second aspect embodiment includes the material image inspection method of the first aspect embodiment, and further includes steps S710 to S760.
[0070] Step S710: Control the first release component to release the first encapsulation tape so that the first encapsulation tape is located on the transmission track; the first encapsulation tape is provided with grooves at intervals, and the length direction of the grooves is a preset length direction; Step S720: The control drive module drives the suction module to transport the target material into the groove; It should be noted that after each execution of step S720, the first packaging tape is driven to move a preset distance along the transport track, so that the position of the next groove moves to the original position of the previous groove. Then, a new target material is determined from the second candidate materials. Based on the new target material, the process jumps to step S440, where the drive module is controlled to drive the suction module to pick up the target material and transport it above the second camera module. This process is repeated until all the second candidate materials on the vibration flipping module have been picked up by the suction module. Then, the first camera module is controlled again to take a picture of the vibration flipping module to obtain a new front detection image. Based on the new front detection image, the process jumps to step S420.
[0071] Step S730: Drive the first encapsulation tape along the transfer track so that the portion of the first encapsulation tape containing the target material is located below the pressing assembly. Step S740: Control the second release component to release the second encapsulation tape onto the transfer track so that the second encapsulation tape is located below the pressing component and above the portion of the first encapsulation tape where the target material is placed. Step S750: Control the pressing component to drive the second encapsulation strip to press the portion of the first encapsulation strip containing the target material to form the target encapsulation strip; In step S760, the target packaging tape is transported to the winding assembly via the transport track, and the winding assembly winds up the target packaging tape.
[0072] It is worth noting that the image detection method for materials in this embodiment of the application, through the above-described steps S710 to S760, achieves the following: the target material is transported onto the first packaging tape, and the second release component is controlled to release the second packaging tape onto the transport track, so that the second packaging tape is located below the pressing component and above the portion of the first packaging tape where the target material is placed. The pressing component is then controlled to drive the second packaging tape to press against the portion of the first packaging tape where the target material is placed, forming the target packaging tape. The target packaging tape is then transported to the winding component via the transport track, and the winding component winds up the target packaging tape. In this way, the packaging of materials with the front side facing up and both the front and bottom sides being qualified is completed.
[0073] A third aspect of this application provides a material packaging apparatus based on image detection. Applied to... Figures 1 to 3 A schematic diagram of a material image inspection device. (Refer to...) Figure 5 , Figure 5 This is a schematic diagram of the structure of a material packaging apparatus based on image detection according to an embodiment of this application. The material packaging apparatus based on image detection includes: The first imaging unit 510 is used to control the first camera module to capture images of the vibration flipping module to obtain a front detection image; The first detection unit 520 is used to detect the material on the vibration flipping module based on the front detection image, and to determine the material facing up as the first candidate material. The second detection unit 530 is used to perform appearance quality inspection on the front of each first candidate material based on the front detection image, and to determine the second candidate material that is qualified on the front. The determining unit 540 is used to determine the target material from the second candidate materials, control the drive module to drive the suction module to pick up the target material, and transport the target material to the top of the second camera module; The third detection unit 550 is used to control the second camera module to take pictures of the bottom surface of the target material to obtain a bottom surface detection image, and to perform appearance quality inspection on the bottom surface of the target material based on the bottom surface detection image. The first vector acquisition unit 560 is used to acquire the current direction vector of the length direction of the target material based on the bottom surface detection image when the bottom surface of the target material is detected as qualified. The second vector acquisition unit 570 is used to acquire the vector of the preset length direction of the groove in the target packaging tape, as the target direction vector; An adjustment unit 580 is configured to control the driving module to drive the material suction module to perform a lengthwise adjustment operation based on the current direction vector and the target direction vector, so that the length direction of the target material is parallel to the preset length direction, and the groove is used for placing the material.
[0074] The material packaging device based on image detection according to the third aspect embodiment of the present application is used to execute the material image detection method according to the first aspect embodiment of the present application. When executing the method, first, based on the front detection image, the materials with the front side facing up are determined as the first candidate materials, and the appearance quality of each first candidate material is detected based on the front detection image to determine the second candidate materials with qualified fronts. The target material is determined from the second candidate materials. The target material is transported above the second imaging module through the driving module and the material suction module, and photographed by the second imaging module to obtain a bottom detection image. Detection is performed based on the bottom detection image. When it is detected that the bottom of the target material is qualified, the driving module is used to make the length direction of the target material parallel to the preset length direction, and packaging is performed through the packaging module. In this process, only two shootings are required, which not only completes the quality detection of the front side of the material, the quality detection of the bottom side of the material, but also completes the identification of the materials with the front side facing up, and at the same time completes the adjustment of the direction of the material, which can improve the packaging efficiency of the material; and in the process of detecting the appearance quality of the fronts of multiple first candidate materials, there is no need to separately shoot the fronts of each first candidate material again, but it is realized based on the front detection image, which further improves the production efficiency. And no manual assistance is required, and full automation is achieved. Moreover, compared with the related technology where the packaging process and the appearance quality detection process are implemented by different devices respectively, the production cost of the present application is lower and the efficiency is higher. And when it is detected that both the front and the bottom of the material are qualified, the material is immediately transported to the packaging module through the driving module and the material suction module for packaging, which can reduce the wear generated during the transportation of the material between different devices.
[0075] It should be noted that the specific implementation manner of the material packaging device based on image detection is basically the same as the specific embodiments of the above-mentioned material image detection method, and will not be elaborated here. On the premise of meeting the requirements of the embodiments of the present application, other functional units can be set in the material packaging device based on image detection to implement the material image detection method in the above embodiments.
[0076] The fourth aspect embodiment of the present application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the material image detection method according to any one of the first aspect embodiments or the material packaging method according to the second aspect embodiment. This electronic device can be any intelligent terminal including a tablet computer, a desktop computer, etc.
[0077] Refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device according to one embodiment. The electronic device includes: The processor 601 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 602 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 602 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 602 and is called by the processor 601 to execute the image detection method for materials in the embodiments of this application. The input / output interface 603 is used to implement information input and output; The communication interface 604 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 605 transmits information between various components of the device (e.g., processor 601, memory 602, input / output interface 603, and communication interface 604); The processor 601, memory 602, input / output interface 603, and communication interface 604 are connected to each other within the device via bus 605.
[0078] According to a fifth aspect of this application, a computer-readable storage medium stores a computer program that, when executed by a processor, implements the image detection method for materials according to any one of the first aspect embodiments, or the packaging method for materials according to the second aspect embodiment.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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 image detection of materials, characterized in that, This is applied to a material image detection device, which includes a material suction module, a drive module, a first camera module, a second camera module, and a vibration flipping module; multiple materials are placed on the vibration flipping module. The method includes: The first camera module is controlled to capture an image of the vibration flipping module to obtain a frontal detection image; The material on the vibration flipping module is detected based on the front detection image, and the material facing up is identified as the first candidate material. Based on the front detection image, the appearance quality of the front of each of the first candidate materials is inspected to determine the second candidate materials that are qualified on the front. The target material is determined from the second candidate materials, and the driving module is controlled to drive the suction module to pick up the target material and transport the target material to the top of the second camera module. The second camera module is controlled to capture images of the bottom surface of the target material to obtain a bottom surface inspection image. Based on the bottom surface inspection image, the appearance quality of the bottom surface of the target material is inspected. If the bottom surface of the target material is detected as qualified, the current direction vector of the length direction of the target material is obtained based on the bottom surface detection image; Obtain the vector of the preset length direction of the groove in the target packaging tape, and use it as the target direction vector; Based on the current direction vector and the target direction vector, the driving module is controlled to drive the suction module to perform a length direction adjustment operation so that the length direction of the target material is parallel to the preset length direction, and the groove is used to place the material.
2. The image detection method for materials according to claim 1, characterized in that, The material image inspection equipment further includes a defective product placement module; after performing appearance quality inspection on the bottom surface of the target material based on the bottom surface inspection image, it further includes: If the bottom surface of the target material is found to be defective, the drive module is controlled to drive the suction module to transport the target material to the defective product receiving module. The target material is re-determined from the second candidate materials, and the process jumps to the control of the drive module to drive the suction module to pick up the target material.
3. The image detection method for materials according to claim 1, characterized in that, Before determining the face-up material as the first candidate material, the method further includes: Obtain the target quantity of material facing upwards on the vibration flipping module; If the number of targets is detected to be less than a preset number, the vibration flipping module is controlled to vibrate. The first imaging module is controlled to capture an image to reacquire the frontal detection image, and then the process jumps to the detection of the material on the vibration flipping module based on the frontal detection image.
4. The image detection method for materials according to claim 1, characterized in that, The step of detecting the material on the vibration flipping module based on the front detection image and identifying the material facing up as the first candidate material includes: The frontal detection image is converted to HSV space to obtain the first converted image; Pixels in the first converted image that are within the preset HSV parameter range are set to white, and pixels in the first converted image that are outside the HSV parameter range are set to black, to obtain a first mask image. Contour detection is performed on the first mask image to obtain first candidate contours where each contour is a rectangle; Calculate the contour area of each of the first candidate contours, and determine the second candidate contour from each of the first candidate contours based on the contour area; the area of the second candidate contour is greater than a preset area. Calculate the target percentage of white pixels in the corresponding region of the second candidate contour in the first mask image; A target contour is determined from the second candidate contours based on the target proportion; wherein the target proportion corresponding to the target contour is greater than a preset proportion; The material corresponding to the target contour is determined as the first candidate material.
5. The image detection method for materials according to claim 4, characterized in that, The step of performing appearance quality inspection on the front of each of the first candidate materials based on the front detection image to determine the second candidate materials with qualified front surfaces includes: Obtain a preset standard grayscale image of the front of the material; Based on the target contour, the frontal detection image is segmented to obtain multiple third images; Each of the third images is converted to grayscale to obtain the grayscale image to be detected; Calculate the first structural similarity index between the grayscale image to be detected and the standard grayscale image of the front of the material; Based on the first structural similarity index, a target grayscale image is determined from each of the grayscale images to be detected, and the material corresponding to the target grayscale image is determined as the second candidate material; wherein, the first structural similarity index corresponding to the target grayscale image is greater than a first preset index threshold.
6. The image detection method for materials according to claim 1, characterized in that, The step of obtaining the current direction vector of the length direction of the target material based on the bottom surface detection image includes: The bottom surface detection image is converted into a binary image, and the material outline of the target material is extracted based on the binary image; Determine the minimum bounding rectangle of the material outline, and calculate the vector of any long side of the minimum bounding rectangle as the current direction vector; The length direction adjustment operation includes: Calculate the angle between the current direction vector and the target direction vector; Based on the included angle, the driving module drives the target material to rotate around the center of the minimum bounding rectangle, so that any long side of the minimum bounding rectangle is parallel to the preset length direction.
7. A method for packaging a material, characterized in that, This invention relates to a material image detection device, which includes a material suction module, a drive module, a first camera module, a second camera module, a vibration flipping module, and a packaging module. Multiple materials are placed on the vibration flipping module. The packaging module includes a first release component, a second release component, a pressing component, a transport track, and a winding component. The method includes the image detection method for materials as described in any one of claims 1 to 6; The method also includes: The first release component is controlled to release the first encapsulation tape so that the first encapsulation tape is located on the transmission track; the first encapsulation tape is provided with grooves at intervals, and the length direction of the grooves is the preset length direction; The drive module controls the suction module to transport the target material into the groove; The first packaging tape is driven to move along the transport track so that the portion of the first packaging tape containing the target material is located below the pressing assembly. The second release component is controlled to release the second encapsulation tape onto the transfer track, such that the second encapsulation tape is positioned below the pressing component and above the portion of the first encapsulation tape where the target material is placed. The pressing component is controlled to press the second encapsulation strip against the portion of the first encapsulation strip where the target material is placed, thereby forming the target encapsulation strip; The target packaging tape is transported to the winding assembly via the transport track, and the winding assembly winds up the target packaging tape.
8. A material packaging device based on image detection, characterized in that, This is applied to a material image detection device, which includes a material suction module, a drive module, a first camera module, a second camera module, and a vibration flipping module; multiple materials are placed on the vibration flipping module. The device includes: The first imaging unit is used to control the first camera module to capture images of the vibration flipping module to obtain a front detection image; The first detection unit is used to detect the material on the vibration flipping module based on the front detection image, and to determine the material facing up as the first candidate material. The second detection unit is used to perform appearance quality inspection on the front of each of the first candidate materials based on the front detection image, and to determine the second candidate materials that are qualified on the front. The determining unit is used to determine the target material from the second candidate materials, control the driving module to drive the suction module to pick up the target material, and transport the target material to above the second camera module; The third detection unit is used to control the second camera module to take pictures of the bottom surface of the target material to obtain a bottom surface detection image, and to perform appearance quality inspection on the bottom surface of the target material based on the bottom surface detection image; The first vector acquisition unit is used to acquire the current direction vector of the length direction of the target material based on the bottom surface detection image when the bottom surface of the target material is detected as qualified. The second vector acquisition unit is used to acquire the vector of the preset length direction of the groove in the target packaging tape, as the target direction vector; An adjustment unit is used to control the drive module to drive the suction module to perform a length direction adjustment operation based on the current direction vector and the target direction vector, so that the length direction of the target material is parallel to the preset length direction, and the groove is used to place the material.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the image detection method for the material according to any one of claims 1 to 6, or the packaging method for the material according to claim 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the image detection method for the material according to any one of claims 1 to 6, or the packaging method for the material according to claim 7.