System and method for optical inspection of moving objects - Patents.com

The optical inspection system addresses the challenge of inspecting fast-moving objects by employing a multi-stage architecture with advanced image processing and AI, enabling real-time classification and grading for efficient quality control and object separation across various industries.

JP2024533483APending Publication Date: 2024-09-12BORDE INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024516363
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-02-28
Filing Date
2022-09-09
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Conventional optical inspection systems struggle to efficiently inspect moving objects, particularly those moving at high speeds, due to challenges in capturing, processing, and analyzing images in real-time, which limits their application in quality control and object separation processes.

Method used

The system employs a two-stage or three-stage architecture with multiple image capture devices, volatile and persistent memory systems, and processors, including GPUs and FPGAs, to preprocess and analyze images using AI models, enabling rapid inspection and grading of fast-moving objects, with features like bounding box detection and 3D grading.

Benefits of technology

The system can inspect multiple objects per second, achieving real-time classification, grading, and separation of objects with high accuracy, supporting applications in food, waste, mining, and pharmaceutical industries, and reducing the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024533483000001
    Figure 2024533483000001
Patent Text Reader

Abstract

The present disclosure provides techniques for optical inspection systems and methods for moving objects. In some embodiments, the optical inspection system includes first and second image capture devices configured to capture images of the moving object, first and second first stage storage systems, first and second second stage processors, a second stage storage system, a third stage processor, and a third stage storage system. In some embodiments, the optical inspection system includes first and second image capture devices, first and second volatile memory systems, first and second second stage processors, a third second stage processor, and a third stage storage system. The first and second second stage processors may be configured to analyze images from the image capture devices. The third stage processor or the third second stage processor may be configured to process information from the processor and / or storage system to generate a report.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Provisional Patent Application No. 63 / 243,371, filed September 13, 2021, entitled "Optical Inspection Systems and Methods for Moving Objects," and U.S. Non-Provisional Patent Application No. 17 / 682,756, filed February 28, 2022, entitled "Optical Inspection Systems and Methods for Moving Objects," which are incorporated herein by reference for all purposes. [Background technology]

[0002] Optical inspection systems can use one or more cameras to capture, process, and analyze images of an object to extract data from the object to generate numerical or symbolic information. Optical inspection systems can be used in a variety of applications, including quality control (QC) or quality assurance (QA) to support production (manufacturing) processes, and inspection and sorting of objects for recycling. In some cases, optical inspection systems can use artificial intelligence, computer vision, and / or machine learning to analyze the captured images. Summary of the Invention [Problem to be solved by the invention]

[0003] The present invention has been made to solve the problems in the conventional techniques described above. [Means for solving the problem]

[0004] The present disclosure provides techniques for systems and methods for optical inspection of moving objects. In some embodiments, the optical inspection system includes a first image capture device configured to capture images of a moving object, a first first stage storage system coupled to the first image capture device and configured to store images from the first image capture device, a first second stage processor coupled to the first first stage storage system and configured to analyze images from the first image capture device, a second image capture device configured to capture images of the moving object, a second first stage storage system coupled to the second image capture device and configured to store images from the second image capture device, a second second stage processor coupled to the second first stage storage system and configured to analyze images from the second image capture device, a second stage storage system coupled to the first and second second stage processors and configured to store images and information from the first and second second stage processors, a third stage processor coupled to the second stage storage system and configured to process information from the second stage processor and the second stage storage system to generate a report, and a third stage storage system coupled to the third stage processor and configured to store images and information from the third stage processor.

[0005] In some embodiments, the optical inspection system includes a first image capture device configured to capture images of a moving object, a first volatile memory system coupled to the first image capture device and configured to store images from the first image capture device, a first second stage processor coupled to the first volatile memory system and configured to analyze images from the first image capture device, a second image capture device configured to capture images of the moving object, a second volatile memory system coupled to the second image capture device and configured to store images from the second image capture device, a second second stage processor coupled to the second volatile memory system and configured to analyze images from the second image capture device, a third second stage processor coupled to the first and second second stage processors and configured to process information from the first and second second stage processors, and a third stage storage system coupled to the third second stage processor and configured to store the images and information from the third second stage processor, the third second stage processor configured to generate a report using the images and information stored in the third stage storage system. [Brief description of the drawings]

[0006] [Figure 1] 1 illustrates an example of an optical inspection system, according to some embodiments. [Diagram 2] 1 illustrates an example of an optical inspection system, according to some embodiments. [Diagram 3] 1 illustrates an example of an optical inspection system, according to some embodiments. [Figure 4] 1 illustrates an example of an optical inspection system, according to some embodiments. [Diagram 5] 1 illustrates an example of an optical inspection system, according to some embodiments. [Figure 6A] 1 shows an example of a 3D model of an object (in this example, an almond) created using photogrammetry from images taken from multiple different angles, according to some embodiments. [Figure 6B] 1 shows composite images of different objects (in this example, almonds) from different angles, according to some embodiments. [Figure 7A] FIG. 1 illustrates an example of training an AI model for inspecting, analyzing, and / or grading objects (in this example, almonds) according to some embodiments, and shows a chart plotting the mean average precision (mAP) of the AI ​​model (y-axis) against the number of training iterations (or steps) (x-axis). [Figure 7B] 1 shows an example of a real image of an object (in this example, an almond) captured with an optical inspection system, according to some embodiments. [Figure 8A] ~ [Figure 8B] 1 illustrates an example of processing images from a pair of cameras, where one camera is positioned to capture images of one side of an object and the other camera of the pair is positioned to capture images of the other side of the object, according to some embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] Described herein are optical inspection systems and methods for inspecting moving, free-falling, and / or fast moving objects ("fast moving objects").

[0008] A "fast moving object" can move at a speed faster than about 1 m / s, or between about 1 m / s and about 10 m / s, or between about 2 m / s and about 6 m / s, or between about 0.1 m / s and about 10 m / s. The optical inspection systems described herein allow for the inspection of a large number of objects (e.g., fast moving objects) per time interval. For example, the optical inspection systems described herein allow for the inspection of one object in less than about 18 ms to about 20 ms, or about 10 objects in less than about 18 ms to about 20 ms, or up to about 100 objects in less than about 18 ms to about 20 ms, or up to about 40,000 pounds of objects per hour, or about 20 metric tons of objects per hour, or about 5000 objects per second. The optical inspection systems described herein may be applied in a variety of applications, including, but not limited to, identification and / or sorting of food (e.g., nuts), waste and / or recyclables, mining and minerals, and pharmaceutical products and dietary supplements. In some cases, the optical inspection system may also sort objects using a mechanism (e.g., an ejector or robotic arm) that sends the objects to different locations based on a result (e.g., class, or grade) output from one component of the optical inspection system.

[0009] The optical inspection systems and methods described herein can acquire images of (fast moving) objects, optionally pre-process the images, analyze the images to classify, categorize, and / or grade the objects, store the images and / or information generated from the analysis, and optionally generate reports based on the information generated from the analysis. Some examples of classifications (or classes, or categories, or grades) that can be used with the optical inspection systems and methods described herein relate to quality (e.g., defective, non-defective), category (e.g., Type A, Type B), size (e.g., small, large), shape (e.g., round, square), color (e.g., white, black, uniform, non-uniform), or any other visual characteristic of the object.

[0010] In some cases, the optical inspection systems and methods described herein use a digital camera to capture images. In some cases, the captured images are stored using a hybrid in-memory and solid-state drive (SSD) storage system, which allows the system of the present invention to perform image capture and analysis at high speed. In some cases, the analysis is performed using artificial intelligence (AI) (e.g., AI-based object detection). Recording and / or writing of reports regarding grading may also be performed by the optical inspection systems and methods described herein based on the analysis and / or grading performed. The analysis and / or grading may include adding a bounding box around each object in the image and determining a class and / or grade of each object in the image or set of images.

[0011] In some cases, the optical inspection systems and methods described herein include offloading the images (and optional image data) for writing to memory (storage system) and to a graphics processing unit (GPU), central processing unit (CPU), and / or field programmable gate array (FPGA) for processing (e.g., analysis and / or grading). Such systems can be fast enough to keep up with real-time object analysis (e.g., classifying and / or grading objects in less than about 18 ms or less than about 20 ms).

[0012] In some cases, the optical inspection systems and methods described herein include 3D grading of both sides of fast moving objects.

