Learning template representation libraries

By using environment images to generate three-dimensional reconstructions and new template representations in the template representation library, the template representation library is automatically expanded, which solves the problem that the template representation library in the existing technology is insufficient to predict the location of objects, and realizes a template representation library with almost no manual intervention. Build and expand.

CN118736253APending Publication Date: 2024-10-01GOOGLE LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410744542.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-07-30
Filing Date
2019-07-19
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

If the existing template representation library is insufficient to use template matching technology and lacks an automatic recovery mechanism when inferring the location of objects in the environment, manual intervention is required to generate new template representations to expand the library.

Method used

By capturing multiple images of the environment, it generates a three-dimensional reconstruction of the environment, determines the location of objects, and generates new template representations based on the reconstruction results, automatically expanding the template representation library with almost no manual intervention.

Benefits of technology

It realizes the construction of a template representation library that can be used for environment interaction with little or no manual intervention, improves the automatic generation and expansion capabilities of the template representation library, and reduces the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736253A_ABST
    Figure CN118736253A_ABST
Patent Text Reader

Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for learning a template representation library. In one aspect, a method includes obtaining an image describing a physical environment, where the environment includes a given physical object. When possible, a template matching technique is used to infer the location of a given object in the environment based on the template representation library. In response to determining that the location of the given object in the environment cannot be predicted using a template matching technique based on the template representation library, the template representation library is automatically augmented with a new template representation.
Need to check novelty before this filing date? Find Prior Art

Description

This application is a divisional application of a patent application filed on July 19, 2019, with application number 201980021378.0 (PCT / US2019 / 042526) and invention name “Learning Template Representation Library”. Background Art

[0001] This specification relates to processing data using digital image processing methods.

[0002] A computer can model an environment by processing data representing the environment using digital image processing methods. The data representing the environment can be, for example, image data describing the environment. A computer can use a model of the environment as a basis for interacting with the environment. For example, a computer can use a robotic actuator to interact with the environment. Summary of the invention

[0003] This specification describes a system for learning a template representation library implemented as a computer program on one or more computers in one or more locations.

[0004] According to a first aspect, a method for learning a template representation library is provided. The method includes obtaining a first image describing a physical environment, wherein the environment includes a given physical object. The method includes determining whether a template matching technique can be used based on the template representation library to infer the position of a given object in the environment, wherein the template representation library includes multiple template representations. In response to determining that the position of a given object in the environment cannot be inferred using template matching techniques based on the template representation library, a reconstruction of the environment is generated from multiple images of the environment. The reconstruction of the environment characterizes the geometry of the environment. The reconstruction of the environment is used to determine an estimated position of a given object. A new template representation of the given object is generated using the estimated position of the given object. The template representation library is augmented with the new template representation.

[0005] In some embodiments, determining whether a template matching technique can be used based on a template representation library to infer the position of a given object in the environment includes, for each of a plurality of template representations from the template representation library, determining whether a similarity measure between the template representation and a region of the first image exceeds a threshold.

[0006] In some implementations, generating a reconstruction of the environment from the plurality of images of the environment includes applying a stereo reconstruction technique to the images of the environment.

[0007] In some implementations, the reconstruction of the environment includes a plurality of coordinates defining a three-dimensional reconstruction of the environment.

[0008] In some embodiments, using the reconstruction of the environment to determine the estimated position of the given object includes determining, based on the reconstruction of the environment, a segmentation of the environment into a plurality of segmented regions, identifying the segmented regions as the given object, and determining the estimated position of the given object based on the segmented regions identified as the given object.

[0009] In some implementations, determining to segment the environment into a plurality of regions based on the reconstruction of the environment includes determining a watershed transform of an image representing the reconstruction of the environment.

[0010] In some implementations, generating a new template representation of the given object using the estimated position of the given object includes cropping a region of the environment image defined by the estimated position of the given object.

[0011] In some embodiments, the method includes physically interacting with the environment based on an estimated position of a given object determined using a reconstruction of the environment, determining an interaction success condition, and prohibiting use of the estimated position of the given object to generate a new template representation of the given object if the interaction does not satisfy the interaction success condition.

[0012] In some implementations, physically interacting with the environment based on the estimated position of the given object determined using the environment reconstruction includes attempting to manipulate the given object using a robotic actuator based on the estimated position of the given object determined using the environment reconstruction.

