Systems and methods for synthesizing data for training statistical models across different imaging modalities, including polarized images - Patents.com

By synthesizing training data for machine learning models using modality-specific materials and empirical models, the method addresses the challenge of generating representative data for non-visible light imaging, enhancing model performance in computer vision tasks, particularly for optically challenging objects.

JP7542070B2Active Publication Date: 2024-08-29INTRINSIC INNOVATION LLC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022546347
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-01-30
Filing Date
2021-01-04
Publication Date
2024-08-29
Estimated Expiration
2041-01-04

AI Technical Summary

Technical Problem

Existing methods for training machine learning models, particularly convolutional neural networks for computer vision tasks, face challenges in generating representative training data efficiently, especially for imaging modalities beyond visible light intensity, such as polarization and thermal imaging, due to the complexity and cost of manual data collection and the limitations of current 3-D rendering software in simulating these modalities.

Method used

A method and system for synthesizing training data by generating 3-D models of objects in virtual scenes, applying modality-specific materials and illumination, and rendering images using empirical models derived from real-world imaging systems to simulate polarization or thermal imaging, incorporating techniques like domain randomization, texture mapping, and style transfer to enhance data diversity and realism.

Benefits of technology

The approach enables the generation of high-quality, diverse training data that accurately represents various imaging modalities, improving the performance of machine learning models in computer vision tasks, especially for optically challenging objects like transparent or reflective surfaces, by enhancing their ability to detect and classify objects in real-world conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007542070000021
    Figure 0007542070000021
  • Figure 0007542070000016
    Figure 0007542070000016
  • Figure 0007542070000014
    Figure 0007542070000014
Patent Text Reader

Abstract

A method for generating a synthetic image of a virtual scene includes: placing, by a synthetic data generator implemented by a processor and a memory, three-dimensional (3-D) models of objects in a 3-D virtual scene; adding, by the synthetic data generator, lighting including one or more lighting sources to the 3-D virtual scene; applying, by the synthetic data generator, imaging modality-specific materials, each including an experiential model, to the 3-D models of the objects in the 3-D virtual scene according to a selected multimodal imaging modality; setting a background of the scene according to the selected multimodal imaging modality; and rendering, by the synthetic data generator, a two-dimensional image of the 3-D virtual scene based on the selected multimodal imaging modality to generate a synthetic image according to the selected multimodal imaging modality.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to and the benefit of U.S. Provisional Patent Application No. 62 / 968,038, filed in the U.S. Patent and Trademark Office on January 30, 2020, the entire disclosure of which is incorporated herein by reference.

[0002] Aspects of embodiments of the present disclosure relate to machine learning techniques, and in particular to the synthesis or generation of data for training machine learning models. [Background technology]

[0003] Statistical models, such as machine learning models, are typically trained using large amounts of data. In the field of computer vision, training data typically includes labeled images that are used to train deep learning models, such as convolutional neural networks, to perform computer vision tasks, such as image classification and instance segmentation. However, manually collecting photographs of various scenes and labeling the photographs is time-consuming and expensive. Some techniques for extending these training datasets include generating synthetic training data. For example, three-dimensional (3-D) computer graphics rendering engines (e.g., scanline rendering engines and ray tracing rendering engines) can generate photorealistic two-dimensional (2-D) images of virtual environments with arrangements of 3-D models of objects that can be used to train deep learning models. Summary of the Invention

[0004] Aspects of embodiments of the present disclosure relate to machine learning techniques, and in particular to the synthesis or generation of data for training machine learning models, and in particular to the synthesis of images for training machine learning models for performing computer vision tasks on input images captured based on imaging modalities other than images of visible light intensity in a scene.

[0005] According to one embodiment of the present disclosure, a method for generating a synthetic image of a virtual scene includes: placing, by a synthetic data generator implemented by a processor and a memory, a three-dimensional (3-D) model of an object in a 3-D virtual scene; adding, by the synthetic data generator, lighting including one or more lighting sources to the 3-D virtual scene; applying, by the synthetic data generator, imaging modality-specific materials, each including an experiential model, to the 3-D model of the object in the 3-D virtual scene in accordance with a selected imaging modality; setting a background of the scene in accordance with the selected imaging modality; and rendering, by the synthetic data generator, a two-dimensional image of the 3-D virtual scene based on the selected imaging modality to generate a synthetic image in accordance with the selected imaging modality.

[0006] The empirical model can be generated based on sampled images captured of the surface of the material using an imaging system configured to capture images using a selected imaging modality, where the sampled images can include images captured of the surface of the material from a plurality of different poses relative to a normal direction of the surface of the material.

[0007] The selected imaging modality may be polarized light, and the imaging system includes a polarized camera.

[0008] The selected imaging modality may be thermal and the imaging system may include a thermal camera. The thermal camera may include a polarizing filter.

[0009] Each sampled image can be stored in association with the corresponding angle of its pose relative to the normal to the surface of the material.

[0010] The sampled images can include a first plurality of sampled images captured of a surface of a material illuminated by light having a first spectral profile, and a second plurality of sampled images captured of a surface of a material illuminated by light having a second spectral profile that is different from the first spectral profile.

[0011] The empirical model may include a surface light field function calculated by interpolating between two or more sampled images.

[0012] The empirical model may include a surface light field function computed by a deep neural network trained on the sampled images.

[0013] The empirical model can include a surface light field function computed by a generative adversarial network trained on the sampled images.

[0014] The empirical model may include a surface light field function calculated by a mathematical model generated based on sampled images.

[0015] The method may further include applying style transfer to the synthetic image.

[0016] According to one embodiment of the present disclosure, a method for generating a tensor in a polarization feature space of a 3-D virtual scene includes: rendering, by a synthetic data generator implemented by a processor and a memory, an image of surface normals of a 3-D virtual scene including a plurality of 3-D models of an object, where the surface normals include azimuth and zenith angular components; determining, by the synthetic data generator, an object material for a surface of the 3-D model of the object in the 3-D virtual scene; and calculating, by the synthetic data generator, a tensor in the polarization feature space according to the azimuth and zenith angular components of the surface normals, where the tensor in the polarization feature space includes a degree of linear polarization and an angle of linear polarization at the surface of the object.

[0017] The method may further include determining whether a surface of the 3-D model of the object is specularly dominant; in response to determining that the surface of the 3-D model of the object is specularly dominant, calculating a tensor in the polarization feature space based on a specular polarization equation; and in response to determining that the surface of the 3-D model of the object is specularly dominant, calculating a tensor in the polarization feature space based on a diffuse polarization equation.

[0018] The method may further include calculating a tensor in the polarization feature space based on a diffuse polarization equation.

[0019] The method may further include applying style transfer to the tensors in the polarization feature space.

[0020] According to one embodiment of the present disclosure, there is a method for synthesizing a training dataset based on generating a plurality of synthetic images generated according to any of the methods described above.

[0021] According to one embodiment of the present disclosure, a method for training a machine learning model includes generating a training dataset according to any of the methods described above, and calculating parameters of the machine learning model based on the training dataset.

[0022] According to one embodiment of the present disclosure, a system for generating a synthetic image of a virtual scene includes a processor and a memory storing instructions that, when executed by the processor, cause the processor to implement a synthetic data generator to: place three-dimensional (3-D) models of objects in the 3-D virtual scene; add lighting to the 3-D virtual scene, the lighting including one or more lighting sources; apply imaging modality-specific materials, each of which includes an experiential model, to the 3-D models of the objects in the 3-D virtual scene in accordance with a selected imaging modality; set a background of the scene in accordance with the selected imaging modality; and render a two-dimensional image of the 3-D virtual scene based on the selected imaging modality to generate a synthetic image in accordance with the selected imaging modality.

[0023] The empirical model can be generated based on sampled images captured of the surface of the material using an imaging system configured to capture images using a selected imaging modality, where the sampled images can include images captured of the surface of the material from a plurality of different poses relative to a normal direction of the surface of the material.

[0024] The imaging modality selected may be polarized light, and the imaging system may include a polarized camera.

[0025] The selected imaging modality may be thermal and the imaging system may include a thermal camera. The thermal camera may include a polarizing filter.

[0026] Each sampled image can be stored in association with the corresponding angle of its pose relative to the normal to the surface of the material.

[0027] The sampled images can include a first plurality of sampled images captured of a surface of a material illuminated by light having a first spectral profile, and a second plurality of sampled images captured of a surface of a material illuminated by light having a second spectral profile that is different from the first spectral profile.

[0028] The empirical model may include a surface light field function calculated by interpolating between two or more sampled images.

[0029] The empirical model can include a surface light field function computed by a deep neural network trained on the sampled images.

[0030] The empirical model can include a surface light field function computed by a generative adversarial network trained on the sampled images.

[0031] The empirical model may include a surface light field function calculated by a mathematical model generated based on sampled images.

[0032] The memory may further store instructions that, when executed by the processor, cause the synthesis data generator to apply style transfer to the synthetic image.

[0033] According to one embodiment of the present disclosure, a system for generating tensors in a polarization feature space for a 3-D virtual scene includes a processor and a memory storing instructions that, when executed by the processor, cause the processor to implement a synthetic data generator to: render an image of surface normals of a 3-D virtual scene including a plurality of 3-D models of objects, the surface normals including azimuth and zenith angular components; determine an object material for a surface of the 3-D models of the objects in the 3-D virtual scene; and calculate a tensor in the polarization feature space according to the azimuth and zenith angular components of the surface normals, the tensor in the polarization feature space including a degree of linear polarization and an angle of linear polarization at the surface of the object.

[0034] The memory may further store instructions that, when executed by the processor, cause the synthetic data generator to determine whether a surface of the 3-D model of the object is predominantly specular; in response to determining that the surface of the 3-D model of the object is predominantly specular, calculate a tensor in the polarization feature space based on the specular polarization equation; and in response to determining that the surface of the 3-D model of the object is predominantly specular, calculate a tensor in the polarization feature space based on the diffuse polarization equation.

[0035] The memory may further store instructions that, when executed by the processor, cause the synthetic data generator to calculate a tensor in the polarization feature space based on a diffuse polarization equation.

[0036] The memory may further store instructions that, when executed by the processor, cause the synthetic data generator to apply style transfer to tensors in the polarization feature space.

[0037] According to one embodiment of the present disclosure, a system for synthesizing a training dataset is configured to synthesize a training dataset using any of the systems described above.

[0038] According to one embodiment of the present disclosure, a system for training a machine learning model includes a processor and a memory storing instructions that, when executed by the processor, cause the processor to receive a training dataset generated by any of the above systems and calculate parameters of the machine learning model based on the training dataset. [Brief description of the drawings]

