Parallel detection method and device based on AOI equipment, electronic equipment and storage medium

By determining the number of products for parallel detection on the AOI device, creating multiple sets of detection resources, and using data management queues, detection algorithm objects and application threads to achieve parallel detection of multiple products, the problem that existing devices cannot detect multiple products at the same time is solved, and the detection efficiency and data management effect are improved.

CN120490106APending Publication Date: 2025-08-15BEIJING LUSTER LIGHTTECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211723585.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

Existing AOI devices only support the detection of a single product, and cannot achieve parallel detection of multiple products.

Method used

By determining the number of products for parallel detection, creating multiple sets of detection resources, and using each set of detection resources to detect products at different detection locations, including the coordinated work of data management queues, detection algorithm objects and application threads, to realize parallel detection of multiple products.

Benefits of technology

It improves the detection efficiency of AOI equipment, improves the management effect of detection data, and realizes parallel detection of multiple products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120490106A_ABST
    Figure CN120490106A_ABST
Patent Text Reader

Abstract

The invention discloses a parallel detection method and device based on AOI equipment, electronic equipment and a storage medium. The method comprises the following steps: determining the number of products detected in parallel; creating multiple groups of detection resources according to the number of products detected in parallel; and detecting the products at different detection positions by using the groups of detection resources to obtain detection results of the products at the detection positions. Therefore, parallel detection of a plurality of products is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial vision technology, and in particular to a parallel detection method, device, electronic device, and storage medium based on AOI equipment. Background Art

[0002] With the development of intelligent manufacturing and the industrial vision industry, the application of AOI appearance inspection equipment is becoming more and more widespread, and the inspection objects of AOI appearance inspection equipment are also becoming more and more diverse, such as mobile phone screens, LCD screens, headphone cases, lipsticks, etc. Generally, for large-sized products such as LCD screens and mobile phone mid-frames, AOI equipment is often designed to capture and inspect images of a single product, while for smaller products such as headphone cases and lipsticks, AOI equipment is often designed to capture and inspect images of multiple products simultaneously.

[0003] However, currently available testing software only supports the testing of a single product, that is, the testing of the next product can only begin after the testing of one product is completed, and does not support the parallel testing of multiple products. Summary of the Invention