[0013] According to a second aspect, there is provided a system comprising a memory storing executable instructions, and one or more computers executing the instructions to perform the operations of the previously described method.

[0014] According to a third aspect, there is provided one or more non-transitory computer storage media storing instructions which, when executed by one or more computers, cause the one or more computers to perform the operations of the aforementioned method.

[0015] Particular embodiments of the subject matter described in this specification can be implemented so as to realize one or more of the following advantages.

[0016] The system described in this specification can build a template representation library that can be used by an agent (e.g., a mechanical agent) to interact with an environment with little or no human intervention. More specifically, whenever the system determines that the current template representation library is insufficient to use template matching techniques to infer the position of an object of interest in the environment, the system can automatically generate a new template representation representing the object of interest and expand the template representation library with the new template representation. In contrast, when some traditional systems determine that the template representation library is insufficient to use template matching techniques to infer the position of an object of interest in the environment, the traditional systems lack an automatic recovery mechanism. In some of these traditional systems, human intervention is required to generate new template representations to expand the template representation library. The system described in this specification eliminates the need for human intervention in building a template representation library. Any of the above advantages constitute an improvement in the field of computer vision technology.

[0017] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the following description. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a block diagram of an example template learning system.

[0019] Figure 2 is a flow chart of an example process for augmenting a template representation library with new template representations.

[0020] Figure 3 is a flow chart of an example process for determining an estimated position of an object of interest from a reconstruction of an environment.

[0021] Like reference numbers and numerals in the various drawings represent like elements. DETAILED DESCRIPTION

[0022] This specification describes a system for building a library of template representations that an agent (e.g., a robotic agent) can use to interact with a physical environment. More specifically, the agent can use the library of template representations to infer the locations of objects of interest in the environment using template matching techniques, and then interact with these objects of interest (e.g., by picking them up using a mechanical gripping device).

[0023] When a current library of template representations is insufficient to infer a location of an object of interest in an environment, the system can automatically (i.e., with little or no human intervention) augment the library of template representations with new template representations representing the object of interest. To generate the new template representation, the system captures multiple images of the environment, generates a reconstruction of the environment (e.g., a three-dimensional (3D) reconstruction), and determines the location of the object of interest based on the reconstruction of the environment. After determining the location of the object of interest based on the reconstruction of the environment, the system can determine a new template representation by cropping a region that describes the object of interest based on the captured image of the environment.

[0024] These and other features are described in greater detail below.

[0025] Figure 1 An example template learning system 100 is shown. The template learning system 100 is an example of a system of computer programs implemented on one or more computers in one or more locations in which the systems, components, and techniques described below are implemented.

[0026] The template learning system 100 is configured to learn a template representation library 102. The template representation library 102 is a collection of image data, and the image data may be of different types depending on the implementation used. In some implementations, the template representation library 102 is a collection of images, each image describing a respective physical object (e.g., a computer hardware component, a machine part, or a manufacturing tool). In some implementations, the template representation library 102 is a collection of feature representations, each feature representation derived from an image describing a respective physical object. Feature representations derived from images may include, for example, data indicating the locations of points of interest and line segments in an image. In some implementations, the template representation library 102 defines one or more models of common features across multiple images describing respective physical objects. The components of the template representation library 102 (which may be images, feature representations, etc.) are referred to as template representations in this specification. That is, the template representation refers to image data (e.g., images or feature representations derived from images) that characterize the appearance of an object (e.g., shape, texture, color, reflectivity, etc.).

[0027] In some cases, each template representation in the template representation library 102 represents the same type of object, while in other cases, different template representations in the template representation library 102 represent different types of objects. Each template representation can represent a corresponding object while excluding representation of a background of the object (e.g., a background describing an area surrounding the corresponding object). The template representations in the template representation library 102 can differ from each other based on factors including: (i) the lighting when the image used to generate the template representation was captured, (ii) the view (e.g., position and angle) of the camera that captured the image used to generate the template representation, (iii) the resolution of the image used to generate the template representation, (iv) the color balance of the image used to generate the template representation, and (v) the object described in the image used to generate the template representation, etc.