[0013] In some cases, the optical inspection systems and methods described herein include automated starting and stopping of AI generation (or image capture, or analysis, or image processing). For example, a trigger may be provided to start and / or stop AI generation (or image capture, or analysis, or image processing).

[0014] In some cases, AI object detection is always on and does not use external triggers or sensors. A "polling period" is the period between instances of capturing images and / or analyzing captured images. For example, the system (using AI processing) may check for (fast moving) objects in frequently captured images from one or more cameras (e.g., at a fast "polling period" (e.g., about 20 ms)). If no object is detected in the captured images over a period of time (e.g., a "slow down window", e.g., about 1 minute), the "polling period" may be lengthened (e.g., doubled or quadrupled, or increased from about 20 ms to about 40 ms). This process may continue until a predetermined maximum "polling period" (e.g., about 1000 ms) is reached, after which the system may continue polling about every 1000 ms (1 second). If a single (fast-moving) object is detected during the "polling period," the system may automatically accelerate to a standard "polling period" (e.g., about 20 ms) so that image capture and / or analysis of the (fast-moving) object can resume. In some cases, AI report generation may be paused after the "polling period" reaches a predetermined maximum threshold (e.g., about 100 ms, or about 500 ms, or about 1000 ms), after which the AI ​​may resume image capture and / or analysis once a (fast-moving) object is detected, and AI report generation may also be resumed.

[0015] In some cases, the AI ​​object detection of the optical inspection systems and methods described herein also uses information (signals, or triggers) from external sensors to determine when to capture images, analyze images, and / or generate AI reports. For example, motion and / or photoelectric sensors may be used in a complementary manner with the methods described above, where input from the sensors and object detection from the AI ​​engine are used to refine the "polling period," when to capture and / or analyze images, and / or generate AI reports.

[0016] The optical inspection systems and methods described herein may be used in the form of multiple logical inspection lines including two or more (e.g., 2-10, or 6) image capture devices, processors, and / or storage devices (e.g., components connected in parallel within a single device). In such a system with multiple inspection lines, each line may perform report generation and grading with its own camera, lighting, and / or mounting kit, all connected to a single device that can logically group and / or analyze information (e.g., captured images, processed images, and / or information about the images). For example, each logical inspection line may perform image capture and processing, and two or more logical inspection lines may share a processor (e.g., FPGA, CPU, and / or GPU) and storage system (e.g., DRAM and / or SSD). Such a system may be advantageous in that it may reduce the overall cost of the system and may allow inspection of more objects per given time interval. For example, in a process where multiple lines of objects are merging into one line with a higher number of objects per unit time, multiple inspection lines (e.g., each line with its own camera, lighting, and / or mounting kits for separate reporting and grading) may be positioned relative to the multiple lines of objects (before they are merging) to allow all of the objects to be inspected, which would not be possible if a single optical inspection system was placed at the merging lines with the higher number of objects passing through the system per unit time.

[0017] The optical inspection systems and methods described herein may be configured to inspect (fast moving) objects falling freely (e.g., falling off a discharge chute) or objects on a horizontal conveyor belt. For example, a camera may be positioned (e.g., facing generally horizontally) to capture images of objects in free fall, or may be positioned (e.g., facing generally downwards) to capture images of objects moving on a conveyor belt. In the case of multiple free fall lines (or streams) of objects, there may be a logical inspection line for each of the multiple free fall lines of objects, each line sharing a processor and / or storage system as described above. Similarly, in the case of multiple lines (or streams) of objects moving on multiple conveyor belts, there may be a logical inspection line for each of the multiple lines of objects, each line sharing a processor and / or storage system as described above.

[0018] In some cases, the AI ​​model includes a deep learning model. In some cases, the AI ​​model may include one or more of a family of object detection and tracking architectures and models pre-trained on the common objects in context (COCO) dataset. In some cases, the AI ​​model includes a deep learning object detection model (e.g., a fast region-based convolutional neural network (Fast R-CNN) or Faster R-CNN) or a regression-based object detector (e.g., a single-shot detector or YOLO (You only Look Once)).

[0019] 1 shows an example of an optical inspection system 1000 for quality inspection of an object (e.g., a fast moving object), which includes a first image capture device (or a first set of image capture devices) 1010a and a second image capture device (or a second set of image capture devices) 1010b, a storage system 1020, and a processor 1030. Images of the object (e.g., a fast moving object) are captured by the image capture devices (sets) 1010a and 1010b (e.g., digital cameras or CCD cameras). The captured images are sent to the storage system 1020 (including, e.g., DRAM, persistent memory, and / or SSD) for storage or sent to the processor 1030 (e.g., a graphics processing unit (GPU), a central processing unit (CPU), and / or a field programmable gate array (FPGA)) for processing. The storage system 1020 and the processor 1030 may be used to analyze the images, store the images, grade the images, store the grading results and the graded images, and / or generate reports of the analysis results.

[0020] For example, in some cases, images from (set of) image capture devices 1010a and 1010b are sent to processor 1030 (or another processor, not shown) to perform pre-processing of the images. Pre-processing may include cropping the images and / or reducing the size of the images. In some cases, after pre-processing, the pre-processed images are stored in storage system 1020. In some cases, after storage, processor 1030 further analyzes the stored pre-processed images (and optionally determines a grade of the object based on the stored pre-processed images), and this further analyzed image (and optionally grade or quality information of the object) is stored in storage system 1020. Processor 1030 uses AI to analyze the images. Analysis may include adding bounding boxes around objects in the images, classifying objects in the images, and / or grading objects in the images.

[0021] In some cases, uncompressed high-resolution data is captured from the image capture device. In such cases, the captured image may be reduced in size (e.g., by using approaches such as letterboxing or by reducing a 2448×784 pixel image to a 640×224 pixel image without compression (e.g., to JPEG format)) to save storage space and processing time, and the reduced-size image is stored in a persistent storage system. This approach may help to avoid time-consuming image compression (e.g., to JPEG) as well as reduce expensive memory requirements. In some cases, the AI ​​engine may analyze a fully uncompressed (e.g., 2448×784 pixel) image. However, in some cases, doing so may increase AI processing time and slow down the system. In some cases, to improve system performance, a reduced-size image (e.g., a 640×224 pixel image) is read from the storage system and analyzed by the AI ​​processing engine. In some cases, the reduced-size image is analyzed by the AI ​​engine to generate a list of detected objects with corresponding bounding boxes, and then the image is compressed and stored in a post-processing stage. In a post-processing stage, the images and / or data may be converted into a tabular report format (e.g., including metadata) allowing the images to be displayed (e.g., to an operator) along with the analysis results (e.g., a grading report).

[0022] In another example, in some cases, images from image capture devices (sets) 1010a and 1010b are sent to processor 1030 for image pre-processing, which then analyzes the pre-processed images (and optionally determines a grade of the object based on the stored pre-processed images), and the analyzed images (and optionally object grade or quality information) are stored in storage system 1020.

[0023] In some cases, one or more reports may be generated from the information stored in storage system 1020.

[0024] 2 and 3 show example optical inspection systems 2000 and 3000 for quality inspection of objects (e.g., fast moving objects). Some of the components of the system 1000 of FIG. 1 are the same as or similar to some of the components of the systems 2000 and 3000 of FIG.

[0025] FIG. 2 shows an example optical inspection system 2000 for quality inspection of an object (eg, a fast moving object), which has a first stage 2001, a second stage 2002, and a third stage 2003. The optical inspection system 2000 includes a first image capture device (or first set of image capture devices) 1010a and a second image capture device (or second set of image capture devices) 1010b (as shown in FIG. 1), two first stage storage systems (or devices) 2022a and 2022b (e.g., DRAM, persistent memory, and / or SSD), two first stage processors 2032a and 2032b (e.g., CPUs, CPU cores, or FPGAs), two second stage processors 2034a and 2034b (e.g., GPUs and / or FPGAs), a second stage storage system 2024 (e.g., DRAM, persistent memory, SSD, and / or a write-optimized pseudo database), a third stage processor 2030 (e.g., CPU or FPGA), and a third stage storage system 2026 (e.g., DRAM, persistent memory, SSD, and / or a relational database).

