A product detection method, device and system

By having the upper computer request IDs from the controller at specific product positions, the method ensures accurate ID-image binding in machine vision systems, preventing misclassification of products.

CN115937189BActive Publication Date: 2025-07-15BEIJING LUSTER LIGHTTECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211711629.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-07-15
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

In the existing machine vision detection system, ID number and image binding are prone to misalignment, resulting in bad product removal errors and pose quality risks.

Method used

Using master-slave communication method, the controller generates an identifier and uploads it when receiving a request from the host computer, canceling the dual queue matching of the host computer to ensure the correct binding of the identifier to the image.

Benefits of technology

In abnormal situations, it can also ensure that the matching relationship between the logo and the image is correct, avoiding bad product removal errors and improving the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115937189B_ABST
    Figure CN115937189B_ABST
Patent Text Reader

Abstract

This application relates to the field of industrial vision technology, and particularly to a product detection method, device and system, which can solve the problem of easy misalignment in the binding of ID numbers and images existing in the prior art. The product detection method is applied to a host computer, and the host computer is respectively connected to a controller and at least two image acquisition devices, and includes: receiving an image of a product to be detected transmitted by the image acquisition device, wherein when the product to be detected moves to one of the image acquisition devices, the controller triggers the image acquisition device to capture an image of the product to be detected and transmits the image to the host computer; transmitting an identification request to the controller, and the controller generates an identification corresponding to the product to be detected when detecting that the product to be detected moves to the first position; receiving the identification corresponding to the identification request transmitted by the controller and determining that the identification corresponds to the image; determining the detection result of the product to be detected by detecting images in the same set, and the identifications corresponding to the images in the same set are the same.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial vision technology. Specifically, it relates to a product detection method, device, and system. Background Art

[0002] Generally, a machine vision detection system first obtains an image of the object to be measured through an image acquisition unit, then uses a computer to perform image processing on the image to obtain relevant detection information of the object to be measured, and forms a judgment decision on the object to be measured. Finally, the sorting of the object to be measured is completed according to the decision information.

[0003] In the prior art, multiple imaging stations are set in a machine vision detection system, and each imaging station is provided with an image acquisition device. When the object to be measured moves to the first position on the production line, the controller generates an ID number. When the object to be measured continues to move to the periphery of each imaging station equipped with an image acquisition device on the production line, the controller controls the image acquisition device at the imaging station to capture the object to be measured, obtaining an image corresponding to the object to be measured. When the host computer acquires the image sent by each image acquisition unit, it also acquires the ID number sent by the control unit and binds the ID number to the image, so that the images of the same object to be measured carry the same ID number. Then, the host computer matches the images with the same ID number together, and then detects the images with the same ID number to obtain the detection result. Since the images with the same ID number are images of the same object to be measured, the detection result can reflect whether the object to be measured is a defective product, and the defective product is removed.

[0004] It can be seen that the binding of the ID number transmitted by the control unit to the corresponding image transmitted by the image acquisition unit is the basis for the host computer to output the detection result. In the above process of binding the ID number to the image, the host computer uses double-queue matching, that is, matching the ID number queue and the image queue in sequence. However, in case of communication anomalies or communication interference, causing the host computer to receive one less ID number information, or due to the trigger anomaly of the acquisition card for transmitting the image acquired by the image acquisition unit, causing the host computer to obtain one less image, it will cause the misalignment of the binding or matching of the ID number and the image, resulting in misalignment of rejection, with the risk of letting defective products pass. At the same time, if the binding is misaligned once, subsequent bindings will continue to be misaligned, thus bringing significant quality risks. Summary of the Invention

[0005] To solve the problem of easy misalignment in binding the ID number and the image in the prior art, this application provides a product detection method, device, and system.

[0006] The embodiments of this application are implemented as follows:

[0007] An embodiment of the present application provides a product detection method, which is applied to a host computer. The host computer is respectively connected to a controller and at least two image acquisition devices, and includes:

[0008] Receiving an image of a product to be detected transmitted by the image acquisition device. Wherein, when the product to be detected moves to a corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture an image of the product to be detected and transmits the image to the host computer;

[0009] Transmitting an identification request to the controller. When the controller detects that the product to be detected moves to the first position, it generates an identification corresponding to the product to be detected;

[0010] Receiving the identification corresponding to the identification request transmitted by the controller and determining that the identification corresponds to the image;

