Mobile phone mainboard assembly detection method and system based on digital X-ray imaging
Through a method based on digital X-ray imaging, the image set information is input into the deep learning model to generate motherboard parts inspection results, which solves the problem of low accuracy in mobile phone motherboard assembly quality inspection and achieves high-accuracy inspection.
Patent Information
- Application Number
- CN202410636015.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, the detection accuracy of mobile phone motherboard assembly quality inspection is low, and there is a lack of dedicated deep learning algorithm models.
Using a method based on digital X-ray imaging, the image set information of the motherboard to be inspected is obtained, and input into the trained deep learning target detection model to generate motherboard parts inspection result information, determine assembly quality information, and provide assembly quality dedicated to mobile phone motherboards. Deep learning algorithm model for detection.
It significantly improves the detection accuracy, achieves high-accuracy detection of the assembly quality of mobile phone motherboards, and solves the problem of low detection accuracy.
Smart Images

Figure CN118566264A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of nondestructive testing, and in particular to a method and system for assembling and testing a mobile phone motherboard based on digital X-ray imaging. Background Art
[0002] As the core equipment of intelligent manufacturing, intelligent detection equipment has not only promoted the advanced development of the industrial base, but also played a core role in stabilizing production, ensuring product quality, improving manufacturing efficiency and ensuring service safety. Intelligent detection equipment is of vital importance to accelerating the high-end, intelligent and green transformation of the manufacturing industry, and enhancing the resilience and security of the industrial chain and supply chain.
[0003] At present, there is a lack of dedicated deep learning algorithm models in the quality inspection of mobile phone motherboard assembly, and there is a problem of low detection accuracy, which needs further improvement. Summary of the invention
[0004] Based on this, an embodiment of the present application provides a mobile phone motherboard assembly detection method and system based on digital X-ray imaging to solve the problem of low detection accuracy in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for assembling and inspecting a mobile phone motherboard based on digital X-ray imaging, the method comprising:
[0006] Acquire the image set information to be detected of the mainboard to be detected, wherein the image set information to be detected includes at least one image information to be detected;
[0007] Input the image set information to be detected into the trained deep learning target detection model to generate motherboard parts detection result information;
[0008] The mainboard assembly quality information is determined according to the mainboard component detection result information, wherein the mainboard assembly quality information includes qualified assembly quality information or poor assembly quality information.
[0009] Compared with the prior art, the beneficial effect is that in the mobile phone motherboard assembly detection method based on digital X-ray imaging provided in the embodiment of the present application, the terminal device can first obtain the image set information to be detected of the motherboard to be detected, and then input the image set information to be detected into the trained deep learning target detection model, accurately generate the motherboard part detection result information, and then accurately determine the motherboard assembly quality information based on the motherboard part detection result information, thereby providing a deep learning algorithm model dedicated to mobile phone motherboard assembly quality detection, which is conducive to high-accuracy detection of the mobile phone motherboard assembly quality, greatly improves the detection accuracy, and to a certain extent solves the current problem of low detection accuracy.
[0010] In a second aspect, an embodiment of the present application provides a mobile phone motherboard assembly detection system based on digital X-ray imaging, the system comprising:
[0011] The module for acquiring the image set information to be detected is used to acquire the image set information to be detected of the mainboard to be detected, wherein the image set information to be detected includes at least one image information to be detected;
[0012] Mainboard parts detection result information generation module: used to input the image set information to be detected into the trained deep learning target detection model to generate mainboard parts detection result information;
[0013] Mainboard assembly quality information determination module: used to determine the mainboard assembly quality information according to the mainboard parts detection result information, wherein the mainboard assembly quality information includes qualified assembly quality information or poor assembly quality information.
[0014] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect described above when executing the computer program.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.
[0016] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0018] Figure 1 It is a flow chart of a mobile phone motherboard assembly detection method provided by an embodiment of the present application;
[0019] Figure 2 It is a schematic diagram of the process before step S100 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0020] Figure 3 It is a flow chart of step S101 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0021] Figure 4 It is a flow chart of step S102 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0022] Figure 5 It is a flow chart of step S103 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of the flow chart before step S1022 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0024] Figure 7 It is a flow chart of step S1022 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0025] Figure 8 It is a schematic diagram of the process after step S200 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0026] Fig. 9 It is a flow chart after step S300 in the mobile phone motherboard assembly detection method provided in one embodiment of the present application;
[0027] Fig.10 is a module block diagram of an assembly detection system provided by an embodiment of the present application;
[0028] Fig.11 It is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0030] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0031] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0032] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0033] See also Figure 1 , Figure 1 : is a flow chart of a mobile phone motherboard assembly detection method based on digital X-ray imaging provided in an embodiment of the present application. In this embodiment, the execution subject of the mobile phone motherboard assembly detection method is a terminal device. It is understandable that the types of terminal devices include but are not limited to mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), netbooks, personal digital assistants (Personal Digital Assistant, PDA), etc., and the embodiments of the present application do not impose any restrictions on the specific types of terminal devices.
[0034] See also Figure 1 The mobile phone motherboard assembly detection method provided in the embodiment of the present application includes but is not limited to the following steps:
[0035] In S100, the image set information to be inspected of the mainboard to be inspected is obtained.
[0036] Specifically, the terminal device can first obtain the image set information to be detected of the motherboard to be detected, wherein the motherboard to be detected is used to describe the mobile phone motherboard to be assembled quality tested, and the image set information to be detected includes at least one image information to be detected, and the image information to be detected can be an X-ray image.
[0037] In some possible implementations, in order to build a deep learning algorithm model dedicated to mobile phone motherboard assembly quality inspection, please refer to Figure 2 Before step S100, the method further includes but is not limited to the following steps:
[0038] In S101, mainboard assembly data set information and a deep learning target detection model to be trained are obtained.
[0039] Specifically, the terminal device can first obtain the motherboard assembly data set information and obtain the deep learning target detection model to be trained, wherein the deep learning target detection model can be a target detection model based on Faster R-CNN, YOLO, DETR or Mask R-CNN.
[0040] In S102, the deep learning target detection model to be trained is trained according to the motherboard assembly data set information to generate a trained deep learning target detection model.
[0041] Specifically, after obtaining the motherboard assembly dataset information and the deep learning target detection model to be trained, the terminal device can train the deep learning target detection model to be trained based on the motherboard assembly dataset information to generate a trained deep learning target detection model.
[0042] In some possible implementations, in order to facilitate the effective training of deep learning object detection models, please refer to Figure 3 Step S101 includes but is not limited to the following steps:
[0043] In S1011, mainboard image set information of the first mainboard is obtained based on a preset electromagnetic wave detection device.
[0044] Specifically, the terminal device can obtain the motherboard image set information of the first motherboard based on a preset electromagnetic wave detection device, wherein the electromagnetic wave detection device can be a digital X-ray flat-panel detector; the motherboard image set information includes multiple motherboard image information, the motherboard image information can be an X-ray imaging image, and the bit depths corresponding to the multiple motherboard image information are different.
[0045] Exemplarily, in the assembly quality inspection scenario of a mobile phone motherboard, a rack, an X-ray source, a digital X-ray flat-panel detector, a casing and a conveying device can be pre-set, wherein the X-ray source is threadedly connected to the lower part of the rack and the front of the X-ray source is vertically upward; the digital X-ray flat-panel detector is threadedly connected to the top of the rack and the front of the digital X-ray flat-panel detector is vertically downward.
[0046] Without loss of generality, there is a suitable space between the rack, the X-ray flat panel and the X-ray source to layout a conveying device for conveying the mobile phone motherboard, and the conveying device is preferably made of non-metallic materials; the casing is used to fully enclose the rack, the digital X-ray flat panel detector and the X-ray source, and the casing can only retain the inlet and outlet of the conveying device, and the casing can meet various X-ray health protection standards at the same time.
[0047] In S1012, image bit depth information corresponding to each mainboard image information is obtained.
[0048] Specifically, the terminal device may obtain image bit depth information corresponding to each mainboard image information, wherein the image bit depth information is used to describe the bit depth corresponding to the mainboard image information.
[0049] In S1013, for each mainboard image information: based on the image bit depth information, image conversion processing is performed on the mainboard image information to generate pre-processed image information.
[0050] Specifically, the terminal device may perform the processing on each mainboard image information: based on the image bit depth information, perform image conversion processing on the mainboard image information to generate pre-processed image information.
[0051] In S1014, a deep learning target detection model to be trained is obtained.
[0052] Specifically, the terminal device can simultaneously obtain the deep learning target detection model to be trained.
[0053] In order to further facilitate the construction of effective deep learning object detection models, see some possible implementations. Figure 4 Step S1013 includes but is not limited to the following steps:
[0054] In S10131, for each mainboard image information: compare the image bit depth information with the preset first bit depth threshold information.
[0055] Specifically, the terminal device may perform the processing on each mainboard image information: compare the image bit depth information with the preset first bit depth threshold information, wherein the first bit depth threshold information is 8.
[0056] In S10132, if the image bit depth information is equal to the first bit depth threshold information, a first conversion process is performed on the main board image information to generate first processed image information.
[0057] Specifically, if the image bit depth information is equal to the first bit depth threshold information, the terminal device can perform a first conversion process on the mainboard image information to generate a first processed image information, thereby converting the mainboard image information of different bit depths into a 3-channel image, wherein the first processed image information can be in the form of IM X-ray =[IM 1 IM 2 IM 3 ], where IM 1 Indicates the first image channel information, IM 2 Represents the second image channel information, IM 3 The third image channel information, IM 1 =IM 2 =IM 3 =I X-ray .
[0058] Without loss of generality, if the first processed image information is regarded as an image in RGB format, the first processed image information may be in the form of IM X-ray =[IM R IM G IM B ].
[0059] In S10133, if the image bit depth information is greater than the first bit depth threshold information, the image bit depth information is compared with the preset second bit depth threshold information.
[0060] Specifically, if the image bit depth information is greater than the first bit depth threshold information, the terminal device may compare the image bit depth information with preset second bit depth threshold information, where the second bit depth threshold information is 16.
[0061] In S10134, if the image bit depth information is less than or equal to the second bit depth threshold, a second conversion process is performed on the mainboard image information to generate second processed image information.
[0062] Specifically, if the image bit depth information is less than or equal to the second bit depth threshold, that is, D bit >8 and D bit ≤16, the terminal device can perform a second conversion process on the mainboard image information to generate second processed image information, wherein the second processed image information can be in the form of IM X-ray =[IM 1 IM 2 IM 3 ], where IM 1 Indicates the first image channel information, IM 2 Represents the second image channel information, IM 3 The third image channel information, IM 1 =I X-ray (;,;,1:8),IM 2 =[(;,;,9:D bit ), IM 3 =0,D bit Indicates the image bit depth information corresponding to the motherboard image information.
[0063] In S10135, if the image bit depth information is greater than the second bit depth threshold, the image bit depth information is compared with a preset third bit depth threshold information.
[0064] Specifically, if the image bit depth information is greater than the second bit depth threshold, the terminal device may compare the image bit depth information with a preset third bit depth threshold information, where the third bit depth threshold information is 24.
[0065] In S10136, if the image bit depth information is less than or equal to the second bit depth threshold, a third conversion process is performed on the mainboard image information to generate third processed image information.
[0066] Specifically, if the image bit depth information is less than or equal to the second bit depth threshold, that is, D bit >16 and D bit ≤24, the terminal device can perform a third conversion process on the mainboard image information to generate third processed image information, wherein the third processed image information can be in the form of IM X-ray =[IM 1 IM 2 IM 3 ], where IM 1 Indicates the first image channel information, IM 2 Represents the second image channel information, IM 3 The third image channel information, IM 1 =I X-ray (;,;,1:8),IM 2 =(;,;,9:16),IM 3 =[(;,;,16:D bit ), D bit Indicates the image bit depth information corresponding to the motherboard image information.
[0067] In some possible implementations, to generate a trained deep learning object detection model, see Figure 5 Step S102 includes but is not limited to the following steps:
[0068] In S1021, based on the preset annotation software, each pre-processed image information is annotated and processed, and the multiple pre-processed image information are divided into model training set information, model test set information and model verification set information.
[0069] Specifically, the terminal device can annotate each preprocessed image information based on a preset annotation software, mark a bounding box (Bounding Box) and a mask (Mask), and divide the multiple preprocessed image information into model training set information, model test set information and model verification set information, wherein the annotation software can be open source free annotation software such as Labelme or VGG ImageAnnotator.
[0070] In S1022, the deep learning target detection model to be trained is trained according to the model training set information, the model test set information and the model verification set information to generate a trained deep learning target detection model.
[0071] Specifically, the terminal device can train the deep learning target detection model to be trained according to the model training set information, the model test set information and the model verification set information to generate a trained deep learning target detection model.
[0072] In some possible implementations, to optimize resource allocation, see Figure 6 Before step S1022, the method further includes but is not limited to the following steps:
[0073] In S10221, initial data type information is obtained.
[0074] Specifically, the terminal device may first obtain the initial data type information, wherein the initial data type information may be expressed as N CLS_O .
[0075] In S10222, target quantity information is determined based on the initial data type information.
[0076] Specifically, the terminal device can determine the target quantity information according to the initial data type information, wherein the target quantity information can be expressed as N CLS_model The target quantity information is any integer between 1.3 times the initial data type information and 1.5 times the initial data type information, that is, N CLS_model =(1.3~1.5)N CLS_O .
[0077] Without loss of generality, the terminal device can select a target detection model with appropriate capacity based on the label reservation technology. The appropriate capacity is used to describe the prerequisite for achieving high accuracy in model training set information, model test set information and model validation set information after the target detection model is combined with different backbone networks.
[0078] In S10223, the input quantity and output quantity corresponding to the Softmax layer of the deep learning target detection model to be trained are set as the target quantity information.
[0079] Specifically, the terminal device can set the input number and output number corresponding to the Softmax layer of the deep learning target detection model to be trained as the target number information, thereby setting the number of identifiable types of the target detection model based on the label reservation technology.
[0080] In S10224, the number of output neurons corresponding to the fully connected layer of the deep learning target detection model to be trained is set as the target number information.
[0081] Specifically, the terminal device can set the number of output neurons corresponding to the fully connected layer of the deep learning target detection model to be trained as the target number information, where the fully connected layer is located before the Softmax layer.
[0082] In some possible implementations, in order to improve the detection accuracy, please refer to Figure 7 Step S1022 includes but is not limited to the following steps:
[0083] In S1023, based on the transfer learning paradigm, the deep learning target detection model to be trained is trained according to the model training set information to generate an initially trained deep learning target detection model.
[0084] Specifically, the terminal device can train the deep learning target detection model to be trained based on the transfer learning paradigm and the model training set information to generate an initially trained deep learning target detection model.
[0085] In S1024, based on the model verification set information, the average precision mean information, the precision mean information and the component recognition accuracy information corresponding to the initially trained deep learning target detection model are obtained.
[0086] Specifically, the terminal device can obtain the average precision mean information, precision mean information and component recognition accuracy information corresponding to the initially trained deep learning target detection model based on the model verification set information, where the average precision mean information can be expressed as mAP, and the precision mean information can be expressed as AP 0.5 ,The component recognition accuracy information can be expressed as TP.
[0087] Without loss of generality, the average precision mean information is used to describe the positioning accuracy corresponding to the bounding box in the output result of the deep learning target detection model; the precision mean information is used to describe the accuracy corresponding to the bounding box in the output result of the deep learning target detection model; the component recognition accuracy rate information is used to describe the accuracy corresponding to the bounding box in the output result of the deep learning target detection model, and the accuracy is manually determined. It should be noted that the above output results can be components such as chips or capacitors on the motherboard of a smartphone.
[0088] In S1025, if the average precision mean information is less than the preset average precision mean limit information, the precision mean information is less than the preset precision mean limit information, and / or the component recognition accuracy information is less than the preset component recognition accuracy limit information, then according to the model test set information, adjust the hyperparameters corresponding to the initially trained deep learning target detection model, and perform the training process again until the average precision mean information is greater than the preset average precision mean limit information, the precision mean information is greater than the preset precision mean limit information, and the component recognition accuracy information is greater than the preset component recognition accuracy limit information.
[0089] Specifically, if the average precision mean information is less than the preset average precision mean limit information, the precision mean information is less than the preset precision mean limit information, and / or the component recognition accuracy information is less than the preset component recognition accuracy limit information, the terminal device can adjust the hyperparameters corresponding to the initially trained deep learning target detection model according to the model test set information, and perform the training process again, that is, the above steps S1023 to S1024, until the average precision mean information is greater than the preset average precision mean limit information, the precision mean information is greater than the preset precision mean limit information, and the component recognition accuracy information is greater than the preset component recognition accuracy limit information.
[0090] Without loss of generality, the precision mean limit information may be 90%; the component recognition accuracy limit information may be 99.5%, and the component recognition accuracy limit information is preferably 100%.
[0091] In S200, the image set information to be detected is input into the trained deep learning target detection model to generate the mainboard parts detection result information.
[0092] Specifically, the terminal device can input the image set information to be detected into the trained deep learning target detection model to accurately generate the motherboard part detection result information, wherein the motherboard part detection result information includes the part horizontal position information, part vertical position information, part type information and rotation direction information of each motherboard part; the motherboard part is used to describe any component assembled on the motherboard to be detected; the part type information can be expressed as C cls_i , where i represents the i-th installation position on the mobile phone motherboard.
[0093] In some possible implementations, in order to accurately detect the assembly quality of mobile phone motherboards, please refer to Figure 8 After step S200, the method further includes but is not limited to the following steps:
[0094] In S210, for each mainboard part: based on the part type information, obtain the reference horizontal position information, reference vertical position information and reference direction information of the mainboard part.
[0095] Specifically, the terminal device can perform the processing for each motherboard part: based on the part type information, obtain the reference horizontal position information, reference vertical position information and reference direction information of the motherboard part, wherein the reference horizontal position information can be expressed as x i , the reference vertical position information can be expressed as y i , the reference direction information can be expressed as σ θi .
[0096] In S220, horizontal position allowable deviation range information is generated based on the reference horizontal position information, the preset horizontal position allowable positive deviation information, and the preset horizontal position allowable negative deviation information.
[0097] Specifically, the terminal device can generate horizontal position allowable deviation range information based on the reference horizontal position information, the preset horizontal position allowable positive deviation information and the preset horizontal position allowable negative deviation information, wherein the horizontal position allowable deviation range information can be expressed as [-σ xi- ,σ xi+ ], where σ xi- Indicates the negative deviation allowed in the horizontal position, σ xi+ Indicates the allowable positive deviation in horizontal position.
[0098] In S230 , vertical position allowable deviation range information is generated based on the reference vertical position information, the preset vertical position allowable positive deviation information, and the preset vertical position allowable negative deviation information.
[0099] Specifically, the terminal device can generate vertical position allowable deviation range information based on the reference vertical position information, the preset vertical position allowable positive deviation information and the preset vertical position allowable negative deviation information, wherein the vertical position allowable deviation range information can be expressed as [-σ yi- ,σ yi+ ], where σ yi- Indicates the allowable negative deviation in the vertical position, σ yi+ Indicates the allowable positive deviation in vertical position.
[0100] In S240 , reference direction allowable deviation range information is generated based on the reference direction information, the preset reference direction allowable positive deviation information, and the preset reference direction allowable negative deviation information.
[0101] Specifically, the terminal device can generate the reference direction allowable deviation range information based on the reference direction information, the preset reference direction allowable positive deviation information and the preset reference direction allowable negative deviation information, wherein the reference direction allowable deviation range information can be expressed as [-σ θi- ,σ θi+], where σ θi- Indicates the negative deviation allowed in the direction, which can be deflected in the clockwise direction, σ θi+ Indicates the allowed positive deviation in direction, which can be a deflection in the counterclockwise direction.
[0102] In S300, mainboard assembly quality information is determined based on mainboard component detection result information.
[0103] Specifically, the terminal device can effectively determine the motherboard assembly quality information based on the motherboard parts detection result information, thereby achieving high-accuracy detection of the mobile phone motherboard assembly quality, wherein the motherboard assembly quality information includes qualified assembly quality information or poor assembly quality information, and the poor assembly quality information includes poor direction information, poor position information or missing assembly information.
[0104] It should be noted that the mobile phone motherboard assembly detection method can be performed offline.
[0105] In some possible implementations, in order to achieve high-accuracy detection of the assembly quality of mobile phone motherboards, please refer to Fig. 9 Step S300 includes but is not limited to the following steps:
[0106] In S310, it is determined whether the horizontal position information of the part is equal to the reference horizontal position information, whether the vertical position information of the part is equal to the reference vertical position information, and whether the reference direction information is equal to the reference direction information.
[0107] Specifically, the terminal device can determine whether the horizontal position information of the part is equal to the reference horizontal position information, whether the vertical position information of the part is equal to the reference vertical position information, and whether the reference direction information is equal to the reference direction information.
[0108] In S320, if the horizontal position information of the component is equal to the reference horizontal position information, the vertical position information of the component is equal to the reference vertical position information, and the reference direction information is equal to the reference direction information, then it is determined that the mainboard assembly quality information is qualified assembly quality information.
[0109] Specifically, if the part horizontal position information is equal to the reference horizontal position information, and the part vertical position information is equal to the reference vertical position information, and the reference direction information is equal to the reference direction information, the terminal device can determine that the mainboard assembly quality information is qualified assembly quality information.
[0110] In S330, otherwise, it is determined whether the horizontal position information of the part is within the horizontal position allowable deviation range information of the specified multiple, and whether the vertical position information of the part is within the vertical position allowable deviation range information of the specified multiple.
[0111] Specifically, otherwise the terminal device can determine whether the horizontal position information of the part is within the horizontal position allowable deviation range information of the specified multiple, and whether the vertical position information of the part is within the vertical position allowable deviation range information of the specified multiple.
[0112] In S340, if the horizontal position information of the part is within the horizontal position allowable deviation range information of the specified multiple, and the vertical position information of the part is within the vertical position allowable deviation range information of the specified multiple, it is determined whether the rotation direction information is within the reference direction allowable deviation range information.
[0113] Specifically, if the horizontal position information of the part is within the horizontal position allowable deviation range information of the specified multiple, and the vertical position information of the part is within the vertical position allowable deviation range information of the specified multiple, then the terminal device can determine whether the rotation direction information is within the reference direction allowable deviation range information. For example, the specific value of the specified multiple can be 10.
[0114] In S350, if the rotation direction information is within the reference direction allowable deviation range information, it is determined that the mainboard assembly quality information is assembly quality qualified information.
[0115] Specifically, if the rotation direction information is within the reference direction allowable deviation range information, the terminal device can determine that the mainboard assembly quality information is qualified assembly quality information.
[0116] In S360, if the rotation direction information is outside the reference direction allowable deviation range information, it is determined that the mainboard assembly quality information is bad direction information.
[0117] Specifically, if the rotation direction information is outside the reference direction allowable deviation range information, the terminal device can determine that the mainboard assembly quality information is bad direction information.
[0118] In S370, if the horizontal position information of the component is outside the horizontal position allowable deviation range information of the specified multiple, or the vertical position information of the component is outside the vertical position allowable deviation range information of the specified multiple, then the mainboard assembly quality information is determined to be position defect information.
[0119] Specifically, if the horizontal position information of the part is outside the horizontal position allowable deviation range information of a specified multiple, or the vertical position information of the part is outside the vertical position allowable deviation range information of a specified multiple, the terminal device can determine that the mainboard assembly quality information is poor position information.
[0120] In S380, if the horizontal position information of the component is outside the horizontal position allowable deviation range information of the specified multiple, and the vertical position information of the component is outside the vertical position allowable deviation range information of the specified multiple, then the mainboard assembly quality information is determined to be missing assembly defect information.
[0121] Specifically, if the horizontal position information of the part is outside the horizontal position allowable deviation range information of the specified multiple, and the vertical position information of the part is outside the vertical position allowable deviation range information of the specified multiple, the terminal device can determine that the mainboard assembly quality information is missing assembly defect information.
[0122] The implementation principle of the mobile phone motherboard assembly detection method based on digital X-ray imaging in the embodiment of the present application is: the terminal device can first obtain the image set information to be detected of the motherboard to be detected, and then input the image set information to be detected into the trained deep learning target detection model, accurately generate the motherboard parts detection result information, and then accurately determine the motherboard assembly quality information based on the motherboard parts detection result information, thereby providing a deep learning algorithm model dedicated to mobile phone motherboard assembly quality detection, and realizing high-accuracy detection of the mobile phone motherboard assembly quality.
[0123] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0124] The embodiment of the present application also provides a mobile phone motherboard assembly detection system based on digital X-ray imaging. For ease of description, only the parts related to the present application are shown, such as Fig.10 As shown, the system 100 includes:
[0125] The module 101 for acquiring the image set information to be detected is used to acquire the image set information to be detected of the mainboard to be detected, wherein the image set information to be detected includes at least one image information to be detected;
[0126] Mainboard parts detection result information generation module 102: used to input the information of the image set to be detected into the trained deep learning target detection model to generate mainboard parts detection result information;
[0127] The motherboard assembly quality information determination module 103 is used to determine the motherboard assembly quality information according to the motherboard parts detection result information, wherein the motherboard assembly quality information includes qualified assembly quality information or poor assembly quality information.
[0128] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0129] The present application also provides a terminal device, such as Fig.11As shown, the terminal device 110 of this embodiment includes: a processor 111, a memory 112, and a computer program 113 stored in the memory 112 and executable on the processor 111. When the processor 111 executes the computer program 113, the steps in the above-mentioned mobile phone motherboard assembly detection method embodiment are implemented, for example Figure 1 Steps S110 to S300 shown; or, when the processor 111 executes the computer program 113, the functions of each module in the above device are realized, for example Fig.10 The functions of modules 101 to 103 are shown.
[0130] The terminal device 110 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server, and the terminal device 110 includes but is not limited to a processor 111 and a memory 112. Those skilled in the art will appreciate that Fig.11 It is only an example of the terminal device 110 and does not constitute a limitation of the terminal device 110. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 110 may also include input and output devices, network access devices, buses, etc.
[0131] Among them, the processor 111 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0132] The memory 112 may be an internal storage unit of the terminal device 110, such as a hard disk or memory of the terminal device 110, or an external storage device of the terminal device 110, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the terminal device 110; further, the memory 112 may also include both an internal storage unit and an external storage device of the terminal device 110, and the memory 112 may also store a computer program 113 and other programs and data required by the terminal device 110, and the memory 112 may also be used to temporarily store data that has been output or is to be output.
[0133] One embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of each of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.; the computer-readable medium may include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0134] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, all equivalent changes made according to the methods, principles, and structures of the present application should be included in the protection scope of the present application.
Claims
1. A mobile phone motherboard assembly detection method based on digital X-ray imaging, characterized in that: The method comprises: Acquire the image set information to be detected of the mainboard to be detected, wherein the image set information to be detected includes at least one image information to be detected; Input the image set information to be detected into the trained deep learning target detection model to generate motherboard parts detection result information; The mainboard assembly quality information is determined according to the mainboard component detection result information, wherein the mainboard assembly quality information includes qualified assembly quality information or poor assembly quality information.
2. The method according to claim 1, characterized in that Before obtaining the image set information of the motherboard to be detected, the method further includes: Obtain motherboard assembly dataset information and the deep learning target detection model to be trained; Training the deep learning target detection model to be trained according to the motherboard assembly data set information to generate a trained deep learning target detection model; The step of obtaining the motherboard assembly data set information and the deep learning target detection model to be trained includes: Based on a preset electromagnetic wave detection device, obtaining motherboard image set information of the first motherboard, wherein the motherboard image set information includes a plurality of motherboard image information, and the bit depths corresponding to the plurality of motherboard image information are different from each other; Obtaining image bit depth information corresponding to each of the mainboard image information; For each of the mainboard image information: based on the image bit depth information, perform image conversion processing on the mainboard image information to generate pre-processed image information; Get the deep learning target detection model to be trained; The step of training the deep learning target detection model to be trained according to the motherboard assembly data set information to generate a trained deep learning target detection model includes: Based on the preset annotation software, each of the pre-processed image information is annotated, and the plurality of pre-processed image information are divided into model training set information, model test set information and model verification set information; The deep learning target detection model to be trained is trained according to the model training set information, the model test set information and the model verification set information to generate a trained deep learning target detection model.
3. The method according to claim 2, characterized in that For each of the mainboard image information: based on the image bit depth information, performing image conversion processing on the mainboard image information to generate pre-processed image information, including: For each of the motherboard image information: comparing the image bit depth information with a preset first bit depth threshold information, wherein the first bit depth threshold information is 8; If the image bit depth information is equal to the first bit depth threshold information, the motherboard image information is subjected to a first conversion process to generate first processed image information, wherein the first processed image information is in the form of IM X-ray =[IM1; IM2; IM3], where IM1 is the first image channel information, IM2 is the second image channel information, and IM3 is the third image channel information. IM1 = IM2 = IM3 = I X-ray ; If the image bit depth information is greater than the first bit depth threshold information, comparing the image bit depth information with a preset second bit depth threshold information, wherein the second bit depth threshold information is 16; If the image bit depth information is less than or equal to the second bit depth threshold, the motherboard image information is subjected to a second conversion process to generate second processed image information, wherein the second processed image information is in the form of IM X-ray =[IM1; IM2; IM3], where IM1 is the first image channel information, IM2 is the second image channel information, IM3 is the third image channel information, IM1=I X-ray (;,;,1:8), IM2=[(;,;,9:D bit ), IM3 = 0, D bit The image bit depth information corresponding to the mainboard image information; If the image bit depth information is greater than the second bit depth threshold, comparing the image bit depth information with a preset third bit depth threshold information, wherein the third bit depth threshold information is 24; If the image bit depth information is less than or equal to the second bit depth threshold, a third conversion process is performed on the mainboard image information to generate third processed image information, wherein the third processed image information is in the form of IM X-ray =[IM1; IM2; IM3], where IM1 is the first image channel information, IM2 is the second image channel information, IM3 is the third image channel information, IM1=I X-ray (;,;,1:8), IM2=(;,;,9:16), IM3=[(;,;,16:D bit ), D bit is the image bit depth information corresponding to the mainboard image information.
4. The method according to claim 2, characterized in that: Before training the deep learning target detection model to be trained according to the model training set information, the model test set information, and the model verification set information to generate a trained deep learning target detection model, the method further includes: Get the initial data type information; Determine target quantity information according to the initial data type information, wherein the target quantity information is any integer between 1.3 times the initial data type information and 1.5 times the initial data type information; The number of inputs and the number of outputs corresponding to the Softmax layer of the deep learning target detection model to be trained are set to the target number information; The number of output neurons corresponding to the fully connected layer of the deep learning target detection model to be trained is set to the target number information.
5. The method according to claim 2, characterized in that: The training process of the deep learning target detection model to be trained according to the model training set information, the model test set information and the model verification set information to generate a trained deep learning target detection model includes: Based on the transfer learning paradigm, the deep learning target detection model to be trained is trained according to the model training set information to generate an initially trained deep learning target detection model; Based on the model validation set information, average precision mean information, precision mean information, and component recognition accuracy information corresponding to the initially trained deep learning target detection model are obtained, wherein the average precision mean information is used to describe the positioning accuracy corresponding to the bounding box in the output result of the deep learning target detection model, the precision mean information is used to describe the accuracy corresponding to the bounding box in the output result of the deep learning target detection model, and the component recognition accuracy information is used to describe the accuracy corresponding to the bounding box in the output result of the deep learning target detection model, and the accuracy is manually determined; If the average precision mean information is less than the preset average precision mean limit information, the precision mean information is less than the preset precision mean limit information, and / or the component recognition accuracy information is less than the preset component recognition accuracy limit information, then according to the model test set information, adjust the hyperparameters corresponding to the initially trained deep learning target detection model, and perform the training process again until the average precision mean information is greater than the preset average precision mean limit information, the precision mean information is greater than the preset precision mean limit information, and the component recognition accuracy information is greater than the preset component recognition accuracy limit information.
6. The method according to claim 1, characterized in that The motherboard parts detection result information includes part horizontal position information, part vertical position information, part type information and rotation direction information of each motherboard part, and the motherboard part is used to describe any component assembled on the motherboard to be detected; After inputting the to-be-detected image set information into the trained deep learning target detection model to generate the mainboard parts detection result information, the method further includes: For each of the mainboard parts: based on the part type information, obtaining the reference horizontal position information, reference vertical position information and reference direction information of the mainboard part; Generate horizontal position allowable deviation range information based on the reference horizontal position information, preset horizontal position allowable positive deviation information and preset horizontal position allowable negative deviation information; Generate vertical position allowable deviation range information based on the reference vertical position information, preset vertical position allowable positive deviation information and preset vertical position allowable negative deviation information; Based on the reference direction information, the preset reference direction allowable positive deviation information and the preset reference direction allowable negative deviation information, reference direction allowable deviation range information is generated.
7. The method according to claim 6, characterized in that The assembly quality bad information includes direction bad information, position bad information or missing assembly bad information; Determining the motherboard assembly quality information according to the motherboard parts detection result information includes: Determine whether the horizontal position information of the part is equal to the reference horizontal position information, whether the vertical position information of the part is equal to the reference vertical position information, and whether the reference direction information is equal to the reference direction information; If the horizontal position information of the part is equal to the reference horizontal position information, and the vertical position information of the part is equal to the reference vertical position information, and the reference direction information is equal to the reference direction information, then the mainboard assembly quality information is determined to be the qualified assembly quality information; Otherwise, determine whether the horizontal position information of the part is within the horizontal position allowable deviation range information of the specified multiple, and whether the vertical position information of the part is within the vertical position allowable deviation range information of the specified multiple; If the horizontal position information of the part is within the horizontal position allowable deviation range information of the specified multiple, and the vertical position information of the part is within the vertical position allowable deviation range information of the specified multiple, then determine whether the rotation direction information is within the reference direction allowable deviation range information; If the rotation direction information is within the reference direction allowable deviation range information, then determining that the mainboard assembly quality information is the assembly quality qualified information; If the rotation direction information is outside the reference direction allowable deviation range information, determining that the mainboard assembly quality information is the direction bad information; If the horizontal position information of the component is outside the horizontal position allowable deviation range information of the specified multiple, or the vertical position information of the component is outside the vertical position allowable deviation range information of the specified multiple, then the mainboard assembly quality information is determined to be the position defect information; If the horizontal position information of the component is outside the horizontal position allowable deviation range information of the specified multiple, and the vertical position information of the component is outside the vertical position allowable deviation range information of the specified multiple, then the mainboard assembly quality information is determined to be the missing assembly defect information.
8. A mobile phone motherboard assembly detection system based on digital X-ray imaging, characterized in that: The system comprises: The module for acquiring the image set information to be detected is used to acquire the image set information to be detected of the mainboard to be detected, wherein the image set information to be detected includes at least one image information to be detected; Mainboard parts detection result information generation module: used to input the image set information to be detected into the trained deep learning target detection model to generate mainboard parts detection result information; Mainboard assembly quality information determination module: used to determine the mainboard assembly quality information according to the mainboard parts detection result information, wherein the mainboard assembly quality information includes qualified assembly quality information or poor assembly quality information.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, 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 7 are implemented.