[0039] The accompanying drawings, together with the specification, illustrate exemplary embodiments of the invention and, together with the description, serve to explain the principles of the invention. [Figure 1] FIG. 1 is a block diagram illustrating a system for training statistical models to perform computer vision tasks based on images of various modalities, where the training is performed using data generated according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic block diagram of a computer vision system that is configured to use polarization imaging and can be trained based on synthetic polarization imaging data generated in accordance with an embodiment of the present invention. [Figure 3A] FIG. 3A is an image, or intensity image, of a scene with one actual transparent ball placed on top of a photographic printout depicting another scene containing two transparent balls ("spoofs") and some background clutter. [Figure 3B] FIG. 3B shows the intensity image of FIG. 3A with an overlaid segmentation mask computed by a comparative mask region-based convolutional neural network (Mask R-CNN) to identify instances of transparent balls; the real transparent ball is correctly identified as an instance, and the two spoofs are incorrectly identified as instances. [Figure 3C]FIG. 3C is a polarization angle image calculated from captured polarization raw frames of a scene according to one embodiment of the present invention. [Figure 3D] FIG. 3D shows the intensity image of FIG. 3A with an overlay segmentation mask computed using polarization data according to an embodiment of the present invention, where the actual transparent ball is correctly identified as an instance and the two spoofs are correctly rejected as instances. [Figure 4] FIG. 4 is a high-level depiction of light interaction with transparent and opaque (e.g., diffuse and / or reflective) objects. [Diagram 5] FIG. 5 is a graph of transmitted versus reflected light energy over a range of angles of incidence onto a surface with a refractive index of approximately 1.5. [Figure 6] FIG. 6 is a flow chart illustrating a pipeline for generating a composite image according to one embodiment of the present disclosure. [Figure 7] FIG. 7 is a schematic diagram of sampling a real material from multiple angles using a polarization camera system, according to one embodiment of the present disclosure. [Figure 8] FIG. 8 is a flow chart illustrating a method for capturing images of material from different viewpoints using a particular imaging modality modeled in accordance with one embodiment of the present disclosure. [Figure 9] FIG. 9 is a flowchart illustrating a method for rendering a portion of a virtual object based on an experiential model of materials according to one embodiment of the present disclosure. [Figure 10] FIG. 10 is a flow chart illustrating a method for computing synthetic features or tensors in a polarization representation space of a virtual scene according to one embodiment of the present disclosure. [Figure 11] FIG. 11 is a flow chart illustrating a method for generating a training data set according to one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0040] In the following detailed description, only certain exemplary embodiments of the present invention are shown and described by way of illustration. As those skilled in the art will recognize, the present invention can be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Like reference characters refer to like elements throughout the specification.

[0041] Aspects of embodiments of the present disclosure relate to systems and methods for synthesizing or generating data for training machine learning models to perform computer vision tasks on images captured based on modalities other than standard modalities, such as color or monochrome cameras configured to capture images based on the intensity of visible light. Examples of other modalities include images captured based on polarization (e.g., images captured with a polarizing filter or polarizing filters in the optical path of a camera to capture circular and / or linearly polarized light), non-visible or invisible light (e.g., light in the infrared or ultraviolet range), and combinations thereof (e.g., polarized infrared light), although embodiments of the present disclosure are not limited thereto and can be applied to other multi-spectral imaging techniques.

[0042] More particularly, aspects of embodiments of the present disclosure relate to generating synthetic images of an object in different imaging modalities for training machine learning models to perform computer vision tasks.

[0043] In general, a computer vision system for computing a segmentation map that classifies objects depicted in a scene can include a trained convolutional neural network that takes as input two-dimensional images (e.g., captured by a color camera) and outputs a segmentation map based on those images. Such convolutional neural networks can be pre-trained on existing datasets such as ImageNet (see, e.g., J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li and L. Fei-Fei, ImageNet: A Large-Scale Hierarchical Image Database. IEEE Computer Vision and Pattern Recognition (CVPR), 2009). However, these existing datasets may contain images that are not representative of images expected to be encountered in a particular application of the computer vision system, and thus these pre-trained models may perform poorly on the particular computer vision task that the computer vision system is intended to perform. For example, a computer vision system in a manufacturing environment is more likely to encounter images of tools, partially assembled products, manufacturing components, etc., than images of people, animals, household items, and outdoor environments that can be found in more "general-purpose" datasets.

[0044] Thus, "retraining" refers to updating the parameters (e.g., connection weights) of a pre-trained model based on additional training data from a particular target domain associated with the task performed by the re-trained model. Continuing with the above example, labeled images of tools, partially assembled products, components, etc. from a particular manufacturing environment can be used as training data to re-train a pre-trained model (e.g., a pre-trained convolutional neural network) to improve its performance in detecting and classifying objects encountered in that manufacturing environment. However, manually collecting various images of typical scenes in that manufacturing environment and labeling these images based on ground truth values ​​(e.g., identifying pixels corresponding to various classes of objects) is generally a time-consuming and expensive task.

[0045] As described above, three-dimensional (3-D) rendering computer graphics software can be used to generate training data for training machine learning models to perform computer vision tasks. For example, existing 3-D models of these tools, partially assembled products, and manufacturing components can be arranged in a virtual scene according to various ways such objects may be encountered in the real world (e.g., including lighting conditions and 3-D models of support surfaces and equipment in the environment). For example, a partially assembled product can be placed on a 3-D model of a conveyor belt, components can be placed in a parts bin, and tools can be placed on a tool bench and / or in the scene in the process of positioning components within the partially assembled product. Thus, a 3-D computer graphics rendering system is used to generate photorealistic images of a range of typical placements of objects in a particular environment. These generated images can also be automatically labeled. In particular, if the specific 3-D models used to represent each of the various types of objects are already associated with class labels (e.g., screws of various sizes, assembled components, products in various stages of assembly, specific types of tools, etc.), the segmentation map can be generated automatically (e.g., by mapping the surfaces of the objects to specific class labels).

[0046] However, 3-D rendering computer graphics software systems are generally tuned to generate images representing typical imaging modalities based on visible light intensity (e.g., red, green, and blue light intensity). Such 3-D rendering software, such as Blender® by the Blender Foundation, generally do not consider the behavior of electromagnetic radiation, which is invisible or negligible when rendering photorealistic scenes. Examples of these additional behaviors include polarization of light (e.g., when polarized light interacts with transparent or reflective objects in the scene, as detected by a camera with a polarizing filter in the light path), heat or infrared (e.g., emitted by warm objects in the scene and detected by a camera system sensitive to detecting infrared light), ultraviolet light (e.g., detected by a camera system sensitive to ultraviolet light), combinations thereof (e.g., polarization by thermal radiation, polarization by visible light, polarization by ultraviolet light, etc.), etc.

[0047] Accordingly, aspects of embodiments of the present disclosure relate to systems and methods for modeling the behavior of various materials when imaged based on polarized light or other imaging modalities. Data (e.g., images) generated according to embodiments of the present disclosure can then be used as training data to train a deep learning model, such as a deep convolutional neural network, to compute predictions based on imaging modalities other than standard imaging modalities (e.g., visible light or light intensity in the visible portion of the electromagnetic spectrum).

[0048] As a motivational example, embodiments of the present disclosure are described in the context of generating synthetic images of objects captured through a polarizing filter (referred to herein as "polarized light raw frames"), which can be used to train a deep neural network, such as a convolutional neural network, to perform tasks based on the polarized light raw frames. However, embodiments of the present disclosure are not limited to generating synthetic polarized light raw frames for training a convolutional neural network that takes the polarized light raw frames (or features extracted therefrom) as input data.

[0049] FIG. 1 is a block diagram illustrating a system for training a statistical model for performing a computer vision task based on images of various modalities, where the training is performed using data generated according to an embodiment of the present disclosure. As shown in FIG. 1, training data 5 is provided to a model training system 7 that takes a model 30 (e.g., a pre-trained model or a model architecture with initialized weights) and generates a trained model (or re-trained model) 32 using the training data 5. The model 30 and the trained model 32 can be statistical models such as deep neural networks (deep neural networks include convolutional neural networks). A synthetic data generator 40 according to an embodiment of the present disclosure generates synthetic data 42, which can be included in the training data 5 for generating the trained model 32. The model training system 7 can apply an iterative process for updating parameters of the model 30 to generate the trained model 32 according to the provided training data 5 (e.g., including the synthetic data 42). Updating the parameters of the model 30 may include, for example, applying gradient descent (and backpropagation in the case of neural networks) according to a loss function that measures the difference between the labels and the model's output in response to the training data. The model training system 7 and the synthetic data generator 40 may be implemented using one or more electronic circuits.

[0050] According to various embodiments of the present disclosure, the model training system 7 and / or the synthetic data generator 40 are implemented using one or more electronic circuits configured to perform various operations, as described in more detail below. Types of electronic circuits can include central processing units (CPUs), graphics processing units (GPUs), artificial intelligence (AI) accelerators (e.g., vector processors including vector arithmetic logic units configured to efficiently perform operations common to neural networks, such as dot products and softmaxes), field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), digital signal processors (DSPs), and the like. For example, in some circumstances, aspects of embodiments of the present disclosure are implemented in program instructions stored in non-volatile computer readable memory that, when executed by an electronic circuit (e.g., a CPU, a GPU, an AI accelerator, or a combination thereof), perform the operations described herein to compute a segmentation map 20 from input polarized raw frames 18. The operations performed by the model training system 7 and the synthetic data generator 40 can be performed by a single electronic circuit (e.g., a single CPU, a single GPU, etc.) or can be allocated among multiple electronic circuits (e.g., multiple GPUs or CPUs in combination with GPUs). The multiple electronic circuits can be local to each other (e.g., located on the same die, located in the same package, or located in the same embedded device or computer system) and / or remote from each other (e.g., communicating over a network such as a local personal area network such as Bluetooth, a local area network such as a local wired and / or wireless network, and / or a wide area network such as the Internet, with some operations being performed locally and other operations being performed on servers hosted by a cloud computing service).The one or more electronic circuits that operate to implement the model training system 7 and the synthetic data generator 40 may be referred to herein as a computer or computer system, which may include memory that stores instructions that, when executed by the one or more electronic circuits, implement the systems and methods described herein.

[0051] FIG. 2 is a schematic block diagram of a computer vision system that is configured to use polarization imaging and can be trained based on synthetic polarization imaging data generated in accordance with an embodiment of the present invention.

[0052] For context, FIG. 2 is a schematic diagram of a system in which a polarization camera images a scene and provides polarization raw frames to a computer vision system that contains a model trained to perform a computer vision task based on polarization features computed based on the polarization raw frames.

[0053] Polarized camera 10 has a lens 12 having a field of view, and lens 12 and camera 10 are oriented such that the field of view encompasses a scene 1. Lens 12 is configured to direct light from scene 1 (e.g., focused light) onto a light-sensitive medium such as an image sensor 14 (e.g., a complementary metal-oxide semiconductor (CMOS) image sensor or a charge-coupled device (CCD) image sensor).

[0054] Polarized camera 10 further includes a polarizer or polarizing filter or polarizing mask 16 disposed in the optical path between scene 1 and image sensor 14. According to various embodiments of the present disclosure, polarizer or polarizing mask 16 is configured to enable polarized camera 10 to capture images of scene 1 with the polarizer set at various specified angles (e.g., 45° rotation or 60° rotation or non-uniformly spaced rotations).