[0011] Determining a detection result of the product to be detected by detecting the images in the same set, where the identifications corresponding to the images in the same set are the same.

[0012] In some embodiments, after transmitting the identification request to the controller, it further includes:

[0013] If the identification corresponding to the identification request is not received within a preset time period, transmitting the identification request to the controller again;

[0014] If the identification is not received after transmitting the identification request to the controller n times, where n is an integer greater than or equal to 1, generating a warning message.

[0015] In some embodiments, it further includes:

[0016] If the identification is not received after transmitting the identification request to the controller n times, performing a rejection operation on the image.

[0017] Another embodiment of the present application further provides a product detection method, which is applied to a controller. The controller is respectively connected to a host computer and at least two image acquisition devices, and includes:

[0018] When detecting that the product to be detected moves to the first position, generating an identification corresponding to the product to be detected and storing it;

[0019] When the product to be detected moves to a corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture an image of the product to be detected and triggers the image acquisition device to transmit the image to the host computer;

[0020] After receiving the identification request transmitted by the host computer, transmit the stored identification to the host computer, where the identification is used by the host computer to determine whether the images belong to the same set, and the identifications corresponding to the images in the same set are the same.

[0021] In some embodiments, after receiving the identification request transmitted by the host computer, transmitting the stored identification to the host computer includes:

[0022] After receiving the identification request signal transmitted by the host computer, if the image is captured by the image acquisition device closest to the first position, transmit to the host computer the identification generated when the product under test moves to the first position;

[0023] If the image is captured by any one of the image acquisition devices other than the image acquisition device closest to the first position, transmit to the host computer the same identification as the previously transmitted identification.

[0024] In some embodiments, it further includes: if the image is captured by any one of the image acquisition devices other than the image acquisition device closest to the first position and no identification has been transmitted to the host computer previously, transmit to the host computer the identification generated when the product under test moves to the first position.

[0025] In some embodiments, the controller is further connected to a position sensor, and it further includes: determining the position where the product under test moves based on the information transmitted by the position sensor.

[0026] Another embodiment of the present application further provides a product detection device applied to a host computer, where the host computer is respectively connected to a controller and at least two image acquisition devices, and includes:

[0027] A first receiving module, configured to receive the image of the product under test transmitted by the image acquisition device. Among them, when the product under test moves to the corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture the image of the product under test and transmits the image to the host computer;

[0028] A first generating module, configured to transmit an identification request to the controller, and the controller generates an identification corresponding to the product under test when detecting that the product under test moves to the first position;

[0029] A second receiving module, configured to receive the identification corresponding to the identification request transmitted by the controller and determine that the identification corresponds to the image;

[0030] A detection module, which is used to determine the detection result of the product to be tested by detecting the images in the same set, and the identifiers corresponding to the images in the same set are the same.

[0031] Another embodiment of the present application further provides a product detection device, which is applied to a controller. The controller is respectively connected to a host computer and at least two image acquisition devices, and includes:

[0032] A second generation module, which is used to generate and store an identifier corresponding to the product to be tested when it is detected that the product to be tested moves to the first position;

[0033] A trigger module, which is used to trigger the image acquisition device to capture an image of the product to be tested and trigger the image acquisition device to transmit the image to the host computer when the product to be tested moves to the corresponding position of one of the image acquisition devices;

[0034] A transmission module, which is used to transmit the stored identifier to the host computer after receiving the identifier request transmitted by the host computer. The identifier is used for the host computer to determine whether the images belong to the same set, and the identifiers corresponding to the images in the same set are the same.

[0035] Another embodiment of the present application further provides a product detection system, which includes a host computer, an image acquisition device and a controller. The host computer, the image acquisition device and the controller are communicatively interconnected; wherein, the host computer is used to execute the product detection method, and the controller is used to execute the product detection method.

[0036] Advantages of the present application: By changing the transmission method of the identifier, the double-queue matching relationship of the host computer is cancelled. Instead, after the host computer receives the image, it sends an identifier request to the controller, and the controller uploads the identifier to the host computer when it receives the identifier request. Through the above method, the controller no longer actively uploads the identifier to the host computer, but forms a master-slave communication mode with the host computer, and only allows the host computer to actively obtain the ID number from the controller, so as to solve the problem of misalignment of the binding between the identifier and the image caused by abnormal situations;