[0028] Agent 104 may use template representation library 102 to determine the location of a physical object of interest in physical environment 106. Determining the location of the object of interest in environment 106 may allow the agent to physically interact with the object of interest. For example, environment 106 may be a warehouse environment, and agent 104 may be a robotic agent that interacts with the environment by picking up objects of interest and moving them to different locations in environment 106. As another example, environment 106 may be a manufacturing environment, and agent 104 may be a robotic agent that interacts with the environment by assembling objects of interest into manufactured products on an assembly line.

[0029] To determine the location of the object of interest, the system 100 captures one or more images 108 of the environment 106. The system 100 may sequentially capture images 108 of the environment 106 by repeatedly changing the view of a camera that captures the images 108. For example, the system 100 may sequentially capture images 108 of the environment 106 by moving the camera that captures the images 108 in a predetermined sequence of different views (e.g., in a spiral shape).

[0030] For each image 108 of the environment 106, the system processes the image 108 using a template matching engine 110 to determine whether the location of the object of interest in the image 108 can be inferred based on the template representation library 102 using template matching techniques. That is, the template matching engine 110 uses template matching techniques to determine whether any template representation in the template representation library 102 "matches" any region of any image 108. More specifically, the template matching engine 110 determines whether a similarity measure (which can be represented as a numerical value) between any template representation from the template representation library 102 and any region of the image 108 exceeds a given threshold. As an illustrative example, the template matching engine 110 can determine that the example template representation image 112 (which describes a rectangular object) matches a region 114 of an image 116 (which also describes a rectangular object). Reference Figure 2As will be described in more detail in , the template matching engine 110 may use any suitable template matching technique, such as an interest point template matching technique, a cross-correlation template matching technique, an absolute difference template matching technique, or a combination thereof.

[0031] When the template matching engine 110 determines that the position of the object of interest in the image 108 can be inferred based on the template representation library 102 using the template matching technique, the template matching engine 110 outputs data defining the position 118 of the object of interest in the image 108. The advantage of successfully inferring the position of the object based on the template representation library 102 using the template matching technique is that the process of determining the matching template is more efficient than the process of determining the position by reconstructing the environment, which will be explained later. In this sense, the template representation library 102 can be understood as a library of observations that may have been encountered previously, which enables the position of the object to be effectively determined without reconstructing the environment. For example, the data defining the position 118 of the object of interest in the image 108 may include the coordinates of the center of the object of interest, the coordinates defining the major and minor axes of the object of interest, or both. The agent 104 can use the determined position 118 of the object of interest to physically interact with the object of interest. For example, the agent 104 can use a robotic actuator (e.g., a mechanical gripping device) to manipulate the object of interest (e.g., by picking it up).

[0032] In some cases, the system 100 may determine that the current template representation library 102 is insufficient to infer the location 118 of the object of interest using template matching techniques. That is, the template matching engine 110 may determine that none of the template representations in the template representation library 102 matches any area of ​​any captured image 108 of the environment. The current template representation library 102 may be insufficient because, for example, the object of interest includes features (e.g., shapes, colors, ports, attachments, etc.) that are not included in objects represented by any current template representation (i.e., template representations currently included in the template representation library 102). As another example, the current template representation library 102 may be insufficient because the image 108 of the environment depicts the object of interest from a different view than the view used to generate the current template representation.

[0033] When the system 100 determines that the current template representation library 102 is insufficient to infer the location 118 of the object of interest using template matching techniques, the system 100 can automatically expand the template representation library 102 with new template representations 120, with little or no human intervention. The new template representations 120 enhance the template representation library 102 because they characterize the object of interest in a manner different from the current template representations. For example, the new template representation 120 can be an image that describes the object of interest from a different view than the current template representation. As another example, the object of interest represented by the new template representation 120 can be an object type that is not represented by any current template representation. After expanding the template representation library 102 with the new template representation 120, the template matching engine 110 can use the expanded template representation library 102 to infer the locations of other objects of interest in the environment 106 in the future.

[0034] To determine a new template representation 120, the system 100 provides the image 108 of the environment 106 to a reconstruction engine 122. The reconstruction engine 122 is configured to process the image 108 to generate a reconstruction 124 of the environment 106 that represents the geometry of the environment 106. For example, the reconstruction 124 of the environment 106 can represent the three-dimensional (3D) structure of the environment 106 by defining a plurality of 3D coordinates (e.g., coordinates having components) of various locations on a surface in the environment 106. The reconstruction engine 122 can generate the reconstruction 124 of the environment 106 using any suitable reconstruction technique (e.g., a stereo reconstruction technique).