[0055] As an example, FIG. 2 illustrates an embodiment in which the polarizing mask 16 is a polarizing mosaic aligned with the pixel grid of the image sensor 14 in a manner similar to the red-green-blue (RGB) color filters (e.g., Bayer filters) of a color camera. In a manner similar to the way that a color filter mosaic filters incident light based on wavelength so that each pixel of the image sensor 14 receives light in a particular portion of the spectrum (e.g., red, green, or blue) according to the color filter of the mosaic, the polarizing mask 16 using the polarizing mosaic filters light based on linear polarization so that different pixels receive light at different linear polarization angles (e.g., 0°, 45°, 90°, and 135°, or 0°, 60°, and 120°). Thus, a polarized camera 10 using a polarizing mask 16 as shown in FIG. 2 can simultaneously or simultaneously capture light with four different linear polarizations. One example of a polarized camera is the Blackfly® S polarized camera manufactured by FLIR® Systems, Inc. of Wilsonville, Oregon.

[0056] Although the above description relates to some possible implementations of a polarization camera using a polarization mosaic, embodiments of the present disclosure are not limited thereto and encompass other types of polarization cameras capable of capturing images with multiple different polarizations. For example, the polarization mask 16 can have fewer or more than four different polarizations, or can have polarizations at different angles (e.g., at polarization angles of 0°, 60°, and 120°, or at polarization angles of 0°, 30°, 60°, 90°, 120°, and 150°). As another example, the polarization mask 16 can be implemented using an electronically controlled polarization mask, such as an electro-optic modulator (e.g., which may include a liquid crystal layer), and the polarization angles of individual pixels of the mask may be independently controlled such that different portions of the image sensor 14 receive light with different polarizations. As another example, the electro-optic modulator can be configured to transmit light of different linear polarizations when capturing different frames, such that, for example, the camera sequentially sets the entire polarization mask to different linear polarizer angles (e.g., sequentially sets to 0°, 45°, 90°, or 135°) to capture images. As another example, the polarizing mask 16 can include a mechanically rotated polarizing filter such that different polarized raw frames are captured by the polarized camera 10 with the polarizing filter mechanically rotated relative to the lens 12 to transmit light to the image sensor 14 at different polarization angles.

[0057] A polarized camera can also refer to an array of multiple cameras with substantially parallel optical axes, such that each of the cameras captures an image of the scene from substantially the same pose. The optical path of each camera in the array includes a polarizing filter, the polarizing filters having different polarization angles. For example, a two by two (2x2) array of four cameras can include one camera with a polarizing filter set at a 0° angle, a second camera with a polarizing filter set at a 45° angle, a third camera with a polarizing filter set at a 90° angle, and a fourth camera with a polarizing filter set at a 135° angle.

[0058] As a result, the polarization camera captures multiple input images 18 (or polarization raw frames) of the scene 1, where each of the polarization raw frames 18 is captured at a different polarization angle φ pol (e.g., 0 degrees, 45 degrees, 90 degrees, or 135 degrees). Each of the polarized raw frames is captured from substantially the same pose with respect to scene 1, as opposed to capturing polarized raw frames from different positions and orientations with respect to the scene (e.g., images captured with 0 degree, 45 degree, 90 degree, or 135 degree polarized filters are all captured by the same polarized camera positioned at the same position and orientation). Polarized camera 10 can be configured to detect light in various different portions of the electromagnetic spectrum, such as the human visible portion of the electromagnetic spectrum, the red, green, and blue portions of the human visible spectrum, as well as invisible portions of the electromagnetic spectrum, such as infrared and ultraviolet.

[0059] 3A, 3B, 3C, and 3D provide background for describing the segmentation map computed by the comparative approach and semantic or instance segmentation according to an embodiment of the present disclosure. More specifically, FIG. 3A is an image or intensity image of a scene with one real transparent ball placed on top of a photographic printout depicting another scene containing two transparent balls ("spoofs") and some background clutter. FIG. 3B shows a segmentation mask computed by a comparative mask region-based convolutional neural network (Mask R-CNN) that uses different patterns of lines to identify instances of transparent balls overlaid on the intensity image of FIG. 3A, where the real transparent ball is correctly identified as an instance and the two spoofs are incorrectly identified as instances. In other words, the Mask R-CNN algorithm is tricked into labeling the two spoof transparent balls as instances of the real transparent ball in the scene.

[0060] 3C is an angle of linear polarization (AOLP) image calculated from captured polarized raw frames of a scene according to an embodiment of the present invention. As shown in FIG. 3C, transparent objects have very unique textures in polarization space, such as the AOLP domain, with edges having signatures that depend on the geometry and with distinct, or unique, or specific patterns occurring on the surface of the transparent object at angles of linear polarization. In other words, the unique texture of the transparent object (as opposed to, for example, an external texture adopted from the background surface seen through the transparent object) is more visible at the angles of the polarization image of FIG. 3A than it is in the intensity image of FIG. 3C.

[0061] FIG. 3D illustrates the intensity image of FIG. 3A with an overlaid segmentation mask calculated using polarization data according to an embodiment of the present invention, where the real transparent ball is correctly identified as an instance using the overlaid line pattern, and the two spoofs are correctly excluded as instances (e.g., in contrast to FIG. 3B, FIG. 3D does not include an overlaid line pattern on the two spoofs). While FIGS. 3A, 3B, 3C, and 3D illustrate examples related to detecting real transparent objects in the presence of spoof transparent objects, embodiments of the present disclosure are not limited thereto and can be applied to other optically challenging objects such as transparent, semi-transparent, non-matte or non-Lambertian objects, and non-reflective (e.g., matte black objects) and multi-path guiding objects.

[0062] Polarization feature representation space

[0063] Some aspects of embodiments of the present disclosure relate to systems and methods for extracting features from polarized raw frames, where these extracted features are used by the processing system 100 for robust detection of optically challenging characteristics on the surface of an object. In contrast, comparison techniques that rely only on intensity images may not be able to detect these optically challenging features or surfaces (e.g., comparing the intensity image of FIG. 3A with the AOLP image of FIG. 3C described above). The term "first tensor" in "first representation space" is used herein to refer to features calculated (e.g., extracted) from polarized raw frames 18 captured by a polarized camera, where these first representation spaces include at least a polarized feature space (e.g., feature spaces such as AOLP and DOLP that include information about the polarization of the light detected by the image sensor) and can also include non-polarized feature spaces (e.g., feature spaces that do not require information about the polarization of the light reaching the image sensor, such as images calculated based only on intensity images captured without any polarizing filters).

[0064] The interaction between light and transparent objects is rich and complex, but the material of the object determines its transparency under visible light. For many transparent household objects, most of the visible light passes straight through and a small portion (from about 4% to about 8%, depending on the refractive index) is reflected. This is because light in the visible part of the spectrum does not have enough energy to excite the atoms of the transparent object. As a result, the texture (e.g., appearance) of the object behind (or seen through) the transparent object dominates the appearance of the transparent object. For example, when looking at a transparent glass cup or tumbler on a table, the appearance of the object on the other side of the tumbler (e.g., the surface of the table) typically dominates what is seen through the cup. This characteristic poses several problems when trying to detect the surface properties of transparent objects, such as a glass window or a layer of shiny transparent paint, based on intensity images alone:

[0065] Figure 4 is a high-level depiction of light interaction with transparent and opaque (e.g., diffuse and / or reflective) objects. As shown in Figure 4, polarization camera 10 captures a polarized raw frame of a scene including a transparent object 402 in front of an opaque background object 403. A light ray 410 that strikes the image sensor 14 of polarization camera 10 contains polarization information from both the transparent object 402 and the background object 403. A small portion of the reflected light 412 from the transparent object 402 is highly polarized and therefore has a large impact on the polarization measurement, in contrast to the light 413 that is reflected off the background object 403 and passes through the transparent object 402.

[0066] Similarly, light rays that strike an object's surface may interact with the shape of the surface in a variety of ways. For example, a surface with a glossy paint may behave substantially similarly to a transparent object in front of an opaque object, as shown in FIG. 4, and the interaction between the light rays and the transparent or translucent layer (or clear coat layer) of the glossy paint will cause the light that reflects off the surface to be polarized based on the properties of the transparent or translucent layer (e.g., based on the layer thickness and surface normal), which is encoded into the light rays that strike the image sensor. Similarly, as described in more detail below with respect to Shape from Polarization (SfP) theory, changes in the shape of a surface (e.g., the direction of the surface normal) can cause large changes in the polarization of light reflected by the object's surface. For example, a smooth surface may generally exhibit the same polarization properties throughout, but scratches or dents in the surface may change the direction of the surface normal in those areas, and light that strikes the scratches or dents may be polarized, attenuated, or reflected differently than other parts of the object's surface. Models of the interaction between light and matter generally consider three fundamentals: geometry, illumination, and material. Geometry is based on the shape of the material. Illumination includes the direction and color of illumination. Materials can be parameterized by the refractive index or the angular reflection / transmission of light. This angular reflection is known as the Bidirectional Reflectance Distribution Function (BRDF), although other functional forms may more accurately represent certain scenarios. For example, the Bidirectional Subsurface Scattering Distribution Function (BSSRDF) will be more accurate in the context of materials that exhibit subsurface scattering (e.g., marble and wax).

[0067] A light ray 410 that strikes the image sensor 16 of the polarization camera 10 has three measurable components: the intensity of the light (Intensity Image / I), the percentage or fraction of the light that is linearly polarized (Degree of Linear Polarization / DOLP / ρ), and the direction of that linear polarization (Angle of Linear Polarization / AOLP / φ). These characteristics encode information about the surface curvature and material of the imaged object that can be used by the predictor 800 to detect transparent objects, as described in more detail below. In some embodiments, the predictor 800 can detect other optically challenging objects based on similar polarization characteristics of light passing through semi-transparent objects and / or light interacting with multi-path guiding or non-reflective objects (e.g., matte black objects).

[0068] Accordingly, some aspects of embodiments of the present disclosure relate to synthesis of polarization raw frames that can be used to compute a first tensor in one or more first representation spaces, which may include feature maps derived based on intensity I, DOLPρ, and AOLPφ. Some aspects of embodiments of the present disclosure also relate to directly synthesizing tensors in one or more representation spaces, such as DOLPρ and AOLPφ, for use in training deep learning systems to perform computer vision tasks based on information about the polarization of light in a scene (and, in some embodiments, based on other imaging modalities, such as thermal imaging and combinations of thermal and polarization imaging).

[0069] The measurements of intensity I, DOLPρ, and AOLPφ at each pixel are taken at different angles φ pol Three or more polarization raw frames of the scene imaged behind a polarizing filter (or polarizer) at 100° are required (e.g., because there are three unknown values ​​to be determined: intensity I, DOLPρ, and AOLPφ). For example, the FLIR® Blackfly® S polarization camera mentioned above captures polarization angles φ at 0°, 45°, 90°, or 135°. pol , whereby I0, I45 , I 90 , and I 135 Four polarized raw frames, denoted as

