Production information tracing method, device, computer equipment and storage medium

By setting up multiple image shooting devices and target deep learning networks on the production line to identify the logo pattern on the PCB board, it solves the problems in the existing technology of the number of PCB panels and the lack of convenience in the order of pasting multi-panel barcodes, and achieves high efficiency. , Accurate production information traceability.

CN118468915BActive Publication Date: 2024-09-27HANGZHOU ALLYTECH TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410918107.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-27
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The existing production information traceability system lacks operational convenience in terms of the number of PCB layouts and the sequence of pasting multi-panel barcodes. It also has limited recognition capabilities for different types of barcodes and has problems with missing codes and high error rates.

Method used

A production information traceability system based on visual analysis is adopted. By setting up multiple image shooting devices around the transmission track, the target deep learning network (such as YOLOv5s) is used to identify the logo pattern on the PCB board and generate traceability information to adapt to various imposition numbers and barcodes. Paste sequence without adjusting the image capture device.

Benefits of technology

It improves operational convenience and recognition accuracy, reduces missing and error codes, adapts to different types of barcodes, eliminates the need to adjust the image capture device, and improves the accuracy and efficiency of production information traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468915B
    Figure CN118468915B
Patent Text Reader

Abstract

The present invention discloses a production information tracing method, device, computer equipment and storage medium. By arranging multiple image shooting devices around a transmission track, when the transmission track needs to transmit multiple panels of PCB, a target shooting device that can shoot the target surface is determined among the multiple image shooting devices; the target surface is shot by the target shooting device to obtain the multi-panel image data; the pasted identification pattern is identified based on the multi-panel image data to obtain a target detection frame distributed in a preset manner; and the traceability information of the PCB board is generated according to the target detection frame and the multi-panel image data. A production information tracing system based on visual analysis is realized, which can meet various panel numbers and barcode pasting orders of PCB, and no longer requires specific requirements for the panel number of PCB and the barcode pasting order of multiple panels as in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of PCB board production, and in particular to a production information tracing method, device, computer equipment and storage medium. Background Art

[0002] In order to trace and monitor the entire production process of electronic products, a production information traceability system has emerged. The production information traceability system can record and manage information such as the production links, raw material sources, production process parameters, and quality inspection results of electronic products, aiming to improve product quality, trace product sources, protect user rights, and meet regulatory needs.

[0003] The production information traceability system in the related art is based on barcode scanning by laser and infrared scanners. The barcode scanning mode in the related art has certain requirements on the number of PCB panels and the barcode pasting order of multiple panels, and its operation convenience needs to be improved. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the present invention proposes a production information tracing method, device, computer equipment and storage medium.

[0005] The present invention provides a production information tracing method, which is applied to a production line system, wherein the production line system comprises a transmission track, a plurality of image capturing devices are arranged around the transmission track, the transmission track is used to transmit a plurality of PCB panels, the plurality of PCB panels comprise PCB boards distributed in a preset manner, and an identification pattern is pasted on the PCB boards; the method comprises:

[0006] In the case where the transmission track needs to transmit the PCB multiple panels, a target shooting device that can shoot a target surface is determined among the multiple image shooting devices; wherein the target surface is the surface where the identification pattern is located on the PCB multiple panels, and the target surface is any one of the first surface and the second surface opposite to each other on the PCB multiple panels;

[0007] The target surface is photographed by the target photographing device to obtain multi-panel image data;

[0008] Recognize the pasted identification pattern based on the multi-panel image data to obtain a target detection frame distributed in the preset manner;

[0009] The traceability information of the PCB board is generated according to the target detection frame and the multi-panel image data.

[0010] The present invention also provides a production information tracing device, which is applied to a production line system, wherein the production line system includes a transmission track, and a plurality of image capturing devices are arranged around the transmission track, wherein the transmission track is used to transmit a plurality of PCB panels, wherein the plurality of PCB panels include PCB boards distributed in a preset manner, and an identification pattern is pasted on the PCB boards; the device includes:

[0011] A shooting device determination module, used for determining a target shooting device that can shoot a target surface from among the multiple image shooting devices when the transmission track needs to transmit the PCB multiple panels; wherein the target surface is the surface where the identification pattern is located on the PCB multiple panels, and the target surface is any one of the first surface and the second surface opposite to each other on the PCB multiple panels;

[0012] A target surface shooting module, used to shoot the target surface through the target shooting device to obtain multi-panel image data;

[0013] A logo pattern recognition module, used to recognize the pasted logo pattern based on the multi-panel image data to obtain a target detection frame distributed in the preset manner;

[0014] The traceability information production module is used to generate the traceability information of the PCB board according to the target detection frame and the multi-panel image data.

[0015] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.

[0016] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method are implemented.

[0017] In the above embodiment, by arranging multiple image capturing devices around the transmission track, when the transmission track needs to transmit multiple panels of PCB, a target capturing device that can capture the target surface is determined among the multiple image capturing devices; the target surface is captured by the target capturing device to obtain multiple panel image data; the pasted identification pattern is identified based on the multiple panel image data to obtain a target detection frame distributed in a preset manner; and the traceability information of the PCB board is generated based on the target detection frame and the multiple panel image data. A production information traceability system based on visual analysis is implemented, which can meet the needs of various PCB panel numbers and barcode pasting sequences, and no longer requires specific requirements for the PCB panel number and the barcode pasting sequence of multiple panels as in the related art barcode scanning mode. Furthermore, when facing different types of barcodes, there is no need to adjust the image capturing device, let alone debug the image capturing device, so the production information traceability system based on visual analysis improves the convenience of operation.

[0018] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1a A schematic diagram of a production line system provided according to an embodiment of the present specification;

[0020] Figure 1b A schematic diagram of a PCB multi-panel provided according to an embodiment of this specification;

[0021] Figure 1c A schematic diagram of a target detection frame provided according to an embodiment of the present specification;

[0022] Figure 2 A schematic diagram of a production information tracing method provided according to an embodiment of this specification;

[0023] Figure 3 A schematic diagram of generating traceability information according to an embodiment of this specification;

[0024] Figure 4 A schematic diagram of generating traceability information according to another embodiment of the present specification;

[0025] Figure 5a A schematic diagram of a target deep learning network provided according to an embodiment of this specification;

[0026] Figure 5b A schematic diagram of a target deep learning network identifying a logo image according to an embodiment of this specification;

[0027] Figure 5cA schematic diagram of an improved YOLOv5s network model provided according to an embodiment of this specification;

[0028] Figure 6 A schematic diagram of a production information tracing method provided according to another embodiment of the present specification;

[0029] Figure 7 A schematic diagram of a production information tracing method provided according to another embodiment of this specification;

[0030] Figure 8 A schematic diagram of a production information tracing device provided according to another embodiment of the present specification;

[0031] Fig. 9 The figure is a diagram of the internal structure of a computer device provided according to one embodiment of the present specification. DETAILED DESCRIPTION

[0032] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0033] The production information traceability system in the related art is mainly based on barcode scanning by laser and infrared scanners. This mode has certain requirements on the in and out direction of the production line products, the number of PCB panels, and the barcode pasting position sequence of multiple panels. Especially in this mode, if different products are produced, the position of the scanner needs to be adjusted and tested each time a different product is produced. It can be seen that the operation steps in the barcode scanning mode in the related art need to be simplified and are easily interfered with.

[0034] Furthermore, in the related art, different barcode categories require different scanners. When the barcode category changes, the matching scanner needs to be replaced, so the number of barcode types recognized by the barcode scanning mode in the related art needs to be improved.