[0026] In a first stage of the optical inspection system 2000, and correspondingly, in a first stage of a method of using the system 2000, images are captured by image capture devices 1010a and 1010b and stored in first stage storage systems 2022a and 2022b. In the first stage 2001, the images are pre-processed (e.g., cropped, reduced in size) by first stage processors 2032a and 2032b. In a second stage, second stage processors 2034a and 2034b analyze the pre-processed images to generate information about the images (e.g., bounding box size and position, object class, and / or object grade). The images and / or information from second stage processors 2034a and 2034b are then saved by second stage storage system 2024. In a third stage 2003, the stored images and information (generated from the analysis results) are further processed by a third stage processor 2030, for example, converting the data into a tabular format, generating a report (e.g., having information about the image, the bounding box, and the object category or grade), and / or storing the tabular data in a database. The information from the third stage processor 2030 may then be stored in a third stage storage system 2024. In some cases, the images may be graded (e.g., a United States Department of Agriculture (USDA) grade may be provided), and / or a report may be generated by a processor (e.g., the third stage processor 2030, or an optional fourth stage fourth stage processor (not shown)).

[0027] Processors 2032a-b, 2034a-b, and / or 2030 of FIG. 2 may be separate CPUs, separate FPGAs, or separate cores of one or more shared CPUs. In some cases, first stage processors 2032a and 2032b are cores of a CPU, with one or more other cores of that CPU also being used by one or more other processors in the system. For example, processors 2032a, 2032b, and 2030 may all include cores of the same shared CPU. In some cases, processor 2030 is a CPU with some cores performing actions of a third stage and other cores performing actions of a fourth stage. Using a single CPU with multiple cores (or two or more CPUs with multiple cores) where different cores (or groups of cores) are dedicated to different stages may allow the actions of different stages to be performed in parallel, increasing the speed of the system (e.g., the speed at which images are acquired, pre-processed, analyzed, stored, graded, and / or reports are generated). For example, if a first data set (or report) is being processed in the fourth stage, a second data set (or report) can be processed in parallel in the third stage without the processing of the first data set in the fourth stage precluding the processing of the second data set in the third stage. In some cases, processors 2032a-b, 2034a-b, and / or 2030 may be FPGAs. In some cases, a fourth stage processor (not shown) is an FPGA, which is separate from the third stage processor (which may also be an FPGA).

[0028] FIG. 3 shows an example optical inspection system 3000 for quality inspection of an object (e.g., a fast-moving object), including a first image capture device (or first set of image capture devices) 1010a and a second image capture device (or second set of image capture devices) 1010b (as shown in FIG. 1), two first stage volatile memory systems (or devices) 3022a and 3022b (e.g., DRAM and / or SRAM), two first stage processors 3032a and 3032b (e.g., CPUs, CPU cores, or FPGAs), two second stage processors (e.g., GPUs and / or FPGAs) 3034a and 3034b, an additional second stage processor 3030 (e.g., CPU or FPGA), and a storage system 3024 (e.g., DRAM, persistent memory, SSD, and / or regional database).

[0029] In a first stage 3001 of the system 3000, and correspondingly, in a first stage 3001 of a method of using the system 3000, images are captured by the image capture devices 1010a and 1010b, and the captured images are stored in two first stage volatile memory systems (or devices) 3022a and 3022b. In the first stage 3001, the images are pre-processed (e.g., cropped, reduced in size) by the first stage processors 3032a and 3032b. In a second stage 3002, the images are analyzed (e.g., bounding boxes are added and objects are classified and / or graded) by the second stage processors 3034a and 3034b. The processed images and information from the second stage processors 3034a and 3034b (generated from the analysis results) are then further processed by additional second stage processors 3030. In a third stage, the further processed images (and information about the images (e.g., grades)) are stored by a third stage storage system 2024. In some cases, the images may be graded (e.g., a United States Department of Agriculture (USDA) grade may be provided) and / or in an optional fourth stage, a report may be generated by a processor (e.g., second stage processor 3030, or a fourth stage processor (not shown)).

[0030] Processors 3032a-b, 3034a-b, and / or 3030 of FIG. 3 may be separate CPUs, separate FPGAs, or separate cores of one or more shared CPUs. In some cases, first stage processors 3032a and 3032b are respective cores of a CPU, with one or more other cores of that CPU also being used by one or more other processors in the system. For example, processors 3032a, 3032b, and 3030 may all include cores of the same shared CPU. In some cases, processor 3030 is a CPU with some cores performing actions of a third stage and other cores performing actions of a fourth stage. Using a single CPU with multiple cores (or two or more CPUs with multiple cores), with different cores (or groups of cores) dedicated to different stages, may allow the actions of different stages to be performed in parallel, increasing the speed of the system (e.g., the speed at which images are acquired, pre-processed, analyzed, stored, graded, and / or reports are generated). For example, if a first data set (or report) is being processed in the fourth stage, a second data set (or report) can be processed in parallel in the third stage without the processing of the first data set in the fourth stage precluding the processing of the second data set in the third stage. In some cases, processors 3032a-b, 3034a-b, and / or 3030 may be FPGAs. In some cases, a fourth stage processor (not shown) is an FPGA, which is separate from the third stage processor (which may also be an FPGA).

[0031] In FIGS. 1-3, the first image capture device 1010a may be a single image capture device or a set of image capture devices, and the second image capture device 1010b may be a single image capture device or a set of image capture devices. In some cases, the (set of) image capture devices 1010a and 1010b are positioned opposite each other (e.g., to capture images of both sides of an object). In some cases, the optical inspection systems described herein may have one or more pairs of image capture devices 1010a and 1010b, with each pair of devices positioned opposite each other. One or more motion sensors may be in communication with the first and second image capture devices 1010a and 1010b, for example, to trigger the devices to capture images of an object when the motion sensor detects the object. The first and second image capture devices may capture real-time images as a fast-moving object moves in front of each of them. The optical inspection systems described herein may also include other image capture devices and / or motion sensors. Various configurations of image capture devices are possible, such as configurations of 2-10 pairs, or 3 pairs, or 6 pairs of cameras (e.g., each pair configured to capture images of both the front and back of the object), or configurations where the cameras are located on only one side.

[0032] 1-3, storage systems 1020, 2022a-b, 2024, 2026, and / or 3024 may include dynamic random access memory (DRAM) systems for block caching, persistent memory systems (such as 3D XPoint), and / or 4-cell or 3-cell solid state drive (SSD) systems for storing data (e.g., raw format data from a camera, images, and / or pre-processed images). Storage systems 1020, 2022a-b, 2024, 2026, 3022a-b, and / or 3024 may be configured for high write throughput and long life (even when writes are frequent). Storage systems 1020, 2022a-b, 2024, 2026, 3022a-b, and / or 3024 may store all data from the cameras or may selectively store data (e.g., only pre-processed data, only data corresponding to defective objects, etc.). Storage systems 1020, 2022a-b, 2024, 2026, 3022a-b, and / or 3024 may store raw data, size-reduced data, and / or compressed data. The stored data may be hot data (i.e., data acquired and analyzed in real-time or near real-time), cold data (i.e., data stored and accessed later, not in real-time or near real-time, and / or data selected from the raw format data that may be used for future audits). In some cases, the systems and methods described herein may utilize tiered storage (e.g., having hot and cold data). For example, the retrieved and pre-processed (e.g., resized) data may be stored in persistent memory (e.g., with sufficient lifetime and write throughput) for use in the second stage, and the output of the second stage may be compressed and stored in a cold storage system (e.g., 4-tier SSDs) that provide the required performance at a reasonable cost. In some cases, in systems using in-memory processing, a DRAM storage tier may be utilized before storing the data in persistent memory or SSDs.

[0033] 1-3, processors 1030, 2030, 2032a-b, 2034a-b, 3030, 3032a-b, and / or 3034a-b may be configured to enable two modes of operation: Data Collection Mode and Production Mode. In Data Collection Mode, all images are captured to the persistent memory system and SSD system, and in Production Mode, only a portion of images (e.g., selected images of objects with significant defects) are captured. Other modes of operation are possible, such as a mode in which a subset of images are captured to the persistent memory system and SSD system. Processors 1030, 2030, 2032a-b, 2034a-b, 3030, 3032a-b, and / or 3034a-b may also be configured to receive captured images from one or more image capture devices (e.g., from one or more sets of first and second image capture devices) and / or perform image pre-processing, image analysis, and / or image based report generation.

[0034] 1-3, the processors 1030, 2030, 2032a-b, 2034a-b, 3030, 3032a-b, and / or 3034a-b may be configured to process (or pre-process) the received captured images. For example, the processors 1030, 2032a-b, 2034a-b, 3032a-b, and / or 3034a-b may perform image pre-processing (e.g., image resizing (or size reduction)) and / or image processing (e.g., feature extraction) for each captured image to identify at least one fast-moving object in the captured image. The processor may also perform pre-processing of the captured image to select (or crop) at least a portion (referred to as a "sub-image") of the captured image that includes an image of one or more objects (e.g., fast-moving objects).

