Item inspection device and method therefor

The article inspection device addresses the inefficiency of robots by using natural language-based constraints and image processing to accurately inspect products, enhancing inspection accuracy and efficiency in recognizing goods and instructions.

WO2024191004A1PCT designated stage expired Publication Date: 2024-09-19LG ELECTRONICS INC

Patent Information

Application Number
PCT/KR2023/019766
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-15
Filing Date
2023-12-04
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Robots lack the ability to actively recognize goods and instructions, leading to inefficiencies in tasks previously performed by human workers, such as delivering food, due to their inability to understand natural language-based constraints.

Method used

An article inspection device and method that combines natural language-based constraints with image processing, using a combination of image and text processors to determine if a product image meets predefined constraint conditions through a pre-learned dataset of reference images, enabling precise judgment on product inspection.

Benefits of technology

This approach increases the accuracy and efficiency of product inspection, allowing for the identification of products that do not meet constraints and improving delivery efficiency by providing explicit judgments on individual items and their conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2023019766_19092024_PF_FP_ABST
    Figure KR2023019766_19092024_PF_FP_ABST
Patent Text Reader

Abstract

An item inspection device is presented. The device may comprise: an image processor for performing image processing on an item image that is input; a text processor for performing text processing on constraints for inspection of an item that is input; and an inspection machine for determining whether the item image that is input satisfies the constraints by using the constraints and a pre-learned data set of reference item images related to the constraints or information related to the pre-learned data set.
Need to check novelty before this filing date? Find Prior Art

Description

Product inspection device and method therefor

[0001] The present invention relates to an article inspection device and a method therefor, and more particularly, to an article inspection device and a method therefor based on natural language-based constraints.

[0002] Due to factors such as an aging population, job seekers' reluctance, and employers' burden of costs, robots have emerged to replace jobs requiring simple physical labor. Visiting a restaurant or other business, you'll often see robots delivering food to customers. These delivery robots are expected to be adopted in a wider range of fields, and they are currently being used in settings other than restaurants.

[0003] Robots are expected to perform tasks previously performed by human workers, but the problem lies in their inability to actively recognize delivery items as humans can. Furthermore, if robots cannot recognize instructions or commands from task supervisors as well as humans, additional steps are required to input instructions or commands, potentially leading to inefficiencies in their use.

[0004] Accordingly, the present invention proposes a method for efficiently and precisely determining whether a robot satisfies the constraints of a guide for an item, for example, when delivering a bowl containing multiple fruits to a customer, whether the type of fruit ordered and the number of fruits are contained in the bowl.

[0005] The present invention proposes a device for inspecting goods and a method therefor.

[0006] More specifically, we propose a device and method for performing product inspection by combining natural language-based constraints and images.

[0007] The problems to be solved by the present invention are not limited to the problems to be solved above, and other problems not mentioned can be clearly understood by a person having ordinary skill in the technical field to which the present invention belongs from the description below.

[0008] An article inspection device is proposed, wherein the article inspection device may include an image processor that performs image processing on an input article image; a text processor that performs text processing on constraints for the input article inspection; and an inspector that determines whether the input article image satisfies the constraints by using a pre-learned data set of reference article images related to the constraints and the constraints or information related to the pre-learned data set.

[0009] A method for inspecting an article is proposed, the method being performed by a device for inspecting an article, the method comprising the steps of: performing image processing on an input article image; performing text processing on a constraint condition for inspecting the input article; and using a pre-learned data set of the constraint condition and a reference article image related to the constraint condition or information related to the pre-learned data set to determine whether the input article image satisfies the constraint condition.

[0010] The above problem solving methods are only some of the embodiments of the present invention, and various embodiments reflecting the technical features of the present invention can be derived and understood by a person having ordinary knowledge in the relevant technical field based on the detailed description of the present invention described below.

[0011] The present invention has the following effects.

[0012] According to the present invention, the accuracy and efficiency of product inspection can be improved.

[0013] According to the present invention, it is possible to display or output individual items that fall short of constraint conditions as a result of product inspection and their individual conditions, thereby improving the efficiency of product inspection or product delivery or transmission.