[0035] The system 100 provides the reconstruction 124 of the environment 106 to a positioning engine 126, which is configured to process the reconstruction 124 to determine an estimated position 128 of the object of interest in the environment 106. Figure 3 As will be described in more detail in , positioning engine 126 can determine a segmentation that segments environment 106 into a plurality of different segmented regions, where each segmented region represents a corresponding object or background region. After determining the segmentation of environment 106, positioning engine 126 uses, for example, prior knowledge about an expected shape and an expected position of an object of interest to identify one of the segmented regions to be the object of interest. For example, the expected shape of the object of interest can be approximately rectangular, and the expected position of the object of interest can be approximately at the "center" of the environment (e.g., in a reference frame of the environment). In this example, positioning engine 126 can identify the segmented region that most closely conforms to the expected shape of the object of interest, the expected position of the object of interest, or both as the object of interest.

[0036] After identifying the segmented region of the environment 106 as an object of interest, the positioning engine may use the segmented region to determine an estimated position 128 of the object of interest (see Figure 312). The estimated position 128 of the object of interest determined by the positioning engine 126 may be represented in any suitable digital format and may be represented with reference to any predetermined reference frame of the environment. For example, the estimated position 128 of the object of interest may be defined by coordinates such as the center of the object of interest, coordinates defining the major and minor axes of the object of interest, or both.

[0037] After determining the estimated position 128 of the object of interest based on the reconstruction 124 of the environment, the system 100 can use the estimated position 128 of the object of interest to generate a new template representation 120. More specifically, the system 100 can generate the new template representation 120 by determining various regions of the image 108 of the environment that describe the object of interest based on the estimated position 128. The system 100 can crop these respective regions that describe the object of interest in the image 108 of the environment and determine the new template representation 120 based on the cropped image regions. For example, the system 100 can determine that the new template representation 120 is the cropped image region. As another example, the system 100 can determine that the new template representation 120 is a feature representation derived from the cropped image region.

[0038] Optionally, before generating a new template representation 120, the agent 104 can attempt to physically interact with the environment 106 based on an estimated position 128 of the object of interest determined by the positioning engine 126 based on the reconstruction 124 of the environment 106. For example, the agent 104 can attempt to manipulate the object of interest (e.g., by picking it up) using a robotic actuator (e.g., a mechanical grasping device) based on the estimated position 128 of the object of interest. The system 100 can evaluate the success of the attempted interaction (e.g., by determining whether the agent successfully picked up the object of interest), and if the interaction is determined to be unsuccessful, the use of the estimated position 128 to generate a new template representation 120 can be disabled. In this way, when the system 100 cannot accurately estimate the position of the object of interest based on the reconstruction 124 of the environment 106, the system 100 can avoid augmenting the template representation library 102 with erroneous new template representations.

[0039] By repeatedly populating the template representation library 102 with new template representations 120, the system 100 can incrementally construct a comprehensive template representation library 102. In some cases, the template representation library 102 can initially be empty, in which case each template representation ultimately included in the template representation library 102 is at one time a new template representation 120 generated by the system 100. In other cases, the template representation library 102 can be initialized with a set of multiple default template representations (e.g., manually acquired images).

[0040] Figure 22 is a flow chart of an example process for augmenting a template representation library with new template representations. For convenience, process 200 will be described as being performed by a system of one or more computers located in one or more locations. For example, a template learning system (e.g., Figure 1 The template learning system 100) can perform processing 200.

[0041] The system obtains one or more images depicting a physical environment (202). The environment may be, for example, a warehouse environment or a manufacturing environment. The physical environment includes physical objects of interest (e.g., computer hardware components, machine parts, or manufacturing tools). The images may be represented in any suitable format, for example, as grayscale images or color images (e.g., red-green-blue (RGB) images). The system may sequentially capture images of the environment by repeatedly changing the view of a camera capturing the images. For example, the system may sequentially capture images of the environment by moving the camera capturing the images in a predetermined sequence of different views (e.g., in a spiral shape).