[0035] 1-3, processor 1030, 2030, 2032a-b, 2034a-b, 3030, 3032a-b, and / or 3034a-b may be configured to group the sub-images identified by the processor such that each group of images includes the same fast moving object. For example, a first group of sub-images may include a first image from a first image capture device of a first fast moving object in a first perspective and a second image from a second image capture device of the same first fast moving object in a second perspective (wherein the first perspective is at least partially or entirely different from the second perspective). In some cases, grouping of identified sub-images may be based on, among other things, a timestamp comparison of each identified sub-image, the outline and / or size of each identified fast moving object in the identified sub-image, the orientation of the identified fast moving object in the identified sub-image, the position of the identified fast moving object in the identified sub-image, the position of other objects and / or features (other than the identified fast moving object) in the identified sub-image, and / or the surface texture / roughness, color, size, shape and / or other features of (or associated with) the identified fast moving object in the identified sub-image.

[0036] In some cases, the processor may be further configured to, for each identified sub-image of each group of sub-images, identify defects, if any, in the identified fast moving object in the identified sub-image and / or generate a defect score for each identified fast moving object in the identified sub-image. In some cases, the processor may be configured to generate a final defect score for each group of sub-images representing the same fast moving object. In some cases, the processor may be configured to perform a final classification and / or categorization of the defects of the fast moving object based on one or more threshold scores for each identified fast moving object. For example, in some cases, each object in the image is detected (or classified) as belonging to a particular type (or class) along with a confidence score that is a measure of the confidence of the classification of the object. In some cases, only the classification type with the highest confidence score is selected. In cases where an object is imaged from more than one angle using more than one camera, the object types (or classes) in the images from the different camera angles are compared and the one with the worst grade (or class) is selected. In another example, an identified fast moving object may be classified as a fast moving object with a large defect if the final defect score exceeds a first threshold score. Similarly, an identified fast moving object may be classified as a fast moving object with a small defect if the final defect score does not exceed the first threshold score but exceeds a second threshold score. Further (or other) classifications of fast moving objects may be performed, for example by including additional detection (or classification) processes.

[0037] In some cases, one or more of the processes described above may be performed, in part or in whole, by an artificial intelligence (AI) engine, model, and / or system that includes an active learning framework (e.g., where the system is capable of interactively querying an operator (or some other information source) to label new data points with a desired output). In some cases, training the AI ​​engine / system may include generating and / or applying real training data and synthetic (or simulated) training data. The generation of such synthetic (or simulated) training data may be based on or derived from a smaller set of real training data.

[0038] In some cases, the processor of the optical inspection systems and methods described herein may be configured to perform one or more of the following operations before, during, and / or after processing, grouping, scoring, and / or classifying / categorizing the images: The processor may be configured to perform an analysis of the captured image, the identified sub-image, and / or one or more sub-portions of the identified sub-image (e.g., the identified fast moving object, other objects in the identified sub-image, the surroundings, shadowed portions on the identified fast moving object, and / or illuminated portions on the identified fast moving object) to evaluate whether the lighting conditions used during the capture of the image need to be adjusted. The processor may be configured to adjust the lighting conditions based on the analysis, which may include increasing the intensity of one or more light sources and / or changing the color, frequency, and / or wavelength of one or more light sources. The processor may be configured to edit the captured image, the identified sub-image, and / or one or more sub-portions of the identified sub-image. Editing may include adjusting the brightness, contrast, hue, color, and / or sharpness of an image, for example, to help improve image processing, grouping, and / or scoring, and / or classification, and / or categorization of objects.

[0039] The above-described analysis of one or more sub-portions of the identified sub-image, adjustment of lighting conditions, and / or editing of the captured image, the identified sub-image, and / or sub-portions of the identified sub-image may be performed in part or in whole by an AI engine / system including an active learning framework.

[0040] FIG. 4 illustrates an example of an optical inspection system 4000 similar to the system 2000 of FIG. 2. The system of FIG. 4 includes six (or more) image capture devices ("Camera 1" through "Camera N") that capture images in a first stage and send the captured images to two second stage processors ("GPU#1 or FPGA" and "GPU#2 or FPGA"). The cameras are configured to capture images at regular time intervals or based on a synchronous trigger (e.g., a synchronous trigger using an external sensor such as a motion sensor, a programmable logic controller (PLC), or a trigger from an operator). The images may be pre-processed (e.g., cropped and / or reduced in size) by the first stage processors ("P1" through "PN"), which may be standalone processors, cores of a third stage processor that is a CPU, or an FPGA, as described with respect to the system of FIG. 2. In the example illustrated in FIG. 4, a processor is coupled to each camera (1 through N). In another embodiment, the first stage processor may be less than the cameras, and images from two or more cameras may be preprocessed by the first stage processor. For example, images from one, or two, or three, or four, or five, or six cameras may be preprocessed by the first stage processor. For example, there may be one, or two, or three, or four, or five, or six, or ten, or twenty, or one to twenty, or one to ten image capture devices (e.g., "Camera 1" through "Camera N" in FIG. 4), and there may be one, or two, or three, or four, or five, or six, or ten, or twenty, or one to twenty, or one to ten first stage processors (e.g., "P1" through "PN" in FIG. 4). In some cases, images are not compressed (i.e., kept uncompressed) by the first stage processor to reduce the processing time required, which can help the system keep up with the rate of image acquisition (e.g., to achieve real-time or near real-time operation).

[0041] In some cases, in the first stage of the optical inspection system 4000 ("Stage 1 Image Acquisition"), images are acquired and then stored in a first stage storage system or device ("S1"-"SN") (e.g., a high endurance SSD or other type of low latency persistent memory) before being sent to two second stage processors ("GPU#1 or FPGA" and "GPU#2 or FPGA"). In some cases, the first stage storage system or device ("S1"-"SN") is a single device that is coupled to all image capture devices in the first stage and is coupled to the second stage processors. Also, in some cases, "S1"-"SN" may be multiple first stage storage systems or devices, with the first stage storage system or device ("S1"-"SN") coupled to one or more image capture devices. For example, each image capture device ("Camera 1"-"Camera N") may be coupled to a separate first stage storage system or device. In another example, three image capture devices ("Camera 1" through "Camera 3") may be coupled to a first first stage storage system or device and a first second stage processor ("GPU #1 or FPGA"), and three image capture devices ("Camera 4" through "Camera 6") may be coupled to a second first stage storage system or device and a second second stage processor ("GPU #2 or FPGA").