[0035] In the related art, for PCB multi-panels, the PCB multi-panel includes multiple PCB boards, each PCB board is pasted with a barcode, and the barcode on the PCB board at the first position is identified by a barcode scanner to obtain the barcode information corresponding to the PCB board at the first position. Then, based on the barcode information corresponding to the PCB board at the first position, the barcode information at other positions is inferred according to the pasting rule to obtain the barcode information at other positions. After analysis, if there is a missing code in the process of calculating the barcode information, the barcode information recommended in the related art is missing. Furthermore, if there is an erroneous barcode information, the erroneous barcode information is still obtained by inferring based on the erroneous barcode information. Therefore, the error rate of the barcode information recommendation method in the related art needs to be reduced.

[0036] Based on the above analysis, this specification provides a scenario example of a production information tracing method. The method can be exemplarily applied as follows: Figure 1a In the production line system shown. Figure 1a , Figure 1a The production line system includes an assembly line transmission track 110, industrial-grade cameras 120 are respectively arranged at the upper and lower positions of the assembly line transmission track 110, and an infrared sensing device 130 is arranged above the assembly line transmission track 110. The assembly line transmission track is used to transmit multiple PCB panels. Please refer to Figure 1b , the PCB multi-panel 140 includes PCB boards 142 distributed in a preset manner, and an identification code 144 is pasted on each PCB board 142. The target surface where the identification code is located on the PCB multi-panel is determined according to the work order information of the PCB multi-panel. The target surface is any one of the first surface and the second surface relative to the PCB multi-panel. If the identification pattern is located on the first surface of the PCB multi-panel away from the transmission track, the industrial-grade camera above the assembly line transmission track is determined to be the target shooting device. If the identification pattern is located on the first surface of the PCB multi-panel away from the transmission track, the industrial-grade camera above the assembly line transmission track is determined to be the target shooting device. If the identification pattern is located on the second surface of the PCB multi-panel facing the transmission track, the industrial-grade camera below the assembly line transmission track is determined to be the target shooting device. When the PCB multi-panel is sensed by the infrared sensing device, the target surface is photographed by the target shooting device to obtain multi-panel image data.

[0037] In order to improve the recognition efficiency and accuracy of identification codes, a target detection network can be built based on a deep learning network. However, the inventors have analyzed and found that, on the one hand, a target detection network based on deep learning generally requires a standard data set for training. Considering the working environment and the impact of jitter, blur, position offset, and variable size of the collected identification codes on model training and detection, it is necessary to consider how to obtain feature information that meets the training needs. On the other hand, the mainstream models in the relevant technology, such as SSD, Faster R-CNN, and YOLO, etc., improved algorithms that simultaneously ensure the speed and accuracy of recognition are also issues that need to be considered. According to the above analysis, a target deep learning network is built based on the YOLOv5s algorithm as the basic model for detection. The target deep learning network includes a backbone network part, a neck network part, and an output processing part that are connected in sequence. The C3 layer at the end of the backbone network is embedded with a permutation attention mechanism to solve the problems of jitter, blur, and position offset generated by the barcode. The design concept of BiFPN is applied to the multi-scale feature fusion part, and a weighted feature fusion network is proposed to solve the problem of variable size and difficult feature information extraction.

[0038] In this scenario example, the multi-panel image data is input into the target deep learning network. The backbone network part extracts multi-scale features from the multi-panel image data to obtain shallow features corresponding to multiple sizes and the terminal output of the backbone network part. The terminal output of the backbone network part is upsampled by the neck network part, and features are fused with the shallow features at the same size to obtain fused features. The fused features of the neck network part are predicted by the output processing part to obtain the target detection box. For example, please refer to Figure 1c , Figure 1c The target detection box 150 in the figure can be used to represent the location information of the identification code output by the target deep learning network.

[0039] Furthermore, the identification pattern is parsed based on the target detection frame and the multi-panel image data to obtain the target barcode information of the PCB board; the target barcode information of the PCB board is verified and compared with the reference barcode information in the barcode database to obtain the barcode verification and comparison result; if the barcode verification and comparison result indicates that the PCB board is qualified, the product production information of the PCB board is obtained; the target barcode information of the PCB board is merged with the product production information of the PCB board to obtain the traceability information of the PCB board.

[0040] It should be noted that the C3 layer represents the cross-stage partial connection module (Cross Stage Partial). YOLOv5 is a one-stage detection algorithm that has excellent real-time performance compared to mainstream models. In addition, the YOLOv5s network model has the simplest network structure and the fastest target detection speed under the same algorithm, and its detection accuracy can also meet industrial needs. BiFPN (Bi-directional Feature Pyramid Network) is a feature pyramid network structure used for target detection tasks. It can be understood that after obtaining the target barcode information of the PCB board, Figure 1c The detection result shown shows the target barcode information.

[0041] In the above scenario example, by setting up multiple image capturing devices around the transmission track, when the transmission track needs to transmit multiple panels of PCB, a target capturing device that can capture the target surface is determined among the multiple image capturing devices; the target surface is captured by the target capturing device to obtain the multi-panel image data; the pasted identification pattern is identified based on the multi-panel image data to obtain the target detection frame distributed in a preset manner; and the traceability information of the PCB board is generated according to the target detection frame and the multi-panel image data. A production information traceability system based on visual analysis is implemented, which can meet the various panel numbers and barcode pasting orders of PCBs. It no longer requires specific requirements for the panel number of PCBs and the barcode pasting order of multiple panels as the barcode scanning mode in the related art requires. Furthermore, when facing different types of barcodes, there is no need to adjust the image capturing device, let alone debug the image capturing device. Therefore, the production information traceability system based on visual analysis improves the convenience of operation.

[0042] In the embodiment of the present specification, a production information tracing method is provided, which is applied to a production line system, and the production line system includes a transmission track. A plurality of image capturing devices are arranged around the transmission track, and the transmission track is used to transmit a plurality of PCB panels. The plurality of PCB panels include PCB boards distributed in a preset manner, and an identification pattern is pasted on the PCB boards. Please refer to Figure 2 , the production information tracing method may include:

[0043] S210: When the transmission track needs to transmit multiple PCB panels, determine a target shooting device that can capture the target surface from among multiple image shooting devices.

[0044] Wherein, the target surface is the surface where the identification pattern is located on the PCB multi-piece board, and the target surface is any one of the first surface and the second surface relative to the PCB multi-piece board. The PCB multi-piece board can be a board in which multiple individual PCB boards are spliced ​​into an integral whole, so as to facilitate subsequent processing and assembly. Therefore, the PCB multi-piece board includes PCB boards distributed in a preset manner. Each PCB board in the PCB multi-piece board has an identification pattern. The identification pattern can be any one of a bar code and a two-dimensional code. The identification pattern is used to uniquely identify the PCB board. The identification pattern can also be at least one commonly used code among Code39 code, Code128 code, Codabar code, Standard 25 code, Matrix25 code, UPC-A code, QR Code, Code 49, Code 16K, Code One, etc.

[0045] In some cases, not only does the image capture device need to use IDATA's high-resolution, high-frame-rate industrial-grade cameras, but the real-time captured video stream also needs to be transmitted to the subsequent image recognition module. Therefore, in the case where the transmission track needs to transmit multiple PCB panels, if all the multiple image capture devices set around the transmission track are enabled, it will cause a large amount of transmission data, and the amount of data and calculation required to be processed by the image recognition module is also large. Therefore, image capture devices in different positions can be started in different scenarios, and it is not necessary to turn on all image capture devices.