[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one object of the present invention is to propose a parallel inspection method based on AOI equipment to achieve parallel inspection of multiple products.

[0005] The second object of the present invention is to provide a parallel inspection device based on AOI equipment.

[0006] The third object of the present invention is to provide an AOI device.

[0007] A fourth object of the present invention is to provide a computer-readable storage medium.

[0008] To achieve the above objectives, the first embodiment of the present invention proposes a parallel inspection method based on AOI equipment, which includes: determining the number of products to be inspected in parallel; creating multiple groups of inspection resources based on the number of products to be inspected in parallel; and using each group of inspection resources to inspect products at different inspection positions respectively to obtain inspection results for the products at each inspection position.

[0009] The parallel inspection method based on AOI equipment in an embodiment of the present invention determines the number of products to be inspected in parallel, creates multiple groups of inspection resources based on the number of products to be inspected in parallel, and finally uses each group of inspection resources to inspect products at different inspection positions respectively, thereby realizing parallel inspection of multiple products using AOI equipment.

[0010] In some implementable embodiments, the detection resources include a data management queue, a detection algorithm object, and an application thread, wherein each group of the detection resources is used to detect products at different detection positions, respectively, including: storing the collected images to be tested in the data management queue; and using the application thread to call the detection algorithm object to detect the images to be tested in the data management queue.

[0011] In some achievable embodiments, the data management queue includes a plurality of nodes, each of which is used to store the images to be tested of different batches of products at the same detection position.

[0012] In some implementable embodiments, the application thread includes a detection thread and a scheduling thread, and the use of the application thread to call the detection algorithm object to detect the images to be tested in the data management queue includes: when it is detected that the image to be tested is stored in the current node of the data management queue, using the detection thread to call the detection algorithm object to detect the image to be tested until all the images to be tested in the current node are fully detected; and using the detection thread to trigger the scheduling thread to output the detection results.

[0013] In some achievable embodiments, after using the detection thread to trigger the scheduling thread to output the detection result, the method further includes: storing the detection result in the current node of the data management queue.

[0014] In some achievable embodiments, the application thread further includes an exception monitoring thread, and the method further includes: utilizing the exception monitoring thread to perform polling monitoring on all nodes in the data management queue.

[0015] In some feasible embodiments, the exception monitoring thread is used to perform polling monitoring on all nodes in the data management queue, including: when an event is in the starting state, the exception monitoring thread is used to start a timer to obtain the execution duration of the event, wherein the events include image acquisition events, image detection events, and product unloading events; when the execution duration exceeds a preset threshold, the exception monitoring thread is used to trigger the scheduling thread to output the detection result.

[0016] To achieve the above-mentioned purpose, the second embodiment of the present invention proposes a parallel inspection device based on AOI equipment, which includes: a determination module for determining the number of products to be inspected in parallel; a creation module for creating multiple groups of inspection resources according to the number of products to be inspected in parallel; and a detection module for using each group of the inspection resources to inspect products at different inspection positions respectively, so as to obtain inspection results for the products at each of the inspection positions.

[0017] The parallel inspection device based on AOI equipment in an embodiment of the present invention determines the number of products to be inspected in parallel through a determination module; creates multiple groups of inspection resources according to the number of products to be inspected in parallel through a creation module; and finally, the inspection module uses each group of inspection resources to inspect products at different inspection positions respectively, thereby realizing parallel inspection of multiple products using AOI equipment.

[0018] To achieve the above-mentioned purpose, the third embodiment of the present invention proposes an AOI device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the program, it implements the parallel inspection method based on the AOI device proposed in the first embodiment.

[0019] To achieve the above-mentioned purpose, the fourth embodiment of the present invention proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the parallel inspection method based on AOI equipment proposed in the first embodiment of the present invention.

[0020] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is a flow chart of a parallel inspection method based on AOI equipment according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of a method for testing a product using testing resources according to an embodiment of the present invention;

[0023] Figure 3 1 is a block diagram of a parallel inspection device based on AOI equipment according to an embodiment of the present invention;

[0024] Figure 4 It is a structural block diagram of an AOI device according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0026] The following describes a parallel inspection method, apparatus, electronic device, and storage medium based on AOI equipment according to an embodiment of the present invention with reference to the accompanying drawings.

[0027] Figure 1FIG. 1 is a flow chart of a parallel detection method based on AOI equipment according to an embodiment of the present invention. Figure 1 As shown, the method includes the following steps:

[0028] Step S110: Determine the number of products to be tested in parallel.

[0029] Step S120: creating multiple groups of testing resources according to the number of products to be tested in parallel.

[0030] Step S130: Utilize each group of detection resources to respectively detect products at different detection positions to obtain detection results of the products at each detection position.

[0031] Specifically, for products of different sizes to be inspected, different numbers of inspection locations can be configured on the AOI equipment. The number of inspection locations configured on the AOI equipment can determine the number of products to be inspected in parallel. For example, if the product to be inspected is a small lipstick, six inspection locations can be set on the AOI equipment, allowing each six products to be inspected in parallel. The number of products to be inspected in parallel can also be set to six. Before inspecting a product, the number of products to be inspected in parallel can be pre-entered into the inspection software.

[0032] After configuring the number of products to be tested in parallel in the testing software, the testing software can be launched. Upon launch, the testing software will create multiple sets of testing resources based on the number of products to be tested in parallel. In some embodiments, corresponding testing resource templates can be pre-created for different products. Upon launching the testing software, the software simply loads these templates to create multiple sets of testing resources.

[0033] Inspection resources correspond one-to-one with inspection locations of the AOI equipment, with each group of inspection resources used to inspect products at different inspection locations. In some embodiments, the association of inspection resources with inspection locations of the AOI equipment can be accomplished by assigning a code to each group of inspection resources and a code to each inspection location. The codes of the inspection resources and the inspection locations are then used to associate the inspection resources with the inspection locations.

[0034] For example, if the AOI equipment has four inspection locations, each coded as 1#, 2#, 3#, and 4#, the inspection software will create four groups of inspection resources based on the number of products to be inspected in parallel. These groups of resources will be coded as 1#, 2#, 3#, and 4#. In this case, inspection resource 1# will only be used to inspect the product at inspection location 1#. Similarly, inspection resource 2# will only be used to inspect the product at inspection location 2#.