[0037] For example, if the image collected by an image acquisition device is lost, the host computer cannot receive the image, and the host computer cannot obtain the identifier from the control unit register either. If the host computer receives the image collected by the next image acquisition unit later, the host computer actively obtains the identifier from the controller and binds the image with the identifier. It can be seen that the present application can still ensure the correct matching relationship between the identifier obtained by the host computer and the image under abnormal situations. Description of the Drawings

[0038] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0039] Figure 1 Exemplarily shown is a schematic diagram of a product detection system provided by an embodiment of the present application;

[0040] Figure 2 Exemplarily shown is a flowchart of a product detection method provided by another embodiment of the present application;

[0041] Figure 3 Exemplarily shown is a flowchart of a product detection method provided by another embodiment of the present application;

[0042] Figure 4 Exemplarily shown is a block diagram of a product detection device applied to a host computer provided by another embodiment of the present application;

[0043] Figure 5 Exemplarily shown is a block diagram of a product detection device applied to a controller provided by another embodiment of the present application;

[0044] Figure 6 Exemplarily shown is a flowchart of the interaction process among the host computer, the image acquisition device, and the controller in a product detection system provided by another embodiment of the present application. Detailed Embodiments

[0045] To make the objectives, implementation manners, and advantages of the present application clearer, the following will clearly and completely describe the exemplary implementation manners of the present application with reference to the accompanying drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only a part of the embodiments of the present application, rather than all of the embodiments.

[0046] It should be noted that the brief description of the terms in the present application is only for facilitating the understanding of the following described implementation manners, rather than intending to limit the implementation manners of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.

[0047] The terms "first", "second", "third", etc. in the description, claims, and the above accompanying drawings of the present application are used to distinguish similar or the same kind of objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that such terms can be interchanged under appropriate circumstances.

[0048] The terms "comprising", "having" and any variations thereof are intended to cover inclusion without exclusivity. For example, a product or device comprising a series of components need not be limited to all the components clearly listed, but may include other components not clearly listed or inherent to such products or devices.

[0049] The terms "arranged" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium, and can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0050] Figure 1 An exemplary schematic diagram of a product detection system provided by an embodiment of the present application is shown, as Figure 1 shown, the product detection system includes a host computer, a controller communicatively connected to the host computer, a position sensor communicatively connected to the controller, an image acquisition device communicatively connected to the controller and the host computer respectively, and a rejection mechanism communicatively connected to the controller, and a conveying mechanism for conveying the product to be tested. During the process of the conveying mechanism conveying the product to be tested, the position sensor is used to detect the position of the product to be tested, the image acquisition device is used to capture an image of the product to be tested, the host computer and the controller are used to control the position sensor, the image acquisition device and the rejection mechanism, and to detect the product to be tested, and the rejection mechanism is used to reject the product with a defective detection result.

[0051] Figure 2 An exemplary flow schematic diagram of a product detection method provided by another embodiment of the present application is shown.

[0052] As Figure 2 shown, a product detection method provided by an embodiment of the present application, which is applied to a host computer, and the host computer is respectively connected to a controller and at least two image acquisition devices, includes the following steps:

[0053] In step 210, receive the image of the product to be tested transmitted by the image acquisition device, wherein when the product to be tested moves to the corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture an image of the product to be tested and transmits the image to the host computer;

[0054] In some embodiments, according to the transmission direction when the conveying mechanism conveys the product to be tested, the corresponding position of the graphic acquisition device is behind the first position.

[0055] In step 220, transmit an identification request to the controller, and the controller generates an identification corresponding to the product to be tested when detecting that the product to be tested moves to the first position.

[0056] In some embodiments, if the product to be tested is different, the corresponding identifier is also different. The identifier can be an ID number. For example, when the controller detects that the product to be tested 1 moves to the first position, it generates the identifier 001 corresponding to the product to be tested 1. When the controller detects that the product to be tested 2 moves to the first position, it generates the identifier 002 corresponding to the product to be tested 2, and so on. Different identifiers are generated for different products to be tested. The identifiers can be consecutive numbers or other identification rules, as long as different products to be tested correspond to different identifiers.

[0057] In step 230, receive the identifier corresponding to the identifier request transmitted by the controller, and determine that the identifier corresponds to the image.

[0058] In step 240, by detecting images in the same set, determine the test result of the product to be tested. The identifiers corresponding to the images in the same set are the same.