[0042] For each image of the environment, the system uses a template matching technique to determine whether the position of the object of interest in the image can be inferred (i.e., whether the template matching condition is satisfied) based on the template representation library (204). For a given image of the environment, if any template representation in the template representation library matches any region of the image of the environment, the system can infer the position of the object of interest in the image based on the template representation library. More specifically, if a similarity measure between any template representation and any region of the environment image exceeds a given threshold, the system can determine the position of the object of interest in the environment image based on the template representation library.

[0043] The system may use any appropriate template matching technique, such as an interest point template matching technique, a cross-correlation template matching technique, an absolute difference and template matching technique, or a combination thereof. In a specific example, the template representation may be an image, and the system may apply an interest point template matching technique. In this example, the system processes the template representation and the image of the environment to determine corresponding interest points in each image. An interest point refers to the coordinates that define the location of a corner, a spot, or any other unique image feature. If an affine transformation is applied to the interest points of the template representation so that they align (approximately or exactly) with at least a threshold number of interest points of the image in the given area, the system may determine that the template representation matches a given area of ​​the image of the environment.

[0044] If the system can infer the location of the object of interest from the image of the environment using a template matching technique based on the template representation library, the system maintains a current template representation library (206). The system can provide the location of the object of interest to the agent, which can then manipulate the object of interest (e.g., by picking it up) using a robotic actuator (e.g., a mechanical gripper). The system can represent the location of the object of interest by, for example, the coordinates of the center of the object of interest, the coordinates defining the major and minor axes of the object of interest, or both. Optionally, instead of maintaining the current template representation library in response to determining that the location of the object of interest can be inferred from the image of the environment based on the template representation library, the system augments the template representation library with a new template representation determined from the obtained image of the environment. In this way, the system can enhance the robustness of the template representation library even when the template representation library is sufficient to infer the location of the object of interest.

[0045] If the system cannot determine a location guess of the object of interest from the image of the environment using a template matching technique based on the template representation library, the system generates a reconstruction of the environment that characterizes the geometry of the environment (208). For example, the reconstruction of the environment can characterize the 3D structure of the environment by defining a plurality of 3D coordinates (e.g., coordinates of components) of various locations on a surface of the environment. The system can generate the reconstruction of the environment using any suitable reconstruction technique. In a specific example, the system can use a stereo reconstruction technique to generate a reconstruction of the environment. The stereo reconstruction technique can process a pair of images of the environment captured from different viewpoints and "triangulate" the respective coordinates of various locations on a surface of the environment.

[0046] The system uses the reconstruction of the environment to determine an estimated position of the object of interest (210). Figure 3 As described in more detail in , the system can determine the location of the object of interest by determining a segmentation that segments the environment into a plurality of different segmented regions. The system can use prior knowledge about the expected shape and expected location of the object of interest in the environment to identify one of the segmented regions as the object of interest. After identifying the segmented region as the object of interest, the system can determine an estimated location of the object of interest from the segmented region.

[0047] Optionally, the agent can attempt to physically interact with the environment based on the estimated position of the object of interest (e.g., as determined in 210) (212). For example, the agent can attempt to manipulate the object of interest (e.g., by picking it up) using a robotic actuator (e.g., a mechanical gripper) based on the estimated position of the object of interest.

[0048] The system can evaluate the success of the attempted interaction by determining whether an interaction success condition is satisfied (214). For example, if the agent successfully picks up the object of interest (e.g., using a mechanical grasping device), the system can determine that the interaction success condition is satisfied. In response to determining that the interaction success condition is satisfied, the system infers the estimated position of the object (e.g., as determined in 210) to accurately locate the object, and thereafter uses the estimated position of the object of interest to generate a new template representation representing the object of interest (216).

[0049] In order to generate a new template representation representing the object of interest using the estimated position of the object of interest, the system can determine an area of ​​the environment image that describes the object of interest based on the estimated position of the object of interest. After determining the area of ​​the environment image that describes the object of interest using the estimated position of the object of interest, the system can generate a new template representation by cropping the determined area from the environment image. Thereafter, the system can generate a new template representation from the cropped image area. For example, the system can generate the new template representation by determining the new template representation as the cropped image area. As another example, the system can generate a new template representation by a feature representation derived from the cropped image area (e.g., including data defining points of interest and line segments in the cropped image area). After generating the new template representation, the system can expand the template representation library (218) with the new template representation.