[0035] Figure 21 is a flow chart of a method for detecting a product using detection resources according to an embodiment of the present invention. In some embodiments, the detection resources include a data management queue, a detection algorithm object, and an application thread. Figure 2 As shown, step S130 includes the following steps:

[0036] Step S210: storing the collected image to be tested in a data management queue.

[0037] Step S220: using the application thread to call the detection algorithm object to detect the image to be tested in the data management queue.

[0038] Specifically, each group of detection resources includes a data management queue, a detection algorithm object, and an application thread. The data management queue is used to manage and store the images to be tested and the detection data of the product collected by the AOI equipment; the detection algorithm object is used to detect the images to be tested in the data management queue. Different products may have different detection algorithm objects; the application thread is used to call the detection algorithm object to detect the images to be tested in the data management queue. It should be noted that the functions of the data management queue, detection algorithm object, and application thread in each group of detection resources are the same. Therefore, this embodiment only takes one group of detection resources as an example to specifically introduce the role of the detection resources and the parallel detection process.

[0039] In some embodiments, the data management queue includes multiple nodes, each node is used to store images to be tested of different batches of products at the same detection position. Specifically, multiple nodes can be pre-configured for each group of data management queues, and each node is used to manage and store images to be tested and detection data of different products. As an example, when starting to perform parallel detection on products, the AOI device first performs image acquisition on the first batch of products. The images to be tested acquired by the AOI device at different detection positions will be sent to the corresponding data management queues respectively to store the images to be tested in the first node of the data management queue. After the images to be tested in the first node of the data management queue are inspected, the AOI device will acquire images for the next group of products, and will send the images to be tested acquired at different detection positions to the corresponding data management queue again to store the next group of images to be tested in the second node of the data management queue for subsequent detection, and this cycle will repeat.

[0040] In some embodiments, the application thread includes a detection thread and a scheduling thread. Step S220 includes: upon detecting that an image to be tested is stored in the current node of the data management queue, using the detection thread to call the detection algorithm object to detect the image to be tested until all images to be tested in the current node are fully detected; and using the detection thread to trigger the scheduling thread to output the detection results.

[0041] Specifically, after parallel testing of products begins, the testing thread monitors the first node of the data management queue in real time to detect whether there are images to be tested in the first node. It should be noted that the flag bit of untested images to be tested stored in the node can be marked as 0, while the flag bit of tested product images stored in the node can be marked as 1. This can distinguish whether the product images in the node have been tested, and thus determine whether the node contains images to be tested.

[0042] If the first node has no images to test, the detection thread will continue to monitor the first node. If the first node has images to test, the detection thread will call the detection algorithm object to test the images to test. After the image is tested, the image flag will change to 1. This process will be repeated until all images of the product to be tested in the first node have been tested. The detection thread will then trigger the scheduling thread, which will output the inspection results for all images to be tested in the first node. After the scheduling thread outputs the inspection results, the detection thread will continue to monitor the next node in the data management queue.

[0043] In some embodiments, after the detection thread triggers the scheduling thread to output the detection results, the method further includes storing the detection results in the current node of the data management queue. Specifically, after the detection thread completes detection of all images to be tested in a node, the detection thread triggers the scheduling thread, which integrates the detection results of all images to be tested in the node and stores the detection results in the node.

[0044] In some embodiments, the application thread further includes an exception monitoring thread, and the method further includes: utilizing the exception monitoring thread to poll and monitor all nodes in the data management queue. Specifically, upon initiating parallel testing of products, the exception monitoring thread will poll and monitor all nodes in the data management queue. The exception monitoring thread will monitor the acquisition process of the image to be tested, the testing process of the image to be tested, and the product unloading process in a node.

[0045] In some embodiments, an exception monitoring thread is used to poll and monitor all nodes in the data management queue, including: when an event is in the starting state, the exception monitoring thread is used to start a timer to obtain the execution duration of the event, where the events include image acquisition events, image detection events, and product unloading events; when the execution time exceeds a preset threshold, the exception monitoring thread is used to trigger the scheduling thread to output the detection result.