[0014] The effects according to the present invention are not limited to the effects mentioned above, and other effects not mentioned will be clearly understood by those skilled in the art to which the present invention pertains from the detailed description of the invention below.

[0015] The accompanying drawings, which are included as part of the detailed description to aid in understanding the present invention, provide embodiments of the present invention and, together with the detailed description, explain the technical idea of ​​the present invention.

[0016] Figure 1 illustrates the architecture of product inspection according to the prior art.

[0017] Figure 2 shows a reference image of an item and a comparison image of the item.

[0018] Figure 3 illustrates the structure of product inspection according to the present invention.

[0019] Figure 4 illustrates the structure of an article inspection according to the present invention.

[0020] Figure 5 illustrates the structure of an article inspection according to the present invention.

[0021] Figure 6 illustrates a detailed structure of an article inspection according to the present invention.

[0022] Figure 7 shows the results of performance improvement according to the present invention.

[0023] Figure 8 illustrates a detailed structure of an article inspection according to the present invention.

[0024] Figure 9 illustrates a flowchart of a method for inspecting an article according to the present invention.

[0025] Hereinafter, embodiments disclosed in this specification will be described in detail with reference to the attached drawings. Regardless of the drawing numbers, identical or similar components will be given the same reference numbers and redundant descriptions thereof will be omitted. The suffixes "module" and "part" used for components in the following description are assigned or used interchangeably only for the convenience of writing the specification, and do not in themselves have distinct meanings or roles. In addition, when describing the embodiments disclosed in this specification, if it is determined that a specific description of a related known technology may obscure the gist of the embodiments disclosed in this specification, a detailed description thereof will be omitted. In addition, the attached drawings are only intended to facilitate easy understanding of the embodiments disclosed in this specification, and the technical ideas disclosed in this specification are not limited by the attached drawings, and should be understood to include all modifications, equivalents, and substitutes included in the spirit and technical scope of the present invention.

[0026] Terms that include ordinal numbers, such as first, second, etc., may be used to describe various components, but the components are not limited by these terms. These terms are used solely to distinguish one component from another.

[0027] When a component is referred to as being "connected" or "connected" to another component, it should be understood that it may be directly connected or connected to that other component, but that there may be other components intervening. Conversely, when a component is referred to as being "directly connected" or "connected" to another component, it should be understood that there are no other components intervening.

[0028] Singular expressions include plural expressions unless the context clearly indicates otherwise.

[0029] In this application, terms such as “include” or “have” are intended to specify the presence of a feature, number, step, operation, component, part or combination thereof described in the specification, but should be understood not to exclude in advance the possibility of the presence or addition of one or more other features, numbers, steps, operations, components, parts or combinations thereof.

[0030]

[0031] Figure 1 illustrates the architecture of a conventional visual anomaly detection (AD) system. Using a pre-trained image encoder, an image's visual embedding is obtained, which is then decoded to obtain a log-likelihood to detect anomalies in the image.

[0032] Thanks to significant advances in deep learning, research on visual anomaly detection (AD) has made significant progress in recent years, leading to practical deployments in various business sectors, including the detection of various surface defects such as dents, dents, and scratches. However, in reality, visual anomaly detection tasks need to go beyond detecting surface defects and detect higher-level anomalies, such as identifying the number of items within a package or the location of assembly components.

[0033] Therefore, real-world visual anomaly detection (AD) is expected to be more effective when it can handle two types of anomalies: structural anomalies caused by physical damage to the surface of conventional products, and logical anomalies that violate human-defined logical constraints.

[0034]

[0035] Referring to Figure 2, examples of logical anomalies are illustrated. Figure 2(a) illustrates a state where fruit, cereal, bananas, almonds, etc. are properly placed on a tray. Figure 2(b) illustrates a state where a logical anomaly occurs where the fruit and cereal are swapped, and Figure 2(c) illustrates a state where a logical anomaly occurs where some components are missing. The image corresponding to Figure 2(a) can be referred to as an item reference image, and the corresponding constraints can be specified as, "Breakfast always includes two tangerines and one peach, which must be placed on the left side of the tray or box. In addition, the cereal, banana chip, and almond mix must be placed on the right side of the tray or box, with the cereal positioned at the top and filling half of the tray, and the banana chip and almond mix positioned at the bottom and filling the remaining half of the tray." In the following description, the same constraints will be used as the basis for the explanation. The above constraints are merely examples, and other constraints may be applied.