[0059] In some embodiments, generally at least two image acquisition devices are provided. These image acquisition devices capture images of the product to be tested, obtaining images of the product to be tested in different aspects. For example, the image acquisition device can capture images including the shape or color of the product to be tested, and can also capture three-dimensional images of the product to be tested (such as bubbles, scratches, embossments and depressions). The images with the same identifier are grouped together for detection to determine the test result of the product to be tested.

[0060] When determining the test result of the product to be tested, it is mainly to judge whether the images in the same set match the template image: if at least one of the images in the same set does not match the template image, the product to be tested corresponding to the identifier of this set is determined to be a defective product; if all the images in the same set match the template image, the product to be tested corresponding to the identifier of this set is determined to be a good product.

[0061] In some embodiments, after transmitting the identifier request to the controller, it further includes:

[0062] If the identifier corresponding to the identifier request is not received within the preset time period, transmit the identifier request to the controller again.

[0063] If the identifier is not received after transmitting the identifier request to the controller n times, where n is an integer greater than or equal to 1, and the value of n can be 1, 2, 3 or 4, a warning message is generated.

[0064] In some embodiments, if the identifier is not received after transmitting the identifier request to the controller n times, a reject inspection operation is performed on the images.

[0065] In this application, after receiving an image, the host computer sends an identification request to the controller. When the controller receives the identification request, it uploads the identification to the host computer. Through the above method, the controller no longer actively uploads the identification to the host computer, but forms a master-slave communication mode with the host computer, only allowing the host computer to actively obtain the ID number from the controller, thus solving the problem of misalignment between the identification and the image caused by abnormal situations.

[0066] For example, if the image collected by an image acquisition device is lost, the host computer cannot receive the image and cannot obtain the identification from the control unit register. If the host computer subsequently receives the image collected by the next image acquisition unit, the host computer actively obtains the identification from the controller and binds the image to the identification. It can be seen that this application can still ensure the correct matching relationship between the identification obtained by the host computer and the image under abnormal situations.

[0067] Figure 3 Exemplarily shows a schematic flowchart of a product detection method provided by another embodiment of this application.

[0068] As Figure 3 shown, a product detection method provided by an embodiment of this application is applied to a controller. The controller is respectively connected to a host computer and at least two image acquisition devices, and includes the following steps:

[0069] In step 310, when it is detected that the product to be tested moves to the first position, an identification corresponding to the product to be tested is generated and stored.

[0070] In step 320, when the product to be tested moves to the corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture an image of the product to be tested, and triggers the image acquisition device to transmit the image to the host computer.

[0071] In some embodiments, according to the transmission direction when the conveying mechanism conveys the product to be tested, the corresponding position of the graphic acquisition device is located after the first position.

[0072] In step 330, after receiving the identification request transmitted by the host computer, the stored identification is transmitted to the host computer, and the identification is used for the host computer to determine whether the images belong to the same set, and the identifications corresponding to the images in the same set are the same.

[0073] In some embodiments, after receiving the identification request transmitted by the host computer, transmitting the stored identification to the host computer includes the following steps:

[0074] After receiving the identification request signal transmitted by the host computer, if the image is captured by the image acquisition device closest to the first position, the identification generated when the product to be tested moves to the first position is transmitted to the host computer.

[0075] If the image is captured by any one of the image capture devices other than the one closest to the first position, the same identifier as the previously transmitted identifier is transmitted to the host computer.

[0076] In some embodiments, if the image is captured by any one of the image capture devices other than the one closest to the first position and no identifier was transmitted to the host computer previously, the identifier generated when the product under test moves to the first position is transmitted to the host computer.

[0077] Through the above embodiments, it can be ensured that when the controller generates identifiers corresponding to multiple products under test, after receiving the identifier request transmitted by the host computer, the identifier transmitted to the host computer corresponds to the product under test.

[0078] In some embodiments, the controller of the present application is further connected to a position sensor, and further includes: determining the position where the product under test moves based on the information transmitted by the position sensor. When it is determined that the product under test is at the first position, the controller is triggered to generate an identifier corresponding to the product under test.

[0079] In the present application, after receiving the image, the host computer sends an identifier request to the controller, and the controller uploads the identifier to the host computer upon receiving the identifier request. Through the above method, the controller no longer actively uploads the identifier to the host computer, but forms a master-slave communication mode with the host computer, only allowing the host computer to actively obtain the ID number from the controller, thus solving the problem of misalignment between the identifier and the image caused by abnormal situations;