[0042] Images from a subset of the cameras (e.g., cameras #1-#3) may be sent to a first first stage storage system or device (e.g., if “P1”-“P3” are one memory device) and images from another subset of the cameras (e.g., cameras #4-#6) may be sent to a second first stage storage system or device (e.g., if “P4”-“P6” are one memory device). While six cameras are shown in this example, in other examples, more or less than six cameras may be used. For example, “camera N” may be coupled to either one of two second stage processors (GPUs #1 and #2, or FPGA) or may be coupled to another second stage processor (not shown). In some cases, the two second stage processors (GPU #1 or FPGA and GPU #2 or FPGA) may be coupled to a first and second first stage storage system or device used to store images from the cameras.

[0043] In a second stage of the optical inspection system 4000 ("Stage 2 Near Real-Time Inspection"), two second stage processors ("GPU#1 or FPGA" and "GPU#2 or FPGA") analyze the captured images using the AI ​​model. Images from three cameras are processed by each second stage processor of the optical inspection system 4000. In some cases, images from more or less than three cameras (e.g., 1-10) may be processed by each second stage processor. For example, the AI ​​model may be used to detect objects in each image from each camera and add (or apply a bounding box, or draw a bounding box, or determine the size and location of a bounding box) for each object in each image. The AI ​​model may then provide an output indicating or determining a quality (or class, or category) for each object in each image. For example, an AI model may be used to determine whether an object is defective (i.e., whether the object is classified into a "bad" or "error" category) or not defective (i.e., whether the object is classified into a "good" or "no error" category). In some cases, only images with defective objects (or items) are compressed and stored in a second stage storage system or device ("write-optimized pseudo database or key-value store") (e.g., DRAM, SSD, or other persistent memory). The second stage storage system ("write-optimized pseudo database or key-value store") may be a write-optimized pseudo database (e.g., an embeddable key-value store). In some cases, the second stage storage system or device ("write-optimized pseudo database or key-value store") is configured to allow images to be stored very quickly, such that image storage in the second stage can occur in real time (or near real time) (e.g., to keep up with the speed of image acquisition). In some cases, to save storage time and space, images without defective objects (i.e., images with only objects classified into good categories) may not be stored in the second stage storage system or device (a "write-optimized pseudo database or key-value store").Images in the error category may be used by the customer (or operator) as a quality metric (or QA, or QC) or may be used for further AI training (if the system employs active learning). The second stage processor may also calculate the number of images taken (e.g., from all cameras or only from the primary camera (e.g., only from cameras located on one side of the object)) and display the count in a report in real time or near real time. Such counts may be used, for example, for QA, QC, and other types of tracking and alerts (e.g., via email).

[0044] The second stage of the optical inspection system 4000 may include an optional ejector or robot (e.g., a robotic arm) that ejects or removes defective objects (or objects classified as bad). For example, the ejector may include an air jet (or air stream) configured to eject defective objects (or items) from the production line (or sorting line). The results of the analysis and grading performed in the second stage may be used to identify the defective objects (as described above), which may send a signal ("action trigger") to the ejector to eject the defective objects from the production line (or sorting line) in real time. The robot may be a robotic arm (e.g., a mechanical arm) configured to remove the defective objects (or items) from the processing line. In this manner, the systems and methods described herein allow for inspecting objects (e.g., fast moving objects, free falling objects, or objects on a conveyor belt) and ejecting or removing the defective objects from the production line (or sorting line) in real time.

[0045] In a third stage ("Stage 3 Report Generation") of the optical inspection system 4000, a third stage processor ("CPU or FPGA" in FIG. 4's third stage) (e.g., CPU or FPGA) may further analyze the images and information (generated from the analysis results in the second stage) stored in the second stage storage system ("write-optimized pseudo database or key-value store"). For example, the third stage processor ("CPU or FPGA") may read the bounding boxes of each object for all or a subset of the stored images and store that information in a third stage storage system or device that includes a relational database. A report with the images and corresponding information (e.g., bounding boxes and / or categories) may then be generated (e.g., using an SQL interface) using the third stage processor ("CPU or FPGA").

[0046] In a fourth stage ("Stage 4 3D Grading") of the optical inspection system 4000, 3D grading and / or USDA grading may be performed using a stage 4 processor ("CPU or FPGA" in FIG. 4 stage 4) (e.g., a CPU or FPGA). The stage 4 processor ("CPU or FPGA") (e.g., a CPU, one or more cores of a CPU, or an FPGA) may collect data from all cameras (e.g., showing two or more sides of an object) from a relational database (which may be used in both stages 3 and 4) and then rewrite the data to the relational database. In some cases, the stage 3 and stage 4 processors may be the same processor. In some cases, the cameras are arranged in pairs to capture images of both sides of an object (or item) (e.g., a free-falling object). The cameras in each pair may be mirror-imaged, and one camera may be designated as a primary camera and the other camera in the pair may be designated as a secondary camera. Each image from the secondary camera may be a mirror-inverted image (i.e., a bounding box that was on the left side will be seen on the right side). If, after left-right flipping, the right-most bounding box of the image from the secondary camera overlaps with the right-most bounding box of the image from the primary camera, it indicates that the objects within the bounding box are two sides of the same object. In such a case, only one grade is assigned to the object in the fourth stage of grading (e.g., the most severe (or poor or defective) grade or category is taken). In the fourth stage, the size of the bounding box and / or the objects within the bounding box may also be determined (e.g., based on a mapping from pixel size to actual size (e.g., in millimeters)), and the size of each object may be determined. The USDA grading may be based on the weight of the object. In some cases, an assumption is made that all objects in a batch have the same density, so that the size determined in the fourth stage may be used as a proxy in determining the USDA weight grading. In some cases, a USDA report may be generated thereby.

[0047] The reports generated in the second, third, and fourth stages of the optical inspection system 4000 can be read by an operator. In some cases, the operator can improve the AI ​​model by adding more training data based on the generated reports (e.g., in a system using active learning). For example, the operator can further train the AI ​​model by manually classifying objects in an image and feeding that information to the AI ​​model. In some cases, the generated reports are archived in the cloud (e.g., using Amazon Web Services, Microsoft Azure, or a private data center), and automated AI training is initiated (e.g., using an autonomous machine learning framework) based on the operator's revised classifications. The newly trained AI model can then be automatically deployed. Such a system can advantageously enable operators without data science expertise to train the AI.

[0048] FIG. 5 illustrates an example of an optical inspection system 5000 similar to the system 3000 of FIG. 3. The system of FIG. 5 includes six (or more) cameras that capture images in a first stage and send the captured images to two second stage processors ("GPU#1 or FPGA" and "GPU#2 or FPGA"). The cameras are configured to capture images at regular time intervals or based on a synchronous trigger (e.g., using an external sensor). The images may be reduced in size by the first stage processors ("P1"-"PN"). The first stage processors may be standalone processors, cores of a third stage processor that is a CPU, or an FPGA, as described with respect to the system of FIG. 3. In the example illustrated in FIG. 5, a processor is coupled to each camera (1-N). In another embodiment, there may be fewer first stage processors than cameras, and images from two or more cameras may be pre-processed by the first stage processors. For example, images from 1, or 2, or 3, or 4, or 5, or 6 cameras may be pre-processed by the first stage processor. For example, there may be 1, or 2, or 3, or 4, or 5, or 6, or 10, or 20, or 1-20, or 1-10 image capture devices (e.g., "Camera 1" through "Camera N" in FIG. 4) and 1, or 2, or 3, or 4, or 5, or 6, or 10, or 20, or 1-20, or 1-10 first stage processors (e.g., "P1" through "PN" in FIG. 5). In some cases, to reduce the processing time required, images are not compressed, i.e., kept uncompressed, which may help the system keep up with the rate of image acquisition.

[0049] In some cases, in the first stage of the optical inspection system 5000 ("Stage 1 Image Acquisition"), images are acquired and then stored in a volatile memory ("V1"-"VN") (e.g., DRAM or SRAM) before being sent to two second stage processors ("GPU#1 or FPGA" and "GPU#2 or FPGA"). In some cases, the volatile memory ("V1"-"VN") is a single volatile memory system or device that is coupled to all image capture devices in the first stage and coupled to all second stage processors. In other cases, "V1"-"VN" may be multiple volatile memory systems or devices, with each volatile memory system or device coupled to one or more image capture devices. For example, each image capture device ("Camera 1"-"Camera N") may be coupled to a separate volatile memory system or device. In another example, three image capture devices ("Camera 1" through "Camera 3") may be coupled to a first volatile memory system or device and a first second stage processor ("GPU#1 or FPGA"), and three image capture devices ("Camera 4" through "Camera 6") may be coupled to a second volatile memory system or device and a second second stage processor ("GPU#2 or FPGA").

[0050] Images from a subset of the cameras (e.g., cameras #1-#3) may be sent to a first volatile memory system or device (e.g., if “V1”-“V3” are one volatile memory device) and images from another subset of the cameras (e.g., cameras #4-#6) may be sent to a second volatile memory system or device (e.g., if “V4”-“V6” are one volatile memory device). Two second stage processors (“GPU#1 or FPGA” and “GPU#2 or FPGA”) may be coupled with the first and second volatile memory systems or devices used to store images from the cameras. Images from the three cameras are processed by each second stage processor (“GPU#1 or FPGA” and “GPU#2 or FPGA”) of the optical inspection system 5000. Also, in some cases, images from more or less than three cameras (e.g., 1-10) may be processed by each second stage processor. For example, “Camera N” may be coupled to either one of the two second stage processors (“GPU#1 or FPGA” and “GPU#2 or FPGA”), or may be coupled to another second stage processor (not shown).

[0051] In a second stage of the optical inspection system 5000 ("Stage 2 In-Memory Processing"), the two second stage processors ("GPU#1 or FPGA" and "GPU#2 or FPGA") analyze the captured images using an AI model. For example, the AI ​​model may be used to detect objects in each image from each camera and add (or apply or draw or determine the size and location of) a bounding box for each object in each image. The AI ​​model may then provide an output indicating or determining a quality (or class or category) for each object in each image. For example, the AI ​​model may be used to determine whether an object is defective (i.e., whether the object is classified in a "bad" or "error" category) or not defective (i.e., whether the object is classified in a "good" or "no error" category). Images in the error category may be used as a quality metric (or QA or QC) by a customer (or operator) or may be used for further AI training (if the system employs active learning). The second stage processor may also calculate the number of images acquired (e.g., from all cameras or from just the primary camera (e.g., located on one side of the object)) and display the count in real-time or near real-time (e.g., in a report or on a computing device display). Such counts may be used, for example, for QA, QC, and other types of tracking and email alerts.

[0052] The second stage of the optical inspection system 5000 may also perform 3D grading and / or USDA grading using an additional second stage processor ("3D grading CPU or FPGA") (e.g., CPU or FPGA) to further analyze the images and information (generated from the analysis results) from the two second stage processors ("GPU#1 or FPGA" and "GPU#2 or FPGA"). In some cases, the cameras are arranged in pairs to capture images of both sides of an object (or item) (e.g., a free-falling object). The cameras in each pair may be mirror-matched, and one camera may be designated as a primary camera and the other camera in the pair may be designated as a secondary camera. Each image from the secondary camera may be a mirror-flipped image (i.e., a bounding box that was on the left side is now visible on the right side). After mirror-flipping, if the right-most bounding box of the image from the secondary camera overlaps with the right-most bounding box of the image from the primary camera, it indicates that the objects within the bounding boxes are two sides of the same object. In such a case, in the second stage grading, only one grade is assigned to the object (e.g., the most severe category is taken). In the second stage, the size of the bounding box may also be determined (e.g., based on a mapping from pixel size to actual size (e.g., in millimeters)) and the size of each object may be determined. The USDA grading may be based on the weight of the object. In some cases, an assumption is made that all objects in a batch have the same density, so that the size determined in the second stage may be used as a proxy in determining the USDA weight grading. In some cases, a USDA report may be generated thereby.

[0053] The second stage of the optical inspection system 5000 may include an optional ejector or robot (e.g., a robotic arm) that ejects or removes defective objects (or objects classified as bad). For example, the ejector may include an air jet (or air stream) configured to eject defective objects (or items) from the production line (or sorting line). The results of the analysis and grading performed in the second stage may be used to identify defective objects (as described above), so that an additional second stage processor ("3D grading CPU or FPGA") may send a signal ("action trigger") to the ejector to eject the defective objects from the production line (or sorting line) in real time. In this manner, the systems and methods described herein allow for inspecting objects (e.g., fast moving objects, free falling objects, or objects on a conveyor belt) and ejecting or removing defective objects from the production line (or sorting line) in real time. The robot may be or may include a robotic arm (eg, a mechanical arm) configured to remove defective objects (or items) from a processing line.

[0054] In some cases, one, some, or all of the operations performed in the second stage are low latency operations.

[0055] In a third stage ("Stage 3 Persistent Processing") of the optical inspection system 5000, images and / or information from the additional second stage processor ("3D grading CPU or FPGA") may be stored in a third stage storage system or device ("Write-optimized or in-memory database") (e.g., DRAM, SSD, or other persistent memory). For example, images and / or information from the additional second stage processor ("3D grading CPU or FPGA") may be stored in a write-optimized or in-memory database.

[0056] In some cases, after the images are processed using the AI ​​model in the second stage, they are also stored in the second stage. In some cases, the images are stored in the second stage without a tabular structure (e.g., without a structure that can be processed by SQL queries). In some cases, the data stored in the second stage does not have a tabular structure, cannot be interfaced with a database (e.g., using Microsoft Excel or a third-party customer database), and / or cannot be converted into a report. In some cases, a third stage processor retrieves unstructured images and / or data (e.g., including bounding boxes) from the second stage write-optimized pseudo database and stores the images, image metadata, and / or associated data in a tabular format, which may enable data visualization, or data generation, or storage of the images and / or data and / or metadata for end-user operator consumption.

[0057] In some cases, in the optical inspection system 5000, only images with defective objects (or items) are stored in a third tier storage system or device ("write-optimized or in-memory database") (which may be an in-memory storage system (e.g., SSD, or other type of persistent memory). In some cases, the second and / or third tier storage system or device ("write-optimized or in-memory database") are configured to allow images and / or metadata to be stored very quickly, such that image storage in the second tier and / or metadata storage in the third tier can occur in real-time (or near real-time) (i.e., keeping up with the speed of image acquisition). In some cases, to save storage time and space, images without defective objects (images with only objects classified in the good category) may not be stored in the second and / or third tier storage system or device ("write-optimized or in-memory database"). In some cases, images are not compressed (i.e., kept uncompressed) to reduce the processing time required to acquire, process, analyze, and store the images.

[0058] The second and / or third stages of the optical inspection system 5000 may generate output such as a report, e.g., a QC report, that is displayed in a user interface or written to a plant database (e.g., SAP, Microsoft Access, or Printer). The report generated in the third stage can be read by an operator, and, in some cases, the operator can improve the AI ​​model by adding more training data based on the report generated using active learning, as described herein.

[0059] In some cases, the first and second stages, or the first, second, and third stages, or the first, second, third, and fourth stages of system 4000 and / or 5000 may perform their respective functions on the image in real time or near real time, in less than about 18 ms, or less than about 19 ms, or less than about 20 ms, or less than about 30 ms. For example, a free-falling object may pass through a system described herein in about 18 ms to about 19 ms. Thus, a real-time inspection, grading, and / or ejection system and / or a real-time operating robotic system may acquire an image, analyze the image, output a result of identifying the quality of the object, store the image and / or information about the object, and / or output a classification and / or grading report in about 18 ms to about 19 ms.

[0060] Training an AI model

[0061] In some cases, the AI ​​models used in the systems and methods described herein are trained using synthetic data. In some cases, the synthetic data is obtained by 1) collecting representative objects, 2) acquiring images of the representative objects from various angles, 3) masking and / or cropping each image, 4) creating 3D models of the images via photogrammetry, and 5) creating a set of training data images from the 3D models.