[0036] The two types of anomalies mentioned above often coexist in a single instance and require different approaches for detection. Structural anomalies require recognizing localized defects, while logical anomalies require understanding logical constraints that reflect the global visual context of the product. Most previous visual anomaly detection (AD) research has focused on identifying localized structural defects in product images, requiring new approaches that address both structural and logical anomalies.

[0037] Hereinafter, visual anomaly detection (AD) will be referred to as "object inspection." Object inspection refers to determining whether user (administrator) constraints related to an object are detected in an image of the object. In other words, while the object inspection primarily addressed in this invention focuses on logical anomaly detection, it does not exclude structural anomaly detection.

[0038]

[0039] Figure 3 illustrates a first method of product inspection according to the present invention.

[0040] A means (100) for inputting an image of an article receives an image of the article and transmits it to a text-based object detector (300). A means (200) for inputting constraints receives constraints composed of natural language speech or text information and transmits them to a text-based object detector (300) and a verifier (400). The text-based object detector (300) performs object detection based on the input constraints and, as a result, recognizes individual articles in the image of the article.

[0041] A text-based object detector (300) can match recognized individual items with text information related to the recognized individual items within constraints and convert the information into another form. The converted information can be stored in a semantic space (310). For example, the text-based object detector (300) can vectorize the results of matching individual item information with text information and store the results in a vector space (310).

[0042] The inspector (400) determines whether the product image conforms to the input constraints. If the product image conforms to the input constraints, the inspector (400) can output the result through an audiovisual output device, such as a display or speaker. In addition, if the product image does not conform to the input constraints, the inspector (400) can output the result through an audiovisual output device, such as a display or speaker. If the product image does not conform to the input constraints, the inspector (400) can output the individual non-conforming products and the basis and reasons for such non-conformance through the audiovisual output device.

[0043] According to this, it is possible to make explicit judgments about individual items within the constraints and to confirm the basis and reasons for the judgments.

[0044] Meanwhile, in the method of product inspection illustrated in FIG. 3, the above method can be pre-trained before performing the product inspection. That is, multiple product reference images can be input into the product image input unit (100), and a single constraint condition corresponding thereto can be input to train the "correct answer" into the inspector (400). In the pre-training step, the inspector (400) can average the results of matching the text of multiple product reference images and constraint conditions, and set the averaged information or value as reference information. Then, when the product image and constraint conditions are actually input for product inspection, the inspector (400) can compare the converted matching information obtained as a result of a text-based object detection operation using the corresponding product image and constraint conditions with the reference information, and determine whether the product inspection has failed based on whether the difference between the two information exceeds a preset range. That is, if the difference between the two information exceeds a preset range, the product inspection is determined to have failed; if the difference between the two information is within a preset range, the product inspection is determined to have succeeded.

[0045]

[0046] Figure 4 illustrates a second method of product inspection according to the present invention.

[0047] The second method adopts CLIP (Contrastive Language-Image Pre-training). Simply put, CLIP is trained on a combination of N*N (image, text) pairs made from N (image, text) pairs. CLIP matches N real (image, text) pairs while simultaneously generating N 2 -N incorrect pairs must be distinguished. To achieve this, CLIP is basically structured as a dual encoder, consisting of an image encoder and a text encoder.

[0048] A means (100) for inputting an image of an item receives an image of the item and transmits it to an image encoder (110). The image encoder (110) performs visual embedding on the image of the item or obtains a result of the visual embedding. The result of the embedding can be expressed as an array or vector of numbers of a certain size, and in this specification, performing the embedding or obtaining a result thereof can be expressed as "obtaining an embedding."

[0049] A means (200) for inputting constraints receives constraints composed of natural language speech or text information and transmits them to a text encoder (210). The text encoder (210) obtains a text embedding from the constraints.