[0046] Specifically, the image capture device that needs to be turned on can be determined according to the identification type information of the PCB multi-piece board, or according to the specific situation in which the PCB multi-piece board appears in the field of view of the image capture device, such as whether the PCB multi-piece board can appear in the field of view of an image capture device. The image capture device that needs to be turned on is recorded as a target capture device. Then, in the case where the transmission track needs to transmit the PCB multi-piece board. The target capture device that can capture the target surface can be determined in multiple image capture devices in combination with the identification type information of the PCB multi-piece board. For example, the identification type information can be used to describe whether the identification pattern pasted on the PCB multi-piece board is a relatively easy-to-identify first type or a difficult-to-identify second type. If it is the first type, an image capture device can be enabled to capture the PCB multi-piece board, that is, an image capture device that can capture the target surface is determined as the target capture device in multiple image capture devices. If it is the second type, two image capture devices need to be enabled. When the PCB multi-piece board just enters the transmission track, the PCB multi-piece board is first captured by the first image capture device. As the transmission track transmits the PCB multi-piece board, the PCB multi-piece board is captured for the second time by the second image capture device. That is, two image capturing devices that can capture the target surface are determined as target capturing devices from among the multiple image capturing devices, and the pasted identification pattern is recognized using the multi-panel image data captured by the first image capturing device and the second image capturing device, so as to improve the recognition accuracy of the second type of identification pattern.

[0047] It should be noted that in the related art, since the identification code on the PCB needs to be calculated according to the pasting order, the related art has certain requirements for the pasting order, that is, the flexibility of the pasting method of the identification pattern needs to be improved, and the pasting method of the identification pattern has a certain impact on the accuracy of barcode recognition. In this embodiment, multiple image capture devices are arranged around the transmission track, and the identification pattern pasted on the PCB is imaged and recognized by at least part of the multiple image capture devices, and the pasting order of the identification pattern is no longer required. Furthermore, no matter which identification pattern is pasted on the PCB, it can be identified by target recognition, so as to achieve flexibility in pasting the identification pattern.

[0048] S220, photographing the target surface by means of a target photographing device to obtain multi-panel image data.

[0049] Specifically, after determining a target shooting device that can shoot the target surface among multiple image shooting devices, the target shooting device is triggered, and the target shooting device shoots the target surface to obtain multi-panel image data. It can be understood that the multi-panel image data includes image data of the PCB board and image data of the logo pattern pasted on the PCB board.

[0050] S230 , identifying the pasted logo pattern based on the multi-panel image data to obtain a target detection frame distributed in a preset manner.

[0051] Specifically, since the PCB multi-panel includes multiple PCB boards distributed in a preset manner, each PCB board is pasted with a corresponding identification pattern, and the multi-panel image data includes image data of each identification pattern, the identification pattern pasted on the PCB board is detected based on the multi-panel image data to obtain a detection frame (Bounding Box) of the identification pattern, that is, a target detection frame. Since the multiple PCB boards are arranged in a preset manner and each PCB board is pasted with an identification pattern, the detected target detection frame can also be arranged in a preset manner.

[0052] S240: Generate traceability information of the PCB board according to the target detection frame and the multi-panel image data.

[0053] Specifically, since the target detection frame can be used to characterize the position of the identification pattern in the multi-panel image data obtained by shooting, the identification area image corresponding to the identification image can be extracted from the multi-panel image data based on the target detection frame. Based on the identification area image, the identification information corresponding to the identification pattern can be obtained. The traceability information of the PCB board is generated using the identification information corresponding to the identification pattern. In one example, the identification area image can be semantically segmented to obtain the identification information corresponding to the identification pattern, or the identification area image can be barcode parsed with the help of a parsing tool to obtain the identification information corresponding to the identification pattern.

[0054] In the above implementation, by arranging multiple image capturing devices around the transmission track, when the transmission track needs to transmit multiple panels of PCB, a target capturing device that can capture the target surface is determined among the multiple image capturing devices; the target surface is captured by the target capturing device to obtain multiple panel image data; the pasted identification pattern is identified based on the multiple panel image data to obtain a target detection frame distributed in a preset manner; and the traceability information of the PCB board is generated based on the target detection frame and the multiple panel image data. A production information traceability system based on visual analysis is implemented, which can meet the needs of various PCB panel numbers and barcode pasting sequences, and no longer requires specific requirements for the PCB panel number and the barcode pasting sequence of multiple panels as in the related art barcode scanning mode. Furthermore, when facing different types of barcodes, there is no need to adjust the image capturing device, let alone debug the image capturing device, so the production information traceability system based on visual analysis improves the convenience of operation.

[0055] It should be noted that the production information traceability system based on visual analysis can include a video acquisition module, an image processing algorithm module, a business logic module, a user interaction interface and a data security module. The video acquisition module is responsible for using a video camera to acquire product barcode images in real time and transmit the acquired images to the subsequent image processing algorithm module. The image algorithm processing module is designed to preprocess the acquired barcode images to improve the image quality and identify and parse the barcodes through the image processing algorithm. The business logic module is the core part of the system and is responsible for receiving the preprocessed image data from the image processing algorithm module, identifying and parsing the barcode information, and associating the identified barcode information with the relevant production information. The user interaction interface module is an important window for the system to interact with the user. It provides functions such as a barcode scanning trigger button and a scanning result display area, so that users can easily perform barcode scanning operations and view the scanning results and related production information. The data security module is an important part of the system and is responsible for protecting the data in the system from unauthorized access, tampering or leakage, and ensuring the confidentiality, integrity and availability of the data. The production information traceability system based on visual analysis can effectively realize the traceability and management of production information, improve production efficiency and product quality, meet user needs, and provide strong support for enterprise development.

[0056] The image algorithm processing module is illustrated by way of example. The collected image is subjected to preliminary denoising, image enhancement, edge detection and other operations to improve the image quality and barcode clarity. A filter (such as a Gaussian filter) is used to remove noise from the image and improve image clarity. Histogram equalization, contrast enhancement and other technologies are used to enhance the contrast and brightness of the image, making the barcode easier to identify. An edge detection algorithm (such as Sobel and Canny operators) is used to detect the barcode edge in the image for subsequent barcode recognition. A deep learning-based algorithm (convolutional neural network) is used to identify and parse the barcode. By building a deep neural network and training the model to achieve end-to-end barcode recognition, the system has a high accuracy and generalization capability. According to the actual application scenarios and requirements, the barcode recognition algorithm is optimized to improve the recognition speed and accuracy. Hardware acceleration technology (GPU acceleration) is used or the algorithm flow is optimized to improve system performance and response speed.

[0057] The business logic module is exemplarily described to receive the pre-processed image data from the image processing algorithm module, and identify and parse the barcode therein. The recognition algorithm can be based on a deep learning-based algorithm or a traditional image processing algorithm. The identified barcode information is associated with relevant production information, such as production batch, production time, product specifications, production equipment parameters, quality information, etc. The relevant production information is obtained through database query or other information management system, and associated with the barcode information. The associated production information is processed to meet different business needs. It involves operations such as data storage, recording, and analysis to achieve traceability and management of production information.