number

[0070] At each pixel

number

number

[0071] Therefore, four different polarized raw frames

number

[0072] The shape from polarization (SfP) theory (see, for example, Gary A Atkinson and Edwin R Hancock, Recovery of surface orientation from diffuse polarization. IEEE transactions on image processing, 15(6):1653-1664, 2006.) is a function of the refractive index of the object's surface normal (n), the azimuthal angle (θ a ) and zenith angle (θ z ) and the φ and ρ components of a ray coming from an object, when diffuse reflection dominates, follows the following properties:

number

number

number

[0073] Accordingly, some aspects of embodiments of the present disclosure relate to applying SfP theory to generate synthetic raw polarization frames 18 and / or AOLP and DOLP images based on the geometry of surfaces (e.g., surface orientation) in a virtual environment.

[0074] A ray from a transparent object has two components: the reflected intensity I r , reflection DOLPρ r , and the reflected AOL Phi r The reflection part including the refractive intensity I t , refraction DOLPρ t , and the refraction AOL Phi t The intensity of a single pixel in the resulting image can be written as: I=I r +I t (6)

[0075] Linear polarization angle φ pol If a polarizing filter having

number

[0076] Ir , ρ r , φ r , I t , ρ t , and φ t In terms of, we solve the above equation for the values ​​of the pixels of the DOLPρ image and the pixels of the AOLPφ image:

number

number

[0077] Thus, equations (7), (8), and (9) above provide a model for forming a first tensor 50 in a first representation space including the intensity image I, the DOLP image ρ, and the AOLP image φ, according to one embodiment of the present disclosure, and the use of polarization images or tensors in the polarization representation space (including the DOLP image ρ and the AOLP image φ based on equations (8) and (9)) enables a trained computer vision system to reliably detect surface features of optically challenging objects that generally cannot be detected by comparison systems that use only the intensity I image as input.

[0078] More specifically, the first tensors in the polarization representation space (among the derived feature maps), such as the polarization images DOLPρ and AOLPφ, can reveal surface properties of objects whose intensity I domain may appear textureless. Transparent objects are objects whose intensity is strictly I r / I t Since the intensity domain I depends on the ratio of I to I (see equation (6)), it may have texture that is not visible in the intensity domain I. tUnlike opaque objects where ρ = 0, transparent objects transmit most of the incident light and reflect only a small portion of this incident light. As another example, thin or small deviations in the shape of an otherwise smooth surface (or smooth parts of an otherwise rough surface) may be virtually invisible or have low contrast in the intensity I domain (e.g., a domain where the polarization of the light is not taken into account), but may be highly visible or have high contrast in a polarization representation space such as DOLPρ or AOLPφ.

[0079] Thus, one exemplary method for obtaining surface topography is to use polarization cues in combination with geometric regularization. Fresnel's equations relate AOLPφ and DOLPρ with the surface normal. These equations can aid in anomaly detection by utilizing what is known as the polarization pattern of the surface. The polarization pattern is a tensor of size [M,N,K], where M and N are the horizontal and vertical pixel dimensions, respectively, and K is the polarization data channel, which can vary in size. For example, if circular polarization is ignored and only linear polarization is considered, K is equal to 2, since linear polarization has both an angle and a degree of polarization (AOLPφ and DOLPρ). Similar to moiré patterns, in some embodiments of the present disclosure, the feature extraction module 700 extracts polarization patterns in polarization representation spaces (e.g., AOLP space and DOLP space). In the exemplary characterization output 20 shown in Figures 1A and 1B presented above, the horizontal and vertical dimensions correspond to the lateral field of view of a narrow strip or patch of the object's surface captured by the polarization camera 10. However, this is one exemplary case: in various embodiments, the strips or patches of a surface may have a more conventional field of view (FoV) that is vertical (e.g., much taller than it is wide), horizontal (e.g., much wider than it is tall), or tends to approach a square (e.g., width to height ratios of 4:3 or 16:9).

[0080] Although the above description provides a specific example of a polarization representation space based on linear polarization when a polarization camera having one or more linear polarization filters is used to capture polarization raw frames corresponding to various linear polarization angles and calculate tensors in a linear polarization representation space such as DOLP and AOLP, the embodiments of the present disclosure are not limited thereto. For example, in some embodiments of the present disclosure, the polarization camera includes one or more circular polarization filters configured to pass only circularly polarized light, and a polarization pattern or a first tensor in the circular polarization representation space is further extracted from the polarization raw frame. In some embodiments, these additional tensors in the circular polarization representation space are used alone, and in other embodiments, they are used together with tensors in a linear polarization representation space such as AOLP and DOLP. For example, a polarization pattern including a tensor in a polarization representation space can include a tensor in a circular polarization space, AOLP, and DOLP, and the polarization pattern can have dimensions [M,N,K], where K is 3 to further include a tensor in the circular polarization representation space.

[0081] FIG. 5 is a graph of transmitted versus reflected light energy over a range of angles of incidence for a surface with a refractive index of about 1.5. As shown in FIG. 5, the slopes of the transmitted energy (shown as a solid line in FIG. 5) and reflected energy (shown as a dotted line in FIG. 5) lines are relatively small at low angles of incidence (e.g., at angles close to normal to the plane of the surface). Thus, at low angles of incidence (e.g., close to normal to the surface, i.e., close to the surface normal), it may be difficult to detect small differences in surface angle in the polarization pattern (low contrast). Meanwhile, the slope of the reflected energy goes from flat to increasing as the angle of incidence increases, and the slope of the transmitted energy goes from flat to decreasing (greater in absolute value) as the angle of incidence increases. In the example shown in FIG. 5, the refractive index is 1.5, and the slopes of both lines are substantially steep beginning at an angle of incidence of about 60°, and their slopes are very steep at an angle of incidence of about 80°. The specific shapes of the curves may vary for different materials, depending on the refractive index of the materials. Thus, capturing an image of the surface under inspection at an angle of incidence that corresponds to a steeper portion of the curve (e.g., an angle closer to parallel to the surface, such as approximately 80° for an index of refraction of 1.5, as shown in FIG. 5) can improve the contrast and detectability of changes in the surface topography in the polarized raw frame 18, as small changes in the angle of incidence (due to small changes in the surface normal) can cause large changes in the captured polarized raw frame, improving the detectability of such features in the tensor in the polarized representation space.

[0082] The use of polarized cameras to detect the presence and shape of optically challenging objects and surfaces is described in further detail, for example, in PCT Patent Application Nos. US / 2020 / 048604, filed August 28, 2020, and US / 2020 / 051243, filed September 17, 2020, the entire disclosures of which are incorporated herein by reference. Such computer vision systems can be trained to perform computer vision tasks on polarized data based on training data generated according to embodiments of the present disclosure. In some embodiments, these computer vision systems use machine learning models, such as deep neural networks (e.g., convolutional neural networks), to perform computer vision tasks, where the deep learning models are configured to take as input polarized raw frames and / or features of the polarized representation space.

[0083] Simulating the physics of polarization of various materials is a complex task that requires understanding the properties of the materials, the spectral profile and polarization parameters of the illumination used, and the angle at which the reflected light is observed by the observer. Truly simulating the physics of light polarization and its effect on the illumination of an object is not only a complex task, but also a computationally intensive task, including the application of complex forward models that usually produce very inaccurate (unrealistic) images. Thus, various comparative 3-D computer graphics systems typically do not accurately model the physics of light polarization and its effect on the illumination of an object, and therefore are unable to synthesize or render images of a virtual environment in a way that realistically represents how the corresponding real environment would appear if imaged by a camera with a polarizing filter in its light path (e.g., a polarized camera). Thus, comparative techniques for generating synthetic data for training computer vision systems operating with standard imaging modalities (e.g., visible light images without a polarizing filter) are generally unable to generate training data for training computer vision systems operating with other imaging modalities (e.g., polarized cameras, thermal cameras, etc.).

[0084] As mentioned above, aspects of embodiments of the present disclosure relate to generating or synthesizing data for training machine learning models to take as input data captured using imaging modalities other than images captured by standard cameras (e.g., cameras configured to capture visible light intensity without using visible light), referred to herein as multimodal or plenoptic images. The term "multimodal" refers to the plenoptic theory of light, where each dimension of the plenoptic domain (e.g., wavelength, polarization, angle, etc.) is an example of a modality of light. Thus, multimodal or plenoptic imaging includes, but is not limited to, the simultaneous use of multiple imaging modalities. For example, the term "multimodal" may be used herein to refer to a single imaging modality, which is a modality different from the intensity of visible light without the use of a filter, such as a polarizing filter. Polarized raw frames captured by one or more polarized cameras and / or tensors in the polarization representation space are an example of a class of input in multimodal or plenoptic imaging modalities (e.g., using multimodal or plenoptic imaging).

[0085] In general, various aspects of the embodiments of the present disclosure relate to four techniques that can be used separately or in combination as part of a pipeline for generating synthetic training data according to multi-modal or plenoptic imaging modalities, such as polarization imaging modalities. These techniques include domain randomization, texture mapping, normal mapping, and style transfer, which are described in more detail below.

[0086] 6 is a flow chart illustrating a pipeline for generating a synthetic image according to one embodiment of the present disclosure. In some embodiments of the present disclosure, the operations of FIG. 6 are performed by the synthetic data generator 40, for example, in a dedicated program stored in a memory of the synthetic data generator 40 that, when executed by a processor of the synthetic data generator 40, causes the synthetic data generator 40 to perform the special purpose operations described herein to generate a synthetic image based on a physical simulation of optical phenomena. For convenience, aspects of embodiments of the present disclosure are described in the context of applying polarization imaging in a manufacturing context to perform computer vision tasks on optically challenging manufacturing components and tools, such as objects having transparent, shiny metals, and / or dark matte surfaces.

[0087] In operation 610, synthetic data generator 40 places 3-D models of objects into the virtual scene. In the context of generating synthetic images of scenes in a manufacturing environment, 3-D models of objects are readily available from computer-aided design (CAD) models of components and partially or fully assembled manufactured products. These CAD models were created previously during the product design phase and can be obtained, for example, from vendors of components (e.g., from vendors who supplied components to the manufacturer), from publicly available information (e.g., data sheets), or from in-house product designers employed by the manufacturer. In some situations, the CAD models may be manually generated based on the specifications of the components.

[0088] In some embodiments of the present disclosure, 3-D models of objects are arranged in a virtual scene in a manner that resembles the arrangement of those objects as expected to be encountered for the particular computer vision task that the machine learning model is trained to perform.

