Physical Object Tracking
The wearable device addresses storage and computation inefficiencies by encoding objects into vectors, using CLIP, to efficiently locate and respond to queries about object locations and states, optimizing database management and query responses.
Patent Information
- Application Number
- US19/661779
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-20
- Filing Date
- 2026-04-29
- Publication Date
- 2026-11-26
AI Technical Summary
Existing wearable devices face challenges with large databases of images requiring extensive storage and computation due to frequent image capturing, leading to inefficiencies in object location determination.
Implementing a wearable device with an image sensor that captures images, detects objects, and encodes them into object vectors, using Contrastive Language-Image Pre-training (CLIP) to reduce database size by storing object vectors with timestamps and locations, and generating responses based on query vectors in a multi-dimensional latent space.
Optimizes storage and processing by reducing the database size while accurately and efficiently locating objects using object vectors, enabling precise responses to user queries about object locations and states.
Smart Images

Figure US20260378188A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. Provisional Patent App. No. 63 / 809,136, filed on May 20, 2025, which is hereby incorporated by reference in its entirety.TECHNICAL FIELD
[0002] The present disclosure generally relates to systems, methods, and devices of determining the location of a physical object.BACKGROUND
[0003] In various implementations, a wearable device includes an image sensor. By periodically taking images of the physical environment in which the wearable device is present, a large database of images can be created and queries can be presented to the database.BRIEF DESCRIPTION OF THE DRAWINGS
[0004] So that the present disclosure can be understood by those of ordinary skill in the art, a more detailed description may be had by reference to aspects of some illustrative implementations, some of which are shown in the accompanying drawings.
[0005] FIG. 1 is a block diagram of an example operating environment in accordance with some implementations.
[0006] FIGS. 2A–2G illustrate images captured at various times in accordance with some implementations.
[0007] FIG. 3 is a flowchart representation of a method of locating an object in accordance with some implementations.
[0008] FIG. 4 is a block diagram of an example controller in accordance with some implementations.
[0009] FIG. 5 is a block diagram of an example electronic device in accordance with some implementations.
[0010] In accordance with common practice the various features illustrated in the drawings may not be drawn to scale. Accordingly, the dimensions of the various features may be arbitrarily expanded or reduced for clarity. In addition, some of the drawings may not depict all of the components of a given system, method or device. Finally, like reference numerals may be used to denote like features throughout the specification and figures.SUMMARY
[0011] Various implementations disclosed herein include devices, systems, and methods for locating an object. In various implementations, the method is performed by a device having an image sensor, non-transitory memory, and one or more processors. The method includes capturing, using the image sensor, a plurality of images of an environment. The method includes generating, based on the plurality of images, a plurality of image vectors in a multi-dimensional latent space. The method includes storing, in the non-transitory memory, the plurality of image vectors. The method includes receiving a query. The method includes generating, based on the query, a query vector in the multi-dimensional latent space. The method includes generating a response to the query based on comparing the query vector to the plurality of image vectors.
[0012] In accordance with some implementations, a device includes one or more processors, a non-transitory memory, and one or more programs; the one or more programs are stored in the non-transitory memory and configured to be executed by the one or more processors and the one or more programs include instructions for performing or causing performance of any of the methods described herein. In accordance with some implementations, a non-transitory computer readable storage medium has stored therein instructions, which, when executed by one or more processors of a device, cause the device to perform or cause performance of any of the methods described herein. In accordance with some implementations, a device includes: one or more processors, a non-transitory memory, and means for performing or causing performance of any of the methods described herein.DESCRIPTION
[0013] Numerous details are described in order to provide a thorough understanding of the example implementations shown in the drawings. However, the drawings merely show some example aspects of the present disclosure and are therefore not to be considered limiting. Those of ordinary skill in the art will appreciate that other effective aspects and / or variants do not include all of the specific details described herein. Moreover, well-known systems, methods, components, devices and circuits have not been described in exhaustive detail so as not to obscure more pertinent aspects of the example implementations described herein.
[0014] As noted above, in various implementations, a wearable device includes an image sensor. By periodically capturing images using the image sensor, a database of images can be generated reflecting the user’s activities and environment over time. For example, the database can be queried to determine the location of an object, such as the user’s wallet. As another example, the database can be queried to determine when the user last performed an activity, such as brushing their teeth. As another example, the database can be queried to determine the state of various objects, such as the temperature setting of a thermostat. However, a database of images quickly becomes large, requiring extensive storage space and intensive computation to search.
[0015] In various implementations, the size of the database can be reduced by only capturing images for the database according to a heuristic, such as when the wearable device is moved and the field-of-view changes or when motion is otherwise detected in the physical environment. In various implementations, the size of the database can be capped, by deleting old images as new images are added.
[0016] In various implementations, to further optimize the use of storage space and processing resources to search the database, the images are not themselves stored in the database. Rather, in various implementations, objects are detected in the images and the portions of the images representing the objects are respectively encoded into object vectors.
[0017] Contrastive Language-Image Pre-training (CLIP) is an algorithm in which two neural networks are trained contrastively. A text neural network is trained to take, as an input, a piece of text and output a vector representing its semantic content. An image neural network is trained to take, as an input, an image and output a vector representing its visual content. The two neural networks are jointly trained so that the vectors of semantically similar text-image pairs are close together in the shared vector space. For example, the string of text “a photo of a horse” would result in a vector (from the text neural network) that is close to the resulting vector (from the image neural network) for an image of a horse, but that is far from resulting vector (from the image neural network) for an image of a sunset.
[0018] In various implementations, a wearable device captures an image of the physical environment and detects one or more objects in the image. For each object, the portion of the image corresponding to the object is fed into an image neural network to generate an object vector. The object vector is stored in association with a timestamp indicating when the image was captured. Thus, each entry in the database includes the object vector and a timestamp. In various implementations, each entry in the database further includes a location. The location may be a geographic location (e.g., GPS coordinates), a room identifier of a room in an enrolled floorplan, or a location in the image.
[0019] When a user submits a verbal query to the wearable device concerning an object, at least part of the text of the query is fed into a corresponding text neural network to generate a text vector. For example, if a user asks “have you seen a purple water bottle?”, the text “purple water bottle” is fed into the text neural network to generate a text vector. The text vector will be closest to object vectors in the database which correspond images of a purple water bottle. Thus, the wearable device can select the most recent database entry having an object vector sufficiently matching the text vector and generate a response to the query based on the timestamp and / or location. For example, the wearable device may return a response of “I last saw a purple water bottle at 10:30am in the primary bedroom.”
[0020] FIG. 1 is a block diagram of an example operating environment 100 in accordance with some implementations. While pertinent features are shown, those of ordinary skill in the art will appreciate from the present disclosure that various other features have not been illustrated for the sake of brevity and so as not to obscure more pertinent aspects of the example implementations disclosed herein. To that end, as a non-limiting example, the operating environment 100 includes a controller 110 and an electronic device 120.
[0021] In some implementations, the controller 110 is configured to manage and coordinate an XR experience for the user. In some implementations, the controller 110 includes a suitable combination of software, firmware, and / or hardware. The controller 110 is described in greater detail below with respect to FIG. 4. In some implementations, the controller 110 is a computing device that is local or remote relative to the physical environment 105. For example, the controller 110 is a local server located within the physical environment 105. In another example, the controller 110 is a remote server located outside of the physical environment 105 (e.g., a cloud server, central server, etc.). In some implementations, the controller 110 is communicatively coupled with the electronic device 120 via one or more wired or wireless communication channels 144 (e.g., BLUETOOTH, IEEE 802.11x, IEEE 802.16x, IEEE 802.3x, etc.). In another example, the controller 110 is included within the enclosure of the electronic device 120. In some implementations, the functionalities of the controller 110 are provided by and / or combined with the electronic device 120.
[0022] In some implementations, the electronic device 120 is configured to provide the XR experience to the user. In some implementations, the electronic device 120 includes a suitable combination of software, firmware, and / or hardware. According to some implementations, the electronic device 120 presents, via a display 122, XR content to the user while the user is virtually or physically present within the physical environment 105 that includes a table 107 within the field-of-view 111 of the electronic device 120. As such, in some implementations, the user holds the electronic device 120 in his / her hand(s). In some implementations, while providing XR content, the electronic device 120 is configured to display an XR object (e.g., an XR cylinder 109) and to enable video pass-through of the physical environment 105 (e.g., including a representation 117 of the table 107) on a display 122. The electronic device 120 is described in greater detail below with respect to FIG. 5.
[0023] In some implementations, the user wears the electronic device 120 on his / her head. For example, in some implementations, the electronic device includes a head-mounted system (HMS), head-mounted device (HMD), or head-mounted enclosure (HME). As such, the electronic device 120 includes one or more XR displays provided to display the XR content. For example, in various implementations, the electronic device 120 encloses the field-of-view of the user. In some implementations, the electronic device 120 is a handheld device (such as a smartphone or tablet) configured to present XR content, and rather than wearing the electronic device 120, the user holds the device with a display directed towards the field-of-view of the user and a camera directed towards the physical environment 105. In some implementations, the handheld device can be placed within an enclosure that can be worn on the head of the user. In some implementations, the electronic device 120 is replaced with an XR chamber, enclosure, or room configured to present XR content in which the user does not wear or hold the electronic device 120.
[0024] FIG. 2A illustrates a first image 201 captured by an image sensor of an electronic device at a first time. In response to capturing the first image 201, the electronic device detects a stove 211, a pot 212, a cup 213a, and keys 214 in the first image 201. Further, the electronic device feeds the portion of the first image 201 representing the stove 211 into an object neural network to generate a first stove object vector. Similarly, the electronic device generates a first pot object vector, a first cup object vector, and a first keys object vector. The electronic device generates a database entry for each detected object. In various implementations, each database entry includes a unique database entry identifier, the respective object vector, and a timestamp indicating a time at which the first image 201 was captured. In various implementations, each database entry further includes a location at which the first image 201 was captured. In various implementations, a database entry may indicate a spatial relationship between detected objects. For example, the database entry for the cup 213a may indicate that it is next to the stove 211 by referencing the database entry for the stove 211.
[0025] FIG. 2B illustrates a second image 202 captured by the image sensor of the electronic device at a second time subsequent to the first time. In response to capturing the second image 202, the electronic device detects the cup 213a, a picture 225, a door 215, a sofa 216, a purse 217, and a table 218 in the second image 202. Further, the electronic device feeds portions of the second image 202 into the object neural network to generate a second cup object vector, a first picture object vector, a first door object vector, a first sofa object vector, a first purse object vector, and a first table object vector. The electronic device generates a database entry for each detected object. In various implementations, each database entry includes a unique database entry identifier, the respective object vector, and a timestamp indicating a time at which the second image 202 was captured. In various implementations, each database entry further includes a location at which the second image 202 was captured. In various implementations, a database entry may indicate a spatial relationship between detected objects. For example, the database entry for the cup 213a may indicate that it is on top of the table 218 by referencing the database entry for the table 218.
[0026] FIG. 2C illustrates a third image 203 captured by the image sensor of the electronic device at a third time subsequent to the second time. In response to capturing the third image 203, the electronic device detects a mug 213b, the purse 217, a lamp 219, a laptop 220, and a desk 221 in the third image 203. Further, the electronic device feeds portions of the third image 203 into the object neural network to generate a first mug object vector, a second purse object vector, a first lamp object vector, a first laptop object vector, and a first desk object vector. The electronic device generates a database entry for each detected object. In various implementations, each database entry includes a unique database entry identifier, the respective object vector, and a timestamp indicating a time at which the third image 203 was captured. In various implementations, each database entry further includes a location at which the third image 203 was captured. In various implementations, a database entry may indicate a spatial relationship between detected objects. For example, the database entry for the purse 217 may indicate that it is under the desk 221 by referencing the database entry for the desk 221.
[0027] FIG. 2D illustrates a fourth image 204 captured by the image sensor of the electronic device at a fourth time subsequent to the third time. In response to capturing the fourth image 204, the electronic device detects the keys 214, the purse 217, a dresser 222, a bed 223, and a window 224 in the fourth image 204. Further, the electronic device feeds portions of the fourth image 204 into the object neural network to generate a third purse object vector, a second keys object vector, a first dresser object vector, a first bed object vector, and a first window object vector. The electronic device generates a database entry for each detected object. In various implementations, each database entry includes a unique database entry identifier, the respective object vector, and a timestamp indicating a time at which the fourth image 204 was captured. In various implementations, each database entry further includes a location at which the fourth image 204 was captured. In various implementations, a database entry may indicate a spatial relationship between detected objects. For example, the database entry for the purse 217 may indicate that it is on top of the dresser 222 by referencing the database entry for the dresser 222.
[0028] FIG. 2E illustrates a fifth image 205 captured by the image sensor of the electronic device at a fifth time subsequent to the fourth time. At the fifth time, a user has submitted a query to the electronic device of “Have you seen a white mug with a gray star?” as illustrated by the query box 291. In various implementations, the query is a vocal query. In various implementations, the query is a typed query. In response to the query, the electronic device feeds a portion of the query into a text neural network to generate a query vector. For example, in various implementations, the electronic device feeds “a white mug with a gray star” into the text neural network. Further, the electronic device compares the query vector with the object vectors in the various database entries. Notably, the query vector is highly similar to the first cup object vector and the second cup object vector. The query vector is somewhat similar to the first mug object vector. The query vector is dissimilar to the other object vectors.
[0029] In various implementations, the electronic device prioritizes accuracy and returns a response based on the second cup object vector. In various implementations, the electronic device prioritizes recency and returns a response based on the third cup object vector. However, in various implementations, when ambiguity exists, the electronic device provides multiple responses.
[0030] FIG. 2F illustrates a sixth image 206 captured by the image sensor of the electronic device at a sixth time subsequent to the fifth time. At the sixth time, the electronic device generates a response to the query of “I last saw a white mug with a gray star in the living room on the table at 8:30am. I saw a white mug in the office on the desk at 11:30am.” as indicated by the response box 292. In various implementations, the response is a vocal response generated by the electronic device. In various implementations, the response is displayed by the electronic device. The first sentence of the response is generated based on the database entry including the second cup object vector which is the most recent database entry with highest (or near-highest) similarity to the query vector. The second sentence of the response is generated based on the database entry including the first mug object vector which is the most recent database entry with at least a threshold similarity to the query vector.
[0031] FIG. 2G illustrates a seventh image 207 captured by the image sensor of the electronic device at a seventh time subsequent to the sixth time. In response to capturing the seventh image 207, the electronic device detects the cup 213a, the picture 225, the door 215, the sofa 216, and the table 218. Further, the electronic device feeds portions of the seventh image 207 into the object neural network to generate a third cup object vector, a second picture object vector, a second door object vector, a second sofa object vector, and a second table object vector. The electronic device generates a database entry for each detected object. In various implementations, each database entry includes a unique database entry identifier, the respective object vector, and a timestamp indicating a time at which the seventh image 207 was captured. In various implementations, each database entry further includes a location at which the seventh image 207 was captured. In various implementations, a database entry may indicate a spatial relationship between detected objects. For example, the database entry for the cup 213a may indicate that it is on top of the table 218 by referencing the database entry for the table 218.
[0032] At the seventh time, a user has submitted a request to the electronic device of “Save this cup as ‘my star mug’” as illustrated by the request box 293. In response to the request, the electronic device saves the third cup object vector in association with the text “my star mug.” In future queries for “my star mug”, rather than submitting the text “my star mug” to the text neural network to generate a query vector, the third cup object vector is used as the query vector.
[0033] FIG. 3 is a flowchart representation of a method 300 of locating an object in accordance with some implementations. In various implementations, the method 300 is performed by an electronic device, such as the electronic device 120 of FIG. 1. In various implementations, the method 300 is performed by a device having an image sensor, one or more processors, and non-transitory memory. In some implementations, the method 300 is performed by processing logic, including hardware, firmware, software, or a combination thereof. In some implementations, the method 300 is performed by a processor executing instructions (e.g., code) stored in a non-transitory computer-readable medium (e.g., a memory).
[0034] The method 300 begins, in block 310, with the device capturing, using the image sensor, a plurality of images of a physical environment. In various implementations, the device is a wearable device. In various implementations, the field-of-view of the image sensor when the device is worn is approximately equal to the field-of-view of a user when the device is not worn. In various implementations, the field-of-view of the image sensor when the device is worn is substantially greater than the field-of-view of a user when the device is not worn (or even while the device is worn). Thus, in various implementations, the device tracks object outside of the field-of-view of the user.
[0035] The method 300 continues, in block 320, with the device generating, based on the plurality of images, a plurality of image vectors in a multi-dimensional latent space. In various implementations, generating the plurality of image vectors includes feeding at least a portion of a particular image of the plurality of images to an image neural network that has been jointly trained with a text neural network. In particular, the image neural network has been jointly trained with the text neural network such that vectors corresponding to semantically similar text-image pairs are close together in the multi-dimensional latent space. In various implementations, the latent space has hundreds or thousands of dimensions. For example, in various implementations, the latent space has at least 512 or at least 1024 dimensions.
[0036] In various implementations, the image neural network is a vision transformer or a convolutional neural network. In various implementations, the text neural network is a transformer, which typically includes multiple layers, each including an attention block and a feed-forward block.
[0037] In various implementations, such as described above with respect to FIGS. 2A–2G, objects are detected within captured images and image vectors are generated based on portions of the captured images corresponding to detected objects. Thus, in various implementations, generating the plurality of image vectors includes detecting, in a particular image of the plurality of images, an object and determining a portion of the particular image corresponding to the object. Further, generating a particular image vector of the plurality of image vectors is based on the portion of the particular image corresponding to the object. For example, in FIG. 2B, the image vector generated for the purse 217 may be close to a corresponding vector generated by the text neural network for “a black handbag having a generally square shape with semi-circular handles and a rounded bottom.”
[0038] In various implementations, generating an image vector for a particular object is only performed for particular objects or particular types of object. For example, in various implementations, image vectors are generated only for particular objects that have been pre-enrolled by a user through an enrollment process. For example, in various implementations, a user pre-enrolls a jacket with a logo of a particular sports team, a water bottle having a particular color scheme, and a wallet having a particular size and shape. As another example, in various implementations, image vectors are generated only for particular object types that have been selected by a user. For example, in various implementations, a user selects object types of “wallets”, “keys”, and “tote bags”. Then, not only would the device generate an image vector for a backpack of the user, but would also generate an image vector of a purse set down by a visiting friend. Thus, in various implementations, generating the particular image vector is based on an object identity of the object. Similarly, in various implementations, generating the particular image vector is based on an object type of the object.
[0039] In various implementations, the captured images are fed directly into the image neural network to generate the image vectors. For example, in FIG. 2B, the image vector generated for the third image 203 may be close to a corresponding vector generated by the text neural network for “an office having a desk along a back wall and a floor lamp next to the desk, further including a laptop and a white mug on the desk and a black purse below the desk.” Depending on the size of the multi-dimensional latent space, enough detail might be captured using the entire image to allow for efficient querying.
[0040] The method 300 continues, in block 330, with the device storing, in the non-transitory memory, the plurality of image vectors. In various implementations, the device stores a database including an entry for each of the plurality of image vectors. The database entries include a field for the image vector. In various implementations, each of the database entries further include a field with a unique identifier. In various implementations, each of the database entries further include a field with a time at which the corresponding image (from which the image vector was derived) was captured. In various implementations, each of the database entries further include a field with a location at which the corresponding image was captured. In various implementations, the location may be defined by geospatial coordinates (e.g., GPS coordinate). In responding to a query (as described below), the device may cross-reference the geospatial coordinates with map data to provide a name of the location, such as an address or the name of a business at the geospatial coordinates. In various implementations, the location may be defined by a room identifier specifying a location in a pre-enrolled floor plan.
[0041] In various implementations, the database entries further include a field with a spatial relationship between an object represented by the image vector and an object represented by another image vector in another entry in the database. For example, a database entry with a field with a unique identifier of “0014” may also include a field with [“on top of”; “0007”] indicating that the object represented by the database entry is on top of an object represented by the database entry with a field with a unique identifier of “0007”.
[0042] It is to be appreciated that the database entries may include any other metadata. For example, in various implementations, an entry includes metadata indicating an activity a user was performing when the image was captured, a weather condition when the image was captured, a lighting condition when the image was captured, etc.
[0043] Accordingly, in various implementations, storing the plurality of image vectors includes storing the plurality of image vectors in respective association with a time at which the corresponding image was captured. Similarly, in various implementations, storing the plurality of image vectors includes storing the plurality of image vectors in respective association with a location at which the corresponding image was captured.
[0044] The method 300 continues, in block 340, with the device receiving a query. In various implementations, the query is a text query. For example, in various implementations, the query is a vocal query. In various implementations, the query is typed by a user. For example, in FIG. 2E, the user submits a vocal query of “Have you seen a white mug with a gray star?” In various implementations, the query is an image query. For example, a user may present an object or a photograph of an object (or display an image of an object on another electronic device) and ask “Have you seen something like this lately?”
[0045] The method 300 continues, in block 350, with the device generating, based on the query, a query vector in the multi-dimensional latent space. In various implementations, generating the query vector includes feeding at least a portion of the query to a text neural network that has been jointly trained with an image neural network. In particular, the text neural network has been jointly trained with the image neural network such that vectors corresponding to semantically similar text-image pairs are close together in the multi-dimensional latent space. For example, in FIG. 2E, the electronic device feeds at least “a white mug with a gray star” into the image neural network (but not “Have you seen a”).
[0046] In various implementations, generating the query vector includes retrieving a stored vector associated with the text in the query. For example, in FIG. 2G, the device stores the third cup object vector in association with the text “my star mug”.
[0047] In various implementations, generating the query vector includes feeding at least a portion of a particular image of the plurality of images to an image neural network that has been jointly trained with a text neural network. For example, for an image query, the device generates the query vector by providing an image of the object, photograph, or other electronic device to the image neural network.
[0048] The method 300 continues, in block 360, with the device generating a response to the query based on comparing the query vector to the plurality of image vectors. In various implementations, comparing the query vector to the plurality of image vectors includes determining a respective plurality of similarity metrics indicating similarity between the query vector and the plurality of image vectors. In various implementations, the similarly metric for a particular image vector of the plurality of image vectors is based on a Euclidian distance between the query vector and the particular image vector. In various implementations, the similarity metric for a particular image vector of the plurality of image vectors is based on a cross-product between the query vector and the particular image vector.
[0049] In various implementations, generating the response includes selecting a particular image vector from the plurality of image vectors based on the respective plurality of similarity metrics and generates the response based on the particular image vector. For example, in various implementations, the device selects the image vector with the highest similarity metric and generates the response based on the selected image vector. However, referring to FIGS. 2A–2G, this may result in the first cup object vector (of FIG. 2A) being selected rather than the second cup object vector (of FIG. 2B) simply because the cup 213a is slightly better captured in the first image 201 than in the second image 202. Thus, in various implementations, generating the response includes selecting the particular image vector further based on a recency of the particular image vector. The recency is, for example, a difference in time between a current time and the time associated with the particular image vector in the entry in the database.
[0050] For example, in various implementations, the device selects a most recent image vector within a threshold similarity of the image vector with the highest similarity metric. In various implementations, the device applies a selection formula weighting similarity and recency to each image vector to determine a plurality of respective selection metrics and selects the image vector with the highest selection metric. In various implementations, the device applies multiple selection formulas with different weightings of similarity and recency to each image vector to determine multiple pluralities of respective selection metrics and selects, for each formula, the image vector with the highest selection metric. Thus, as described in FIG. 2F, the device can provide a response that emphasizes similarity and a response that emphasizes recency.
[0051] In various implementations, rather than applying a selection formula (or selection formulas) or otherwise processing each image vector, various gating procedures are applied. For example, in various implementations, generating the response includes selecting a subset of the plurality of image vectors based on the similarity metrics. In particular, the device selects a subset of the plurality of image vectors that are most similar to the query vector and have the highest (or lowest) similarity metrics. In various implementations, the size of the subset (e.g., the number of image vectors in the subset) is a predetermined number. In various implementations, the size of the subset is based on the similarity metrics. For example, there may be a clear cut-off in the similarity metrics distinguishing similar image vectors and dissimilar image vectors. Further processing (such as determining recency, location-based processing, or applying selection formulas) may be performed only to the selected subset of the plurality of image vectors.
[0052] Further, in various implementations, the subset of the plurality of image vectors is clustered in the multi-dimensional latent space and certain processing is applied only to certain image vectors of each cluster. Various clustering algorithms can be used, such as Euclidian clustering, to assign each image vector of the subset to a particular cluster or designate the image vector as an outlier. In various implementations, the most recent image vector of each cluster is selected for further processing (e.g., applying one or more selection formulas based on similarity and recency). In various implementations, the clusters are further used to determine sub-clusters based on location (e.g., geospatial or floorplan location) and the most recent image vector of each sub-cluster is selected for further processing.
[0053] In various implementations, the size of the database can be reduced by pruning database entries of the unselected image vectors (including those of the clusters and those designated as outliers). In various implementations, the size of the database can also be reduced by keeping only a set number of entries (deleting older entries when newer entries are added) or keeping only entries within a set recency (e.g., deleting entries older than three days).
[0054] In various implementations, the database is stored in the non-transitory memory of the device. In various implementations, the database is stored remotely from the device. In various implementations, the database is sharable with other users. For example, in various implementations, a user can authorize a person to access (and query) the database on an on-going basis or for a particular query.
[0055] In various implementations, once a particular image vector (or image vectors) stored in a particular database entry has been selected, the device generates the response based on other data in the particular database entry. For example, in various implementations, generating the response is based on a time at which the corresponding image was captured. As another example, in various implementations, generating the response is based on a location at which the corresponding image was captured.
[0056] FIG. 4 is a block diagram of an example of the controller 110 in accordance with some implementations. While certain specific features are illustrated, those skilled in the art will appreciate from the present disclosure that various other features have not been illustrated for the sake of brevity, and so as not to obscure more pertinent aspects of the implementations disclosed herein. To that end, as a non-limiting example, in some implementations the controller 110 includes one or more processing units 402 (e.g., microprocessors, application-specific integrated-circuits (ASICs), field-programmable gate arrays (FPGAs), graphics processing units (GPUs), central processing units (CPUs), processing cores, and / or the like), one or more input / output (I / O) devices 406, one or more communication interfaces 408 (e.g., universal serial bus (USB), FIREWIRE, THUNDERBOLT, IEEE 802.3x, IEEE 802.11x, IEEE 802.16x, global system for mobile communications (GSM), code division multiple access (CDMA), time division multiple access (TDMA), global positioning system (GPS), infrared (IR), BLUETOOTH, ZIGBEE, and / or the like type interface), one or more programming (e.g., I / O) interfaces 410, a memory 420, and one or more communication buses 404 for interconnecting these and various other components.
[0057] In some implementations, the one or more communication buses 404 include circuitry that interconnects and controls communications between system components. In some implementations, the one or more I / O devices 406 include at least one of a keyboard, a mouse, a touchpad, a joystick, one or more microphones, one or more speakers, one or more image sensors, one or more displays, and / or the like.
[0058] The memory 420 includes high-speed random-access memory, such as dynamic random-access memory (DRAM), static random-access memory (SRAM), double-data-rate random-access memory (DDR RAM), or other random-access solid-state memory devices. In some implementations, the memory 420 includes non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 420 optionally includes one or more storage devices remotely located from the one or more processing units 402. The memory 420 comprises a non-transitory computer readable storage medium. In some implementations, the memory 420 or the non-transitory computer readable storage medium of the memory 420 stores the following programs, modules and data structures, or a subset thereof including an optional operating system 430 and an XR experience module 440.
[0059] The operating system 430 includes procedures for handling various basic system services and for performing hardware dependent tasks. In some implementations, the XR experience module 440 is configured to manage and coordinate one or more XR experiences for one or more users (e.g., a single XR experience for one or more users, or multiple XR experiences for respective groups of one or more users). To that end, in various implementations, the XR experience module 440 includes a data obtaining unit 442, a tracking unit 444, a coordination unit 446, and a data transmitting unit 448.
[0060] In some implementations, the data obtaining unit 442 is configured to obtain data (e.g., presentation data, interaction data, sensor data, location data, etc.) from at least the electronic device 120 of FIG. 1. To that end, in various implementations, the data obtaining unit 442 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0061] In some implementations, the tracking unit 444 is configured to map the physical environment 105 and to track the position / location of at least the electronic device 120 with respect to the physical environment 105 of FIG. 1. To that end, in various implementations, the tracking unit 444 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0062] In some implementations, the coordination unit 446 is configured to manage and coordinate the XR experience presented to the user by the electronic device 120. To that end, in various implementations, the coordination unit 446 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0063] In some implementations, the data transmitting unit 448 is configured to transmit data (e.g., presentation data, location data, etc.) to at least the electronic device 120. To that end, in various implementations, the data transmitting unit 448 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0064] Although the data obtaining unit 442, the tracking unit 444, the coordination unit 446, and the data transmitting unit 448 are shown as residing on a single device (e.g., the controller 110), it should be understood that in other implementations, any combination of the data obtaining unit 442, the tracking unit 444, the coordination unit 446, and the data transmitting unit 448 may be located in separate computing devices.
[0065] Moreover, FIG. 4 is intended more as functional description of the various features that may be present in a particular implementation as opposed to a structural schematic of the implementations described herein. As recognized by those of ordinary skill in the art, items shown separately could be combined and some items could be separated. For example, some functional modules shown separately in FIG. 4 could be implemented in a single module and the various functions of single functional blocks could be implemented by one or more functional blocks in various implementations. The actual number of modules and the division of particular functions and how features are allocated among them will vary from one implementation to another and, in some implementations, depends in part on the particular combination of hardware, software, and / or firmware chosen for a particular implementation.
[0066] FIG. 5 is a block diagram of an example of the electronic device 120 in accordance with some implementations. While certain specific features are illustrated, those skilled in the art will appreciate from the present disclosure that various other features have not been illustrated for the sake of brevity, and so as not to obscure more pertinent aspects of the implementations disclosed herein. To that end, as a non-limiting example, in some implementations the electronic device 120 includes one or more processing units 502 (e.g., microprocessors, ASICs, FPGAs, GPUs, CPUs, processing cores, and / or the like), one or more input / output (I / O) devices and sensors 506, one or more communication interfaces 508 (e.g., USB, FIREWIRE, THUNDERBOLT, IEEE 802.3x, IEEE 802.11x, IEEE 802.16x, GSM, CDMA, TDMA, GPS, IR, BLUETOOTH, ZIGBEE, and / or the like type interface), one or more programming (e.g., I / O) interfaces 510, one or more XR displays 512, one or more optional interior- and / or exterior-facing image sensors 514, a memory 520, and one or more communication buses 504 for interconnecting these and various other components.
[0067] In some implementations, the one or more communication buses 504 include circuitry that interconnects and controls communications between system components. In some implementations, the one or more I / O devices and sensors 506 include at least one of an inertial measurement unit (IMU), an accelerometer, a gyroscope, a thermometer, one or more physiological sensors (e.g., blood pressure monitor, heart rate monitor, blood oxygen sensor, blood glucose sensor, etc.), one or more microphones, one or more speakers, a haptics engine, one or more depth sensors (e.g., a structured light, a time-of-flight, or the like), and / or the like.
[0068] In some implementations, the one or more XR displays 512 are configured to provide the XR experience to the user. In some implementations, the one or more XR displays 512 correspond to holographic, digital light processing (DLP), liquid-crystal display (LCD), liquid-crystal on silicon (LCoS), organic light-emitting field-effect transitory (OLET), organic light-emitting diode (OLED), surface-conduction electron-emitter display (SED), field-emission display (FED), quantum-dot light-emitting diode (QD-LED), micro-electro-mechanical system (MEMS), and / or the like display types. In some implementations, the one or more XR displays 512 correspond to diffractive, reflective, polarized, holographic, etc. waveguide displays. For example, the electronic device 120 includes a single XR display. In another example, the electronic device includes an XR display for each eye of the user. In some implementations, the one or more XR displays 512 are capable of presenting MR and VR content.
[0069] In some implementations, the one or more image sensors 514 are configured to obtain image data that corresponds to at least a portion of the face of the user that includes the eyes of the user (any may be referred to as an eye-tracking camera). In some implementations, the one or more image sensors 514 are configured to be forward-facing so as to obtain image data that corresponds to the physical environment as would be viewed by the user if the electronic device 120 was not present (and may be referred to as a scene camera). The one or more optional image sensors 514 can include one or more RGB cameras (e.g., with a complimentary metal-oxide-semiconductor (CMOS) image sensor or a charge-coupled device (CCD) image sensor), one or more infrared (IR) cameras, one or more event-based cameras, and / or the like.
[0070] The memory 520 includes high-speed random-access memory, such as DRAM, SRAM, DDR RAM, or other random-access solid-state memory devices. In some implementations, the memory 520 includes non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 520 optionally includes one or more storage devices remotely located from the one or more processing units 502. The memory 520 comprises a non-transitory computer readable storage medium. In some implementations, the memory 520 or the non-transitory computer readable storage medium of the memory 520 stores the following programs, modules and data structures, or a subset thereof including an optional operating system 530 and an XR presentation module 540.
[0071] The operating system 530 includes procedures for handling various basic system services and for performing hardware dependent tasks. In some implementations, the XR presentation module 540 is configured to present XR content to the user via the one or more XR displays 512. To that end, in various implementations, the XR presentation module 540 includes a data obtaining unit 542, an object locating unit 544, an XR presenting unit 546, and a data transmitting unit 548.
[0072] In some implementations, the data obtaining unit 542 is configured to obtain data (e.g., presentation data, interaction data, sensor data, location data, etc.) from at least the controller 110 of FIG. 1. To that end, in various implementations, the data obtaining unit 542 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0073] In some implementations, the object locating unit 544 is configured to generate a response to a query regarding the location of an object. To that end, in various implementations, the object locating unit 544 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0074] In some implementations, the XR presenting unit 546 is configured to present the generated response, either visually or audibly. To that end, in various implementations, the XR presenting unit 546 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0075] In some implementations, the data transmitting unit 548 is configured to transmit data (e.g., presentation data, location data, etc.) to at least the controller 110. To that end, in various implementations, the data transmitting unit 548 includes instructions and / or logic therefor, and heuristics and metadata therefor.
[0076] Although the data obtaining unit 542, the object locating unit 544, the XR presenting unit 546, and the data transmitting unit 548 are shown as residing on a single device (e.g., the electronic device 120), it should be understood that in other implementations, any combination of the data obtaining unit 542, the object locating unit 544, the XR presenting unit 546, and the data transmitting unit 548 may be located in separate computing devices.
[0077] Moreover, FIG. 5 is intended more as a functional description of the various features that could be present in a particular implementation as opposed to a structural schematic of the implementations described herein. As recognized by those of ordinary skill in the art, items shown separately could be combined and some items could be separated. For example, some functional modules shown separately in FIG. 5 could be implemented in a single module and the various functions of single functional blocks could be implemented by one or more functional blocks in various implementations. The actual number of modules and the division of particular functions and how features are allocated among them will vary from one implementation to another and, in some implementations, depends in part on the particular combination of hardware, software, and / or firmware chosen for a particular implementation.
[0078] While various aspects of implementations within the scope of the appended claims are described above, it should be apparent that the various features of implementations described above may be embodied in a wide variety of forms and that any specific structure and / or function described above is merely illustrative. Based on the present disclosure one skilled in the art should appreciate that an aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and / or a method may be practiced using any number of the aspects set forth herein. In addition, such an apparatus may be implemented and / or such a method may be practiced using other structure and / or functionality in addition to or other than one or more of the aspects set forth herein.
[0079] It will also be understood that, although the terms “first,”“second,” etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first node could be termed a second node, and, similarly, a second node could be termed a first node, which changing the meaning of the description, so long as all occurrences of the “first node” are renamed consistently and all occurrences of the “second node” are renamed consistently. The first node and the second node are both nodes, but they are not the same node.
[0080] The terminology used herein is for the purpose of describing particular implementations only and is not intended to be limiting of the claims. As used in the description of the implementations and the appended claims, the singular forms “a,”“an,” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term “and / or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms “comprises” and / or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0081] As used herein, the term “if” may be construed to mean “when” or “upon” or “in response to determining” or “in accordance with a determination” or “in response to detecting,” that a stated condition precedent is true, depending on the context. Similarly, the phrase “if it is determined [that a stated condition precedent is true]” or “if [a stated condition precedent is true]” or “when [a stated condition precedent is true]” may be construed to mean “upon determining” or “in response to determining” or “in accordance with a determination” or “upon detecting” or “in response to detecting” that the stated condition precedent is true, depending on the context.
Claims
1. A method comprising:at a device including an image sensor, non-transitory memory, and one or more processors:capturing, using the image sensor, a plurality of images of an environment;generating, based on the plurality of images, a plurality of image vectors in a multi-dimensional latent space;storing, in the non-transitory memory, the plurality of image vectors;receiving a query;generating, based on the query, a query vector in the multi-dimensional latent space; andgenerating a response to the query based on comparing the query vector to the plurality of image vectors.
2. The method of claim 1, wherein generating the plurality of image vectors includes feeding at least a portion of a particular image of the plurality of images to an image neural network that has been jointly trained with a text neural network.
3. The method of claim 1, wherein generating the plurality of image vectors includes:detecting, in a particular image of the plurality of images, an object;determining a portion of the particular image corresponding to the object; andgenerating a particular image vector of the plurality of image vectors based on the portion of the particular image corresponding to the object.
4. The method of claim 3, wherein generating the particular image vector is based on an object identity of the object.
5. The method of claim 3, wherein generating the particular image vector is based on an object type of the object.
6. The method of claim 1, wherein storing the plurality of image vectors includes storing the plurality of image vectors in respective association with a time at which the corresponding image was captured.
7. The method of claim 1, wherein storing the plurality of image vectors includes storing the plurality of image vectors in respective association with a location at which the corresponding image was captured.
8. The method of claim 1, wherein generating the query vector includes feeding at least a portion of the query to a text neural network that has been jointly trained with an image neural network.
9. The method of claim 1, wherein comparing the query vector to the plurality of image vectors includes determining a respective plurality of similarity metrics indicating similarity between the query vector and the plurality of image vectors.
10. The method of claim 9, wherein the similarity metric for a particular image vector of the plurality of image vectors is based on a Euclidian distance between the query vector and the particular image vector.
11. The method of claim 9, wherein the similarity metric for a particular image vector of the plurality of image vectors is based on a cross-product between the query vector and the particular image vector.
12. The method of claim 9, wherein generating the response includes selecting a particular image vector from the plurality of image vectors based on the respective plurality of similarity metrics and generates the response based on the particular image vector.
13. The method of claim 12, wherein generating the response includes selecting the particular image vector further based on a recency of the particular image vector.
14. The method of claim 9, wherein generating the response includes selecting a subset of the plurality of image vectors based on the similarity metrics.
15. The method of claim 14, wherein a size of the subset is a predetermined number.
16. The method of claim 14, wherein a size of the subset is based on the similarity metrics.
17. The method of claim 14, further comprising:generating one or more clusters of image vectors from the subset of the plurality of image vectors; andselecting an image vector from each of the one or more clusters,wherein generating the response is based on the selected image vectors.
18. The method of claim 17, further comprising deleting, from the non-transitory memory, unselected image vectors.
19. A device comprising:an image sensor;a non-transitory memory; andone or more processors to:capture, using the image sensor, a plurality of images of an environment;generate, based on the plurality of images, a plurality of image vectors in a multi-dimensional latent space;store, in the non-transitory memory, the plurality of image vectors;receive a query;generate, based on the query, a query vector in the multi-dimensional latent space; andgenerate a response to the query based on comparing the query vector to the plurality of image vectors.
20. A non-transitory memory storing one or more programs, which, when executed by one or more processors of a device including an image sensor, cause the device to:capture, using the image sensor, a plurality of images of an environment;generate, based on the plurality of images, a plurality of image vectors in a multi-dimensional latent space;store, in the non-transitory memory, the plurality of image vectors;receive a query;generate, based on the query, a query vector in the multi-dimensional latent space; andgenerate a response to the query based on comparing the query vector to the plurality of image vectors.