[0062] In some cases, 10-500, 20-100, or 50-60 representative objects are collected from which synthetic data is generated. The representative objects may include multiple (e.g., about 10, or about 20, or 10-30, or 10-50, or 10-100) objects from each of the various classifications (or classes, or categories, or grades) used by the system. Some examples of classifications (or classes, or categories, or grades) are those related to quality (e.g., defective, non-defective), category (e.g., Type A, Type B), size (e.g., small, large), shape (e.g., round, square), and color (e.g., white, black, uniform, non-uniform).

[0063] The images from the various angles may be acquired with a digital camera, and in some cases may be acquired with the same camera as used in the actual optical inspection system described herein. In some cases, the images are acquired from about 20 (or about 10, or about 50, or about 10 to about 100) different angles that cover 360 degrees around the axis of the object. In some cases, a first set of images is acquired from about 20 (or about 10, or about 50, or about 10 to about 50) different angles that cover 360 degrees around a first axis of the object, and a second set of images is acquired from about 20 (or about 10, or about 50, or about 10 to about 50) different angles that cover 360 degrees around a second axis of the object. The first axis may be perpendicular to the second axis, or the first and second axes may have an angle between them, for example, an angle of 45 degrees, or an angle between 0 and 90 degrees. In some cases, a first set of images is taken from about 20 (or about 10, or about 50, or about 10 to about 50) different angles in a first loop around the object (i.e., this is when the camera is at about the same height as the object), and a second set of images is taken from about 20 (or about 10, or about 50, or about 10 to about 50) different angles in a second loop located above the object (i.e., this is when the camera is above the object and oriented to capture images of the object from various angles above).

[0064] In some cases, the same background and lighting conditions used in the actual optical inspection system are used to generate the training data images. For example, if the color (or wavelength) of the lighting during the actual data collection and AI model inference by the optical inspection system is daylight white, it is desirable to use the same daylight white LED lighting during the synthetic data creation. In some cases, two or more lights (multiple lights) are used to simulate the actual lighting conditions used on one or both sides of the object (e.g., reflected light, multiple lights illuminating the object).

[0065] In some cases, the image is then masked and / or cropped to remove some or all of the background. For example, an image editing program (e.g., Adobe Photoshop) may be used to mask and / or crop the image. In some cases, some (or all) of the background is removed, leaving the suspect object in the image. Masking and / or cropping can improve the quality of the 3D model that is created in the next step.

[0066] In some cases, a 3D model of each object is then created from images of the object from different angles using photogrammetry (for example, using Agisoft Metashape software), a tool that can create a virtual 3D model from a series of images taken at different angles.