[0089] In the above example of computer vision in a manufacturing context, one task is to perform segmentation of instances in a bin of components, where the components can be homogenous (e.g., all components in the bin are the same, such as a bin of springs or screws) or heterogeneous (e.g., a mix of different types of components, such as screws of different sizes or screws mixed with matching nuts). Objects can be randomly placed in the bin, components can be oriented in many different directions in the bin, and in a bin of heterogeneous components, components of different part types are mixed together rather than separated into different parts of the bin. A computer vision system can be trained to compute a segmentation map of the bin and identify the location and orientation of individual components (and types of objects, in the case of a bin of heterogeneous components) in the bin. This segmentation map can then be used by an actuator system, such as a robotic arm, to retrieve components from the bin and add the retrieved components to a partially assembled product.

[0090] Thus, in some embodiments of the present disclosure, the synthetic data generator 40 generates a scene of components in a bin by placing a 3-D model of the virtual bin in the scene and dropping the 3-D model of the component into the virtual bin, as simulated using a physics simulation engine, such as a physics engine built into a 3-D computer graphics rendering system. For example, Blender® 3-D rendering software includes a physics system that simulates various physical real-world phenomena, such as the movement, collision, and possible deformation of rigid bodies, cloth, soft bodies, fluids, etc., influenced by gravity or other forces. Thus, rigid body simulation can be used to simulate the dropping of rigid components (e.g., screws, bolts, relatively stiff springs) into a rigid virtual bin, and soft body simulation can be used for elastic or deformable components (e.g., strings, wires, plastic sheets, etc.) into a rigid virtual bin.

[0091] More specifically, various different scenes can be generated that represent different potential states of the bin, such as by dropping various numbers of instances of the 3-D model of the component into the virtual bin. For example, if a typical bin has a maximum capacity of 1,000 screws, various scenes can be generated by dropping 1,000 screws, 900 screws, 500 screws, 100 screws, and 10 screws into the virtual bin to generate various scenes that represent various potential full states of the virtual bin. Additionally, multiple scenes can be generated for any number of screws (or the number of screws can be randomized between the generation of different scenes), where the placement of the components within the bin is also randomized, such as by dropping the components into the bin one at a time from various random locations on the bin.

[0092] Thus, in operation 610, synthetic data generator 40 generates a scene including an arrangement of representative objects.

[0093] In operation 630, the synthetic data generator 40 adds lighting to the virtual scene generated in operation 610. In particular, the synthetic data generator 40 adds one or more light sources to the virtual scene, where the light sources illuminate some or all of the surfaces of the objects in the bin. In some embodiments, the position of one or more light sources is randomized, and multiple scenes are generated with light sources at different positions (e.g., different angles and distances) relative to the bin of parts to improve training robustness. In some embodiments of the present disclosure, the virtual lighting includes virtual light sources representative of light sources found in the environment in which the computer vision system is trained to operate. Examples of potential representative light sources include different color temperatures corresponding to, for example, incandescent, fluorescent, light emitting diode (LED) bulbs, natural light from simulated windows in the environment, and other forms of lighting technology, and the shape of the virtual light (e.g., direction of light rays emitted by the light) can range from direct light to diffuse light. In some embodiments of the present disclosure, the characteristics of the light (e.g., color temperature and shape) are also randomized to generate different scenes with different types of lighting.

[0094] At operation 650, the synthetic data generator 40 applies modality-specific materials to objects in the 3-D virtual scene. For example, when generating synthetic polarized image data, polarization-specific materials may be applied to objects in the virtual scene, while when generating synthetic thermal image data, thermal image specific materials may be applied to objects in the virtual scene. For purposes of illustration, polarization-specific materials are described in detail herein, however, embodiments of the present disclosure are not limited thereto and may also be applied to the generation and application of materials specific to multi-modal imaging modalities and / or plenoptic imaging modalities.

[0095] Some aspects of embodiments of the present disclosure relate to domain randomization, where the material appearance of objects in a scene is randomized beyond the typical appearance of the object. For example, in some embodiments, a number of materials with random colors (e.g., thousands of different materials with different, randomly selected colors) are applied to different objects in a virtual scene. In a real environment, objects in a scene generally have distinct colors (e.g., rubber washers generally all appear matte black, while screws may be a particular shade of glossy black, matte black, gold, or shiny metal). However, real objects may differ in appearance due to changes in lighting conditions such as light color temperature, reflections, specular highlights, etc. Thus, applying randomization to the colors of materials applied to objects when generating training data expands the domain of the training data to include unrealistic colors, thereby increasing the diversity of the training data and training more robust machine learning models that can make accurate predictions (e.g., more accurate instance segmentation maps) in a variety of real-world conditions.

[0096] Some aspects of the embodiments of the present disclosure relate to performing texture mapping to generate models of materials that depend on one or more parameters according to the imaging modality (parameterized materials). For example, as described above, the appearance of a given surface in a scene imaged by a polarization camera system may vary based on the material properties of the surface, the spectral profile, and the polarization parameters of the illumination source or sources (light sources) in the scene, the angle of incidence of the light on the surface, and the viewing angle of the observer (e.g., the polarization camera system). Thus, simulating the physics of polarization of various materials is a complex and computationally intensive task.

[0097] Accordingly, some aspects of embodiments of the present disclosure relate to emulating the physics of various imaging modalities based on empirical data, such as real-world images captured of real-world materials. More specifically, an imaging system (e.g., a polarized camera system) implementing a particular imaging modality of interest is used to collect sample images from an object made of a particular material of interest. In some embodiments, the collected sample images are used to calculate an empirical model of the material, such as its surface light field function (e.g., bidirectional reflectance density function or BRDF).

[0098] FIG. 7 is a schematic diagram of sampling a real material from multiple angles using a polarized camera system according to an embodiment of the present disclosure. FIG. 8 is a flow chart illustrating a method 800 for capturing images of a material from different viewpoints using a specific imaging modality modeled according to an embodiment of the present disclosure. As shown in FIG. 7, a surface 702 of a physical object (e.g., a washing machine, a screw, etc.) is made of a material of interest (e.g., black rubber, chrome-plated stainless steel, etc., respectively). In operation 810, the material is placed in a physical scene (e.g., on a laboratory bench top). In operation 830, a physical illumination source 704, such as an LED lamp or a fluorescent lamp, is placed in the scene and positioned to illuminate at least a portion of the surface 702. For example, as shown in FIG. 7, a light ray 706 emitted from the physical illumination source 704 is incident on a particular point 708 of the surface 702 at an incidence angle α at the particular point 708 on the surface 702 with respect to a normal direction 714 of the surface 702 at that particular point 708.

[0099] In operation 850, an imaging system is used to capture images of the object's surface 702 from multiple poses relative to the normal direction of the surface. In the embodiment shown in Figure 7, a polarized camera system 710 is used as the imaging system to capture images of the surface 702 including a portion illuminated by a physical illumination source 704 (e.g., including a particular point 708). The polarized camera system 710 captures images of the surface 702 from different poses 712, such as by moving the polarized camera system 710 from one pose to the next and capturing polarized raw frames from each pose. In the embodiment shown in FIG. 7, the polarized camera system 710 images the surface 702 at a front-on parallel observer angle β of 0° (e.g., a front-on parallel view from directly above or aligned with the surface normal 714 at point 708) in a first pose 712A, at an intermediate observer angle β such as a 45° angle with respect to the surface normal 714 in a second pose 712B, and at a shallow observer angle β with respect to the surface normal 714 (e.g., slightly less than 90°, such as 89°) in a third pose 712C.

[0100] As described above, the polarized camera system 710 is generally configured to capture polarized raw frames with polarizing filters at different angles (e.g., using a polarized mosaic with four different polarization angles in the optical path of a single lens and sensor system having an array of four cameras, each camera having a linear polarizing filter at a different angle, with the polarizing filters set at different angles for different frames captured at different times from the same pose, etc.).

[0101] In operation 870, the images captured by the imaging system are stored along with the relative pose of the camera with respect to the surface normal (e.g., observer angle β). For example, the observer angle β can be stored in metadata associated with the image and / or the image can be indexed, in part, based on the observer angle β. In some embodiments, the images can be indexed by parameters including: observer angle β (or the angle of the camera position with respect to the surface normal), material type, and lighting type.

[0102] Thus, in the configuration shown in FIG. 7, for example, using the method of FIG. 8, the polarized camera system 710 captures multiple images (e.g., four images at linear polarization angles of 0°, 45°, 90°, and 135°) of a material at different reflection angles (e.g., at different poses 712) and under given lighting conditions (e.g., where the spectral profile of the physical illumination source 704 is known).

[0103] Each of these perspectives or poses 712 gives a different polarization signal due to the nature of the physics of polarized light. Thus, by capturing images of the surface 702 from different observer angles, a model of the material's BRDF can be estimated based on interpolation between images captured by a physical illumination source 704 at one or more closest corresponding angles of incidence α by a camera system at one or more poses 712 with the closest corresponding observer angle β.

[0104] 7 merely illustrates three poses 712 for convenience, and embodiments of the present disclosure are not limited thereto, and material can be sampled at a higher rate, such as at 5° intervals between adjacent poses or less. For example, in some embodiments, the polarization camera system 712 is configured to operate as a video camera system, and polarization raw frames are captured at a high rate, such as 30 frames per second, 60 frames per second, 120 frames per second, or 240 frames per second, thereby resulting in a high density of images captured at a large number of angles relative to the surface normal.

[0105] Similarly, in some embodiments, the pose of the physical illumination source 704 relative to the surface 702 is changed such that the light rays emitted from the physical illumination source 704 are incident on the surface 702 at different angles α, and multiple images of the surface are similarly captured by the polarized camera system 710 from different poses 712.

[0106] The sampling rates of the various angles (e.g., the angle of incidence α and the angle β of the observer or polarized camera system) can be selected such that intermediate viewpoints can be interpolated (e.g., bilinearly interpolated) without significant loss of realism. In various embodiments of the present disclosure, the interval spacing can depend on the physical characteristics of the imaging modality, with some imaging modalities exhibiting higher angular sensitivity than others, and thus, for modalities with lower angular sensitivity, higher accuracy can be possible with fewer poses (more widely spaced), whereas modalities with higher angular sensitivity can use more poses (more closely spaced). For example, in some embodiments, when capturing polarized raw frames for a polarized imaging modality, the poses 712 of the polarized camera system 710 can be set to spacing angles approximately five degrees (5°) apart, and images of the surface 702 can also be captured with the physical illumination sources 704 at various positions, also spaced at angles approximately five degrees (5°) apart.

[0107] In some situations, the appearance of a material under the imaging modality of the experience model also depends on the type of illumination source, such as incandescent, fluorescent, light-emitting diode (LED) bulbs, sunlight, etc., and thus one or more illumination sources used to illuminate the real-world scene are included as parameters of the experience model. In some embodiments, different experience models are trained for different illumination sources (e.g., one model of the material under natural or sunlight and another model of the material under fluorescent lighting).