[0050] The acquired visual embedding and the acquired text embedding can be aligned with each other based on their similarity. This alignment is referred to as semantically aligned. Although not illustrated, the alignment of the visual embedding and the text embedding can be performed by a controller controlling the video encoder and / or the text encoder, or by a validator (400). To this end, the controller or validator (400) can obtain the similarity between the visual embedding and the text embedding.

[0051] The inspector (400) can compare the previously acquired similarity with a reference threshold to determine whether the product image satisfies the constraints. That is, if the acquired similarity exceeds the reference threshold, the product image satisfies the constraints; otherwise, the product image does not satisfies the constraints.

[0052] If the product image conforms to the constraints, the inspector (400) can output the results through an audio-visual output device, such as a display or speaker. Furthermore, if the product image does not conform to the constraints, the inspector (400) can output the results through an audio-visual output device, such as a display or speaker. If the product image does not conform to the input constraints, the inspector (400) can output the individual non-conforming products, along with the basis and reasons for such non-conformance, through the audio-visual output device.

[0053] According to this, it is possible to make explicit judgments about individual items within the constraints and to confirm the basis and reasons for the judgments.

[0054] Meanwhile, in the method of product inspection illustrated in FIG. 4, the above method can be pre-trained before performing the product inspection. That is, multiple product reference images can be input into the product image input unit (100), and a single constraint condition corresponding thereto can be input to train the “correct answer” into the inspector (400). In the pre-training step, the inspector can obtain visual embeddings and text embeddings using each of the multiple product reference images and the constraint conditions, calculate the similarity between the visual embeddings and the text embeddings, and learn that the calculated similarity exceeds a reference threshold. Through this process, a reference threshold can be set. Thereafter, when the product image and constraint conditions are actually input for product inspection, the inspector (400) can obtain visual and text embeddings using the corresponding product image and constraint conditions, calculate the similarity between them, and compare the calculated similarity with the reference threshold to determine whether the product inspection is successful or not.

[0055]

[0056] Figure 5 illustrates a third method of product inspection according to the present invention. The third method combines the first and second methods described above.

[0057] A means (100) for inputting an image of an article receives an image of the article and transmits it to a text-based object detector (300). A means (200) for inputting constraints receives constraints composed of natural language speech or text information and transmits them to a text-based object detector (300). The text-based object detector (300) performs object detection based on the input constraints and, as a result, recognizes individual articles in the image of the article.

[0058] A text-based object detector (300) can match recognized individual objects with text information related to the recognized individual objects within constraints and convert the information into another form. The converted information can be stored in a semantic space (310). Furthermore, the text-based object detector (300) or the verifier (400) can obtain visual embeddings for each object from the conversion information stored in the semantic space. The obtained visual embeddings can be averaged.

[0059] The means (100) for inputting an image of an item transmits the input image of the item to an image encoder (110). The image encoder (110) obtains a visual embedding from the image of the item. In addition, the means (200) for inputting a constraint condition transmits a constraint consisting of input natural language speech or text information to a text encoder (210). The text encoder (210) obtains a text embedding from the constraint condition.

[0060] The average of the acquired object-specific visual embeddings, the acquired visual embeddings, and the acquired text embeddings can be aligned with each other based on their similarity. This alignment is referred to as semantic alignment. Although not illustrated, the alignment can be performed by a controller controlling the image encoder and / or text encoder, or by a validator (400). For this purpose, the controller or validator (400) can obtain the average of the object-specific visual embeddings, and the similarity between the visual embeddings and the text embeddings.

[0061] The inspector (400) can compare the previously acquired similarity with a reference threshold to determine whether the product image satisfies the constraints. That is, if the acquired similarity exceeds the reference threshold, the product image satisfies the constraints; otherwise, the product image does not satisfies the constraints.

[0062] If the product image conforms to the constraints, the inspector (400) can output the results through an audio-visual output device, such as a display or speaker. Furthermore, if the product image does not conform to the constraints, the inspector (400) can output the results through an audio-visual output device, such as a display or speaker. If the product image does not conform to the input constraints, the inspector (400) can output the individual non-conforming products, along with the basis and reasons for such non-conformance, through the audio-visual output device.