[0067] After the 3D models are created, synthetic images for the training data may be created from the 3D models (e.g., using 3D software and / or using 3D software developed for video games and / or using Blender software). For example, using 3D models of an object, about 100, about 500, or about 50 to about 1000 synthetic images may be created from each 3D model. The synthetic images may be images of the object from many different angles, such as would be seen in images acquired by an actual optical inspection system in operation.

[0068] FIG. 6A shows an example of a 3D model of an object (in this example, an almond) created by photogrammetry from images taken from many different angles. This 3D model was then used to create synthetic images of the object from different angles. FIG. 6B shows synthetic images of various objects (in this example, an almond) from different angles created using 3D gaming software (e.g., Blender or Unity) from the photogrammetry-generated 3D model. AI training data can then be created from these synthetic images (from the 3D gaming software) using the COCO tool. The created AI training data can include labels and bounding box information corresponding to the images that the AI ​​training module can understand, saving tens of man-days of annotation.

[0069] In some cases, the AI ​​model used in the systems and methods described herein is trained using synthetic data (e.g., generated as described above). The AI ​​model may be trained by 1) training the AI ​​model using the synthetic data, 2) collecting real data using the optical inspection system described herein (e.g., during actual operation) and manually classifying some additional output data, and 3) enhancing the AI ​​model using the additional manually classified output data (i.e., using active learning).

[0070] FIG. 7A shows an example of training data from an AI model for inspecting, analyzing, and / or grading objects (almonds in this example). FIG. 7A shows a chart plotting the average average precision (mAP) of the AI ​​model (y-axis) against the number of training iterations (or steps) (x-axis). The AI ​​model achieves a score of 0.928 mAP after about 300-350 iterations (or steps) (as shown in FIG. 7A). The higher the mAP, the more accurately the AI ​​model can detect objects when averaged over a set of analyzed objects. For example, mAP@[0.5:0.95] indicates the average score precision of a set of analyzed objects when the intersection over union (IoU) score (IoU score is described in more detail below) is between 0.5 and 0.95.

[0071] After the AI ​​model is trained using synthetic data, an additional set of images may be generated by the actual system to retrain and / or validate the AI ​​model using active learning. The additional collected images may be manually classified (and / or annotated), and the additional manually classified images may be used to retrain the AI ​​model to increase the accuracy rate (e.g., to greater than 90%, or to about 95%). In some cases, there may be about 10,000 to about 100,000 (or about 50,000) training images in total, with about 10% (or about 5% to about 20%) of the training images being manually annotated training images for use in active learning or for validating and / or retraining the AI ​​model.

[0072] FIG. 7B shows an example of a real image of an object (in this example, an almond) acquired with a real optical inspection system as described herein. Each image in FIG. 7B has been manually annotated by an operator to validate or correct the output of a model trained using only synthetic data. An advantage of this approach is that the AI ​​model trained using synthetic data can draw bounding boxes and labels (e.g., indicating the class, grade, or type of object). This eliminates the need for time-consuming manual drawing of bounding boxes; only label validation or label correction is required at this stage (e.g., approximately 30%-40% of errors resulting from AI models trained using only synthetic data are label errors). While this active learning process does rely on some manual annotation, because parts of this process (e.g., bounding box drawing and initial labeling) have already been done, the total human-hours required to train an AI model using synthetic data using the present method are significantly less than the total human-hours required for a fully manual annotation process to generate a set of training images. The use of synthetic data in training the AI ​​models described herein can save significant time compared to manually determining the classification of all training images. For example, while manual annotation of 20,000-50,000 training images can take 20-30 person-days, using synthetic data (e.g., generated using the methods described above) to generate classified training images can require significantly fewer resources (e.g., about 3-10 person-days, or about 3-5 person-days, or about 5 person-days, or about 10 person-days).

[0073] The optical inspection systems described herein can use an AI model to analyze images and generate a report that includes classification and / or grading information for objects in the images. In some cases, active learning (or incremental learning) is used to retrain the AI ​​model, where information in the report is manually corrected (e.g., by an operator) and the corrected data is sent to the AI ​​model to retrain the AI ​​model. Manually correcting information in the report can be done, for example, to reorganize the information and / or change one or more labels associated with an image or object. In some cases, such active learning methods are implemented in a system where the storage system and / or processor are in the cloud. For example, the corrected information can be stored in a storage system in the cloud, a processor in the cloud can be configured to retrain the AI ​​model, and the retrained AI model can be provided to one or more processors of the optical inspection system for use in analyzing the images.

[0074] Processing images from a pair of facing cameras

[0075] 8A and 8B show an example of processing images from a pair of cameras, where one camera is positioned to capture an image of one side of an object, and the other camera of the pair is positioned to capture an image of the other side of the object. This process may be used in the optical inspection systems and methods described herein, for example, as described with respect to the systems of FIGS. 1-5. FIG. 8A shows an image from a first camera ("camera #1") (oriented to capture an image from a first side of the object), where three objects are identified and enclosed in bounding boxes. FIG. 8A also shows an image from a second camera ("camera #2") (oriented to capture an image from a second side opposite the first side of the object), where three objects are identified and enclosed in bounding boxes. In one example, one side of the detected object is a "good" class or grade, and the other side is a defective class or grade. Thus, an image of the front of the object (from the first camera) and an image of the back of the object (from the second camera) may be correlated, and if there is a defect on one of them, the object may be graded as defective. To correlate the detected objects in the two different images, a mirror image of the bounding box of the image from the second side may be obtained, as shown in FIG. 8A ("Camera #2: bounding box reconstructed").

[0076] FIG. 8A shows an example where the image acquired from the second camera is mirrored (i.e., flipped horizontally). After the bounding boxes of the image from the second camera are mirrored (as shown in FIG. 8A), the image from the first camera and the mirror image of the image from the second camera may be superimposed, and an algorithm (e.g., the Hungarian algorithm (also called the Kuhn-Munkres algorithm)) may be applied to pair (associate) the bounding boxes in both the first and second (or primary and secondary) camera images. This algorithm is capable of identifying which image pairs represent two sides of the same object. After the images are paired (associated), a final grade may be assigned to each object.

[0077] FIG. 8B shows some examples of how the bounding boxes of objects may overlap after a mirror image is obtained from an image from a second camera and superimposed with an image from a first camera. The algorithm may calculate an intersection over union (IoU) value. A high IoU value (e.g., greater than 0 or greater than 0.5) indicates that a bounding box overlaps with another bounding box to a high degree, which indicates that the bounding boxes are likely to enclose the same object. A low IoU value (e.g., less than 0.5 or near 0) indicates that a bounding box overlaps with another bounding box to a low degree, which indicates that the bounding boxes are unlikely to enclose the same object. The advantage of this IoU-based scheme is that no image processing is required and a relatively simple IoU calculation algorithm can provide accurate results. Similar IoU approaches have been used for objects detected by autonomous vehicles, but unlike the situations encountered by autonomous vehicles where the bounding boxes are of the same object at different timestamps, in the case of the optical inspection system with facing cameras described herein, the appearance of the object in each bounding box pair may be different because the images being analyzed are taken from both sides of the same object. Thus, the IoU approach is uniquely suited for the systems and methods of the present invention, since other approaches that use advanced image processing of bounding box regions to compare similarity may be unreliable in detecting different faces of the same object.

[0078] Cloud Storage

[0079] In some cases, reports and / or data already generated from one or more of the systems described herein are automatically archived in a storage system in the cloud. For example, all reports and data (e.g., images, bounding box positions, and / or grades) from one customer's (or operator's, or owner's) systems may be stored centrally in cloud storage (e.g., Microsoft's cloud storage system, or Amazon Web Services). In some cases, an operator may access the reports and / or data in the cloud to obtain relevant quality grading or inspection metrics. Using such systems and methods, an operator may obtain information useful to the operator (e.g., regarding QC) without any data science skills or knowledge of other software (e.g., Jupyter). In some cases, an operator may use his / her domain knowledge to review and (quickly and easily) add, remove, and / or edit the grades in the reports and / or the data in the cloud. In some cases, updated reports and / or data used for active learning (including, for example, revised grade and / or other label information added, removed, or edited by an operator) may be automatically stored in a centralized cloud database. The new information may then trigger new AI model training for one or more of the customer's (or operator's, or owner's) systems. Data archived in the cloud may also be used to show historical trends over time (e.g., hours, days, months, or years). In some cases, aggregate reports may be created from the reports and / or data in the cloud, such as aggregate reports that compile data from multiple optical inspection systems (and / or lines, and / or equipment) or that include filtered data (e.g., by system, location, etc.).