[0058] Exemplarily illustrate the user interaction interface module, design an intuitive and easy-to-use interface, including a user-friendly graphical interface and intuitive operating elements to improve the user experience. Considering the habits and needs of different user groups, design the layout and style of the interface to make it conform to the user's operating habits and aesthetic requirements. Front-end development: Use front-end development technology (HTML, CSS, JavaScript) to implement the interface's interactive and data display functions. Use responsive design to ensure the compatibility and adaptability of the interface on different devices and screen sizes. Design a user feedback mechanism, including operation prompts, error prompts, etc., to promptly feedback the operation results and system status to the user. Display information to the user through pop-up windows, prompt boxes, etc. to improve the user's controllability and security of system operations.

[0059] To illustrate the data security module, the system adopts a user authentication mechanism to ensure that only authenticated users can access the system. A flexible permission control mechanism is designed to control data access according to the user's role and permission to protect data security. Sensitive data transmitted and stored in the system is encrypted, including user identity information, barcode data, production information, etc. The data is encrypted by using strong encryption algorithms (AES, RSA) to ensure the security of data during transmission and storage. A secure transmission protocol (HTTPS) is used for data transmission to prevent data from being eavesdropped or tampered with by middlemen. The confidentiality and integrity of data are ensured during the communication between the system and the client.

[0060] In some embodiments, the transmission track is transparent, and the multiple image capturing devices include a first capturing device and a second capturing device. The first capturing device is disposed above the transmission track, and the second capturing device is disposed below the transmission track. Determining a target capturing device that can capture the target surface among the multiple image capturing devices includes: if the identification pattern is located on a first surface of the PCB multi-piece board away from the transmission track, determining the first capturing device as the target capturing device; or, if the identification pattern is located on a second surface of the PCB multi-piece board facing the transmission track, determining the second capturing device as the target capturing device.

[0061] The PCB multi-panel has two surfaces arranged opposite to each other. During the process of the transmission track transmitting the PCB multi-panel, the surface of the PCB multi-panel away from the transmission track is recorded as the first surface, and the surface of the PCB multi-panel facing the transmission track is recorded as the second surface.

[0062] In some cases, the identification pattern is pasted on the first surface of the PCB multi-panel in some cases and on the second surface in other cases. For the case where the identification pattern is pasted on the first surface, the first shooting device set above the transmission track can be enabled. For the case where the identification pattern is pasted on the second surface, the second shooting device set above the transmission track can be enabled. Therefore, it is necessary to know in advance which side of the PCB multi-panel the identification pattern is pasted on. Therefore, the pasting attribute information that can characterize the pasting surface of the identification pattern can be set in advance for different PCB multi-panels. Specifically, in the case where the transmission track needs to transmit PCB multi-panels, the pasting attribute information corresponding to the PCB multi-panel is obtained. If the pasting attribute information indicates that the identification pattern is located on the first surface of the PCB multi-panel away from the transmission track, the first shooting device is determined to be the target shooting device; if the pasting attribute information indicates that the identification pattern is located on the second surface of the PCB multi-panel facing the transmission track, the second shooting device is determined to be the target shooting device.

[0063] In the above implementation, different shooting devices are activated as target shooting devices for different sticking situations of the identification pattern, so as to ensure that high-quality imaging data of the identification image can be provided while reducing the amount of image data transmission and calculation, thereby improving the recognition efficiency of the identification code.

[0064] In some embodiments, see Figure 3 , based on the target detection frame and multi-panel image data, the traceability information of the PCB board is generated, including:

[0065] S310, parsing the identification pattern based on the target detection frame and the multi-panel image data to obtain the target barcode information of the PCB board.

[0066] S320: Associating production information with the target barcode information of the PCB board to obtain traceability information of the PCB board.

[0067] Among them, the barcode information of the PCB board can be identified through the pyzbar library. Pyzbar can be understood as a Python library for decoding barcodes and QR codes. Specifically, after determining the target detection frame corresponding to the identification pattern, the identification pattern can be parsed based on the target detection frame and the multi-panel image data to obtain the target barcode information of the PCB board. The target barcode information of the PCB board can be the sequence value or index value represented by the identification pattern pasted on the PCB board. The target barcode information of the PCB board is associated and integrated with the production information of the PCB board to obtain the traceability information of the PCB board.

[0068] In some embodiments, see Figure 4 , according to the target barcode information of the PCB board, the production information is associated to obtain the traceability information of the PCB board, including:

[0069] S410: Verify and compare the target barcode information of the PCB board with the reference barcode information in the barcode database to obtain a barcode verification and comparison result.

[0070] S420. If the barcode verification and comparison result indicates that the PCB board is qualified, obtain product production information of the PCB board.

[0071] S430: Merge the target barcode information of the PCB board with the product production information of the PCB board to obtain the traceability information of the PCB board.

[0072] Among them, the production information traceability system is connected to the MES (Manufacturing Execution System) system, which is a computer system or software platform for monitoring and managing the manufacturing process. The implementation of the MES system can usually significantly improve the production efficiency, quality control capabilities and resource utilization of manufacturing enterprises, thereby improving the competitiveness and customer satisfaction of enterprises. Specifically, the MES system is pre-configured with a barcode database, and a number of reference barcode information is stored in the barcode database. After determining the target barcode information of the PCB board, the target barcode information of the PCB board is used to verify and compare with the reference barcode information in the barcode database to obtain the barcode verification and comparison result. If the barcode verification and comparison result shows that the PCB board is qualified, the product production information of the PCB board is obtained according to the target barcode information of the PCB board. Further, the target barcode information of the PCB board is merged with the product production information of the PCB board to obtain the traceability information of the PCB board. It should be noted that if the barcode verification and comparison result shows that the PCB board is unqualified, the target surface is photographed by a target shooting device to obtain multi-panel image data, and image recognition and barcode verification and comparison are performed again.

[0073] In the above implementation, after obtaining the traceability information of the PCB board, the traceability information of the PCB board can be sent to the MES system for storage. Furthermore, the traceability information of the PCB board can also be processed to meet different business needs and realize the traceability and management of production information.

[0074] In some embodiments, see Figure 5a , the target deep learning network consists of a backbone network part, a neck network part, and an output processing part connected in sequence. Figure 5b , based on the multi-panel image data, the pasted logo pattern is recognized to obtain a target detection frame distributed in a preset manner, which may include the following steps:

[0075] S510, inputting the multi-panel image data into the target deep learning network.

[0076] S520, extracting features from the multi-panel image data through the backbone network to obtain identification pattern features.

[0077] S530, performing feature fusion on the identification pattern features through the neck network part to obtain fused features.

[0078] S540, predicting the fusion features of the neck network part through the output processing part to obtain a target detection frame.

[0079] Specifically, since the target deep learning network has been trained in advance, and the target deep learning network is deployed on a computer device that is communicatively connected to the target shooting device. The target surface is photographed by the target shooting device to obtain multi-panel image data. The multi-panel image data is sent to a computer device that is communicatively connected to the target shooting device, so that the multi-panel image data is input into the target deep learning network. The multi-panel image data is feature extracted by the backbone network part of the target deep learning network to obtain the identification pattern feature. The backbone network part is connected to the neck network part, and the identification pattern feature is input into the neck network part. The identification pattern feature is feature fused by the neck network part to obtain the fused feature. The backbone network part is connected to the output processing part, and the fused feature is input into the output processing part. The fused feature of the neck network part is predicted by the output processing part to obtain the target detection frame of the identification pattern.

[0080] In some embodiments, the identification pattern features include shallow features corresponding to multiple sizes and the terminal output of the backbone network part. The backbone network part performs multi-scale feature extraction on the multi-panel image data to obtain the identification pattern features, including: performing multi-scale feature extraction on the multi-panel image data by the backbone network part to obtain shallow features corresponding to multiple sizes and the terminal output of the backbone network part.