[0063] According to this, it is possible to make explicit judgments about individual items within the constraints and to confirm the basis and reasons for the judgments.

[0064] Meanwhile, in the method of product inspection illustrated in FIG. 5, the above method can be pre-trained before performing the product inspection. That is, multiple product reference images can be input into the product image input unit (100), and a single constraint condition corresponding thereto can be input to train the “correct answer” into the inspector (400). In the pre-training step, the inspector obtains the average visual embedding, visual embedding, and text embedding for each object using each of the multiple product reference images and the constraint condition, and calculates the similarity between the average visual embedding, visual embedding, and text embedding for each object, and can learn that the calculated similarity exceeds a reference threshold. Through this process, a reference threshold can be set. Thereafter, when the product image and constraint condition are actually input for product inspection, the inspector (400) obtains the average visual embedding, visual embedding, and text embedding for each object using the corresponding product image and constraint condition, and calculates the similarity between them, and compares the calculated similarity with the reference threshold to determine whether the product inspection is successful or not.

[0065]

[0066] Figure 6 illustrates a detailed structure of an article inspection according to the present invention.

[0067] The present invention proposes a visual anomaly detection system capable of detecting both structural and logical anomalies in the aforementioned products. Therefore, inspired by scenarios where visual inspections are performed, textual descriptions of logical constraints are utilized as prior knowledge for visual anomaly detection. To achieve this, the textual descriptions of logical constraints must be integrated, and a multimodal representation model is utilized in the visual anomaly detection model.

[0068] To this end, we adopt Contrastive Language-Image Pre-training (CLIP), which is based on visual and text dual encoders trained to align image and text pairs, as illustrated in Figure 6. Furthermore, we propose a CLIP flow that leverages representations in a semantic space based on logical constraints for visual anomaly detection, beyond the visual spatial representation of image data.

[0069] Figure 6 illustrates three variants of CLIPflow: CLIPflow-Visual (Figure 6(a)), CLIPflow-Text (Figure 6(b)), and CLIPflow-Distill (Figure 6(c)). All three variants utilize fine-tuned CLIP to leverage more sophisticated cross-modal representations, and pre-trained ImageNet models for image encoding.

[0070] For semantic encoding, CLIPflow-Visual and CLIPflow-Text use the CLIP visual and text encoders, respectively, and utilize ImageNet and the CLIP encoder for both training and detection. For CLIPflow-Distillation, the knowledge distillation task is performed through an additional mapping module that links the visual encoding of the image encoder to the semantic encoding of the CLIP visual encoder. Unlike CLIPflow-Visual and CLIPflow-Text, the CLIP encoder is removed, and only the visual encoder is used during the inference process.

[0071] - Advance preparation

[0072] 1. Normalization flow for anomaly detection

[0073] The regularization flow is a deep generative model that explicitly models the target distribution p*(y) as a bijective transformation g-1:Y->Z within the latent space Z of the Gaussian basis distribution pz(z). It uses the variable change formula z=g -1 (y), the probability density function of the model for input y∈Y is given as follows.

[0074]

[0075] For visual anomaly detection, y is commonly chosen to be an image feature from a pre-trained feature extractor. The normalization flow g -1 is performed as a mapping function from the high-dimensional feature space to the latent space.

[0076] And then, g -1 The parameters of are optimized by a minimization problem with the following negative log-likelihood loss:

[0077]

[0078] Here, J=∇ y g -1 (y,θ) is the Jacobian for the parameter θ of the flow. Then, the estimated parameterized density The likelihood of image features is calculated from the model. During the detection process, the model assigns low probabilities to ideal inputs and recognizes that they are difficult to sample from the normal training set.

[0079] 2. Multimodal contrastive learning

[0080] Recent research on vision language representation models has provided a new paradigm for vision models by proposing multimodal contrastive learning to align images and text descriptions in a joint vision-language embedding space. In particular, CLIP is a single image encoder I:x→R. d and a text encoder T:t→Rd It adopts a simple dual-encoder architecture. Pretrained on a dataset of 400 million image-text pairs, CLIP's joint vision-language embeddings well-link rich object concepts across different modalities, enabling the visual embeddings to be utilized as semantic text embeddings. CLIP also allows for the direct use of text-based constraints as prior information, motivating the use of multimodal representations for visual anomaly detection leveraging logical constraints.