[0080] For example, if the image captured by an image capture device is lost, the host computer cannot receive the image, and the host computer cannot obtain the identifier from the control unit register either. If the host computer subsequently receives the image captured by the next image capture unit, the host computer actively obtains the identifier from the controller and binds the image to the identifier. It can be seen that the present application can still ensure the correct matching relationship between the identifier obtained by the host computer and the image under abnormal situations.

[0081] Figure 4 Exemplarily shows a structural block diagram of a product detection device provided in another embodiment of the present application applied to a host computer, as Figure 4 shown, a product detection device 400 is applied to a host computer, and the host computer is respectively connected to a controller and at least two image capture devices, including: a first receiving module 410, a first generating module 420, a second receiving module 430, and a detection module 440, where:

[0082] The first receiving module is configured to receive the image of the product under test transmitted by the image capture device. Among them, when the product under test moves to the corresponding position of one of the image capture devices, the controller triggers the image capture device to capture the image of the product under test and transmits the image to the host computer;

[0083] The first generation module is used to transmit an identification request to the controller. When the controller detects that the product to be tested moves to the first position, it generates an identification corresponding to the product to be tested.

[0084] The second receiving module is used to receive the identification corresponding to the identification request transmitted by the controller and determine that the identification corresponds to the image.

[0085] The detection module is used to determine the detection result of the product to be tested by detecting images in the same set. The identifications corresponding to the images in the same set are the same.

[0086] Figure 5 Exemplarily shown is a structural block diagram of a product detection device applied to a controller provided by another embodiment of the present application, as Figure 5 shown. A product detection device 500 is applied to a controller. The controller is respectively connected to a host computer and at least two image acquisition devices, and includes: a second generation module 510, a trigger module 520, and a transmission module 530, where:

[0087] The second generation module 510 is used to generate and store an identification corresponding to the product to be tested when it detects that the product to be tested moves to the first position.

[0088] The trigger module 520 is used to trigger the image acquisition device to capture an image of the product to be tested and trigger the image acquisition device to transmit the image to the host computer when the product to be tested moves to the corresponding position of one of the image acquisition devices.

[0089] The transmission module 530 is used to transmit the stored identification to the host computer after receiving the identification request transmitted by the host computer. The identification is used for the host computer to determine whether the images belong to the same set. The identifications corresponding to the images in the same set are the same.

[0090] Figure 6 Exemplarily shown is a flowchart of the interaction process among the host computer, the image acquisition device, and the controller in a product detection system provided by another embodiment of the present application.

[0091] As Figure 6 shown, a product detection system provided by an embodiment of the present application includes a host computer, an image acquisition device, and a controller, and the host computer, the image acquisition device, and the controller are communicatively interconnected; among them, the host computer, the image acquisition device, and the controller respectively execute the following steps in the product detection method:

[0092] Step 610, when the controller detects that the product to be tested moves to the first position, it generates an identification corresponding to the product to be tested.

[0093] Step 620: When the product to be tested moves to the corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device;

[0094] Step 630: The image acquisition device captures an image of the product to be tested and transmits the image of the product to be tested to the host computer;

[0095] Step 640: After receiving the image corresponding to the product to be tested, the host computer transmits an identification request to the controller;

[0096] Step 650: After receiving the identification request, the controller transmits the stored identification to the host computer;

[0097] Step 660: The host computer receives the identification corresponding to the identification request transmitted by the controller and determines that the identification corresponds to the image;

[0098] Step 670: The host computer determines the test result of the product to be tested by detecting the images in the same set, and the identification corresponding to the images in the same set is the same.

[0099] In this application, after receiving the image, the host computer sends an identification request to the controller. When the controller receives the identification request, it uploads the identification to the host computer. Through the above method, the controller no longer actively uploads the identification to the host computer, but forms a master-slave communication mode with the host computer, and only allows the host computer to actively obtain the ID number from the controller, solving the problem of misalignment between the identification and the image caused by abnormal situations;

[0100] For example, if the image captured by an image acquisition device is lost, the host computer cannot receive the image, and the host computer cannot obtain the identification from the control unit register. If the host computer subsequently receives the image captured by the next image acquisition unit, the host computer actively obtains the identification from the controller and binds the image and the identification. It can be seen that this application can still ensure the correct matching relationship between the identification obtained by the host computer and the image under abnormal situations.