[0050] In response to determining that the interaction success condition is not met (e.g., because the agent failed to pick up the object of interest), the system determines that the estimated position of the object of interest (e.g., as determined in 210) may not be accurate. The system can return to step 202 and repeat the previous steps to obtain a different (and ideally, more accurate) estimate of the position of the object of interest.

[0051] Figure 3 is a flow chart of an example process for determining an estimated position of an object of interest based on a reconstruction of an environment. For convenience, process 300 will be described as being performed by a system of one or more computers located in one or more locations. For example, a template learning system appropriately programmed according to the present specification, such as Figure 1 The template learning system 100 can perform processing 300.

[0052] The system uses a reconstruction of the environment (e.g., as determined in 208) to determine a segmentation that segments the environment into a plurality of distinct regions (302). Each segmented region can represent a respective object or background region of the environment. For example, if the environment is a manufacturing environment that includes an assembly line conveyor belt, the segmented regions can correspond to portions of the conveyor belt and various objects located on the conveyor belt. The system can determine the segmentation of the environment using any suitable segmentation technique. For example, the system can apply a watershed transform to an image that represents the reconstruction of the environment. Applying the watershed transform to the image produces a segmentation that segments the image into distinct regions separated by edges (i.e., regions of high image intensity gradient magnitude).

[0053] The system identifies a segmented region of the environment as an object of interest (304). To identify the segmented region as the object of interest, the system can rely on prior knowledge about the expected shape and expected position of the object of interest in the environment. For example, the expected shape of the object of interest can be approximately rectangular, and the expected position of the object of interest can be approximately at the "center" of the environment (e.g., based on some reference frame of the environment). In this example, the system can identify the segmented region that most closely confirms the expected shape of the object of interest, the expected position of the object of interest, or both as the object of interest.

[0054] The system determines an estimated position of the object of interest based on the segmented region of the environment identified as the object of interest (306). For example, if the estimated position of the object of interest is defined by coordinates of a center of the object of interest, the system can determine the estimated position of the object of interest by calculating the centroid of the segmented region identified as the object of interest. As another example, if the estimated position of the object of interest is additionally defined by coordinates defining a major axis and a minor axis of the object of interest, the system can determine the estimated position of the object of interest by calculating the major axis and the minor axis of the segmented region identified as the object of interest.

[0055] This specification uses the term "configuration" in conjunction with system and computer program components. For a system of one or more computers to be configured to perform a specific operation or action, it means that the system has installed thereon software, firmware, hardware, or a combination thereof that, in operation, causes the system to perform the operation or action. For one or more computer programs to be configured to perform a specific operation or action, it means that the one or more programs include instructions that, when executed by a data processing device, cause the device to perform the operation or action.

[0056] Embodiments of the subject matter and functional operations described in this specification may be implemented in digital electronic circuitry, in tangibly implemented computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents, or in a combination of one or more of them. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory storage medium, for execution by a data processing device or for controlling the operation of a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information for transmission to an appropriate receiver device for execution by the data processing device.

[0057] The term "data processing apparatus" refers to data processing hardware, and includes all types of apparatus, devices and machines for processing data, including, for example, a programmable processor, a computer, or multiple processors or computers. The apparatus may also be or further include special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). In addition to hardware, the apparatus may optionally include code that creates an execution environment for a computer program, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.

[0058] A computer program, which may also be referred to or described as a program, software, software application, app, module, software module, script or code, may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data, such as one or more scripts stored in a markup language document, in a single file dedicated to the program, or in multiple coordinated files, such as files that store one or more modules, subroutines or code portions. A computer program may be deployed to be executed on one computer or on multiple computers located at one site or distributed over multiple sites and interconnected by a data communications network.

[0059] In this specification, the term "engine" is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine; in other cases, multiple engines can be installed and run on the same or multiple computers.

[0060] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by a special purpose logic circuit (e.g., an FPGA or ASIC) or by a combination of a special purpose logic circuit and one or more programmed computers.

[0061] A computer suitable for executing a computer program may be based on a general or special purpose microprocessor or both, or any other type of central processing unit. Typically, a central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a central processing unit for executing or executing instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory may be supplemented by or incorporated in a dedicated logic circuit. Typically, a computer will also include or be operably coupled to receive data from or transmit data to one or more mass storage devices, the mass storage devices being used to store data, such as magnetic disks, magneto-optical disks, or optical disks. However, a computer need not have such a device. In addition, a computer may be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, such as a universal serial bus (USB) flash drive, to name just a few examples.