[0081] - CLIP Flow

[0082] 1. Fine-tune CLIP using text logic constraints

[0083] To improve the similarity between visual and text embeddings and text-logical constraints for non-intimate industrial product images, some CLIP parameters need to be fine-tuned using their target dataset. All layers except the projection layer, which is optimized using the final block of CLIP visual and text encoders and MTVTec LOCO AD, are frozen. Since there is a single definition of logical constraints for each category, we use category-based visual-language contrastive learning proposed by UniCL, providing sentences representing logical constraints for each category as common sample captions. Figure 7 shows the correlation between the similarity of normal image-text constraints and AD performance according to fine-tuning. It was confirmed that the fine-tuning performance affects not only logical anomalies but also structural anomalies.

[0084] 2. CLIP Flow - Visual and Text

[0085] The overall framework of CLIPflow-Visual is illustrated in Figure 8. To input logical constraints, we use the output features of the CLIPflow-Visual encoder as conditional semantic encodings of the normalized flow AD model. We extend the existing normalized flow model to provide a joint representation of multi-scale features from both fine-tuned CLIP and pre-trained ImageNet networks to an invertible transformation module. Furthermore, since image and text embeddings are semantically aligned, we construct the CLIPflow-Text model, which directly injects text into the AD model using the CLIPtext encoder instead of the CLIPflow-Visual encoder.

[0086] Referring to Figure 8, the multi-scale visual and semantic embeddings generated by the pre-trained ImageNet encoder and the fine-tuned CLIP visual encoder are fed to the flow decoder model by forming a joint visual-semantic representation. After the training process, good, structural, and logical anomalies are detected for each category using a single model using the log-likelihood anomaly score. The dotted arrows from the fine-tuned CLIP text encoder to the semantic space indicate that the embeddings of the normal image-text constraint pairs are located in close proximity within the semantic space through the fine-tuning process.

[0087] 3. CLIP flow-distillation

[0088] CLIPflow-Distillation aims to improve the feedforward process of two encoders, CLIP and ImageNet, during the inference process. To achieve this, a lightweight version of CLIPflow-Visual is proposed, along with a semantic mapping module that utilizes knowledge distillation techniques.

[0089] As above, by using a multi-modal model for visual anomaly detection, it is expected that improved inspection results can be obtained in the fields of logical and structural anomalies.

[0090]

[0091] Figure 9 illustrates a flowchart of a method for inspecting an article according to the present invention. The method of Figure 9 may be performed by an article inspection device or a processor or controller of the article inspection device, and the name of the article inspection device does not limit the scope of the present invention. Hereinafter, the article inspection device will be described as performing the method of Figure 9.

[0092] The product inspection device can perform image processing on the input product image (S910).

[0093] The product inspection device can perform text processing on constraints for input product inspection (S920).

[0094] The order of image processing (S910) for the input product image and text processing (S920) for constraints for inspecting the input product does not limit the scope of the present invention. That is, unlike the order of S910 and S920 illustrated in FIG. 9, the order of S910 and S920 may be performed simultaneously, or text processing (S920) may be performed before image processing (S910).

[0095] The product inspection device can determine whether the input product image satisfies the input constraints using the input constraints and a pre-learned data set of reference product images related to the input constraints (S930). Alternatively, the product inspection device can determine whether the input product image satisfies the input constraints using information related to the aforementioned pre-learned data set (S930).

[0096] The pre-trained data set may include data trained on constraint-based object detection input to multiple reference object images.

[0097] Information related to a pre-trained data set may include information about a threshold for similarity between images acquired through the pre-trained data set and constraints or textual information of constraints. More specifically, information related to a pre-trained data set may include information about a threshold for similarity between a visual embedding acquired from an input product image and a textual embedding acquired from an input constraint. Alternatively, information related to a pre-trained data set may include information about a threshold for similarity between an average vector of visual embeddings for each object acquired as a result of constraint-based object detection for an input product image, and a visual embedding acquired from an input product image and a textual embedding acquired from a constraint.