[0080] Optical Inspection Methods

[0081] Throughout this disclosure, systems and methods relating to optical inspection systems for moving objects are described. The optical inspection systems described herein (e.g., the systems shown in Figures 1-5) may be used to perform methods of optical inspection of moving objects.

[0082] In some embodiments, a method for optical inspection of moving objects includes the following steps. For example, the following method may be implemented using the systems shown in FIGS. 1, 2, and / or 4: A first image capture device may acquire images of the moving object; A first first stage storage system coupled to the first image capture device may store images from the first image capture device; A first second stage processor coupled to the first first stage storage system may analyze images from the first image capture device; A second image capture device may acquire images of the moving object; A second first stage storage system coupled to the second image capture device may store images from the second image capture device; A second second stage processor coupled to the second first stage storage system may analyze images from the second image capture device; A second stage storage system coupled to the first and second second stage processors may store images and / or information from the first and second second stage processors. A third tier processor coupled to the second tier storage system may process information from the second tier processor and the second tier storage system to generate reports. A third tier storage system coupled to the third tier processor may store images and information from the third tier processor.

[0083] In some embodiments, a method for optical inspection of moving objects includes the following steps. For example, the following method may be implemented using the systems shown in FIGS. 1, 3, and / or 5: A first image capture device may capture an image of the moving object; A first volatile memory system coupled to the first image capture device may store the image from the first image capture device; A first second stage processor coupled to the first volatile memory system may analyze the image from the first image capture device; A second image capture device may capture an image of the moving object; A second volatile memory system coupled to the second image capture device may store the image from the second image capture device; A second second stage processor coupled to the second volatile memory system may analyze the image from the second image capture device; A third second stage processor coupled to the first and second second stage processors may process information from the first and second second stage processors; A third stage storage system coupled to the third second stage processor may store the image and information from the third second stage processor. A third second tier processor may generate a report using the images and information stored in the third tier storage system.

[0084] The optical inspection system embodiments and components described herein (e.g., embodiments and components associated with the systems shown in Figures 1-5) may be used to perform one or more of the methods for optical inspection of moving objects described above.

[0085] Reference has been made in detail to embodiments of the invention of the present disclosure. One or more examples of the invention of the present disclosure have also been illustrated in the accompanying drawings. Each of the embodiments and examples described herein has been illustrated to illustrate, but not to limit, the technology of the present invention. Furthermore, although specific embodiments of the present invention have been described in detail, it will be appreciated that those skilled in the art, upon understanding the above, will readily devise modifications, variations, and equivalents of those embodiments. For example, features illustrated or described with respect to one embodiment may be used in another embodiment to yield still further embodiments. It is intended that the present subject matter encompass all such modifications and variations that are within the scope of the appended claims and their equivalents. Those skilled in the art will be able to implement these and other modifications and variations of the present invention without departing from the scope of the present invention as more particularly set forth in the appended claims. Moreover, those skilled in the art will appreciate that the above description is by way of example only and is not intended to limit the present invention.

Claims

1. a first image capture device configured to capture an image of a moving object; a first first stage storage system coupled to the first image capture device and configured to store images from the first image capture device; a first second stage processor coupled to the first first stage storage system and configured to analyze the images from the first image capture device; a second image capture device configured to capture an image of the object in motion; a second first stage storage system coupled to the second image capture device and configured to store images from the second image capture device; a second second stage processor coupled to the second first stage storage system and configured to analyze the images from the second image capture device; a second stage storage system coupled to the first and second second stage processors and configured to store images and information from the first and second second stage processors; a third tier processor coupled to the second tier storage system and configured to process information from the first and second second tier processors and the second tier storage system to generate a report; a third stage storage system coupled to the third stage processor and configured to store images and information from the third stage processor; 1. An optical inspection system comprising:

2. 2. The optical inspection system of claim 1, wherein the first image capture device is further configured to capture an image from a first side of the object and the second image capture device is further configured to capture an image from a second side of the object.

3. 10. The optical inspection system of claim 1, wherein the first and second first stage storage systems are solid state drives (SSDs) or other types of low latency persistent memory.

4. 4. The optical inspection system of claim 3, further comprising first and second first stage processors respectively coupled to the first and second first stage storage systems, wherein the images from the first and second image capture devices are reduced in size and not compressed, i.e., kept uncompressed, by the first and second first stage processors.

5. The optical inspection system of claim 1 , wherein the first and second stage processors are graphics processing units (GPUs) or field programmable gate arrays (FPGAs).

6. 10. The optical inspection system of claim 1, wherein the first and second stage processors are configured to analyze the images from the first and second image capture devices using an artificial intelligence model.

7. 7. The optical inspection system of claim 6, wherein the first and second stage processors use the artificial intelligence model to analyze the images to add bounding boxes to the images and classify the images according to predetermined classes.

8. 7. The optical inspection system of claim 6, wherein the artificial intelligence model is trained using synthetic data generated using photogrammetry.

9. 7. The optical inspection system of claim 6, wherein information in the report is manually corrected to generate a corrected report, and the corrected report is used to retrain the artificial intelligence model using active learning.

10. The optical inspection system of claim 1 , wherein the second stage storage system comprises a write-optimized pseudo database or an embeddable key-value store database.

11. The optical inspection system of claim 1 , wherein the third stage processor is a central processing unit (CPU) or a field programmable gate array (FPGA).

12. The optical inspection system of claim 1 , wherein the third stage storage system comprises a DRAM system, an SSD system, or another type of persistent memory system.

13. The optical inspection system of claim 1 , wherein the third stage storage system comprises a relational database.

14. a first image capture device configured to capture an image of a moving object; a first volatile memory system coupled to the first image capture device and configured to store images from the first image capture device; a first second stage processor coupled to the first volatile memory system and configured to analyze the images from the first image capture device; a second image capture device configured to capture an image of the object in motion; a second volatile memory system coupled to the second image capture device and configured to store images from the second image capture device; a second second stage processor coupled to the second volatile memory system and configured to analyze the images from the second image capture device; a third second stage processor coupled to the first and second second stage processors and configured to process information from the first and second second stage processors; a third stage storage system coupled to the third second stage processor and configured to store images and information from the third second stage processor; Including, the third second tier processor is configured to generate a report using the images and information stored in the third tier storage system. Optical inspection systems.

15. 15. The optical inspection system of claim 14, wherein the first image capture device is further configured to capture an image from a first side of the object and the second image capture device is further configured to capture an image from a second side of the object.

16. 16. The optical inspection system of claim 15, further comprising first and second first stage processors coupled to the first and second volatile memory systems, respectively, wherein the images from the first and second image capture devices are reduced in size and not compressed by the first and second first stage processors.

17. The optical inspection system of claim 14 , wherein the first and second volatile memory systems are DRAM systems or SRAM systems.

18. The optical inspection system of claim 14 , wherein the first and second stage processors are graphics processing units (GPUs) or field programmable gate arrays (FPGAs).

19. 15. The optical inspection system of claim 14, wherein the first and second stage processors are configured to analyze the images from the first and second image capture devices using an artificial intelligence model.

20. 20. The optical inspection system of claim 19, wherein the first and second stage processors use the artificial intelligence model to analyze the images to add bounding boxes to the images and classify the images according to predetermined classes.

21. 20. The optical inspection system of claim 19, wherein the artificial intelligence model is trained using synthetic data generated using photogrammetry.

22. 20. The optical inspection system of claim 19, wherein information in the report is manually modified to generate a modified report, and the modified report is used to retrain the artificial intelligence model using active learning.

23. The optical inspection system of claim 14 , wherein the third second stage processor is a central processing unit (CPU) or a field programmable gate array (FPGA).

24. The optical inspection system of claim 14 , wherein the third stage storage system comprises a DRAM system, an SSD system, or another type of persistent memory system.

25. 15. The optical inspection system of claim 14, further comprising an ejector or robotic arm coupled to the third second stage processor and configured to eject or remove the object when the third second stage processor indicates that the object is defective.

Citation Information

Patent Citations

  • An automated optical inspection system based on CPU+GPU+FPGA architecture

    JP2021501330A

  • Machine-vision system and method for remote quality inspection of a product

    US20130229511A1

  • Inspection device controlled processing line system

    US20180077402A1

  • Active learning for inspection tool

    WO2021007514A1

  • System and method for ai visual inspection

    WO2021062536A1