[0046] Specifically, when the AOI device begins capturing images of a product, the exception monitoring thread starts a timer to determine the execution duration of the image capture event. If the execution duration of the image capture event exceeds a preset threshold, the exception monitoring thread directly triggers the scheduling thread to output the detection result of the current node, indicating an acquisition timeout. The detection thread also terminates the detection process. It should be noted that the preset threshold can be set by the staff based on actual needs and is not specifically limited here.

[0047] If the AOI device captures the image to be tested within the preset threshold time, and the detection thread begins to detect the image to be tested, the abnormality monitoring thread begins to monitor the execution duration of the image detection event. Specifically, when the detection thread begins to detect the image to be tested, the abnormality monitoring thread will restart the timer again to obtain the execution duration of the image detection event. When the execution duration of the image detection event exceeds the preset threshold, the abnormality monitoring thread will trigger the scheduling thread to output the detection result of the current node, which is a detection timeout, and the detection thread will also terminate the detection process.

[0048] If the AOI device is in the initial state of the product unloading process, the exception monitoring thread will also start a timer to determine the execution duration of the product unloading event. If the execution duration of the product unloading event exceeds the preset threshold, the exception monitoring thread will directly trigger the scheduling thread to output the detection result of the current node, which is the unloading timeout.

[0049] It is worth mentioning that during the entire detection process, the scheduling thread is generally in a suspended state. Only when the detection thread or the exception monitoring thread is awakened, the scheduling thread will integrate and output the detection results of the current node.

[0050] As a result, products at different inspection locations on the AOI equipment are inspected using different inspection resources, enabling parallel inspection of multiple products and improving the AOI equipment's inspection efficiency. Furthermore, the images and inspection results of products at different inspection locations are stored in different nodes of different data queues, improving the management of inspection data.

[0051] Figure 3 It is a block diagram of a parallel detection device based on AOI equipment according to an embodiment of the present invention.

[0052] like Figure 3 As shown, the device 300 includes: a determination module 310 for determining the number of products to be tested in parallel, a creation module 320 for creating multiple groups of testing resources according to the number of products to be tested in parallel, and a detection module 330 for using each group of testing resources to test products at different testing positions respectively to obtain the detection results of the products at each testing position.

[0053] Therefore, the number of products to be inspected in parallel is determined by the determination module 310; multiple groups of inspection resources are created according to the number of products to be inspected in parallel by the creation module 320, and finally the inspection module 330 uses each group of inspection resources to inspect products at different inspection positions respectively, thereby realizing the parallel inspection of multiple products using AOI equipment.

[0054] In some embodiments, the detection resources include a data management queue, a detection algorithm object, and an application thread. The detection module 330 is specifically configured to: store the collected images to be detected in the data management queue; and use the application thread to call the detection algorithm object to detect the images to be detected in the data management queue.

[0055] In some embodiments, the data management queue includes multiple nodes, each node being used to store images of products to be tested from different batches at the same testing location.

[0056] In some embodiments, the application thread includes a detection thread and a scheduling thread. The detection module 330 is specifically configured to: upon detecting that an image to be tested is stored in the current node of the data management queue, use the detection thread to call a detection algorithm object to detect the image to be tested until all images to be tested in the current node are fully tested; and use the detection thread to trigger the scheduling thread to output the detection results.

[0057] In some implementations, the detection module 330 is further configured to store the detection result in the current node of the data management queue.

[0058] In some implementations, the application thread further includes an exception monitoring thread. The detection module 330 is further configured to: utilize the exception monitoring thread to perform polling monitoring on all nodes in the data management queue.

[0059] In some embodiments, the detection module 330 is also specifically used to: when an event is in the starting state, use the abnormal monitoring thread to start the timer to obtain the execution duration of the event, where the events include image acquisition events, image detection events, and product unloading events; when the execution time exceeds a preset threshold, use the abnormal monitoring thread to trigger the scheduling thread to output the detection result.

[0060] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0061] Figure 4 It is a structural block diagram of an AOI device according to an embodiment of the present invention.

[0062] like Figure 4 As shown, Figure 4The AOI device 400 shown includes a processor 401 and a memory 403. The processor 401 and the memory 403 are connected, for example, via a bus 402. Optionally, the AOI device 400 may also include a transceiver 404. It should be noted that in actual applications, the number of transceivers 404 is not limited to one, and the structure of the AOI device 400 does not constitute a limitation on the embodiments of the present invention.