[0108] Returning to FIG. 6, in some embodiments, in operation 670, the synthetic data generator 40 sets a virtual background for the scene. In some embodiments, the virtual background is an image captured using the same imaging modality as the modality being simulated by the synthetic data generator 40. For example, in some embodiments, when generating synthetic polarized images, the virtual background is a real image captured using a polarized camera, and when generating synthetic thermal images, the virtual background is a real image captured using a thermal camera. In some embodiments, the virtual background is an image of an environment similar to the environment in which the trained machine learning model is intended to operate (e.g., a manufacturing facility or factory in the case of a computer vision system for manufacturing robots). In some embodiments, the virtual background is randomized, thereby increasing the diversity of the synthetic training dataset.

[0109] In operation 690, the synthetic data generator 40 renders the 3-D scene based on the specified imaging modality (e.g., polarized light, thermal, etc.) using one or more of the empirically derived modality-specific material models. Some aspects of an embodiment of the present disclosure relate to rendering an image based on an empirical model of the material in accordance with an embodiment of the present disclosure. The empirical model of the material can be developed as described above based on samples collected from images of real-world objects made of the material of interest.

[0110] Typically, a 3-D computer graphics rendering engine generates a 2-D rendering of a virtual scene by calculating the color of each pixel in an output image according to the color of the virtual scene surface represented by that pixel. For example, in a ray tracing rendering engine, virtual rays are emitted from a virtual camera into the virtual scene (opposite the typical path of light rays in the real world), and the virtual rays interact with the surfaces of 3-D models of objects in the virtual scene. These 3-D models are typically represented using geometric shapes, such as a mesh of points defining planes (e.g., triangles), and these surfaces can be assigned materials that describe how the virtual rays interact with the surfaces, such as reflection, refraction, scattering, dispersion, and other optical effects, as well as textures that represent the color of the surfaces (e.g., textures may be solid colors or may be bitmap images applied to the surfaces). The path of each virtual ray is followed (or "traced") through the virtual scene until it reaches a light source (e.g., a virtual lighting fixture) in the virtual scene, and the accumulated changes in textures encountered along the path from the camera to the light source are combined with the properties of the light source (e.g., the color temperature of the light source) to calculate the color of the pixel. This general process can be modified as will be understood by those skilled in the art, such as performing anti-aliasing (or smoothing) by tracing multiple rays through different parts of each pixel, and calculating the color of a pixel based on a combination (e.g., an average) of various colors calculated by tracing the various rays that interact with the scene.

[0111] 9 is a flow chart illustrating a method 900 for rendering a portion of a virtual object based on an empirical model of materials, according to one embodiment of the present disclosure. In particular, FIG. 9 illustrates one embodiment of calculating color when tracing a ray through a pixel of a virtual scene as the ray interacts with a surface having a material modeled according to one embodiment of the present disclosure. However, one of ordinary skill in the art prior to the effective filing date of this patent application will understand how the techniques described herein can be applied as part of a larger rendering process where multiple colors are calculated and combined for a given pixel of the output, or where a scanline rendering process is used instead of ray tracing.

[0112] More specifically, the embodiment of FIG. 9 illustrates a method for rendering surfaces of objects in a virtual scene based on a view from a virtual camera in the virtual scene, the surfaces having materials modeled according to embodiments of the present disclosure. Given that the objects are being synthetically rendered and the synthetic data generator 40 has access to the ground truth geometry of each object being rendered, the per-pixel normals, material type, and lighting type are all known parameters that appropriately modulate the graphical rendering of the materials. During the rendering process, a camera ray is traced from the optical center of the virtual camera to each 3-D point on the object that is visible from the camera. Each 3-D point on the object (e.g., having XYZ coordinates) is mapped to a 2-D coordinate (e.g., having UV coordinates) on the surface of the object. Each UV coordinate of the object's surface has its own surface light field function (e.g., bidirectional reflectance function or BRDF) that is represented as a model that is generated based on images of the actual material, as described above, for example, with respect to FIGS. 7 and 8.

[0113] At operation 910, the synthetic data generator 40 (e.g., running a 3-D computer graphics rendering engine) determines the normal direction (e.g., with respect to a global coordinate system) of a given surface. At operation 930, the synthetic data generator 40 determines the surface material of an object that has been assigned to the surface as part of the design of the virtual scene.

[0114] In operation 950, synthetic data generator 40 determines an observer angle β for the surface, for example, based on the direction from which the light ray reaches the surface (e.g., the angle from the virtual camera to the surface if the surface is the first surface reached by the light ray from the camera, otherwise the angle at which the light ray reaches the surface from another surface in the virtual scene). In some embodiments, in operation 950, the incidence angle α is also determined based on the angle at which the light ray leaves the surface (e.g., toward a virtual light source in the scene, since light ray direction is reversed during ray tracing). In some situations, the incidence angle α depends on the properties of the material determined in operation 930, such as whether the material is transparent, reflective, refractive, diffuse (e.g., matte), or a combination thereof.

[0115] In operations 970 and 990, the synthetic data generator 40 constructs a model of the material based on the observer angle β (and, if applicable, other conditions such as the angle of incidence α and the spectral profile or polarization parameters of the illumination source in the scene) and calculates the color of the pixel based in part on the constructed model of the material. The material model can be obtained from a collection or databank of different standard material models (e.g., the model material has been empirically generated based on the type of material expected to be depicted in the virtual scene generated by the synthetic data generator 40 to generate training data for a particular application or usage scenario, such as the material of a component used in the manufacture of a particular electronic device in the case of computer vision to support robotics in the manufacture of electronic devices), and the model is generated based on captured images of the actual material as described above according to embodiments of the present disclosure. For example, in operation 930, the synthetic data generator 40 can determine that a surface of an object in the virtual scene is made of black rubber, in which case the material model generated from the captured image of the actual surface made of black rubber is loaded and constructed in operation 970.