[0098] Alternatively, information related to the pre-trained data set may include thresholds for log-likelihood anomaly scores for visual-semantic representation data that combine visual embeddings obtained from input product images and semantic embeddings obtained from input product images.

[0099] The product inspection device can detect an object from an input product image and match text information of the constraints related to the detected object.

[0100] The product inspection device may determine that the input product image satisfies the constraints when the similarity between the visual embedding obtained from the input product image and the text embedding obtained from the constraints exceeds a preset threshold.

[0101] The product inspection device can determine that the input product image satisfies the constraints when the similarity between the average vector of visual embeddings for each object obtained as an object detection result based on input constraints for the input product image, the visual embedding obtained from the input product image, and the text embedding obtained from the constraints exceeds a preset threshold.

[0102] The product inspection device may determine that the input product image does not satisfy the above constraints when the log-likelihood anomaly score for visual-semantic representation data combining the visual embedding obtained from the input product image and the semantic embedding obtained from the input product image exceeds a preset threshold.

[0103] The product inspection device can output information about the unsatisfied constraints among the constraints to an audio-visual output device such as a display or speaker when the input product image does not satisfy the input constraints.

[0104] Based on the example illustrated in Fig. 2, the satisfaction or dissatisfaction of the constraints is indicated as in the following table, and in the case of an input product image that does not satisfy the constraints, the product inspection device can output the individual unsatisfied constraints to the audio-visual output device.

[0105] Input item image 2(a) 2(b) 2(c) Constraints Whether individual constraints are satisfied / dissatisfied 1 peach Satisfied Satisfied Dissatisfied 2 tangerines Satisfied Satisfied Dissatisfied Location of peaches and tangerines Satisfied Dissatisfied Satisfied Cereal Satisfied Satisfied Satisfied Banana chips Satisfied Satisfied Dissatisfied Location of cereal and banana chips Satisfied Dissatisfied Dissatisfied Ratio of cereal and banana chips Satisfied Satisfied Dissatisfied

[0106]

[0107] In addition, as another aspect of the present invention, the operation of the proposal or invention described above may be implemented, performed or executed by a “computer” (a comprehensive concept including a system on chip (SoC) or a (micro) processor, etc.), or may be provided as a code or a computer-readable storage medium storing or including the code or a computer program product, and the scope of the present invention may be extended to the code or the computer-readable storage medium storing or including the code or the computer program product.

[0108]

[0109] The detailed description of the preferred embodiments of the present invention disclosed above has been provided to enable those skilled in the art to implement and practice the present invention. While the above description has been made with reference to preferred embodiments of the present invention, those skilled in the art will appreciate that various modifications and variations of the present invention, as defined by the following claims, are possible. Accordingly, the present invention is not intended to be limited to the embodiments disclosed herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. As a product inspection device, An image processor that performs image processing on an input image of an item; A text processor that performs text processing on constraints for inspecting input items; and Including a checker that determines whether the input product image satisfies the constraint condition by using the constraint condition and a pre-learned data set of reference product images related to the constraint condition or information related to the pre-learned data set. Goods inspection device.

2. In paragraph 1, A text-based object detector that detects an object from the input product image and matches text information of the constraints related to the detected object, Goods inspection device.

3. In paragraph 1, The above pre-trained data set is, Contains data that learns object detection based on the above constraints for multiple reference object images. , goods inspection device.

4. In paragraph 1, The above pre-trained data set is, i) Semantically aligned data based on the similarity between visual embeddings obtained from the plurality of reference product images and ii) text embeddings obtained from the constraints, for a plurality of reference product images. , goods inspection device.

5. In paragraph 1, The above tester: When the similarity between the visual embedding obtained from the input product image and the text embedding obtained from the constraint exceeds a preset threshold, it is determined that the input product image satisfies the constraint. Goods inspection device.

6. In paragraph 1, The above pre-trained data set is, i) an average vector of visual embeddings for each object obtained as a result of object detection based on the constraints for a plurality of reference product images, ii) visual embeddings obtained from the plurality of reference product images, and iii) semantically aligned data based on the similarity between text embeddings obtained from the constraints. , goods inspection device.

