Configuration method of AOI algorithm model, storage medium and AOI detection equipment
By configuring multiple AOI algorithm models in the AOI detection equipment and utilizing multi-level folder management, the problem of accuracy and reliability of a single AOI algorithm model in detecting multiple types of devices in the existing technology is solved, and the accuracy of AOI detection is improved. and reliability, reducing the false alarm rate.
Patent Information
- Application Number
- CN202310282559.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
Existing AOI detection methods only configure a single AOI algorithm model for multiple types of device defects, resulting in reduced detection accuracy and reliability, low defective product detection rate or high false alarm rate.
Provides a method for configuring the AOI algorithm model. By inputting the selection operation on the algorithm model management page, the target name object and the main file path are determined, the algorithm model file is obtained, and the target folder is generated based on the main file path to configure multiple AOI algorithm models. To detect defects in different types of devices, use multi-level target folders and version folders to classify, store and manage algorithm models, update monitoring files based on detection feedback results and control the presentation of version folders.
It improves the accuracy and reliability of AOI detection, increases the detection rate of defective products or reduces the false alarm rate, and enhances the flexibility and compatibility of detection equipment by more targeted detection of corresponding devices.
Smart Images

Figure CN118689846A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of AOI detection, and in particular to a configuration method of an AOI algorithm model, a storage medium and an AOI detection device. Background Art
[0002] Automated Optical Inspection (AOI) equipment can detect defects in devices on PCB boards through visual inspection to determine whether the devices have abnormal conditions such as wrong soldering, leaking soldering or reverse soldering. The existing AOI detection method only configures one AOI algorithm model for a type of device defect. Subsequent AOI inspections all use the same AOI algorithm model to detect a certain type of device defects in each device on the PCB board. Although different types of devices can have the same type of device defects, different types of devices also have large differences in shape or welding. If a single AOI algorithm model is trained to identify device defects of multiple types of devices, this approach is likely to reduce the defective detection rate or increase the false alarm rate. Summary of the invention
[0003] An object of an embodiment of the present invention is to provide a configuration method, a storage medium and an AOI detection device for an AOI algorithm model, so as to improve the problem that the configuration of the existing AOI algorithm model is relatively single.
[0004] In a first aspect, an embodiment of the present invention provides a method for configuring an AOI algorithm model, comprising:
[0005] In response to a selection operation input on an algorithm name list on an algorithm model management page, a target name object and a primary file path corresponding to the target name object are determined, wherein the algorithm name list includes a plurality of name objects, and the name objects are used to represent algorithm types of various AOI algorithm models capable of detecting defects of the same device, and different AOI algorithm models under the name objects can detect different types of devices;
[0006] Obtain an algorithm model file, wherein the algorithm model file is used to generate an AIO algorithm model;
[0007] According to the main file path, a target folder is generated and the algorithm model file is configured under the target folder.
[0008] Optionally, generating a target folder according to the main file path and configuring the algorithm model file in the target folder includes:
[0009] Generate a multi-level target folder under the main file path, wherein the file path of the next-level target folder includes the file path of the previous-level target folder;
[0010] The algorithm model file is configured in the final target folder.
[0011] Optionally, the multi-level target folder includes model folders and version folders constructed step by step, and generating the multi-level target folder under the main file path includes:
[0012] Determine a characteristic folder corresponding to the main file path, wherein the characteristic folder is used to store each of the model folders for detecting the same device defect but different devices;
[0013] Generate the model folder under the feature folder, the model folder is used to store the version folders of different versions for detecting the same type of devices and the same device defects;
[0014] The version folder is generated under the model folder, and the version folder is used to store the algorithm model file.
[0015] Optionally, the multi-level target folder includes model folders and version folders constructed level by level, and the method further includes:
[0016] When the model folder stores at least two version folders, obtaining a feedback log of the algorithm model file under each version folder, wherein the feedback log includes a detection feedback result of the device being detected by the AIO algorithm model;
[0017] According to the detection feedback result, the monitoring file is updated, the monitoring file is stored in the directory of the model folder, and the monitoring file includes the feedback score of the algorithm model file corresponding to each version in the model folder;
[0018] Based on the feedback score, the presentation of the version folder is controlled.
[0019] Optionally, controlling the presentation of the version folder according to the feedback score includes:
[0020] Determining whether the feedback score is lower than a preset score threshold;
[0021] If it is lower than that, the version folder corresponding to the feedback score is controlled to be hidden in the directory of the model folder;
[0022] If it is higher, the version folder corresponding to the feedback score is controlled to be presented under the directory of the model folder.
[0023] Optionally, updating the monitoring file according to the detection feedback result includes:
[0024] When the detection feedback result is a negative feedback result, lowering the feedback score of the algorithm model file corresponding to the detection feedback result, and increasing the feedback scores of the algorithm model files other than the algorithm model file corresponding to the detection feedback result;
[0025] When the detection feedback result is a positive feedback result, the feedback score of the algorithm model file corresponding to the detection feedback result is kept unchanged.
[0026] Optionally, the determining the target name object includes:
[0027] Searching the algorithm name list for the name object selected by the selection operation;
[0028] Use the selected name object as the target name object.
[0029] Optionally, the upper-level file path of the primary file path is a file path common to all the name objects.
[0030] In a second aspect, an embodiment of the present invention provides a storage medium storing computer executable instructions, wherein the computer executable instructions are used to enable an AIO detection device to execute the configuration method of the AIO algorithm model.
[0031] In a third aspect, an embodiment of the present invention provides an AOI detection device, including:
[0032] at least one processor; and,
[0033] a memory communicatively connected to the at least one processor; wherein,
[0034] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned configuration method of the AIO algorithm model.
[0035] In the configuration method of the AO I algorithm model provided in the embodiment of the present invention, in response to the selection operation input on the algorithm name list of the algorithm model management page, the target name object and the main file path corresponding to the target name object are determined, the algorithm name list includes multiple name objects, the name object is used to represent the algorithm type of each AO I algorithm model that can detect the same device defect, and different AO I algorithm models under the name object can detect different types of devices. The algorithm model file is obtained, and the algorithm model file is used to generate the AO I algorithm model. According to the main file path, a target folder is generated and the algorithm model file is configured in the target folder. The configuration method provided in this embodiment can configure multiple AO I algorithm models for the same device defect, and each AO I algorithm model can detect the corresponding device, which is conducive to the subsequent AO I detection of the corresponding device in a more targeted manner, and can improve the accuracy and reliability of AO I detection, thereby improving the defective detection rate or reducing the false alarm rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0037] Figure 1 A schematic diagram of a flow chart of a configuration method of an AOI algorithm model provided in an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of an algorithm model management page provided in an embodiment of the present invention;
[0039] Figure 3 The structure diagram of folders at all levels provided by the embodiment of the present invention;
[0040] Figure 4 A schematic diagram of the structure of a configuration device of an AOI algorithm model provided by an embodiment of the present invention;
[0041] Figure 5 A schematic diagram of the circuit structure of an AOI detection device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0043] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0044] The embodiment of the present invention provides a configuration method of an AOI algorithm model. Figure 1 , the configuration method of AOI algorithm model includes:
[0045] S11: In response to a selection operation input on the algorithm name list of the algorithm model management page, a target name object and a primary file path corresponding to the target name object are determined.
[0046] In this step, the algorithm name list is edited and set in advance by the designer according to business needs. The algorithm name list includes multiple name objects. The name object is used to represent the algorithm type of each AOI algorithm model that can detect the same device defect. Different AOI algorithm models under the name object can detect different types of devices. Among them, the AOI detection equipment generates an algorithm name list based on the input of each name object. The AOI detection equipment can select the corresponding name object under the algorithm name list, and continue to select the corresponding AOI algorithm model under the selected name object for detection. Please refer to Figure 2 , AOI inspection equipment provides algorithm model management page, such as Figure 2 As shown in the figure, the left side of the algorithm model management page is a list of algorithm names.
[0047] The name object is a general term for various AOI algorithm models that detect the same device defects, for example Figure 2 As shown, the algorithm list includes multiple name objects, and the name objects are tinning intelligent algorithm, character recognition algorithm, bubble detection algorithm, missing parts intelligent algorithm, offset intelligent algorithm, template matching algorithm or color comparison algorithm, etc. For example, the tinning intelligent algorithm is used to detect whether the solder of the device is tinned. Under the tinning intelligent algorithm, there may be a resistor tinning detection model for detecting whether the resistor is tinned, a capacitor tinning detection model for detecting whether the capacitor is tinned, or a diode tinning detection model for detecting whether the diode is tinned. Among them, the resistor tinning detection model, the capacitor tinning detection model and the diode tinning detection model are all AOI algorithm models.
[0048] AOI algorithm model is used to detect device defects. Different AOI algorithm models can detect different types of devices. AOI algorithm model is generated by algorithm model file. Device defects include missing parts defects, offset defects, wrong parts defects, reverse polarity defects or various welding defects. For example, resistors, capacitors or diodes may have soldering defects such as tinning. The capacitor tinning detection model can detect whether the capacitor is tinned, the resistor tinning detection model can detect whether the resistor is tinned, and the diode tinning detection model can detect whether the diode is tinned.
[0049] The selection operation is an operation of selecting a target name object in the algorithm name list, and the target name object is the name object selected in the algorithm name list.
[0050] In some embodiments, determining the target name object includes the following steps: searching the algorithm name list for the name object selected by the selection operation, and using the selected name object as the target name object. Figure 2 , when the user selects the name object of "Missing Part Intelligent Algorithm" in the algorithm name list, "Missing Part Intelligent Algorithm" is used as the target name object.
[0051] The main file path is a file path for storing various algorithm model files that can detect defects of the same device. Each name object has a corresponding main file path, and various algorithm model files under each name object can be stored in the corresponding main file path.
[0052] In some embodiments, when the AOI detection device determines the target name object, the AOI detection device obtains a path association table, which includes the correspondence between each name object and the main file path, and traverses the path association table according to the target name object to traverse the main file path corresponding to the target name object.
[0053] Please refer to Table 1, which is a path association table of the tin connection intelligent algorithm, character recognition algorithm, bubble detection algorithm, general AI classification algorithm, hole AI detection algorithm and missing parts intelligent algorithm.
[0054] Table 1
[0055] Name Object Main file path Lianxi Intelligent Algorithm / home / aoi / aoi / program / basemodel / insp_lintin Character Recognition Algorithm / home / aoi / aoi / program / basemodel / insp_cha_re Bubble Detection Algorithm / home / aoi / aoi / program / basemodel / insp_bubl General AI Classification Algorithm / home / aoi / aoi / program / basemodel / insp_gen_ai Hole AI Detection Algorithm / home / aoi / aoi / program / basemodel / insp_hol Missing parts intelligent algorithm / home / aoi / aoi / program / basemodel / insp_miss_ai
[0056] As shown in Table 1, when the AOI inspection device determines the missing part intelligent algorithm as the target name object, the AOI inspection device traverses Table 1 to traverse the main file path " / home / aoi / aoi / program / basemodel / insp_miss_ai" corresponding to the missing part intelligent algorithm.
[0057] In some embodiments, the parent file path of the main file path is a file path shared by all name objects. In conjunction with Table 1, the parent file paths of the tin-linking intelligent algorithm, character recognition algorithm, bubble detection algorithm, general AI classification algorithm, hole AI detection algorithm, and missing parts intelligent algorithm are all " / home / aoi / aoi / program / basemodel" file paths, that is, all types of algorithm model files for detecting defects of different devices will be uniformly managed under the file path of " / home / aoi / aoi / program / basemodel l", which is conducive to the AOI inspection equipment to effectively manage and call various types of algorithm model files for detecting defects of different devices, thereby improving the inspection efficiency and file management efficiency.
[0058] S12: Obtain an algorithm model file, where the algorithm model file is used to generate an AOI algorithm model.
[0059] In this step, the algorithm model file is a file used to generate an AOI algorithm model. When the AOI inspection device calls and executes the algorithm model file, the AOI inspection device can generate an AOI algorithm model to detect whether a device has a device defect.
[0060] In some embodiments, different types of device defects correspond to different algorithm model files. For example, for detecting tinned device defects and missed device defects, the tinning intelligent algorithm corresponds to the tinning algorithm model file, and the missed device intelligent algorithm corresponds to the missed detection algorithm model file.
[0061] In some embodiments, when detecting the same type of device defects, different devices correspond to different algorithm model files. For example, for a tin-connected device defect, a resistor corresponds to a tin-connected algorithm model file for detecting a resistor, a capacitor corresponds to a tin-connected algorithm model file for detecting a capacitor, and a diode corresponds to a tin-connected algorithm model file for detecting a diode.
[0062] In some embodiments, when detecting the same type of device defects, the same device can correspond to different versions of algorithm model files. For example, for a tin-bonding device defect, the resistor corresponds to the tin-bonding algorithm model file of the first version V1.0 and the tin-bonding algorithm model file of the second version V1.1.
[0063] The algorithm model file is constructed in advance by the designer, and the algorithm model file supports various algorithm models, including neural network algorithm models, etc. The designer obtains samples of different devices with the same device defects in advance, trains the samples according to the neural network algorithm to obtain the neural network parameters, and generates the algorithm model file according to the neural network parameters.
[0064] In some embodiments, the algorithm model management page includes an add button, and obtaining the algorithm model file includes: when it is detected that the AOI algorithm model under the target name object is selected, in response to the user's click operation on the add button, a file import dialog box pops up, obtains the algorithm model file selected by the user in the file import dialog box, determines whether the format of the selected algorithm model file is a specified format, and if it is a specified format, determines whether the selected algorithm model file meets the preset import conditions, if so, imports the algorithm model file, and if not or if it is not a specified format, suspends the import operation. Wherein, the specified format includes a zip format.
[0065] In some embodiments, the algorithm model management page includes an import button, and obtaining the algorithm model file includes: responding to the import operation input by the user to the import button, popping up a file import dialog box, obtaining the algorithm model file selected by the user in the file import dialog box, and determining whether the format of the selected algorithm model file is a specified format. If it is a specified format, determining whether the selected algorithm model file meets the preset import conditions. If so, replacing the current algorithm model file with the imported algorithm model file.
[0066] S13: Generate a target folder according to the main file path and configure the algorithm model file in the target folder.
[0067] In this step, when the AOI inspection device performs an AOI inspection operation on a device, it can call the algorithm model file in the target folder and execute the algorithm model file, thereby achieving the purpose of AOI inspection.
[0068] Since the configuration method provided in this embodiment can configure multiple AOI algorithm models for the same device defects, each AOI algorithm model can detect the corresponding device, which is conducive to the subsequent more targeted AOI detection of the corresponding device, and can improve the accuracy and reliability of AOI detection, thereby increasing the defective detection rate or reducing the false alarm rate.
[0069] In some embodiments, generating a target folder according to the main file path and configuring the algorithm model file in the target folder includes the following steps:
[0070] S131: Generate a multi-level target folder under the main file path, wherein the file path of the next-level target folder includes the file path of the previous-level target folder.
[0071] S132: Configuring the algorithm model file in the final target folder.
[0072] In S131, for example, the main file path is:
[0073] / home / aoi / aoi / program / basemode l / i nsp_mi ss_ai.
[0074] The first level target folders are:
[0075] / home / aoi / aoi / program / basemode l / i nsp_mi ss_ai / 1111.
[0076] The second level target folder is
[0077] / home / aoi / aoi / program / basemode l / i nsp_mi ss_ai / 1111 / 2222.
[0078] The file path of the second-level target folder includes the file path of the first-level target folder.
[0079] In S132, for example, the final target folder is the second-level target folder in the above example. Since the present embodiment configures a multi-level target folder to store the algorithm model file, the present embodiment can achieve the purpose of classified storage of multiple types of algorithm model files in a multi-level manner, which is conducive to the management and call of various AOI algorithm models that are compatible with different device defects, the same device defects but different devices, and the same device but different algorithm versions.
[0080] In some embodiments, the multi-level target folder includes model folders and version folders that are constructed level by level. Generating the multi-level target folder under the main file path includes the following steps:
[0081] S1311: Determine a feature folder corresponding to the main file path, where the feature folder is used to store various model folders for detecting the same device defect but different devices.
[0082] S1312: Generate a model folder under the feature folder, and the model folder is used to store various version folders for detecting the same type of devices and the same device defects but different versions.
[0083] S1313: Generate a version folder under the model folder, and the version folder is used to store the algorithm model file.
[0084] In S1311, the feature folder is a folder for detecting defects of the same device, which can store various algorithm model files for detecting defects of the same device. For example, please refer to Table 1, the main file path corresponding to the missing part intelligent algorithm is " / home / aoi / aoi / program / basemodel / insp_miss_ai", and the feature folder corresponding to " / home / aoi / aoi / program / basemodel / insp_miss_ai" is a folder named "insp_miss_ai".
[0085] See also Figure 3 , the following feature folders are at the same level as the feature folder "insp_miss_ai": feature folder "insp_lintin", feature folder "insp_cha_re", feature folder "insp_bubl", feature folder "insp_gen_ai" and feature folder "insp_hol". Among them, the main file path corresponding to the upper-level file path of the above 6 feature folders is the folder "basemodel".
[0086] In S1312, the model folder is a folder for detecting the same type of devices and the same device defects, and can store algorithm model files for detecting the same type of devices and the same device defects. For example, please combine Figure 3 Under the feature folder "insp_miss_ai", three model folders can be stored, namely the model folder "blue_cap", the model folder "white_soc" and the model folder "black_res". Among them, the algorithm model files stored in the model folder "blue_cap" can detect the missing device defects of the blue capacitor, the algorithm model files stored in the model folder "white_soc" can detect the missing device defects of the white socket, and the algorithm model files stored in the model folder "black_res" can detect the missing device defects of the black resistor.
[0087] In S1313, the version folder is a folder that stores the algorithm model file of the corresponding version. Figure 3 Under the model folder "blue_cap", two versions of version folders can be stored, namely version folder "V1.0" and version folder "V1.1". Among them, the algorithm model file stored in the version folder "V1.0" is the first version of the algorithm model file for detecting missing device defects of blue capacitors, and the algorithm model file stored in the version folder "V1.1" is the second version of the algorithm model file for detecting missing device defects of blue capacitors.
[0088] This embodiment constructs model folders and version folders step by step under the feature folder, wherein the feature folder stores various algorithm model files for detecting defects of the same device. Furthermore, the model folder stores algorithm model files for detecting defects of the same device and the same device. Further, the version folder stores algorithm model files for detecting defects of the same device and the corresponding versions of the same device. In this way, this embodiment can manage various algorithm model files at multiple levels, not only can it classify defects of a certain type of device, but also under a certain type of device defects, it can also classify algorithm model files according to the type of device, and further classify algorithm model files according to the iteration of the version, which is conducive to managing various algorithm model files with higher compatibility, higher precision, and stronger version rollback, and is conducive to the subsequent reliable, accurate, flexible and diverse calling of algorithm model files.
[0089] For example, the AOI inspection equipment can detect missing component defects or solder-connected component defects. When detecting missing component defects, when the current device is a resistor, the AOI inspection equipment selects a missing component AOI algorithm model that can detect resistors. When the current device is a capacitor, the AOI inspection equipment selects a missing component AOI algorithm model that can detect capacitors.
[0090] For example, when the current device is a capacitor, the AOI inspection equipment selects the missing part AOI algorithm model corresponding to the third version algorithm model file to inspect the capacitor, or it can fall back to select the missing part AOI algorithm model corresponding to the first version algorithm model file to inspect the capacitor.
[0091] In some embodiments, the algorithm model management page includes a delete button, and the configuration method of the AOI algorithm model also includes: responding to a user's click operation on the delete button, determining the first target AOI algorithm model corresponding to the click operation and the algorithm model file corresponding to the first target AOI algorithm model, and setting the display status of the algorithm model file corresponding to the first target AOI algorithm model to an invisible state.
[0092] In some embodiments, the algorithm model management page includes an export button, and the configuration method of the AO I algorithm model also includes: responding to a user's click operation on the export button, determining the second target AO I algorithm model corresponding to the click operation and the algorithm model file corresponding to the second target AO I algorithm model, compressing the algorithm model file corresponding to the second target AO I algorithm model into a file of a specified format, and outputting the compressed file.
[0093] In some embodiments, the multi-level target folder includes model folders and version folders constructed step by step, and the configuration method of the AOI algorithm model further includes the following steps:
[0094] S14: When the model folder stores at least two version folders, a feedback log of the algorithm model file in each version folder is obtained, where the feedback log includes a detection feedback result of the device after being detected by the AO I algorithm model.
[0095] S15: Update the monitoring file according to the detection feedback result. The monitoring file is stored in the directory of the model folder. The monitoring file includes the feedback score of the algorithm model file corresponding to each version in the model folder.
[0096] S16: Control the presentation of version folders based on the feedback score.
[0097] In S14, after the algorithm model file of each version folder is selected and run, the engineer controls the AO I detection equipment to generate a feedback log according to the detection result of the AO I algorithm model. The detection result is the result of the AO I algorithm model detecting whether the device has a corresponding device defect, and the detection result includes a normal result and an abnormal result. The normal result is the result that the device does not have the corresponding device defect to be detected by the AO I algorithm model, and the abnormal result is the result that the device has the corresponding device defect to be detected by the AO I algorithm model.
[0098] The feedback log is a log that records whether the test results are consistent with the actual situation. The test feedback results include negative feedback results and positive feedback results. Negative feedback results are results that the test results do not conform to the actual situation, and positive feedback results are results that the test results conform to the actual situation. For example, when the resistor does not exist (exist) tinning phenomenon or missing parts phenomenon, the tinning AO I algorithm model or the missing parts AO I algorithm model recognizes (does not recognize) that the resistor has tinning phenomenon or missing parts phenomenon, so this result should be recorded as a negative feedback result. When the resistor has (does not exist) tinning phenomenon or missing parts phenomenon, the tinning AO I algorithm model or the missing parts AO I algorithm model recognizes that the resistor has (does not exist) tinning phenomenon or missing parts phenomenon, so this result should be recorded as a positive feedback result.
[0099] In some embodiments, the AOI inspection device monitors the number of version folders in the directory of the model folder, and determines whether to obtain the feedback log according to the number.
[0100] In some embodiments, determining whether to obtain the detection result of the feedback log according to the number includes: determining whether the number is greater than or equal to a preset threshold, if it is greater than or equal to, obtaining the feedback log to obtain the detection feedback result, and if it is less than, not obtaining the feedback log. The preset threshold can be customized by the designer according to business needs, for example, the preset threshold is 2 or 3.
[0101] In S15, the monitoring file is a file that summarizes the detection feedback results of the AOI algorithm model. Since the monitoring file is stored in the directory of the model folder, after the AOI detection device calls and executes the algorithm model file in the corresponding version folder, it can continue to call the monitoring file in the same directory to effectively update the feedback score.
[0102] The feedback score is used to indicate the accuracy of the AOI algorithm model. In some embodiments, when the feedback score is higher, the accuracy of the AOI algorithm model is higher, and when the feedback score is lower, the accuracy of the AOI algorithm model is lower. Alternatively, in some embodiments, when the feedback score is lower, the accuracy of the AOI algorithm model is higher, and when the feedback score is higher, the accuracy of the AOI algorithm model is lower. It is understood that those skilled in the art can configure the relationship between the feedback score and the accuracy according to the content of this disclosure. Please refer to Table 2:
[0103] Table 2
[0104]
[0105] As shown in Table 2, the target device is a blue capacitor. Under the model folder "blue_cap", 5 versions of version folders can be stored, namely version folders V1.0 to V1.4. Each version folder stores the corresponding version of the algorithm model file, and each version of the algorithm model file can generate the corresponding version of the AOI algorithm model.
[0106] In Table 2, the higher the feedback score, the higher the accuracy of the corresponding version of the AOI algorithm model. The lower the feedback score, the lower the accuracy of the corresponding version of the AOI algorithm model.
[0107] In some embodiments, updating the monitoring file according to the detection feedback result includes: when the detection feedback result is a negative feedback result, reducing the feedback score of the algorithm model file corresponding to the detection feedback result, and increasing the feedback score of the algorithm model file other than the algorithm model file corresponding to the detection feedback result. When the detection feedback result is a positive feedback result, keeping the feedback score of the algorithm model file corresponding to the detection feedback result unchanged.
[0108] Alternatively, when the detection feedback result is a negative feedback result, the feedback score of the algorithm model file corresponding to the detection feedback result is increased, and the feedback scores of the algorithm model files other than the algorithm model file corresponding to the detection feedback result are reduced. When the detection feedback result is a positive feedback result, the feedback score of the algorithm model file corresponding to the detection feedback result is kept unchanged.
[0109] It is understandable that those skilled in the art can configure the relationship between the detection feedback result and the feedback score according to the content of this disclosure.
[0110] In some embodiments, reducing the feedback score of the algorithm model file corresponding to the detection feedback result includes: obtaining the current feedback score of the algorithm model file corresponding to the detection feedback result, subtracting a preset value from the current feedback score, and obtaining a final feedback score.
[0111] In some embodiments, improving the feedback score of an algorithm model file other than the algorithm model file corresponding to the detection feedback result includes: obtaining the feedback score of the algorithm model file other than the algorithm model file corresponding to the detection feedback result, subtracting a preset value from the feedback score, and obtaining a final feedback score.
[0112] In some embodiments, the preset value may be customized by a designer based on engineering experience, for example, the preset value is 1.
[0113] For example, please refer to Table 2. The feedback scores corresponding to each version shown in Table 2 are the feedback scores after the kth AO I detection operation. When performing the k+1th AO I detection operation, the user chooses to call the algorithm model file V1.1. When the AO I algorithm model of the algorithm model file V1.1 detects that the mth blue capacitor has a missing device defect, but the actual situation of the mth blue capacitor is that there is no missing device defect, the AO I detection equipment subtracts 1 from 42, and obtains a final feedback score of 41 for the algorithm model file V1.1, which improves the feedback scores of the algorithm model files V1.0, V1.2, V1.3 and V1.4, that is, the final feedback scores of the algorithm model files V1.0, V1.2, V1.3 and V1.4 are 51 / 57 / 46 / 59 respectively.
[0114] When performing the k+2th AO I detection operation, the user chooses to call the algorithm model file V1.4. When the AO I algorithm model of the algorithm model file V1.4 detects that the m+1th blue capacitor has a missing device defect, the actual situation of the m+1th blue capacitor is that there is a missing device defect. Therefore, the AO I detection device keeps the feedback score of the algorithm model file corresponding to the detection feedback result unchanged, updates Table 2, and obtains Table 3. Table 3 is as follows:
[0115] Table 3
[0116]
[0117] In S16, the AIO detection device controls the presentation of the version folder according to the feedback score. Since the feedback score can evaluate the accuracy of the corresponding version of the AIO algorithm model, this embodiment can select the corresponding version of the algorithm model file in combination with the feedback score, which is conducive to improving the detection accuracy.
[0118] In some embodiments, controlling presentation of the version folder based on the feedback score includes:
[0119] S161: Determine whether the feedback score is lower than a preset score threshold.
[0120] S162: If it is lower than, the version folder corresponding to the feedback score is controlled to be hidden in the directory of the model folder.
[0121] S163: If it is higher, the version folder corresponding to the feedback score is controlled to be presented in the directory of the model folder.
[0122] In S161, the preset score threshold is customized by the designer according to engineering experience. For example, as shown in Table 3, the preset score threshold may be selected as 50 in this embodiment.
[0123] In S162, controlling the version folder corresponding to the feedback score to be hidden in the directory of the model folder includes: setting the display status of the version folder corresponding to the feedback score in the directory of the model folder to an invisible state. Since the version folder with a feedback score lower than a preset score threshold is in an invisible state, the user is unable to control the AOI inspection device to select the algorithm model file under the version folder for calling and execution.
[0124] As shown in Table 3, since the feedback scores of the algorithm model file V1.1 and the algorithm model file V1.3 are both lower than 50, the AOI inspection device hides the version folder corresponding to the algorithm model file V1.1 and the version folder corresponding to the algorithm model file V1.3.
[0125] In S173, since the feedback scores of the algorithm model files V1.0, V1.2 and V1.4 are all lower than 50, the version folders corresponding to the AOI inspection equipment control algorithm model files V1.0, V1.2 and V1.4 are presented in the directory of the model folder.
[0126] The AOI inspection device provided in this embodiment can support multiple versions of algorithm model files. However, in order to more effectively improve the inspection quality, this embodiment scores each version of the algorithm model file to provide users with a more accurate and reliable AOI algorithm model so that devices can be accurately and reliably inspected.
[0127] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present invention, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.
[0128] As another aspect of the embodiments of the present invention, the embodiments of the present invention provide a configuration device for an AOI algorithm model. The configuration device for the AOI algorithm model may be a software module, wherein the software module includes a number of instructions stored in a memory, and a processor may access the memory and call the instructions for execution to complete the configuration method of the AOI algorithm model described in the above-mentioned embodiments.
[0129] In some implementations, the configuration device of the AOI algorithm model may also be constructed by hardware devices, for example, the configuration device of the AOI algorithm model may be constructed by one or more chips, and each chip may work in coordination with each other to complete the configuration method of the AOI algorithm model described in each of the above implementations. For another example, the configuration device of the AOI algorithm model may also be constructed by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components.
[0130] See also Figure 4 The configuration device 400 of the AOI algorithm model includes a list acquisition module 41, a file acquisition module 42 and a file configuration module 43.
[0131] The list acquisition module 41 is used to respond to the selection operation input on the algorithm name list of the algorithm model management page, determine the target name object and the main file path corresponding to the target name object, the algorithm name list includes multiple name objects, the name object is used to represent the algorithm type of each AOI algorithm model that can detect the same device defect, and different AOI algorithm models under the name object can detect different types of devices. The file acquisition module 42 is used to obtain the algorithm model file, and the algorithm model file is used to generate the AOI algorithm model. The file configuration module 43 is used to generate a target folder according to the main file path and configure the algorithm model file under the target folder.
[0132] This embodiment can configure multiple AOI algorithm models for the same device defects, and each AOI algorithm model can detect the corresponding device, which is conducive to the subsequent more targeted AOI detection of the corresponding device, and can improve the accuracy and reliability of AOI detection, thereby increasing the defective detection rate or reducing the false alarm rate.
[0133] In some embodiments, the file configuration module 43 is specifically used to: generate a multi-level target folder under the main file path, wherein the file path of the next-level target folder includes the file path of the previous-level target folder, and configure the algorithm model file under the last-level target folder.
[0134] In some embodiments, the file configuration module 43 is specifically used to: determine a feature folder corresponding to the main file path, the feature folder is used to store the various model folders for detecting the same device defects but different devices, generate the model folder under the feature folder, the model folder is used to store the various version folders for detecting the same type of devices and the same device defects but different versions, generate the version folder under the model folder, and the version folder is used to store the algorithm model file.
[0135] In some embodiments, the file configuration module 43 is specifically used for: when the model folder stores at least two version folders, obtaining a feedback log of the algorithm model file under each version folder, the feedback log including the detection feedback result of the device after the AOI algorithm model detection, updating the monitoring file according to the detection feedback result, the monitoring file is stored in the directory of the model folder, the monitoring file includes the feedback score of the algorithm model file corresponding to each version under the model folder, and controlling the presentation of the version folder according to the feedback score.
[0136] In some embodiments, the file configuration module 43 is specifically used to: determine whether the feedback score is lower than a preset score threshold; if so, control the version folder corresponding to the feedback score to be hidden under the directory of the model folder; if higher, control the version folder corresponding to the feedback score to be presented under the directory of the model folder.
[0137] In some embodiments, the file configuration module 43 is specifically used to: when the detection feedback result is a negative feedback result, reduce the feedback score of the algorithm model file corresponding to the detection feedback result, and increase the feedback scores of algorithm model files other than the algorithm model file corresponding to the detection feedback result; when the detection feedback result is a positive feedback result, keep the feedback score of the algorithm model file corresponding to the detection feedback result unchanged.
[0138] In some embodiments, the file configuration module 43 is specifically used to: search the algorithm name list for the name object selected by the selection operation, and use the selected name object as the target name object.
[0139] In some embodiments, the upper level file path of the primary file path is a file path common to all the name objects.
[0140] It should be noted that the configuration device of the AOI algorithm model can execute the configuration method of the AOI algorithm model provided in the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in the configuration device of the AOI algorithm model, please refer to the configuration method of the AOI algorithm model provided in the embodiment of the present invention.
[0141] See also Figure 5 , Figure 5 A schematic diagram of the circuit structure of an AOI inspection device provided by an embodiment of the present invention. Figure 5 As shown, the AOI inspection device 500 includes one or more processors 51 and a memory 52. Figure 5 A processor 51 is taken as an example.
[0142] The processor 51 and the memory 52 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0143] The memory 52, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the configuration method of the AIO algorithm model in the embodiment of the present invention. The processor 51 executes various functional applications and data processing of the configuration device of the AIO algorithm model by running the non-volatile software programs, instructions and modules stored in the memory 52, that is, realizes the configuration method of the AIO algorithm model provided in the above method embodiment and the functions of each module or unit in the above device embodiment.
[0144] The memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0145] The program instructions / modules are stored in the memory 52, and when executed by the one or more processors 51, the configuration method of the AOI algorithm model in any of the above method embodiments is executed.
[0146] The embodiment of the present invention further provides a storage medium, wherein the storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors, such as Figure 5A processor 51 in the embodiment may enable the one or more processors to execute the configuration method of the AOI algorithm model in any of the above method embodiments.
[0147] An embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by an AOI detection device, the AOI detection device executes any one of the configuration methods of the AOI algorithm model.
[0148] The above described device or equipment embodiments are merely illustrative, wherein the unit modules described as separate components may or may not be physically separated, and the components displayed as module units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A configuration method of an AOI algorithm model, characterized in that: include: In response to a selection operation input on an algorithm name list on an algorithm model management page, a target name object and a primary file path corresponding to the target name object are determined, wherein the algorithm name list includes a plurality of name objects, and the name objects are used to represent algorithm types of various AOI algorithm models capable of detecting defects of the same device, and different AOI algorithm models under the name objects can detect different types of devices; Obtain an algorithm model file, wherein the algorithm model file is used to generate an AOI algorithm model; According to the main file path, a target folder is generated and the algorithm model file is configured under the target folder.
2. The method according to claim 1, characterized in that According to the main file path, generating a target folder and configuring the algorithm model file in the target folder includes: Generate a multi-level target folder under the main file path, wherein the file path of the next-level target folder includes the file path of the previous-level target folder; The algorithm model file is configured in the final target folder.
3. The method according to claim 2, characterized in that The multi-level target folder includes model folders and version folders constructed step by step, and generating the multi-level target folder under the main file path includes: Determine a characteristic folder corresponding to the main file path, wherein the characteristic folder is used to store each of the model folders for detecting the same device defect but different devices; Generate the model folder under the feature folder, the model folder is used to store the version folders of different versions for detecting the same type of devices and the same device defects; The version folder is generated under the model folder, and the version folder is used to store the algorithm model file.
4. The method according to claim 2, characterized in that: The multi-level target folder includes model folders and version folders constructed level by level, and the method further includes: When the model folder stores at least two version folders, obtaining a feedback log of the algorithm model file under each version folder, wherein the feedback log includes a detection feedback result of the device after being detected by the AOI algorithm model; According to the detection feedback result, the monitoring file is updated, the monitoring file is stored in the directory of the model folder, and the monitoring file includes the feedback score of the algorithm model file corresponding to each version in the model folder; Based on the feedback score, the presentation of the version folder is controlled.
5. The method according to claim 4, characterized in that The controlling the presentation of the version folder according to the feedback score comprises: Determining whether the feedback score is lower than a preset score threshold; If it is lower than that, the version folder corresponding to the feedback score is controlled to be hidden in the directory of the model folder; If it is higher, the version folder corresponding to the feedback score is controlled to be presented under the directory of the model folder.
6. The method according to claim 4, characterized in that The updating of the monitoring file according to the detection feedback result includes: When the detection feedback result is a negative feedback result, lowering the feedback score of the algorithm model file corresponding to the detection feedback result, and increasing the feedback scores of the algorithm model files other than the algorithm model file corresponding to the detection feedback result; When the detection feedback result is a positive feedback result, the feedback score of the algorithm model file corresponding to the detection feedback result is kept unchanged.
7. The method according to any one of claims 1 to 6, characterized in that: The target name object includes: Searching the algorithm name list for the name object selected by the selection operation; Use the selected name object as the target name object.
8. The method according to any one of claims 1 to 6, characterized in that: The upper level file path of the primary file path is a file path common to all the name objects.
9. A storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to enable the AOI detection equipment to execute the configuration method of the AOI algorithm model according to any one of claims 1 to 8.
10. An AOI inspection device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the configuration method of the AOI algorithm model as described in any one of claims 1 to 8.
Citation Information
Cited By
Dynamic product surface defect detection system and method based on mechanical arm
CN120404736A