[0063] Processor 401 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. Processor 401 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0064] The bus 402 may include a path for transmitting information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 402 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0065] The memory 403 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0066] The memory 403 is used to store application code for executing the solution of the present invention, and is controlled by the processor 401. The processor 401 is used to execute the application code stored in the memory 403 to implement the content shown in the above method embodiment.

[0067] Among them, the AOI equipment 400 includes but is not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The AOI device 400 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0068] It should be noted that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device), or in conjunction with such instruction execution system, apparatus, or device. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transmit a program for use by an instruction execution system, apparatus, or device, or in conjunction with such instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion having one or more wires (electronic device), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.

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

[0070] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0071] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like to indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0072] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0073] In the present invention, unless otherwise specified or limited, the terms "installed," "connected," "connect," "fixed," etc. should be understood in a broad sense. For example, they can refer to fixed connection, detachable connection, or integration; mechanical connection, electrical connection; direct connection, or indirect connection through an intermediate medium; internal communication between two components, or interaction between two components, unless otherwise specified. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.

[0074] In the present invention, unless otherwise expressly specified or limited, when a first feature is "above" or "below" a second feature, it may mean that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediary. Furthermore, when a first feature is "above," "above," or "above" a second feature, it may mean that the first feature is directly above or diagonally above the second feature, or simply means that the first feature is at a higher level than the second feature. When a first feature is "below," "below," or "below" a second feature, it may mean that the first feature is directly below or diagonally below the second feature, or simply means that the first feature is at a lower level than the second feature.

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

Claims

1. A parallel detection method based on AOI equipment, characterized in that: The method comprises: Determine the number of products to be tested in parallel; Creating multiple groups of testing resources according to the number of products to be tested in parallel; Each group of the detection resources is used to detect products at different detection positions respectively, so as to obtain detection results of the products at each detection position.

2. The parallel detection method based on AOI equipment according to claim 1, characterized in that: The detection resources include a data management queue, a detection algorithm object, and an application thread, wherein the detection of products at different detection positions using each group of the detection resources includes: Storing the collected image to be measured in the data management queue; The detection algorithm object is called by the application thread to detect the image to be detected in the data management queue.

3. The parallel detection method based on AOI equipment according to claim 2, characterized in that: The data management queue includes a plurality of nodes, each of which is used to store the images to be tested of different batches of products at the same detection position.

4. The parallel detection method based on AOI equipment according to claim 3, characterized in that: The application thread includes a detection thread and a scheduling thread, and the method of using the application thread to call the detection algorithm object to detect the image to be detected in the data management queue includes: When it is detected that the image to be tested is stored in the current node of the data management queue, the detection thread is used to call the detection algorithm object to detect the image to be tested until all the images to be tested in the current node are completely detected; The detection thread is used to trigger the scheduling thread to output the detection result.

5. The parallel detection method based on AOI equipment according to claim 4, characterized in that: After using the detection thread to trigger the scheduling thread to output the detection result, the method further includes: The detection result is stored in the current node of the data management queue.

6. The parallel detection method based on AOI equipment according to any one of claims 4-5, characterized in that: The application thread also includes an exception monitoring thread, and the method further includes: The abnormality monitoring thread is used to perform polling monitoring on all nodes in the data management queue.

7. The parallel detection method based on AOI equipment according to claim 6, characterized in that: The polling monitoring of all nodes in the data management queue by using the abnormality monitoring thread includes: When an event is in a start state, the abnormality monitoring thread is used to start a timer to obtain the execution duration of the event, wherein the event includes an image acquisition event, an image detection event, and a product unloading event; When the execution time exceeds a preset threshold, the abnormality monitoring thread is used to trigger the scheduling thread to output the detection result.

8. A parallel detection device based on AOI equipment, characterized in that: The device comprises: A determination module, used to determine the number of products to be tested in parallel; A creation module, configured to create multiple groups of testing resources according to the number of products to be tested in parallel; The detection module is used to use each group of the detection resources to respectively detect the products at different detection positions to obtain the detection results of the products at each detection position.

9. An AOI device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the parallel detection method based on the AOI equipment according to claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the parallel detection method based on AOI equipment according to claims 1 to 7 is implemented.