7. In paragraph 1, The above tester: The input product image is determined to satisfy the constraint condition when the similarity between the average vector of the visual embedding for each object obtained as the result of object detection based on the constraint condition for the input product image, the visual embedding obtained from the input product image, and the text embedding obtained from the constraint condition exceeds a preset threshold. Goods inspection device.

8. In paragraph 1, The above pre-trained data set is, It includes visual-semantic representation data that combines visual embeddings obtained from multiple reference product images and semantic embeddings obtained from the multiple reference product images, The above semantic embedding is adjusted based on the text embedding obtained from the above constraints. , goods inspection device.

9. In paragraph 1, The above tester: It is determined that the input product image does not satisfy the constraint condition when the log-likelihood anomaly score for visual-semantic representation data combining the visual embedding obtained from the input product image and the semantic embedding obtained from the input product image exceeds a preset threshold. Goods inspection device.

10. In the first paragraph, when the constraint condition is not satisfied, an output device is included that outputs information about the unsatisfied constraint condition among the constraint conditions. , goods inspection device.

11. As a method for inspecting goods, the method is performed by a device that performs inspection of goods, A step of performing image processing on an input product image and performing text processing on constraints for inspecting the input product; and A step of determining whether the input product image satisfies the constraint condition by using the pre-learned data set of the reference product image related to the constraint condition and information related to the pre-learned set. , method of inspecting goods.

12. In paragraph 11, A step of detecting an object from the above product image and matching text information of the constraints related to the detected object. , method of inspecting goods.

13. In paragraph 11, The above pre-trained data set is, Contains data that learns object detection based on the above constraints for multiple reference object images. , method of inspecting goods.

14. In paragraph 11, The above pre-trained data set is, i) Semantically aligned data based on the similarity between visual embeddings obtained from the plurality of reference product images and ii) text embeddings obtained from the constraints, for a plurality of reference product images. , method of inspecting goods.

15. In paragraph 11, A step of determining that the input product image satisfies the constraint condition when the similarity between the visual embedding obtained from the input product image and the text embedding obtained from the constraint condition exceeds a preset threshold. , method of inspecting goods.

16. In paragraph 11, The above pre-trained data set is, i) an average vector of visual embeddings for each object obtained as a result of object detection based on the constraints for a plurality of reference product images, ii) visual embeddings obtained from the plurality of reference product images, and iii) semantically aligned data based on the similarity between text embeddings obtained from the constraints. , method of inspecting goods.

17. In paragraph 11, A step of determining that the input product image satisfies the constraint condition when the similarity between the average vector of the visual embedding for each object obtained as the result of object detection based on the constraint condition for the input product image, the visual embedding obtained from the input product image, and the text embedding obtained from the constraint condition exceeds a preset threshold value. , method of inspecting goods.

18. In paragraph 11, The above pre-trained data set is, It includes visual-semantic representation data that combines visual embeddings obtained from multiple reference product images and semantic embeddings obtained from the multiple reference product images, The above semantic embedding is adjusted based on the text embedding obtained from the above constraints. , method of inspecting goods.

19. In paragraph 11, A step of determining that the input product image does not satisfy the constraint condition when the log-likelihood anomaly score for visual-semantic representation data combining the visual embedding obtained from the input product image and the semantic embedding obtained from the input product image exceeds a preset threshold. , method of inspecting goods.

20. In the 11th paragraph, a step of outputting information on an unsatisfied constraint among the constraints is included as the constraint condition is unsatisfied. , method of inspecting goods.

21. A non-volatile computer-readable medium storing a computer program configured to perform a method according to any one of claims 11 to 20.

Citation Information

Patent Citations

  • Bidirctional realy system of powerline communication network based on noma and method thereof

    KR103020553B1

  • Visually Guided Machine-learning Language Model

    US20200380403A1

  • Semantic image manipulation using visual-semantic joint embeddings

    US20220036127A1

  • Data compatibility for text-enhanced visual retrieval

    US20230073843A1

Cited By

  • CLIP-based double-prompt optimized few-sample industrial anomaly detection method

    CN120672752A

  • Consignment inspection method, computer device, and storage medium

    WO2026138214A1