[0081] Among them, the backbone network part includes the Focus structure and the C3 module (cross-stage connection module). The slicing operation of the Focus structure can reduce the image resolution without losing image information. The C3 module consists of 3 Conv modules and 1 Bottleneck module. The Focus structure is usually used in the preprocessing stage to reduce the processing burden of high-resolution images, and is suitable for scenes that require fast processing of large-size images. The C3 module is more used in the feature extraction stage. Through multi-layer convolution operations and bottleneck structures, it can effectively extract and enrich the feature representation of the image, and is suitable for target detection tasks that require complex features. Specifically, the backbone network part includes a Focus structure, and multiple groups of Conv modules and C3 modules are connected after the Focus structure. The multi-panel image data is processed by the Focus structure of the backbone network part, and the processed data is output to the Conv module connected thereto. The output of each Conv module is input into the C3 module, and some C3 modules output features of different scales, that is, shallow features corresponding to multiple sizes. The output of the last module of the backbone network part is the terminal output of the backbone network part.

[0082] In some embodiments, the identification pattern features are feature fused through the neck network part to obtain fused features, including: upsampling the terminal output of the backbone network part through the neck network part, and performing feature fusion with the shallow features at the same size to obtain fused features.

[0083] The neck network part includes a Conv module, an upsampling module connected to the Conv module, and a Concat module connected to the upsampling module. For each Concat module, it can fuse the output of the upsampling module with the same size features output by the C3 module of the backbone network part.

[0084] Specifically, the neck network includes a first Conv module, a first upsampling module, a first Concat module, a first C3 module, a second Conv module, a second upsampling module, a second Concat module, a second C3 module, a third Conv module, a first WPANet module, a third C3 module, a fourth Conv module, a second WPANet module, and a fourth C3 module, which are sequentially connected. The first Concat module is used to splice the shallow features of the backbone network part and the features output by the first upsampling module at the same size. The first Concat module is used to splice the shallow features of the C3 module of the backbone network part and the features output by the first upsampling module at the same size. The second Concat module is used to splice the shallow features of the C3 module of the backbone network part and the features output by the second upsampling module at the same size. The first WPANet module is used to perform weighted feature fusion on the shallow features of the Conv module of the backbone network, the features output by the second Conv module, and the features output by the third Conv module at the same size. The second WPANet module is used to perform weighted feature fusion on the shallow features of the Conv module of the backbone network, the features output by the first Conv module, and the features output by the fourth Conv module at the same size.

[0085] In some embodiments, a feature enhancement module is connected to the spatial pyramid pooling module of the backbone network. The feature enhancement module is constructed by embedding a permutation attention mechanism in the cross-stage connection module. The output of the feature enhancement module is used as the terminal output of the backbone network.

[0086] Specifically, the backbone network includes a spatial pyramid pooling module (SPP), to which a feature enhancement module C3SA is connected. The feature enhancement module C3SA is constructed by embedding a permutation attention mechanism in the cross-stage connection module C3. The feature enhancement module C3SA is the terminal module of the backbone network, and the output of the feature enhancement module is used as the terminal output of the backbone network.

[0087] It should be noted that, in general, the nonlinear activation function (such as ReLU) and feature reorganization process introduced in the C3 module help the model to better learn and express nonlinear relationships when processing complex data. In this implementation, the permutation attention mechanism is introduced into the C3 module to construct the feature enhancement module C3SA, which improves the learning performance of the neural network.

[0088] The training process and prediction process of the target deep learning network are illustrated by way of example. Collect barcode photos taken by the camera on the production line, annotate the barcode photos, collect barcode information, and obtain the feature parameters corresponding to the data set labels. Divide the sample set into a training set, a cross-validation set, and a test set. Construct an initial deep learning network. Input the training set data into the initial deep learning network, use the loss function to measure the degree of match between the predicted value and the expected result, and update the network weights to obtain the optimized model. Input the cross-validation set data into the optimized model, and finally obtain the trained model, i.e., the target deep learning network. It is understandable that the test set data is input into the trained model to evaluate its prediction accuracy and generalization ability. The model that meets the requirements can be used for barcode image recognition and detection under different parameters and working conditions.

[0089] In this example, we can collect barcodes captured by cameras on the production line in the past month as a recognition data set, totaling 24,990 images. Each image contains 20 barcodes. We use labelimg to annotate the images, import the OpenCV library to recognize the images, and import the pyzbar library to read the barcode information. Each image can provide the bounding box and attribute information of the barcode. The attribute information can refer to the location information of the barcode sticker. The data in the sample set is randomly divided into a training set (14,994 images), a cross-validation set (4,998 images), and a test set (4,998 images) according to a ratio (for example, 6:2:2).

[0090] In this example, we improve the YOLOv5s algorithm and build a deep learning network prediction model. Figure 5c The improved YOLOv5s network model is mainly composed of four parts: input pre-processing, backbone network, neck network and head. The input pre-processing part uses adaptive image filling and mosaic data enhancement. Mosaic data enhancement randomly arranges 4 pictures into one image by randomly cropping, rotating, scaling, etc. This data enhancement method can effectively improve the accuracy of small target detection and reduce training resource consumption. In addition, an adaptive anchor frame design is also used to better solve the problem of different target sizes in different data sets, providing a more suitable preset anchor frame for the data set.

[0091] In this example, continue to see Figure 5c, the backbone network is mainly composed of the Focus structure and the C3 module. The slicing operation of the Focus structure can reduce the image resolution without losing image information, while the C3 module consists of 3 Conv modules and 1 Bottleneck module. The Bottleneck module contains 2 Conv modules, which implements the dimension reduction first and then the dimension increase operation to understand and obtain more detailed feature information. The neck network adopts the Path Aggregation Network (PAN) to achieve accurate positioning and recognition capabilities of multi-scale targets. The three branches of the output processing are used for the detection output of large, medium and small targets respectively. Based on the original YOLOv5s algorithm, the permutation attention mechanism is embedded in the C3 layer at the end of the backbone network to construct the feature enhancement module C3SA. In the weighted feature fusion stage, the output head used to detect medium and large targets is weightedly fused with the features of the same size in the shallow layer of the backbone. It should be noted that the three Conv2d in the output processing part can refer to different types of barcodes (depending on the size of the input barcode).

[0092] For details, please continue to see Figure 5c , the input preprocessing part processes the 3×640×640 image, and inputs the output of the input preprocessing part into the backbone network. The backbone network includes a focus module (Focus), a first convolution module (Conv), a first cross-stage partial connection module (C3), a second convolution module (Conv), a second cross-stage partial connection module (C3), a third convolution module (Conv), a third cross-stage partial connection module (C3), a fourth convolution module (Conv), a spatial pyramid pooling module (SPP), and a feature enhancement module (C3SA) connected in sequence. Exemplarily, the data dimension output by the focusing module to the first convolution module is 64×320×320, the data dimension output by the first convolution module to the first cross-stage partial connection module is 128×160×160, the data dimension output by the first cross-stage partial connection module to the second convolution module is 128×160×160, the data dimension output by the second convolution module to the second cross-stage partial connection module is 256×80×80, the data dimension output by the second cross-stage partial connection module to the third convolution module is 256×80×80, the data dimension output by the third convolution module to the third cross-stage partial connection module is 512×40×40, the data dimension output by the third cross-stage partial connection module to the fourth convolution module is 512×40×40, the data dimension output by the fourth convolution module to the spatial pyramid pooling module is 1024×20×20, and the data dimension output by the spatial pyramid pooling module to the feature enhancement module is 1024×20×20. The data dimension of the feature enhancement module output to the neck network is 1024×20×20.