[0062] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; CD-ROM and DVD-ROM disks.

[0063] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device for displaying information to the user, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, as well as a keyboard and a pointing device, such as a mouse or trackball, through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound, voice, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on a user's device in response to a request received from the web browser. In addition, the computer may interact with the user by sending text messages or other forms of messages to a personal device (e.g., a smart phone) running a messaging application and receiving a response message from the user.

[0064] A data processing device for implementing a machine learning model may also include, for example, dedicated hardware accelerator units for processing the common and computationally intensive parts of machine learning training or production, i.e., inference, workloads.

[0065] Machine learning models can be implemented and deployed using machine learning frameworks, such as the TensorFlow framework. Microsoft Cognitive Toolkit framework, Apache Singa framework, or Apache MXNet framework.

[0066] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component, such as a data server, or includes a middleware component, such as an application server, or includes a front-end component, such as a client computer with a graphical user interface, a web browser, or an application program, through which a user can interact with an implementation of the subject matter described in this specification. Or any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.

[0067] A computing system may include a client and a server. The client and the server are usually remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on each computer and having a client-server relationship with each other. In some embodiments, the server transmits data (e.g., an HTML page) to a user device, for example, for displaying data to a user and receiving user input from a user, and the user interacts with the device acting as a client. Data generated at the user device (e.g., the result of the user interaction) can be received from the device at the server.

[0068] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope of what is claimed, but rather as descriptions of features that may be specific to a particular embodiment of a particular invention. Certain features described in this specification in the context of a separate embodiment may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations, and even initially claimed as such, in some cases one or more features of the claimed combination may be cut out of the combination, and the claimed combination may be directed to a sub-combination or a variation of the sub-combination.

[0069] Similarly, although operations are described in the drawings and recited in the claims in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order, or that all of the operations shown be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated into a single software product or packaged into multiple software products.

[0070] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes shown in the accompanying drawings do not necessarily require the particular order or sequence shown to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.

Claims

1. A method implemented by a data processing device, characterized in that The method comprises: acquiring a first image depicting a physical environment, wherein the environment includes a given physical object; Determining whether a position of a given object in the environment can be inferred based on a template representation library by applying a template matching technique to the first image; In response to determining that the position of the given object in the environment cannot be inferred using a template matching technique based on the template representation library: generating a three-dimensional reconstruction of the environment representing the geometry of the environment; determining an estimated position of a given said object using said three-dimensional reconstruction of said environment; generating a new template representation of a given said object using the estimated position of the given said object determined from the three-dimensional reconstruction of the environment; causing an agent to physically interact with the environment based on the estimated position of a given object determined from the three-dimensional reconstruction of the environment; and Based on a result of the physical interaction of the agent with the environment, a determination is made whether to augment the library of template representations with the new template representation.

2. The method according to claim 1, characterized in that Determining whether a given position of the object in the environment can be inferred based on a library of template representations by applying a template matching technique to the first image comprises, for each template representation of a plurality of template representations from the library of template representations: determining whether a similarity measure between the template representation and a region of the first image exceeds a threshold, The template representation library includes a plurality of template representations of respective objects.

3. The method according to claim 1, characterized in that Generating a three-dimensional reconstruction of the environment representing the geometry of the environment comprises: acquiring a plurality of images of the environment; and The three-dimensional reconstruction of the environment characterizing the geometry of the environment is generated from the plurality of images of the environment.

4. The method according to claim 3, characterized in that Acquiring the plurality of images of the environment includes sequentially capturing the images of the environment by repeatedly changing an orientation of the camera capturing images.

5. The method according to claim 4, characterized in that Repeatedly changing the orientation of the camera capturing the image comprises: The camera capturing the images is moved in a predetermined sequence of different orientations.

6. The method according to claim 5, characterized in that The predetermined sequence of different orientations defines a spiral shape.

7. The method according to claim 3, characterized in that Generating the three-dimensional reconstruction of the environment from the plurality of images of the environment comprises: A stereo reconstruction technique is applied to the plurality of images of the environment.

