Algorithm control method for testing equipment and method for analyzing test results
Through the detection algorithm for judging and skipping abnormalities in the detection device, the problem of low detection efficiency in the prior art is solved, and rapid positioning and resolution of abnormalities are achieved, and detection efficiency is improved.
Patent Information
- Application Number
- CN202111567205.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-12-20
AI Technical Summary
The prior art has low detection efficiency due to the inability to quickly position in device detection, especially when a large number of defective products appear, it is difficult to determine whether it is an abnormality of the image acquisition device or detection algorithm.
By determining whether there is an object detection algorithm set to be skipped in the detection algorithm of the multiple image acquisition devices, and prohibiting its execution in the presence of the object detection algorithm, the output result of the skipped algorithm is ignored, thereby improving detection efficiency.
This method can more easily detect abnormalities or image acquisition devices, quickly locate and solve problems, and improve detection efficiency.
Smart Images

Figure CN114494123B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device detection technology, and in particular to an algorithm control method for detecting equipment and a method for analyzing detection results. Background Art
[0002] Usually, after a device is manufactured, it needs to be inspected for defects before it leaves the factory to eliminate devices with quality defects. Device defect detection generally requires the use of special testing equipment. With the continuous development of science and technology, the structural complexity of various devices and the production capacity of devices are also constantly improving. Correspondingly, higher requirements are placed on device testing equipment.
[0003] In order to inspect the device, the inspection equipment may perform various inspection operations such as taking photos and scanning on the device, and finally perform material cutting operations on the device. The inspection equipment determines whether the device has defects such as damage, glue overflow, and foreign matter by analyzing the collected images. The inspection equipment contains multiple image acquisition devices for collecting images of the device from different angles. For the images collected by different image acquisition devices, the algorithm in the system will process and analyze the images. Since the structures and materials of different surfaces of the device may be different, the possible defects are also different. Correspondingly, the algorithm logic for processing different images is also different. For example, assuming that the shape of the device is a hexahedron, the inspection equipment will contain 6 image acquisition devices to collect images of the 6 surfaces of the hexahedron device respectively. Usually, for the 6 images collected by a device, there will be 6 detection algorithms to process them separately. If the result output by one detection algorithm is defective, the entire device is considered to be defective. In actual applications, the final detection results output by the inspection equipment for many devices may be defective due to an abnormality in a certain detection algorithm or a certain image acquisition device. In the prior art, if a large number of defective products appear during the detection or debugging process, it is impossible to determine whether the image acquisition device or the corresponding detection algorithm is abnormal in a short period of time, and it is difficult to locate the specific problem, resulting in low detection efficiency. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an algorithm control method for detection equipment and a method for analyzing detection results, so as to solve the problem of low detection efficiency in the prior art due to the inability to quickly locate the problem when a large number of defective products appear.
[0005] In order to achieve the above-mentioned object, the first aspect of the present application provides an algorithm control method for a detection device, wherein the detection device includes a plurality of image acquisition devices, each image acquisition device is configured with a corresponding detection algorithm, and each detection algorithm is used to process an image acquired by the corresponding image acquisition device, and the algorithm control method includes:
[0006] Determining whether there is a target detection algorithm set to be skipped among the detection algorithms corresponding to the multiple image acquisition devices; and
[0007] In the event that an object detection algorithm is present, execution of the object detection algorithm is prohibited while the detection algorithm is running for image processing.
[0008] In the embodiment of the present application, it also includes:
[0009] When running the detection algorithm to process the image, the detection result of each detection algorithm is obtained;
[0010] The detection result of the device is determined according to the detection result of each detection algorithm.
[0011] In the embodiment of the present application, determining the detection result of the acquisition object according to the detection result of each detection algorithm includes:
[0012] Perform an AND operation on the detection results of each detection algorithm;
[0013] The detection result of the device is determined according to the result of the AND operation.
[0014] In an embodiment of the present application, when the detection algorithm is run to perform image processing, the result output by each detection algorithm is a first result or a second result, wherein the first result indicates normality and the second result indicates abnormality, and the algorithm control method further includes:
[0015] When running the detection algorithm for image processing, the detection result of the device is determined according to the detection result of each detection algorithm, wherein the detection result of the target detection algorithm is set as the first result, and other detection algorithms output detection results according to actual detection conditions.
[0016] A second aspect of the present application provides a method for analyzing detection results, which is applied to a detection device, wherein the detection device includes a plurality of image acquisition devices, each of which is configured with a corresponding detection algorithm, and each of which is used to process an image acquired by the corresponding image acquisition device. The method includes:
[0017] Acquire an initial detection result obtained by a detection algorithm of an image acquisition device;
[0018] Get the initial number of defective products in the initial test results;
[0019] The target detection algorithm is prohibited from being executed according to the skip instruction input;
[0020] Obtain the number of defective targets in the target detection result when the target detection algorithm is prohibited from being executed;
[0021] Compare the target defective quantity with the initial defective quantity;
[0022] Based on the comparison result between the target defective quantity and the initial defective quantity, it is determined whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm.
[0023] In the embodiment of the present application, judging whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result of the target defective quantity and the initial defective quantity includes:
[0024] Determine whether the difference between the target defective quantity and the initial defective quantity is greater than a preset value;
[0025] When the difference is greater than a preset value, it is determined that there is an abnormality in the target detection algorithm or in a target image acquisition device corresponding to the target detection algorithm.
[0026] In a third aspect, the present application provides an algorithm control device for a detection device, which is applied to the detection device. The detection device includes a plurality of image acquisition devices, each of which is configured with a corresponding detection algorithm, and each detection algorithm is used to process an image acquired by the corresponding image acquisition device. The algorithm control device includes:
[0027] A first judgment module is used to judge whether there is a target detection algorithm set to be skipped among the detection algorithms corresponding to the multiple image acquisition devices; and
[0028] The first prohibition module is used to prohibit the execution of the target detection algorithm when the detection algorithm is run to perform image processing in the case where there is a target detection algorithm set to be skipped.
[0029] In a fourth aspect, the present application provides a device for analyzing detection results, which is applied to a detection device, wherein the detection device includes a plurality of image acquisition devices, each of which is configured with a corresponding detection algorithm, and each of which is used to process an image acquired by the corresponding image acquisition device, and the device includes:
[0030] A second acquisition module is used to acquire an initial detection result obtained by a detection algorithm of the image acquisition device;
[0031] A third acquisition module is used to obtain the initial number of defective products in the initial test result;
[0032] A second prohibition module, used for prohibiting the execution of the target detection algorithm according to the input skip instruction;
[0033] A fourth acquisition module, used to acquire the number of target defective products in the target detection result when the target detection algorithm is prohibited from being executed;
[0034] A comparison module, used to compare the target defective quantity with the initial defective quantity;
[0035] The second judgment module is used to judge whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result of the target defective product quantity and the initial defective product quantity.
[0036] A fifth aspect of the present application provides a storage medium storing a computer program, which is used to execute the above-mentioned algorithm control method for detecting equipment or the above-mentioned method for analyzing detection results when the computer program is run.
[0037] In a sixth aspect, the present application provides a detection device, which includes a memory and a processor, the memory and the processor are connected via a bus, a computer program is stored in the memory, and when the computer program is called by the processor, the above-mentioned algorithm control method for the detection device or the above-mentioned method for analyzing the detection results is executed.
[0038] Through the above technical solution, it is first determined whether there is a target detection algorithm set to be skipped in the detection algorithms corresponding to the multiple image acquisition devices; if there is a target detection algorithm, the target detection algorithm is prohibited from being executed when the detection algorithm is running for image processing. By skipping some detection algorithms, the output results of the skipped algorithms are ignored to affect the overall detection results, thereby making it easier to identify abnormal detection algorithms or image acquisition devices, thereby improving detection efficiency.
[0039] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0041] Figure 1 A schematic diagram of a flow chart of an algorithm control method for detecting a device according to an embodiment of the present application is shown;
[0042] Figure 2 The flowchart of the method for analyzing the detection result according to the embodiment of the present application is schematically shown;
[0043] Figure 3 A schematic diagram of an algorithm control interface according to an embodiment of the present application is schematically shown;
[0044] Figure 4 A schematic diagram of the structure of an algorithm control device for detecting equipment according to an embodiment of the present application is shown;
[0045] Figure 5The schematic diagram shows the structure of a device for analyzing detection results according to an embodiment of the present application;
[0046] Figure 6 The structural block diagram of the detection device according to the embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0049] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0050] Figure 1 The flowchart of the algorithm control method for detecting the device according to the embodiment of the present application is schematically shown. Figure 1 As shown, an embodiment of the present application provides an algorithm control method for a detection device, the detection device may include multiple image acquisition devices, each image acquisition device is configured with a corresponding detection algorithm, each detection algorithm is used to process the image acquired by the corresponding image acquisition device, and the algorithm control method may include the following steps:
[0051] Step 102: determine whether there is a target detection algorithm set to be skipped among the detection algorithms corresponding to the multiple image acquisition devices; and
[0052] Step 104: When a target detection algorithm exists, the target detection algorithm is prohibited from being executed when the detection algorithm is running for image processing, which is equivalent to skipping the execution of part of the algorithm.
[0053] In an embodiment of the present application, the detection device can execute multiple detection algorithms, each detection algorithm corresponds to an image acquisition device, which is used to process the image acquired by the corresponding image acquisition device. Multiple image acquisition devices are used to acquire images of the device from different angles. For images acquired by different image acquisition devices, the detection algorithm in the system will process and analyze the images. Since the structures and materials of different surfaces of the device may be different, the defects that may occur are also different. Accordingly, the algorithm logic for processing different images is also different. When verifying whether the detection algorithm is effective for a certain defect, the best way is to verify it separately in batches. If there is no algorithm skipping function, the only way is to set up one detection algorithm at a time, which is time-consuming and involves a lot of repetitive work. The algorithm skipping of the embodiment of the present application can shield certain temporarily unnecessary algorithms during debugging, thereby conveniently realizing the function of single algorithm verification.
[0054] In an embodiment of the present application, after the detection device has been running for a period of time, if too many defective products (Negative, NG) or the NG ratio is too large (far exceeding the actual situation) are found in the algorithm control interface, it means that there is a problem with the shooting of a certain image acquisition device or the corresponding detection algorithm. At this time, the user can use the algorithm skip function to shield part of the algorithm, and then perform the test again. If it is found that the NG ratio has returned to normal, it can be determined that there is a problem with the shielded part of the algorithm or the corresponding image acquisition device. Algorithm skipping is very helpful in equipment debugging, equipment iteration and upgrading, and replacement of the device under test, because as long as one of the logics of the algorithm detection is NG, the entire product is NG, and the detection algorithm of the remaining pictures will no longer be detected. The algorithm skip setting can conduct targeted test detection of a certain defect to verify whether the detection algorithm can correctly detect product defects.
[0055] Specifically, the processor determines whether there is a target detection algorithm set to be skipped in the detection algorithm. If so, the target detection algorithm set to be skipped is prohibited from being executed. In the embodiment of the present application, the result output by each detection algorithm can be a first result or a second result, the first result indicates normality, and the second result indicates abnormality. The processor can forcibly set the output result of the target detection algorithm set to be skipped to 1, that is, the normal first result, and execute the detection algorithms corresponding to other image acquisition devices normally, and other detection algorithms output detection results according to the actual detection situation.
[0056] The embodiment of the present application executes a skipping function on some detection algorithms, thereby ignoring the impact of the output results of the skipped detection algorithms on the overall detection results, and thus can more easily identify abnormal detection algorithms and image acquisition devices, thereby helping to locate and solve the problem as soon as possible.
[0057] In an embodiment of the present application, the above method may further include:
[0058] When running the detection algorithm to process the image, the detection result of each detection algorithm is obtained;
[0059] The detection result of the device is determined according to the detection result of each detection algorithm.
[0060] Specifically, if one of the algorithm detection logics is NG, the entire product is NG, and the detection algorithm of the remaining images will no longer be detected. The algorithm skip setting can be used to test a defect in a targeted manner to verify whether the detection algorithm can correctly detect the product defect. When running the detection algorithm for image processing, the processor can obtain the detection results of each detection algorithm and determine the detection results of the device based on the detection results of each detection algorithm.
[0061] In one example, determining the detection result of the acquisition object according to the detection result of each detection algorithm may include:
[0062] Perform an AND operation on the detection results of each detection algorithm;
[0063] The detection result of the device is determined according to the result of the AND operation.
[0064] For example, the detection device may include six detection algorithms, and the detection result may include a first result and a second result. The first result is "1", indicating normal, and the second result is "0", indicating abnormal. The detection result of each detection algorithm is ANDed to determine the overall detection result of the device. Assuming that the six detection algorithms are 0, 1, 1, 1, 1, 1, and the result after the AND operation is 0, it means that the entire product is NG. Assuming that the six detection algorithms are 1, 1, 1, 1, 1, 1, and the result after the AND operation is 1, it means that the entire product is good.
[0065] In the embodiment of the present application, when the detection algorithm is run to perform image processing, the result output by each detection algorithm may be a first result or a second result, wherein the first result indicates normality and the second result indicates abnormality, and the algorithm control method may further include:
[0066] When running the detection algorithm for image processing, the detection result of the device is determined according to the detection result of each detection algorithm, wherein the detection result of the target detection algorithm is set as the first result, and other detection algorithms output detection results according to actual detection conditions.
[0067] Figure 2 The flowchart of the method for analyzing the detection results according to the embodiment of the present application is schematically shown. Figure 2 As shown, an embodiment of the present application provides a method for analyzing detection results, which is applied to a detection device. The detection device may include multiple image acquisition devices, each image acquisition device is configured with a corresponding detection algorithm, and each detection algorithm is used to process an image acquired by the corresponding image acquisition device. The method may include the following steps:
[0068] Step 201, obtaining an initial detection result obtained by a detection algorithm of an image acquisition device;
[0069] Step 202, obtaining the initial number of defective products in the initial test results;
[0070] Step 203: prohibiting execution of the target detection algorithm according to the input skip instruction;
[0071] Step 204, obtaining the number of target defective products in the target detection result when the target detection algorithm is prohibited from being executed;
[0072] Step 205: Compare the target defective quantity with the initial defective quantity;
[0073] Step 206: Determine whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm based on the comparison result between the target defective product quantity and the initial defective product quantity.
[0074] Figure 3 The following is a schematic diagram of an algorithm control interface according to an embodiment of the present application. Figure 3 As shown, the user can obtain the test results obtained by the detection algorithm through the algorithm control interface and enter the skip command on the algorithm control interface. The algorithm control interface can display the NG situation and detection flux of the detection results. The display of NG includes the display of quantity and the pie chart distribution of NG and good products. The detection flux is mainly displayed through the tachometer graphical interface. Therefore, the user can also obtain the detection results corresponding to each detection algorithm through the algorithm control interface.
[0075] In an embodiment of the present application, after the detection device has been running for a period of time, if too many NGs or too large a proportion of NGs are found in the algorithm control interface, it means that there is a problem with the shooting of a certain image acquisition device or the corresponding detection algorithm. At this time, the user can skip the algorithm in the algorithm control interface and block some algorithms according to actual needs. Algorithm skipping is very helpful in equipment debugging, equipment iteration upgrades and replacement of devices under test, because as long as one of the logics of the algorithm detection is NG, the entire product will be NG, and the detection algorithm of the remaining pictures will no longer be detected. The algorithm skip setting can conduct a targeted test on a defect to verify whether the detection algorithm can correctly detect product defects.
[0076] Specifically, the user can first obtain the initial detection results of each detection algorithm before the algorithm is skipped, and obtain the initial defective number in the initial detection result. Then select a certain image acquisition device, execute the algorithm skip function for the detection algorithm of the image acquisition device, and the processor prohibits the execution of the target detection algorithm according to the skip instruction of the input target detection algorithm, and obtains the target defective number in the target detection result when the target detection algorithm is prohibited from being executed. Further, the target defective number is compared with the initial defective number, and it is determined whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result of the target defective number and the initial defective number.
[0077] In the embodiment of the present application, step 206, determining whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result of the target defective quantity and the initial defective quantity, may include:
[0078] Determine whether the difference between the target defective quantity and the initial defective quantity is greater than a preset value;
[0079] When the difference is greater than a preset value, it is determined that there is an abnormality in the target detection algorithm or in a target image acquisition device corresponding to the target detection algorithm.
[0080] Specifically, it can be determined whether the difference between the target defective quantity and the initial defective quantity is greater than a preset value. If the difference is greater than the preset value, it is determined that the target detection algorithm or the corresponding target image acquisition device has an abnormality. The user can then determine the location where the abnormality occurs. For example, if the preset value is 50, the initial defective quantity is 100, and after the first target detection algorithm corresponding to the first image acquisition device is disabled, the target defective quantity is 10, indicating that the first image acquisition device or the first target detection algorithm has an abnormality. This allows the user to quickly locate the location where the abnormality occurs and resolve the abnormality.
[0081] The embodiment of the present application executes a skipping function on some detection algorithms, thereby ignoring the impact of the output results of the skipped detection algorithms on the overall detection results, and thus can more easily identify abnormal detection algorithms and image acquisition devices, thereby helping to locate and solve the problem as soon as possible.
[0082] Figure 4 The schematic diagram of the structure of the algorithm control device for detecting equipment according to the embodiment of the present application is shown. Figure 4 As shown, an embodiment of the present application provides an algorithm control device for a detection device, which is applied to the detection device. The detection device may include multiple image acquisition devices, each image acquisition device is configured with a corresponding detection algorithm, and each detection algorithm is used to process the image acquired by the corresponding image acquisition device. The algorithm control device may include:
[0083] A first determination module 402 is used to determine whether there is a target detection algorithm set to be skipped among the detection algorithms corresponding to the multiple image acquisition devices; and
[0084] The first prohibition module 404 is used to prohibit the execution of the target detection algorithm when the detection algorithm is running to perform image processing if there is a target detection algorithm set to be skipped.
[0085] In an embodiment of the present application, the detection device may include multiple detection algorithms, each detection algorithm corresponds to an image acquisition device, and is used to process the image acquired by the corresponding image acquisition device. Multiple image acquisition devices are used to acquire images of the device from different angles. For images acquired by different image acquisition devices, the detection algorithm in the system will process and analyze the images. Since the structures and materials of different surfaces of the device may be different, the defects that may occur are also different. Accordingly, the algorithm logic for processing different images is also different. When verifying whether the detection algorithm is effective for a certain defect, the best way is to verify it separately in batches. If there is no algorithm skipping function, the only way is to set up one detection algorithm at a time, which is time-consuming and involves a lot of repetitive work. The algorithm skipping of the embodiment of the present application can shield certain temporarily unnecessary algorithms during debugging, thereby conveniently realizing the function of single algorithm verification.
[0086] In an embodiment of the present application, after the detection device has been running for a period of time, if too many defective (Negtive, NG) products are found in the algorithm control interface or the NG ratio is too large (far exceeding the actual situation), it means that there is a problem with the shooting of a certain image acquisition device or the corresponding detection algorithm. At this time, the user can use the algorithm skip function to shield part of the algorithm, and then perform the test again. If it is found that the NG ratio has returned to normal, it can be determined that there is a problem with the shielded part of the algorithm or the corresponding image acquisition device. Algorithm skipping is very helpful in device debugging, iterative upgrade of equipment and replacement of tested devices, because as long as one of the logics of algorithm detection is NG, the entire product is NG, and the detection algorithm of the remaining pictures will no longer be detected. The algorithm skip setting can conduct targeted test detection of a defect to verify whether the detection algorithm can correctly detect product defects.
[0087] Specifically, the processor determines whether there is a target detection algorithm set to be skipped in the detection algorithm. If so, the target detection algorithm set to be skipped is prohibited from being executed. In the embodiment of the present application, the result output by each detection algorithm can be a first result or a second result, the first result indicates normality, and the second result indicates abnormality. The processor can forcibly set the output result of the target detection algorithm set to be skipped to 1, that is, the normal first result, and execute the detection algorithms corresponding to other image acquisition devices normally, and other detection algorithms output detection results according to the actual detection situation. .
[0088] The embodiment of the present application executes a skipping function on some detection algorithms, thereby ignoring the impact of the output results of the skipped detection algorithms on the overall detection results, and thus can more easily identify abnormal detection algorithms and image acquisition devices, thereby helping to locate and solve the problem as soon as possible.
[0089] Figure 5 The schematic diagram of the structure of the device for analyzing the detection results according to the embodiment of the present application is shown schematically. Figure 5 As shown, an embodiment of the present application provides a device for analyzing detection results, which is applied to a detection device. The detection device may include multiple image acquisition devices, each image acquisition device is configured with a corresponding detection algorithm, and each detection algorithm is used to process an image acquired by the corresponding image acquisition device. The device may include:
[0090] The second acquisition module 501 is used to acquire the initial detection result obtained by the detection algorithm of the image acquisition device;
[0091] The third acquisition module 502 is used to obtain the initial number of defective products in the initial detection result;
[0092] A second prohibition module 503, used to prohibit the execution of the target detection algorithm according to the input skip instruction;
[0093] A fourth acquisition module 504 is used to acquire the number of target defective products in the target detection result when the target detection algorithm is prohibited from being executed;
[0094] A comparison module 505 is used to compare the target defective quantity with the initial defective quantity;
[0095] The second judgment module 506 is used to judge whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result of the target defective product quantity and the initial defective product quantity.
[0096] like Figure 3 As shown, the user can obtain the test results obtained by the detection algorithm through the algorithm control interface and enter the skip command on the algorithm control interface. The algorithm control interface can display the NG situation and detection flux of the detection results. The display of NG includes the display of quantity and the pie chart distribution of NG and good products. The detection flux is mainly displayed through the tachometer graphical interface. Therefore, the user can also obtain the detection results corresponding to each detection algorithm through the algorithm control interface.
[0097] In an embodiment of the present application, after the detection device has been running for a period of time, if too many NGs or too large a proportion of NGs are found in the algorithm control interface, it means that there is a problem with the shooting of a certain image acquisition device or the corresponding detection algorithm. At this time, the user can skip the algorithm in the algorithm control interface and block some algorithms according to actual needs. Algorithm skipping is very helpful in equipment debugging, equipment iteration upgrades and replacement of devices under test, because as long as one of the logics of the algorithm detection is NG, the entire product will be NG, and the detection algorithm of the remaining pictures will no longer be detected. The algorithm skip setting can conduct a targeted test on a defect to verify whether the detection algorithm can correctly detect product defects.
[0098] Specifically, the user can first obtain the initial detection results of each detection algorithm before the algorithm is skipped, and obtain the initial defective number in the initial detection result. Then select a certain image acquisition device, execute the algorithm skip function for the detection algorithm of the image acquisition device, and the processor prohibits the execution of the target detection algorithm according to the skip instruction of the input target detection algorithm, and obtains the target defective number in the target detection result when the target detection algorithm is prohibited from being executed. Further, the target defective number is compared with the initial defective number, and it is determined whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result of the target defective number and the initial defective number.
[0099] In one example, the second judgment module 506 is specifically used to: judge whether the difference between the target defective quantity and the initial defective quantity is greater than a preset value; if the difference is greater than the preset value, determine that there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm.
[0100] Specifically, it can be determined whether the difference between the target defective quantity and the initial defective quantity is greater than a preset value. If the difference is greater than the preset value, it is determined that the target detection algorithm or the corresponding target image acquisition device has an abnormality. The user can then determine the location where the abnormality occurs. For example, if the preset value is 50, the initial defective quantity is 100, and after the first target detection algorithm corresponding to the first image acquisition device is disabled, the target defective quantity is 10, indicating that the first image acquisition device or the first target detection algorithm has an abnormality. This allows the user to quickly locate the location where the abnormality occurs and resolve the abnormality.
[0101] The embodiment of the present application executes a skipping function on some detection algorithms, thereby ignoring the impact of the output results of the skipped detection algorithms on the overall detection results, and thus can more easily identify abnormal detection algorithms and image acquisition devices, thereby helping to locate and solve the problem as soon as possible.
[0102] An embodiment of the present application further provides a storage medium storing a computer program, which is used to execute the above-mentioned algorithm control method for detecting a device or the above-mentioned method for analyzing a detection result when the computer program is executed.
[0103] Figure 6 The structure block diagram of the detection device according to the embodiment of the present application is schematically shown. Figure 6 As shown, an embodiment of the present application provides a detection device, which includes a memory 610 and a processor 620. The memory 610 and the processor 620 are connected via a bus. A computer program is stored in the memory 610. When the computer program is called by the processor 620, the above-mentioned algorithm control method for the detection device or the above-mentioned method for analyzing the detection results is executed.
[0104] In the embodiment of the present application, the processor 620 may be configured to:
[0105] Determining whether there is a target detection algorithm set to be skipped among the detection algorithms corresponding to the multiple image acquisition devices; and
[0106] In the event that an object detection algorithm is present, execution of the object detection algorithm is prohibited while the detection algorithm is running for image processing.
[0107] Furthermore, the processor 620 may be further configured to:
[0108] When running the detection algorithm to process the image, the detection result of each detection algorithm is obtained;
[0109] The detection result of the device is determined according to the detection result of each detection algorithm.
[0110] Furthermore, the processor 620 may be further configured to:
[0111] The detection results of the collected objects are determined according to the detection results of each detection algorithm, including:
[0112] Perform an AND operation on the detection results of each detection algorithm;
[0113] The detection result of the device is determined according to the result of the AND operation.
[0114] Furthermore, when the detection algorithm is run to perform image processing, the result output by each detection algorithm is a first result or a second result, wherein the first result indicates normality and the second result indicates abnormality. The processor 620 may also be configured to:
[0115] When running the detection algorithm for image processing, the detection result of the device is determined according to the detection result of each detection algorithm, wherein the detection result of the target detection algorithm is set as the first result, and other detection algorithms output detection results according to actual detection conditions.
[0116] Furthermore, the processor 620 may be further configured to:
[0117] Acquire an initial detection result obtained by a detection algorithm of an image acquisition device;
[0118] Get the initial number of defective products in the initial test results;
[0119] The target detection algorithm is prohibited from being executed according to the skip instruction input;
[0120] Obtain the number of defective targets in the target detection result when the target detection algorithm is prohibited from being executed;
[0121] Compare the target defective quantity with the initial defective quantity;
[0122] Based on the comparison result between the target defective quantity and the initial defective quantity, it is determined whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm.
[0123] Furthermore, the processor 620 may be further configured to:
[0124] Determining whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result between the target defective quantity and the initial defective quantity includes:
[0125] Determine whether the difference between the target defective quantity and the initial defective quantity is greater than a preset value;
[0126] When the difference is greater than a preset value, it is determined that there is an abnormality in the target detection algorithm or in a target image acquisition device corresponding to the target detection algorithm.
[0127] Through the above technical solution, it is first determined whether there is a target detection algorithm set to be skipped in the detection algorithms corresponding to the multiple image acquisition devices; if there is a target detection algorithm, the target detection algorithm is prohibited from being executed when the detection algorithm is running for image processing. By skipping some detection algorithms, the output results of the skipped algorithms are ignored to affect the overall detection results, thereby making it easier to identify abnormal detection algorithms or image acquisition devices, thereby improving detection efficiency.
[0128] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0129] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0130] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0132] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0133] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0134] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0135] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0136] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for analyzing test results, applied to a test device, characterized in that: The detection device includes a plurality of image acquisition devices, each image acquisition device is configured with a corresponding detection algorithm, and each detection algorithm is used to process an image acquired by the corresponding image acquisition device. The method includes: Acquire an initial detection result obtained by a detection algorithm of an image acquisition device; Obtaining the initial number of defective products in the initial test result; The target detection algorithm is prohibited from being executed according to the skip instruction input; Obtain the number of defective targets in the target detection result when the target detection algorithm is prohibited from being executed; Comparing the target defective quantity with the initial defective quantity; According to the comparison result between the target defective quantity and the initial defective quantity, it is judged whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm.
2. The method according to claim 1, characterized in that The step of determining whether the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm has an abnormality according to the comparison result between the target defective product quantity and the initial defective product quantity comprises: Determine whether the difference between the target defective quantity and the initial defective quantity is greater than a preset value; When the difference is greater than a preset value, it is determined that an abnormality exists in the target detection algorithm or a target image acquisition device corresponding to the target detection algorithm.
3. A device for analyzing test results, applied to a test device, characterized in that: The detection device comprises a plurality of image acquisition devices, each of which is configured with a corresponding detection algorithm, each of which is used to process an image acquired by the corresponding image acquisition device, and the device comprises: A second acquisition module is used to acquire an initial detection result obtained by a detection algorithm of the image acquisition device; A third acquisition module is used to obtain the initial number of defective products in the initial detection result; A second prohibition module, used for prohibiting the execution of the target detection algorithm according to the input skip instruction; A fourth acquisition module, used to acquire the number of target defective products in the target detection result when the target detection algorithm is prohibited from being executed; A comparison module, used for comparing the target defective product quantity with the initial defective product quantity; The second judgment module is used to judge whether there is an abnormality in the target detection algorithm or the target image acquisition device corresponding to the target detection algorithm according to the comparison result of the target defective product quantity and the initial defective product quantity.
4. A storage medium, characterized in that: The storage medium stores a computer program, which is used to execute the method for analyzing a detection result according to any one of claims 1 to 2 when executed.
5. A detection device, characterized in that: The detection device includes a memory and a processor, and the memory and the processor are connected via a bus. It is characterized in that a computer program is stored in the memory, and when the computer program is called by the processor, the method for analyzing the detection results according to any one of claims 1 to 2 is executed.