[0093] Please continue reading Figure 5c, the neck network includes a fifth convolution module (Conv), a first upsampling module, a first connection module (Concat), a fourth cross-stage partial connection module (C3), a sixth convolution module (Conv), a second upsampling module, a second connection module (Concat), a fifth cross-stage partial connection module (C3), a seventh convolution module (Conv), a first path aggregation module (WPANet), a sixth cross-stage partial connection module (C3), an eighth convolution module (Conv), a second path aggregation module (WPANet) and a seventh cross-stage partial connection module (C3) connected in sequence. Among them, the first connection module (Concat) processes the output of the first upsampling module and the output of the third cross-stage partial connection module. The second connection module (Concat) processes the output of the second upsampling module and the output of the second cross-stage partial connection module. The first path aggregation module (WPANet) processes the output of the third convolution module, the output of the sixth convolution module and the output of the seventh convolution module. The second path aggregation module (WPANet) processes the output of the fourth convolution module, the output of the fifth convolution module and the output of the eighth convolution module. Exemplarily, the fifth convolution module receives 1024×20×20 feature data output by the feature enhancement module. The data dimension output by the fifth convolution module to the first upsampling module is 512×20×20. The data dimension output by the first upsampling module to the first connection module is 512×40×40. The first connection module processes the output of the first upsampling module and the output of the third cross-stage partial connection module, and the data dimension output by the first connection module to the fourth cross-stage partial connection module is 1024×40×40. The data dimension output by the fourth cross-stage partial connection module to the sixth convolution module is 512×40×40. The data dimension output by the sixth convolution module to the second upsampling module is 256×40×40. The data dimension output by the second upsampling module to the second connection module is 256×80×80. The second connection module processes the output of the second upsampling module and the output of the second cross-stage partial connection module, and the data dimension output by the second connection module to the fifth cross-stage partial connection module is 512×80×80. The data dimension output by the fifth cross-stage partial connection module to the seventh convolution module is 256×80×80. The data dimension output by the seventh convolution module to the first path aggregation module is 256×40×40. The first path aggregation module performs feature fusion on the output of the seventh convolution module, the output of the third convolution module, and the output of the sixth convolution module to obtain 512×40×40 fused feature data. The data dimension output by the first path aggregation module to the sixth cross-stage partial connection module is 512×40×40. The data dimension output by the sixth cross-stage partial connection module to the eighth convolution module is 512×40×40. The data dimension output by the eighth convolution module to the second path aggregation module is 512×20×20.The second path aggregation module fuses the output of the eighth convolution module, the output of the fourth convolution module, and the output of the fifth convolution module to obtain fused feature data with a dimension of 1024×20×20. The data dimension output by the second path aggregation module to the seventh cross-stage partial connection module is 1024×20×20.

[0094] Please continue reading Figure 5c , the outputs of the fifth cross-stage partial connection module (C3), the sixth cross-stage partial connection module (C3), and the seventh cross-stage partial connection module (C3) are input to the output processing part. The output processing part includes a first two-dimensional convolution module (Conv2d) connected to the fifth cross-stage partial connection module, a second two-dimensional convolution module (Conv2d) connected to the sixth cross-stage partial connection module, and a third two-dimensional convolution module (Conv2d) connected to the seventh cross-stage partial connection module. The data dimension output by the fifth cross-stage partial connection module to the first two-dimensional convolution module is 256×80×80. The data dimension output by the sixth cross-stage partial connection module to the second two-dimensional convolution module is 512×40×40. The data dimension output by the seventh cross-stage partial connection module to the third two-dimensional convolution module is 1024×20×20.

[0095] In this example, during the training process, the training set data is input into the deep learning network prediction model, and the loss function is used to measure the degree of match between the predicted value and the expected result. The loss function mainly includes three aspects: rectangular box loss (box_loss), confidence loss (obj_loss) and classification loss (cls_loss). The network weights are updated according to the loss function value to obtain the optimized model, and the validation set data is input into the optimized model to finally obtain the trained model.

[0096] In some embodiments, a product detection module is provided in the space above the transmission track; the target surface is photographed by a target shooting device to obtain multi-panel image data, including: when the product detection module detects that the PCB multi-panel has been transferred to the transmission track, the target surface is photographed by the target shooting device to obtain multi-panel image data.

[0097] The product detection module may be an infrared or laser sensing module. The product detection module is in communication with the target shooting device. Specifically, the product detection module detects whether there are multiple PCB panels transmitted to the transmission track. If the product detection module detects that multiple PCB panels have been transmitted to the transmission track, the product detection module may send a trigger signal to the target shooting device, and the target shooting device shoots the target surface to obtain multiple panel image data.

[0098] Exemplarily, if there are multiple target shooting devices that can capture the target surface, the product detection module can send trigger signals to the multiple target shooting devices simultaneously, and each target shooting device can capture the target surface to obtain corresponding multi-panel image data. Alternatively, the multiple target shooting devices include a first target shooting device and a second target shooting device. When a PCB multi-panel is detected, the product detection module can detect the current position of the PCB multi-panel. Among them, the first distance between the first target shooting device and the current position of the PCB multi-panel is smaller than the second distance between the second target shooting device and the current position of the PCB multi-panel, so the product detection module can send a trigger signal to the first target shooting device, and first shoot the target surface through the first target shooting device to obtain corresponding multi-panel image data, then, identify the identification pattern based on the multi-panel image data shot by the first target shooting device to obtain a first recognition result, perform barcode parsing according to the first recognition result to obtain first barcode information, if the first barcode information obtained is qualified, the second target shooting device may be disabled, if the first barcode information obtained is unqualified, enable the second target shooting device to shoot the target surface to obtain corresponding multi-panel image data, then, identify the identification pattern based on the multi-panel image data shot by the second target shooting device to obtain a second recognition result, perform barcode parsing according to the second recognition result to obtain second barcode information, and generate traceability information of the PCB board in the PCB multi-panel based on the second barcode information.

[0099] In some embodiments, see Figure 6 The transmission track is provided with a feed end and a discharge end; a feed shooting device is provided at the feed end, and a discharge shooting device is provided at the discharge end. The target shooting device includes a feed shooting device and a discharge shooting device. The target shooting device is used to shoot the target surface to obtain multi-piece image data, including:

[0100] S610, photographing the target surface through a feed photographing device to obtain feed end image data.

[0101] S620, photographing the target surface through the material discharging photographing device to obtain material discharging end image data.

[0102] Accordingly, the pasted logo pattern is recognized based on the multi-panel image data to obtain a target detection frame distributed in a preset manner, including:

[0103] S630: Identify the identification pattern based on the image data of the feeding end and the image data of the discharging end to obtain a target detection frame distributed in a preset manner.

[0104] Specifically, a feed shooting device is provided at the feed end, and a discharge shooting device is provided at the discharge end, and a plurality of image shooting devices provided around the transmission track include a feed shooting device and a discharge shooting device. It is understandable that image shooting devices may also be provided at other positions of the transmission track except the feed end and the discharge end. The feed shooting device and the discharge shooting device may be determined as target shooting devices among a plurality of image shooting devices in combination with the actual situation of multiple PCB panels. The target surface is photographed by the feed shooting device to obtain the feed end image data. The target surface is photographed by the discharge shooting device to obtain the discharge end image data. The identification pattern may be identified according to the feed end image data to obtain the corresponding first detection frame, and the identification pattern may be identified according to the discharge end image data to obtain the corresponding second detection frame, and verification and comparison processing may be performed based on the first detection frame and the second detection frame to obtain the target detection frame distributed in a preset manner.