[0101] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0102] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0103] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0104] The above embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A product detection method, characterized in that, Applied to the host computer, the host computer is respectively connected to the controller and at least two image acquisition devices, including: Receiving the image of the product to be tested transmitted by the image acquisition device. Among them, when the product to be tested moves to the corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture the image of the product to be tested and transmits the image to the host computer; Transmitting an identification request to the controller, and the controller generates an identification corresponding to the product to be tested when detecting that the product to be tested moves to the first position; Receiving the identification corresponding to the identification request transmitted by the controller and determining that the identification corresponds to the image; Determining the test result of the product to be tested by detecting the images in the same set, and the identifications corresponding to the images in the same set are the same.

2. The product detection method according to claim 1, wherein, After transmitting the identification request to the controller, it further includes: If the identification corresponding to the identification request is not received within the preset time period, transmitting the identification request to the controller again; If the identification is not received after transmitting the identification request to the controller n times, generating a warning message, where n is an integer greater than or equal to 1.

3. The product detection method according to claim 1 or 2, characterized in that, It further includes: If the identification is not received after transmitting the identification request to the controller n times, performing a rejection inspection operation on the image.

4. A product detection method, characterized in that, Applied to the controller, the controller is respectively connected to the host computer and at least two image acquisition devices, including: Generating and storing an identification corresponding to the product to be tested when detecting that the product to be tested moves to the first position; When the product to be tested moves to the corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture the image of the product to be tested and triggers the image acquisition device to transmit the image to the host computer; After receiving the identification request transmitted by the host computer, transmitting the stored identification to the host computer, and the identification is used for the host computer to determine whether the images belong to the same set, and the identifications corresponding to the images in the same set are the same.

5. The product detection method according to claim 4, wherein, After receiving the identification request transmitted by the host computer, transmitting the stored identification to the host computer, including: After receiving the identification request signal transmitted by the host computer, if the image is captured by the image acquisition device closest to the first position, transmitting the identification generated when the product to be tested moves to the first position to the host computer; If the image is captured by any one of the image acquisition devices other than the image acquisition device closest to the first position, transmitting the same identification as the previously transmitted identification to the host computer.

6. The product detection method according to claim 5, characterized in that, It further includes: If the image is captured by any one of the image acquisition devices other than the image acquisition device closest to the first position and no identification has been transmitted to the host computer previously, transmitting the identification generated when the product to be tested moves to the first position to the host computer.

7. The product detection method according to any one of claims 4-6, characterized in that, The controller is also connected to a position sensor, and it further includes: determining the position where the product to be tested moves based on the information transmitted by the position sensor.

8. A product detection device, characterized in that, Applied to a host computer, the host computer is respectively connected to a controller and at least two image acquisition devices, and includes: A first receiving module, configured to receive images of a product to be tested transmitted by the image acquisition device. Wherein, when the product to be tested moves to a corresponding position of one of the image acquisition devices, the controller triggers the image acquisition device to capture an image of the product to be tested and transmits the image to the host computer; A first generating module, configured to transmit an identification request to the controller. When the controller detects that the product to be tested moves to a first position, the controller generates an identification corresponding to the product to be tested; A second receiving module, configured to receive the identification corresponding to the identification request transmitted by the controller and determine that the identification corresponds to the image; A detection module, configured to determine a detection result of the product to be tested by detecting the images in the same set, and the identifications corresponding to the images in the same set are the same.

9. A product detection device, characterized in that, Applied to a controller, the controller is respectively connected to a host computer and at least two image acquisition devices, and includes: A second generating module, configured to generate an identification corresponding to the product to be tested and store it when detecting that the product to be tested moves to a first position; A triggering module, configured to trigger the image acquisition device to capture an image of the product to be tested and trigger the image acquisition device to transmit the image to the host computer when the product to be tested moves to a corresponding position of one of the image acquisition devices; A transmission module, configured to transmit the stored identification to the host computer after receiving the identification request transmitted by the host computer, and the identification is used for the host computer to determine whether the images belong to the same set, and the identifications corresponding to the images in the same set are the same.

10. A product detection system, characterized in that, The system includes a host computer, an image acquisition device and a controller, and the host computer, the image acquisition device and the controller are communicatively interconnected; wherein, the host computer is configured to execute the product detection method according to any one of claims 1-3, and the controller is configured to execute the product detection method according to any one of claims 4-7.

Citation Information

Patent Citations

  • Image sequence matching system and method for visual inspection equipment

    CN112767465A

  • Printed product detecting device

    CN203587525U