8. The method according to claim 3, characterized in that The three-dimensional reconstruction of the environment includes a plurality of coordinates defining a three-dimensional geometry of the environment.

9. The method according to claim 1, characterized in that: Using the three-dimensional reconstruction of the environment to determine the estimated position of a given object comprises: Based on the three-dimensional reconstruction of the environment, determining a segmentation of the environment into a plurality of segmented regions; identifying a segmented region as a given object; and Based on the segmented region identified as a given the object, the estimated position of a given the object is determined.

10. The method according to claim 9, characterized in that Based on the three-dimensional reconstruction of the environment, determining to segment the environment into a plurality of segmented regions comprises: A watershed transform of the three-dimensional reconstruction of the environment is determined.

11. The method according to claim 1, characterized in that Generating the new template representation of a given said object using the estimated position of the given said object determined from the three-dimensional reconstruction of the environment comprises: determining a region of an image predicted to depict a given said object based on the estimated position of the given said object; and A crop is predicted to depict a region of the image given the object.

12. The method according to claim 1, characterized in that Based on the estimated position of a given object determined from the three-dimensional reconstruction of the environment, causing the agent to physically interact with the environment includes: based on the estimated position of a given object determined from the three-dimensional reconstruction of the environment, causing the agent to attempt to manipulate the given object using a robotic actuator.

13. The method according to claim 12, characterized in that The robotic actuator includes a mechanical gripping device.

14. The method according to claim 12, characterized in that Causing the agent to attempt to manipulate a given object using the robotic actuator comprises: Causes the agent to attempt to pick up the given object.

15. The method according to claim 1, characterized in that Based on a result of the physical interaction of the agent with the environment, determining whether to enhance the template representation library with the new template representation comprises: A determination is made as to whether the physical interaction of the agent with the environment satisfies an interaction success condition.

16. The method according to claim 15, characterized in that Also includes: In response to determining that the physical interaction of the agent with the environment satisfies the interaction success condition, the template representation library is enhanced with the new template representation.

17. The method according to claim 15, characterized in that Also included is, in response to determining that the physical interaction of the agent with the environment does not satisfy the interaction success condition: determining that the estimated position of the given object is inaccurate; as well as Augmenting said template representation library with said new template representation is prohibited.

18. The method according to claim 1, characterized in that Each template represents an image including a respective object.

19. A system, characterized in that: include: one or more computers; as well as One or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising: acquiring a first image depicting a physical environment, wherein the environment includes a given physical object; Determining whether a position of a given object in the environment can be inferred based on a template representation library by applying a template matching technique to the first image; In response to determining that the position of the given object in the environment cannot be inferred using a template matching technique based on the template representation library: generating a three-dimensional reconstruction of the environment representing the geometry of the environment; determining an estimated position of a given said object using said three-dimensional reconstruction of said environment; generating a new template representation of a given said object using the estimated position of the given said object determined from the three-dimensional reconstruction of the environment; causing an agent to physically interact with the environment based on the estimated position of a given object determined from the three-dimensional reconstruction of the environment; and Based on a result of the physical interaction of the agent with the environment, a determination is made whether to augment the library of template representations with the new template representation.

20. One or more non-transitory computer storage media storing instructions, characterized in that: When executed by one or more computers, the instructions cause the one or more computers to perform operations including: acquiring a first image depicting a physical environment, wherein the environment includes a given physical object; Determining whether a position of a given object in the environment can be inferred based on a template representation library by applying a template matching technique to the first image; In response to determining that the position of the given object in the environment cannot be inferred using a template matching technique based on the template representation library: generating a three-dimensional reconstruction of the environment representing the geometry of the environment; determining an estimated position of a given said object using said three-dimensional reconstruction of said environment; generating a new template representation of a given said object using the estimated position of the given said object determined from the three-dimensional reconstruction of the environment; causing an agent to physically interact with the environment based on the estimated position of a given object determined from the three-dimensional reconstruction of the environment; and Based on a result of the physical interaction of the agent with the environment, a determination is made whether to augment the library of template representations with the new template representation.

Citation Information

Patent Citations

  • Method and system for processing photos

    CN102917126A

  • Generating augmented reality content for unknown objects

    CN105637564A

  • Robotic visual perception system

    US9002098B1

  • Detection and reconstruction of an environment to facilitate robotic interaction with the environment

    US9102055B1