[0105] In some embodiments, see Figure 7 , based on the image data of the feeding end and the image data of the discharging end, the identification pattern is recognized to obtain the target detection frame distributed in a preset manner, including:

[0106] S710: Identify the identification pattern based on the feed end image data to obtain a first detection frame.

[0107] S720: parse the identification pattern based on the first detection frame and the feed end image data to obtain initial barcode information of the PCB board.

[0108] S730: If the initial barcode information is inconsistent with the reference barcode information in the barcode database, the identification pattern is identified based on the discharge end image data to obtain a target detection frame.

[0109] Among them, the barcode information of the PCB board can be identified by the pyzbar library. Specifically, after target detection is performed on the image data at the feed end, a first detection frame corresponding to the identification pattern is obtained. The identification pattern is parsed based on the first detection frame and the image data at the feed end to obtain the initial barcode information of the PCB board. The initial barcode information of the PCB board is verified and compared with the reference barcode information in the barcode database to obtain the barcode verification and comparison result. If the initial barcode information is inconsistent with the reference barcode information in the barcode database, after target detection is performed on the image data at the discharge end, a second detection frame corresponding to the identification pattern is obtained, and the target detection frame is determined based on the second detection frame. It should be noted that if the barcode information obtained by parsing the identification pattern based on the second detection frame and the image data at the discharge end is still inconsistent with the reference barcode information in the barcode database, the target surface can continue to be photographed by the target shooting device, and image recognition and barcode verification and comparison can be performed again.

[0110] In the above implementation, the identification pattern is double-verified by using the image data of the feeding end and the image data of the discharging end, thereby improving the accuracy and credibility of the traceability information.

[0111] In some implementations, the target surface is determined by: determining the pasting method information of the identification pattern according to the work order information of the PCB multiple panels, wherein the pasting method information is used to describe the target surface where the identification pattern is located on the PCB multiple panels.

[0112] Specifically, different work orders corresponding to different pasting methods may be pre-configured, and different pasting methods correspond to different image capture devices. Therefore, when producing multiple PCB panels, the pasting method information of the identification pattern is obtained according to the work order information of the multiple PCB panels, and the target surface where the identification pattern is located on the multiple PCB panels is determined based on the pasting method information, so as to determine the target shooting device that can capture the target surface from among multiple image capture devices.

[0113] In some embodiments, the transmission track is transparent, and the multiple image capturing devices include a first capturing device and a second capturing device. The first capturing device and the product detection module are disposed above the transmission track, and the second capturing device is disposed below the transmission track. Determining a target capturing device that can capture the target surface from among the multiple image capturing devices includes: when the product detection module detects that the PCB multi-panel has been transferred to the transmission track, triggering the corresponding first capturing device and the second capturing device to perform simultaneous capturing according to the work order information of the PCB multi-panel, and determining the triggered first capturing device and the second capturing device as the target capturing device.

[0114] Specifically, the product detection module can be a sensing module using infrared or laser. The product detection module is in communication connection with the target shooting device. The product detection module detects whether there are PCB panels transmitted to the transmission track. If the product detection module detects that the PCB panels have been transmitted to the transmission track, the work order information of the PCB panels is obtained. If the work order information of the PCB panels indicates that the two opposite surfaces of the PCB panels need to be photographed, the first shooting device and the second shooting device are triggered to shoot simultaneously, and the triggered first shooting device and the second shooting device are determined as the target shooting devices.

[0115] The embodiment of this specification also provides a production information tracing device, which is applied to a production line system, wherein the production line system includes a transmission track, and a plurality of image capturing devices are arranged around the transmission track, and the transmission track is used to transmit a plurality of PCB panels, wherein the plurality of PCB panels include PCB boards distributed in a preset manner, and the PCB boards are pasted with identification patterns. Figure 8The production information tracing device 800 includes a shooting device determining module 810 , a target surface shooting module 820 , an identification pattern recognition module 830 and a tracing information producing module 840 .

[0116] The shooting device determination module 810 is used to determine a target shooting device that can shoot a target surface from among the multiple image shooting devices when the transmission track needs to transmit the PCB multiple panels; wherein the target surface is the surface where the identification pattern is located on the PCB multiple panels, and the target surface is any one of the first surface and the second surface opposite to each other on the PCB multiple panels;

[0117] A target surface shooting module 820 is used to shoot the target surface through the target shooting device to obtain multi-panel image data;

[0118] The identification pattern recognition module 830 is used to recognize the pasted identification pattern based on the multi-panel image data to obtain a target detection frame distributed in the preset manner;

[0119] The traceability information production module 840 is used to generate the traceability information of the PCB board according to the target detection frame and the multi-panel image data.

[0120] For the specific definition of the production information tracing device, please refer to the definition of the production information tracing method above, which will not be repeated here. Each module in the above-mentioned production information tracing device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0121] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store production-related data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a production information tracing method is implemented.

[0122] The present specification also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in any of the above embodiments when executing the computer program.

[0123] The present specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any of the above embodiments are implemented.

[0124] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or equipment (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or equipment and execute instructions), or in combination with these instruction execution systems, devices or equipment. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or equipment, or in combination with these instruction execution systems, devices or equipment. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0125] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0126] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0127] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0128] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0129] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A production information tracing method, characterized in that: Applied to a production line system, the production line system includes a transmission track, a product detection module is arranged in the space above the transmission track; a plurality of image shooting devices are arranged around the transmission track, and the transmission track is provided with a feeding end and a discharging end; the plurality of image shooting devices include a feeding shooting device arranged at the feeding end and a discharging shooting device arranged at the discharging end; the transmission track is used to transmit PCB multi-pieces, the PCB multi-pieces include PCB boards distributed in a preset manner, and each PCB board in the PCB multi-pieces is pasted with an identification pattern; the surface where the identification pattern is located on the PCB multi-pieces is recorded as the target surface; The target surface is any one of the first surface and the second surface opposite to each other on the PCB multi-panel; the method comprises: In the case where the transmission track needs to transmit the PCB multiple panels, determine the identification type information of the PCB multiple panels; wherein the identification type information is used to describe whether the identification pattern pasted on the PCB multiple panels is a first type that is relatively easy to identify or a second type that is difficult to identify; According to the identification type information of the PCB multi-piece panel, a target shooting device capable of shooting the target surface is determined from among the multiple image shooting devices; wherein, if it is the first type, one image shooting device is enabled to shoot the PCB multi-piece panel, so as to determine one image shooting device capable of shooting the target surface from among the multiple image shooting devices as the target shooting device; if it is the second type, two image shooting devices need to be enabled as the target shooting devices, and when the PCB multi-piece panel just enters the transmission track, the PCB multi-piece panel is shot for the first time by the first image shooting device, and then, as the PCB multi-piece panel is transmitted by the transmission track, the PCB multi-piece panel is shot for the second time by the second image shooting device; the two enabled image shooting devices include the feeding shooting device and the discharging shooting device; In the case where the product detection module detects that the PCB multi-panel has been transferred to the transmission track, the target surface is photographed by the target shooting device to obtain multi-panel image data; wherein the pasting method information of the identification pattern is determined according to the work order information of the PCB multi-panel; the pasting method information is used to describe the target surface where the identification pattern is located on the PCB multi-panel; the target surface is photographed by the target shooting device to obtain multi-panel image data, including: photographing the target surface by the feed shooting device to obtain feed end image data; photographing the target surface by the discharge shooting device to obtain discharge end image data; Based on the multi-panel image data, the pasted logo pattern is identified to obtain a target detection frame distributed in the preset manner; wherein the identification pattern recognition process includes: inputting the multi-panel image data into a target deep learning network; wherein the target deep learning network includes a backbone network part, a neck network part and an output processing part connected in sequence; a feature enhancement module is connected to the spatial pyramid pooling module of the backbone network part, and the feature enhancement module is constructed by embedding a permutation attention mechanism in a cross-stage connection module; the output of the feature enhancement module is used as the terminal output of the backbone network part; multi-scale feature extraction is performed on the multi-panel image data through the backbone network part to obtain shallow features corresponding to multiple sizes and the terminal output of the backbone network part; the terminal output of the backbone network part is upsampled through the neck network part, and Perform feature fusion on the same scale as the shallow feature to obtain the fusion feature of the neck network part; predict the fusion feature of the neck network part through the output processing part to obtain a target detection frame; identify the pasted identification pattern based on the multi-panel image data to obtain a target detection frame distributed in the preset manner, including: identifying the identification pattern based on the feed end image data to obtain a first detection frame; parsing the identification pattern based on the first detection frame and the feed end image data to obtain the initial barcode information of the PCB board; if the initial barcode information is inconsistent with the reference barcode information in the barcode database, identify the identification pattern based on the discharge end image data to obtain a second detection frame; verify and compare the first detection frame and the second detection frame to obtain a target detection frame distributed in the preset manner; The traceability information of the PCB board is generated according to the target detection frame and the multi-panel image data.