[0116] In some situations, the virtual scene includes objects with surfaces made of materials that are not represented in a databank or collection of models of materials. Accordingly, some aspects of embodiments of the present disclosure relate to simulating the appearance of materials that do not have an exact or similar match in a databank of models of materials by interpolating between predictions made by different actual models. In some embodiments, existing materials are represented in an embedding space based on a set of parameters that characterize the material. More formally, F(M glass ,θ out ,φ out ,x,,y) is (θ out ,φ out), and at a location (x,y) on the surface (mapped to (u,v) coordinate space on the 3-D surface), gives the polarized surface light field of glass, and a similar embedding of rubber F(M rubber ,θ out ,φ out The embedding of material into the embedding space can be parameterized in an interpretable manner, for example using a beta variational autoencoder (VAE), and can be interpolated to generate new material that is not based directly on empirically collected samples, but instead is an interpolation between multiple different models that were built separately based on their own empirically collected samples. The generation of additional material in this manner further extends the domain randomization of the synthetic training data generated according to embodiments of the present disclosure, improving the robustness of deep learning models trained on this synthetic data.

[0117] Various embodiments of the present disclosure relate to different ways in which a model of material can be implemented.

[0118] In various embodiments of the present disclosure, a model representing the surface light field function or BRDF of a material is represented using, for example, a deep learning-based BRDF function (e.g., based on a deep neural network such as a convolutional neural network), a mathematically modeled BRDF function (e.g., a set of one or more closed-form equations or one or more open-form equations that can be solved numerically), or a data-driven BRDF function that uses linear interpolation.

[0119] In operation 970, the synthetic data generator 40 constructs a model of the material identified in operation 950 based on the current parameters, such as the angle of incidence α and the observer angle β. In the case of a data-driven BRDF function using linear interpolation, in operation 970, the synthetic data generator 40 retrieves an image of the material identified in operation 950 that is closest in parameter space to the parameters of the current ray. In some embodiments, the materials are indexed (e.g., stored in a database or other data structure) and accessible according to material type, lighting type, light incidence angle, and the angle of the camera relative to the surface normal of the material (e.g., observer angle). However, embodiments of the present disclosure are not limited to the parameters listed above, and other parameters can be used depending on the characteristics of the imaging modality. For example, for some materials, the angle of incidence and / or lighting type may not affect the appearance of the material, and therefore these parameters may be omitted and do not need to be determined as part of the method 900.

[0120] Thus, for a data-driven BRDF function with linear interpolation, in operation 970, the synthetic data generator 40 obtains one or more images that are closest to the given parameters of the current ray associated with the current pixel being rendered. For example, the observer angle may be 53° from the surface normal of the object's surface, and a sample of the real-world material may include images captured at observer angles 5° away, in this example, images captured at 50° and 55° relative to the surface normal of the real-world object made from the material of interest. Thus, images of the real-world material captured at 50° and 55° are obtained (in situations where additional parameters are used, such as angle of incidence and lighting type, these parameters further identify the particular image to be obtained).

[0121] Continuing with the example of a data-driven BRDF function with linear interpolation, operation 990, the synthetic data generator 40 calculates the surface color of the pixel based on the closest image. In situations where there is only one matching image (e.g., when the observer angle of the virtual scene matches the observer angle of one of the sampled images), the sampled image is used directly to calculate the surface color. In situations where there are multiple matching images, the synthetic data generator 40 interpolates the colors of the multiple images. For example, in some embodiments, linear interpolation is used to interpolate between the multiple images. More specifically, if the observer angle is between four different sample images with different observer angles in the azimuth angle relative to the surface normal and in the polar angle relative to the incidence angle of the illumination source, bilinear interpolation can be used to interpolate between the four images along the azimuth and polar directions. As another example, if the appearance of the material further depends on the incidence angle, further interpolation can be performed based on images captured at different incidence angles (with interpolation between images captured at different observer angles for each different incidence angle). Thus, in operation 990, the color of the surface in the scene is calculated for the current pixel based on combining one or more captured images of the real-world material.

[0122] In some embodiments of the present disclosure where the model is a deep learning network, the surface light field function of the material is implemented by a model that involves training a deep neural network to predict the value of the bidirectional reflectance function directly from a set of parameters. More specifically, as described above, for example with respect to Figures 7 and 8, images captured of the real material from a number of different poses are used to generate training data relating parameters such as the observer angle β, the angle of incidence α, the spectral characteristics of the illumination source, etc., to the observed appearance of a portion of the material (e.g., the center of the image). Thus, in some embodiments, a deep neural network is trained (e.g., applying backpropagation) to estimate the BRDF function based on training data collected from images collected from the real material. In these embodiments, the model is constructed in operation 970 by selecting a deep neural network from multiple deep neural networks associated with the model if multiple deep neural networks exist (e.g., selected based on matching parameters of the virtual scene with parameters of the data used to train the deep neural network, such as parameters of the illumination source), and providing parameters to the input of the selected deep neural network (or only the deep neural network if there is only one deep neural network associated with the model), such as observer angle β, incidence angle α, etc. In operation 990, the synthesized data generator 40 calculates a color of the surface of the virtual object from the constructed model by forward propagating through the deep neural network and calculates a color at the output, the calculated color being the color of the surface of the virtual scene predicted by the deep neural network of the constructed model.

[0123] In some embodiments of the present disclosure where the model is a deep learning network, the surface light field function of the material is implemented by a model that includes one or more conditional generative adversarial networks (see, e.g., Goodfellow, Ian et al., "Generative adversarial nets," Advances in Neural Information Processing Systems, 2014). Each conditional generative adversarial network can be trained to generate an image of the material based on a random input and one or more conditions, where the conditions include the current parameters of the view of the surface (e.g., the observer angle β, the angle of incidence α of each illumination source, the polarization state of each illumination source, and the material properties of the surface). According to some embodiments, a discriminator is trained in an adversarial manner to determine, based on the input image and a set of conditions associated with the image, whether the input image is an actual image captured under the given conditions or has been generated by a conditional generator that is tuned based on the set of conditions. By alternately retraining the generator to generate images that can "fool" the discriminator and training the discriminator to distinguish between generated and real images, the generator is trained to generate realistic images of the material captured under various capture conditions (e.g., different observer angles), thereby allowing the trained generator to represent the surface light field function of the material. In some embodiments of the present disclosure, different generative adversarial networks are trained for different conditions of the same material, such as different types of illumination sources, different polarization states of the illumination sources, etc. In these embodiments, the model is configured in operation 970 by selecting a conditional GAN ​​from multiple conditional GANs associated with the model, if there are multiple conditional GANs associated with the model (e.g., selected based on matching parameters of the virtual scene with parameters of the data used to train the deep neural network, such as parameters of the illumination source), and providing parameters of the virtual scene as conditions for the conditional GAN, such as observer angle β, incidence angle α, etc.At operation 990, the synthetic data generator 40 calculates a color of the surface of the virtual object from the constructed model by forward propagation through the conditional GAN ​​and calculates a color at the output (e.g., a synthetic image of the object-based surface), where the calculated color is the color of the surface of the virtual scene generated by the conditional GAN ​​of the constructed model.

[0124] In some embodiments of the present disclosure, the surface light field function is modeled using a closed-form, mathematically derived Bidirectional Reflectance Distribution Function (BRDF) constructed from empirically collected samples (e.g., paintings or photographs) of the actual material captured from different angles, such as by the method described with respect to Fig. 8. Examples of techniques for constructing a BRDF based on collected photographs or photographs of the material from various angles or poses are described, for example, in Ramamoorthi, Ravi, and Pat Hanrahan, "A Signal-Processing Framework for Inverse Rendering", Proceedings of the 28th Annual Conference on Computer Graphics and Interactive Techniques. 2001, and Ramamoorthi, Ravi, A Signal-Processing Framework for Forward and Inverse Rendering. Stanford University, 2002, 52-79. Thus, in some embodiments, a closed-form, mathematically derived BRDF is constructed using empirically collected samples of real materials and included as a component of a material model to model the multimodal and / or plenoptic properties of the material for computational rendering of multimodal and / or plenoptic images of a virtual scene.

[0125] In some embodiments, a virtual object made of multiple materials, either bimodal or multimodal, will have a similar set of images for each type of material used in the virtual object in question. The appearances of the various materials are then combined in the final rendering of the image (e.g., incrementally combined according to weights associated with each material in the virtual model). In some embodiments, this same approach to combining multiple materials is applied to multi-layer materials, such as a transparent coating on a glossy material. In some embodiments, multi-layer materials are modeled by sampling (e.g., capturing images) the multi-layer materials separately.

[0126] The net effect of a rendering process using an empirical model of a material according to embodiments of the present disclosure is that the final rendering has an emulated polarization signal that is close to the actual polarization signal in the real environment. The accuracy of the empirical model in rendering a depicted material in a virtual environment depends on how well the conditions in the virtual environment match the conditions under which a sample of the real material was captured (e.g., how well the spectral profile of the lighting sources in the virtual scene match the real-world lighting sources, how well the observer angle in the virtual scene matches the observer angle used when performing the sampling, etc.).

[0127] As noted above, aspects of embodiments of the present disclosure are described herein in the context of simulating or emulating the appearance of polarized light, but embodiments of the present disclosure are not limited thereto. Appearance of a material under multimodal imaging modalities and / or plenoptic imaging modalities, e.g., heat, heat with polarized light, etc., can also be captured according to embodiments of the present disclosure. For example, the behavior of a material in a thermal imaging modality (e.g., infrared images) can be similarly modeled by capturing images of the material from multiple poses using a thermal camera in an arrangement similar to that shown in FIG. 7 and in the manner described in FIG. 8. Then, based on these captured images, the appearance of the material under thermal images can be simulated in a 3-D rendering engine by obtaining corresponding images and, if necessary, interpolating the images in a manner similar to that shown in FIG. 9.

[0128] Accordingly, some aspects of the present disclosure relate to systems and methods for generating synthetic image data of a virtual scene as it would appear under various imaging modalities, such as polarized and thermal imaging, by rendering images of the virtual scene using empirical models of the materials of the virtual scene. In some embodiments, these empirical models can include images captured of real-world objects using one or more imaging modalities, such as polarized and thermal imaging. These synthetic image data can then be used to train machine learning models for manipulating image data captured by an imaging system using these imaging modalities.

[0129] Some aspects of the embodiments of the present disclosure relate to the generation of synthetic data related to image features that would typically be generated from image data. As a particular example, some aspects of the embodiments of the present disclosure relate to the generation of synthetic features or tensors in polarization representation space (e.g., degree of linear polarization or DOLP ρ and angle of linear polarization or AOLP φ). As described above, shape from polarization (SfP) is a function of DOLP ρ and AOLP φ, the refractive index (n), the azimuthal angle of the object's surface normal (θ a ) and zenith angle (θ z ) provides a relationship between

[0130] Thus, some aspects of the embodiment are based on the refractive index n, the azimuth angle (θ a ) and zenith angle (θ z ) to generate a composite of the degree of linear polarization or DOLPρ and the angle of linear polarization or AOLP φ of the surfaces of the virtual scene seen by the virtual camera, all of which are known parameters of the virtual 3-D scene.

[0131] 10 is a flow chart illustrating a method 1000 for computing synthetic features or tensors in the polarization representation space of a virtual scene, according to one embodiment of the present disclosure. In operation 1010, the synthetic data generator 40 renders a normal image (e.g., an image in which every pixel corresponds to the direction of the surface normal of the virtual scene at that pixel). The normal vector of each component is oriented with an azimuth angle θ a Component and zenith angle θ z In operation 1030, the synthetic data generator 40 separates the normal vector at each point in the normal image into two components: the azimuth angle θ at that pixel a and the zenith angle θ zAs described above, these components can be used to calculate estimates of DOLPρ and AOLPφ by using the geometry from polarization equations (2) and (3) for diffuse and equations (4) and (5) for specular. To simulate realistic polarization errors, in some embodiments of the present disclosure, the synthetic data generator 40 applies a semi-global perturbation to the normal map before applying the polarization equations (e.g., equations (2), (3), (4), and (5)). This perturbation changes the magnitude of the normal while preserving the gradient of the normal. This simulates errors caused by the interaction of the material properties of the object with the polarization. In operation 1050, for a given pixel, the synthetic data generator 40 determines the material of the object's surface based on parameters of the object in the virtual scene (e.g., the material associated with the surface at each pixel of the normal map), and the material is used in combination with the scene geometry according to a 3-D rendering technique to determine whether the particular pixel is specular dominant. If so, the synthetic data generator 40 calculates DOLPρ and AOLPφ based on specular equations (4) and (5) in operation 1092. If not, the synthetic data generator 40 calculates DOLPρ and AOLPφ based on diffusion equations (2) and (3) in operation 1094.

[0132] In some embodiments, all surfaces are assumed to be diffuse, and therefore operations 1050 and 1070 can be omitted, and the composite DOLPρ and AOLPφ are calculated based on the geometry from polarization equations (2) and (3) for the diffuse case.

[0133] In some embodiments, the synthesized DOLPρ and AOL Phi data are rendered into color images by applying a color map, such as the "viridis" or "Jet" color map (see, e.g., Liu, Yang, and Jeffrey Heer, "Somewhere over the rainbow: An empirical assessment of quantitative colormaps," Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems, 2018). These color-mapped versions of the synthesized tensors in polarization space can be more easily provided as inputs to retrain pre-trained machine learning models, such as convolutional neural networks. In some embodiments, when synthesizing the DOLPρ and AOL Phi data, a random color map is applied to the various synthesized data such that the synthesized training data set contains color images representing the DOLPρ and AOL Phi data in a variety of different color maps, such that at inference time, the network can perform predictions regardless of the particular color map used to encode the actual DOLPρ and AOL Phi data. In other embodiments of the present disclosure, the same color map is applied to all synthetic DOLPρ and AOLPφ data (or a first color map is used for DOLPρ and a second, different color map is used for AOLPφ), and during inference, a color map is applied to the tensors extracted in the polarization representation space to match the synthetic training data (e.g., the same first color map extracted from actual captured polarization raw frames is used to encode DOLPρ, and the same second color map extracted from actual captured polarization raw frames is used to encode AOLPφ).

[0134] Accordingly, some aspects of embodiments of the present disclosure relate to the synthesis of features in a representation space specific to a particular imaging modality, such as by synthesizing DOLPρ and AOLPφ in the polarization representation space of a polarization imaging modality.

[0135] Some aspects of the embodiments of the present disclosure relate to a combination of the above techniques to generate synthetic images for training machine learning models. FIG. 11 is a flow chart illustrating a method for generating a training dataset according to an embodiment of the present disclosure. One or more virtual scenes representing a target domain can be generated as described above (e.g., when selecting one or more 3-D models of components and generating images of bins of components by dropping instances of the 3-D models into a container). For example, some aspects of the embodiments of the present disclosure relate to forming a training dataset based on (1) images generated purely by domain randomization in operation 1110, (2) images generated purely by texture mapping in operation 1112 (e.g., generated according to the embodiment of FIG. 9), and (3) images generated purely by normal mapping in operation 1114 (e.g., generated according to the embodiment of FIG. 10).

[0136] Additionally, the training dataset can include images generated using models of the material generated by interpolating between various empirically generated models parameterized in the embedding space, as described above.

[0137] In some embodiments of the present disclosure, the images generated according to (1) domain randomization, (2) texture mapping, and (3) normal mapping are further processed by applying style transfer or other filters to the images generated in operations 1120, 1122, and 1124, respectively, before adding the images to the training dataset. Applying style transfer makes the appearance of images that look somewhat different, as generated using the three techniques above, more consistent. In some embodiments, the style transfer process transforms the synthesized input image to look more similar to the captured image by making the synthesized input image look more artificial, such as by causing the image generated using (1) domain randomization and (3) normal mapping to look like a polarized raw frame, or by applying an unrealistic painting style to the input image (e.g., causing the image generated using (1) domain randomization, (2) rendering using texture mapping, and (3) normal mapping to look like a painting created by a paintbrush on a canvas).

[0138] In some embodiments, a neural style transfer network is trained and used to perform style transfer in operation 1122 on images selected for the training dataset, such as SytleGAN for complex global style transfer (see, e.g., Karras, Tero, et al., “Analyzing and improving the image quality of stylegan,” Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition, 2020); patch-based networks for local style transfer (see, e.g., Chen, Tian Qi, and Mark Schmidt, “Fast patch-based style transfer of arbitrary style,” arXiv preprint arXiv:1612.04337 (2016)); and networks using domain adaptation (see, e.g., Dundar, Aysegul, et al., “Domain stylization: A strong, simple baseline for synthetic to real image domain adaptation,” arXiv preprint arXiv:1807.09384 (2018)). As a result, all images in the training dataset can have a similar style or appearance, transformed by the style transfer operation, regardless of how the images were acquired (e.g., whether by (1) domain randomization, (2) texture mapping, (3) normal mapping, or other sources such as actual images of the object captured using an imaging system that implements the modality of interest, such as polarization imaging or thermal imaging).

[0139] In some embodiments of the present disclosure, images of the training dataset are sampled from the synthetic datasets (1), (2), and (3) based on hard example mining (see, e.g., Smirnov, Evgeny, et al., "Hard example mining with auxiliary embeddings," Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2018). Sampling the synthetic dataset using hard example mining can reduce the size of the training set and improve the efficiency of the training process by removing substantially redundant images that have little impact on the training process while retaining "hard examples" that have a greater impact on the resulting trained model.

[0140] As briefly mentioned above, when generating training data for supervised learning, the synthetic data generator 40 also automatically generates labels (e.g., desired outputs) for the synthesized images. For example, when generating training data for training a machine learning model to perform an image classification task, the labels generated for a particular image may include the class of the object depicted in the image. These classification labels may be generated by identifying unique types of objects that appear in the virtual scene. As another example, when generating training data for training a machine learning model to perform an instance segmentation task, the generated labels may include a segmentation map in which each instance of each object is uniquely identified (e.g., by different instance identifiers) along with its class (e.g., where objects of the same type have the same class identifier). For example, the segmentation map may be generated by tracing rays from the camera into the virtual scene, where each ray may intersect with an initial surface in the virtual scene. Each pixel of the segmentation map is labeled accordingly based on the instance identifier and class identifier of the object, including the surface hit by the ray emitted from the camera through the pixel.

[0141] 1, the resulting training dataset of synthetic data 42 generated by synthetic data generator 40 is then used as training data 5 by model training system 7 to train model 30, such as a pre-trained model or a model initialized with random parameters, to create trained model 32. Continuing with the above example of generating training data according to a polarization imaging modality, training dataset 5 may be used to train model 30 to manipulate polarization input features, such as polarization raw frames (e.g., images generated via texture mapping) and tensors in polarization representation space (e.g., images generated via normal mapping).

[0142] Thus, the training data 5, including the synthetic data 42, is used to train or retrain the machine learning model 30 to perform a computer vision task based on a particular imaging modality. For example, synthetic data according to a polarization imaging modality can be used to retrain a convolutional neural network that was pre-trained to perform instance segmentation based on standard color images to perform instance segmentation based on polarization input features.

[0143] In deployment, a trained model 32, trained based on training data generated according to an embodiment of the present disclosure, is then configured to take inputs similar to the training data, such as polarization raw frames and / or tensors in a polarization representation space (with the same style of transfer, if any, that these input images were applied to when the training data was generated), and generate predicted outputs, such as segmentation maps.

[0144] Although some embodiments of the present disclosure are described herein with respect to polarization imaging modalities, embodiments of the present disclosure are not limited thereto and include multimodal imaging modalities and / or plenoptic imaging modalities such as thermal imaging, thermal imaging with polarization (e.g., with a polarizing filter), and ultraviolet imaging. In those embodiments using different modalities, real-world image samples captured from real-world materials using imaging systems implementing those modalities are used to generate models of the materials as they appear under those imaging modalities, and the surface light field functions of the materials for those modalities are modeled as described above (e.g., using deep neural networks, generative networks, linear interpolation, explicit mathematical models, etc.) and used to render images according to those modalities using a 3-D rendering engine. The images rendered in the modalities can then be used to train or retrain one or more machine learning models, such as convolutional neural networks, to perform computer vision tasks based on input images captured using those modalities.

[0145] Accordingly, aspects of embodiments of the present disclosure relate to systems and methods for generating simulated or synthetic data representative of image data captured by an imaging system using a variety of different imaging modalities, such as polarized light, thermal, ultraviolet, and combinations thereof. The simulated or synthetic data can be used as a training data set and / or to augment a training data set for training a machine learning model to perform tasks, such as computer vision tasks, on data captured using an imaging modality that corresponds to the imaging modality of the simulated or synthetic data.

[0146] Although the invention has been described in connection with specific exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims, and their equivalents.

[0147] In some embodiments of the present disclosure, the order in which the operations are performed may differ from the order shown in the figures and described herein. For example, FIG. 6 illustrates an example of a method for generating a synthetic image, and embodiments of the present disclosure are not limited thereto. For example, some of the operations illustrated in FIG. 6 may be performed in a different order or simultaneously. As a specific example, in various embodiments of the present disclosure, the operations of placing 610 a 3-D model of an object in a virtual scene, adding lighting to the virtual scene, applying 650 modality-specific materials to the object in the virtual scene, and setting 670 a scene background may be performed in various orders before rendering the 3-D scene based on the imaging modality specified in operation 690. As another example, FIG. 8 illustrates an embodiment in which lighting is placed in a real-world scene after placing real-world objects in the scene, and embodiments of the present disclosure are not limited thereto, and lighting may be added to the scene before placing real-world objects in the scene.

[0148] In some embodiments of the present disclosure, some operations may be omitted or not performed, and in some embodiments, additional operations not described herein may be performed before, after, or between various operations described herein.

Claims

1. 1. A method for generating a synthetic image of a virtual scene, comprising: placing a three-dimensional (3-D) model of the object into the 3-D virtual scene with a synthetic data generator implemented by a processor and a memory; adding, by the synthetic data generator, lighting including one or more lighting sources to the 3-D virtual scene; applying, by the synthetic data generator, imaging modality specific materials, each including an experiential model, to the 3-D model of an object in the 3-D virtual scene in accordance with a selected multi-modal imaging modality; setting a scene background according to the selected multimodal imaging modality; rendering, by the synthetic data generator, a two-dimensional image of the 3-D virtual scene based on the selected multi-modal imaging modality, and generating a synthetic image according to the selected multi-modal imaging modality.

2. the empirical model is generated based on sampled images captured from a surface of a material using an imaging system configured to capture images using the selected multimodal imaging modality; The method of claim 1 , wherein the sampled images comprise images captured of the surface of the material from a plurality of different poses relative to a normal direction of the surface of the material.

3. The method of claim 2 , wherein the selected multimodal imaging modality is polarized light and the imaging system comprises a polarized light camera.

4. The method of claim 2 , wherein the selected multimodal imaging modality is thermal and the imaging system comprises a thermal camera.

5. The method of claim 4 , wherein the thermal camera comprises a polarizing filter.

6. The method of claim 2 , wherein each of the sampled images is stored in association with a corresponding angle of its pose relative to the normal direction of the surface of the material.

7. The sampled image is a first plurality of sampled images captured of the surface of the material illuminated by light having a first spectral profile; and a second plurality of sampled images captured of the surface of the material illuminated by light having a second spectral profile different from the first spectral profile.

8. The method of claim 2 , wherein the empirical model comprises a surface light field function calculated by interpolating between two or more of the sampled images.

9. The method of claim 2 , wherein the empirical model comprises a surface light field function computed by a deep neural network trained on the sampled images.

10. The method of claim 2 , wherein the empirical model comprises a surface light field function computed by a generative adversarial network trained on the sampled images.

11. The method of claim 2 , wherein the empirical model comprises a surface light field function calculated by a mathematical model generated based on the sampled images.

12. The method of claim 1 , further comprising applying style transfer to the composite image.

13. A method for generating a training data set based on a plurality of synthetic images generated by the method of any one of claims 1 to 12.

14. 1. A method for training a machine learning model, comprising: Receiving a training data set obtained by the method of claim 13; and calculating parameters of the machine learning model based on the training dataset.

15. 1. A system for generating a synthetic image of a virtual scene, comprising: A processor; When executed by the processor, the processor: Placing a three-dimensional (3-D) model of an object in a 3-D virtual scene; adding lighting to the 3-D virtual scene, the lighting including one or more lighting sources; applying imaging modality specific materials, each including an experiential model, to the 3-D model of an object in the 3-D virtual scene according to a selected multimodal imaging modality; setting a scene background according to the selected multimodal imaging modality; and a memory storing instructions that cause a synthetic data generator to implement: rendering a two-dimensional image of the 3-D virtual scene based on the selected multi-modal imaging modality; and generating a synthetic image according to the selected multi-modal imaging modality.

16. the empirical model is generated based on sampled images captured from a surface of a material using an imaging system configured to capture images using the selected multimodal imaging modality; The system of claim 15 , wherein the sampled images include images captured of the surface of the material from a plurality of different poses relative to a normal direction of the surface of the material.

17. The system of claim 16 , wherein the selected multimodal imaging modality is polarized light and the imaging system comprises a polarized light camera.

18. The system of claim 16 , wherein the selected multimodal imaging modality is thermal and the imaging system comprises a thermal camera.

19. The system of claim 18 , wherein the thermal camera comprises a polarizing filter.

20. 17. The system of claim 16, wherein each of the sampled images is stored in association with a corresponding angle of its pose relative to the normal direction of the surface of the material.

21. The sampled image is a first plurality of sampled images captured of the surface of the material illuminated by light having a first spectral profile; and a second plurality of sampled images captured of the surface of the material illuminated by light having a second spectral profile different from the first spectral profile.

22. The system of claim 16 , wherein the empirical model comprises a surface light field function calculated by interpolating between two or more of the sampled images.

23. 17. The system of claim 16, wherein the empirical model comprises a surface light field function computed by a deep neural network trained on the sampled images.

24. The system of claim 16 , wherein the empirical model comprises a surface light field function computed by a generative adversarial network trained on the sampled images.

25. The system of claim 16 , wherein the empirical model comprises a surface light field function calculated by a mathematical model generated based on the sampled images.

26. 16. The system of claim 15, wherein the memory further stores instructions that, when executed by the processor, cause the synthesis data generator to apply style transfer to the synthetic image.

27. A system for synthesizing a training dataset configured to generate a training dataset based on a plurality of synthetic images generated by a system according to any one of claims 15 to 26.

28. 1. A system for training a machine learning model, comprising: A processor; When executed by the processor, the processor: Receiving a training data set obtained by the system of claim 27; and calculating parameters of the machine learning model based on the training dataset.

Citation Information

Patent Citations

  • Image generating system, program and method, and simulation system, program and method

    JP2018060512A

  • Image processing device and pseudo-3d image creation device

    WO2010073547A1

  • 3-d graphic generation, artificial intelligence verification and learning system, program, and method

    WO2017171005A1