2. The method according to claim 1, characterized in that The transmission track is transparent, and the plurality of image capturing devices include a first capturing device and a second capturing device; the first capturing device is disposed above the transmission track, and the second capturing device is disposed below the transmission track; The step of determining a target photographing device capable of photographing the target surface from among the plurality of image photographing devices further comprises: If the identification pattern is located on the first surface of the PCB multi-panel away from the transmission track, determining that the first shooting device is the target shooting device; If the identification pattern is located on the second surface of the PCB multi-panel facing the transmission track, it is determined that the second shooting device is the target shooting device.

3. The method according to claim 1, characterized in that The generating the traceability information of the PCB board according to the target detection frame and the multi-panel image data includes: Parsing the identification pattern based on the target detection frame and the multi-panel image data to obtain target barcode information of the PCB board; Production information is associated with the target barcode information of the PCB board to obtain traceability information of the PCB board.

4. The method according to claim 3, characterized in that The step of associating production information according to the target barcode information of the PCB board to obtain the traceability information of the PCB board includes: Using the target barcode information of the PCB board to verify and compare with the reference barcode information in the barcode database, to obtain a barcode verification and comparison result; If the barcode verification and comparison result shows that the PCB board is qualified, obtaining the product production information of the PCB board; The target barcode information of the PCB board is combined with the product production information of the PCB board to obtain the traceability information of the PCB board.

5. The method according to claim 1, characterized in that: The transmission track is transparent, and the multiple image capturing devices include a first capturing device and a second capturing device; the first capturing device and a product detection module are arranged above the transmission track, and the second capturing device is arranged below the transmission track; The step of determining a target shooting device capable of shooting a target surface from among the plurality of image shooting devices further comprises: When it is detected by the product detection module that the PCB panel has been transferred to the transmission track, the corresponding first shooting device and the second shooting device are triggered according to the work order information of the PCB panel to perform simultaneous shooting, and the triggered first shooting device and the second shooting device are determined as the target shooting devices.

6. A production information tracing device, characterized in that: Applied to a production line system, the production line system includes a transmission track, a product detection module is arranged in the space above the transmission track; a plurality of image shooting devices are arranged around the transmission track, and the transmission track is provided with a feeding end and a discharging end; the plurality of image shooting devices include a feeding shooting device arranged at the feeding end and a discharging shooting device arranged at the discharging end; the transmission track is used to transmit PCB multi-pieces, the PCB multi-pieces include PCB boards distributed in a preset manner, and each PCB board in the PCB multi-pieces is pasted with an identification pattern; the surface where the identification pattern is located on the PCB multi-pieces is recorded as the target surface; The target surface is any one of the first surface and the second surface opposite to each other on the PCB multi-panel; the device comprises: A shooting device determination module, used for determining the identification type information of the PCB multi-panel when the transmission track needs to transmit the PCB multi-panel; wherein the identification type information is used to describe whether the identification pattern pasted on the PCB multi-panel is a first type that is relatively easy to identify or a second type that is difficult to identify; according to the identification type information of the PCB multi-panel, a target shooting device that can shoot the target surface is determined from the multiple image shooting devices; wherein, if it is the first type, one image shooting device is enabled to shoot the PCB multi-panel, so as to determine one image shooting device that can shoot the target surface from the multiple image shooting devices as the target shooting device; if it is the second type, two image shooting devices need to be enabled as the target shooting devices, and when the PCB multi-panel just enters the transmission track, after the PCB multi-panel is shot for the first time by the first image shooting device, as the PCB multi-panel is transmitted by the transmission track, the PCB multi-panel is shot for the second time by the second image shooting device; the two enabled image shooting devices include the feeding shooting device and the discharging shooting device; A target surface shooting module is used to shoot the target surface through the target shooting device to obtain multi-panel image data when the product detection module detects that the PCB multi-panel has been transferred to the transmission track; wherein the pasting method information of the identification pattern is determined according to the work order information of the PCB multi-panel; the pasting method information is used to describe the target surface where the identification pattern is located on the PCB multi-panel; the target surface is shot by the target shooting device to obtain multi-panel image data, including: shooting the target surface by the feed shooting device to obtain feed end image data; shooting the target surface by the discharge shooting device to obtain discharge end image data; A logo pattern recognition module is used to recognize the pasted logo pattern based on the multi-panel image data to obtain a target detection frame distributed in the preset manner; wherein the logo pattern recognition process includes: inputting the multi-panel image data into a target deep learning network; wherein the target deep learning network includes a backbone network part, a neck network part and an output processing part connected in sequence; a feature enhancement module is connected to the spatial pyramid pooling module of the backbone network part, and the feature enhancement module is constructed by embedding a permutation attention mechanism in a cross-stage connection module; the output of the feature enhancement module is used as the terminal output of the backbone network part; multi-scale feature extraction is performed on the multi-panel image data by the backbone network part to obtain shallow features corresponding to multiple sizes and the terminal output of the backbone network part; the terminal output of the backbone network part is processed by the neck network part The method comprises the following steps: sampling the rows, and performing feature fusion with the shallow features at the same size to obtain the fusion features of the neck network part; predicting the fusion features of the neck network part through the output processing part to obtain a target detection frame; recognizing the pasted identification pattern based on the multi-panel image data to obtain a target detection frame distributed in the preset manner, including: recognizing the identification pattern based on the feed end image data to obtain a first detection frame; parsing the identification pattern based on the first detection frame and the feed end image data to obtain the initial barcode information of the PCB board; if the initial barcode information is inconsistent with the reference barcode information in the barcode database, recognizing the identification pattern based on the discharge end image data to obtain a second detection frame; performing verification and comparison processing based on the first detection frame and the second detection frame to obtain a target detection frame distributed in the preset manner; The traceability information production module is used to generate the traceability information of the PCB board according to the target detection frame and the multi-panel image data.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.