Depth prediction for moving images
The depth map is generated in the user device through the neural network and ADMM module, which solves the difficulty of depth detection in devices lacking infrared hardware, realizes the function of accurately extracting depth information from images, and is suitable for applications such as augmented reality and autonomous driving.
Patent Information
- Application Number
- CN201980056294.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-31
- Filing Date
- 2019-08-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2039-08-29
AI Technical Summary
Existing technology makes it difficult to determine the depth of an object directly from an image in user equipment that lacks infrared (IR) lasers and IR cameras, resulting in difficulty in depth detection.
Employing neural network technology, depth maps are generated using depth data provided by the end user and click or tap points in the image, and are refined through a recurrent neural network with end-to-end training and multi-layer alternating direction multiplier method (ADMM) modules , to achieve deep detection of activities.
It accurately extracts depth information from images without relying on infrared hardware, supports applications such as augmented reality and autonomous driving, and provides a depth detection solution that does not require special equipment.
Smart Images

Figure CN112639876B_ABST
Abstract
Description
[0001] Priority claim
[0002] This application claims the benefit of priority to U.S. patent application Ser. No. 16 / 120,105, filed Aug. 31, 2018, which is hereby incorporated by reference in its entirety. Technical Field
[0003] Embodiments of the present disclosure relate generally to machine learning, and more particularly, but not by way of limitation, to image-based depth estimation. Background Art
[0004] Depth estimation mechanisms attempt to determine the depth of objects depicted in an image (e.g., image, video). Depth data can be used for different image-based tasks, such as augmented reality, image focusing, and facial parsing. Some depth detection techniques use external signals (e.g., infrared beams) that reflect off nearby objects to help determine the depth of objects in a given image. Although these external signal-based methods can produce accurate results, many user devices (e.g., smartphones, laptops) are not equipped with the necessary hardware (e.g., infrared (IR) lasers, IR cameras) to implement signal-based depth detection. Directly determining depth from a single image is difficult due to the inherent disagreement between the appearance of an object in an image and its actual geometry. Summary of the invention
[0005] In an embodiment, a method, system, and computer readable storage device for moving image depth prediction are provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] To easily identify discussion of any particular element or action, the most significant digit(s) in a reference number refers to the number of the Figure in which the element or action is first introduced.
[0007] Figure 1 is a block diagram illustrating an example messaging system for exchanging data (eg, messages and associated content) over a network.
[0008] Figure 2 is a diagram showing a method for performing a Figure 1 A block diagram of the messaging system for further details.
[0009] Figure 3 is a schematic diagram illustrating data that may be stored in a database of a messaging system according to certain example embodiments.
[0010] Figure 4 is a schematic diagram illustrating the structure of a message generated by a messaging client application for communications according to some embodiments.
[0011] Figure 5 is a schematic diagram illustrating an example access restriction process according to some example embodiments, by which access to content (e.g., ephemeral messages and associated multimedia data payloads) or collections of content (e.g., ephemeral message stories) can be time-restricted (e.g., ephemeral).
[0012] Figure 6 An example function engine of an active depth system is shown in accordance with some example embodiments.
[0013] Figure 7 A flowchart of a method for implementing an active depth map according to some example embodiments is shown.
[0014] Figure 8 A flow chart of an example method for utilizing a click-pairs dataset is shown, according to some example embodiments.
[0015] Fig. 9A An example network for a depth engine is shown, according to some example embodiments.
[0016] Fig. 9B Example images and depth maps are shown according to some example embodiments.
[0017] Figure 10-13 An example user interface for implementing an active depth system is shown in accordance with some example embodiments.
[0018] Fig.14 is a block diagram illustrating a representative software architecture that may be used in conjunction with the various hardware architectures described herein.
[0019] Fig.15 is a block diagram illustrating components of a machine capable of reading instructions from a machine-readable medium (eg, a machine-readable storage medium) and performing any one or more of the methodologies discussed herein, according to some example embodiments. DETAILED DESCRIPTION
[0020] The following description includes systems, methods, techniques, instruction sequences and computing machine program products that embody the illustrative embodiments of the present disclosure. In the following description, for the purpose of explanation, many specific details are set forth in order to provide an understanding of the various embodiments of the subject matter of the invention. However, it will be apparent to those skilled in the art that embodiments of the subject matter of the present invention can be practiced without these specific details. Typically, known instruction instances, protocols, structures and techniques need not be shown in detail.
[0021] As discussed, determining the depth of an object depicted in an image is difficult. Although some external signal-based methods can assist image-based depth detection, many end-user systems (e.g., client devices, smartphones, portable computers) lack the specialized equipment required to implement these signal-based methods.
[0022] To this end, an active depth detection system can be implemented to determine the depth of an object directly from an image using data provided by an end user at runtime (e.g., end user input data provided to the system after training). According to some methods, the active depth detection system includes one or more neural networks configured to generate a depth map and refine the depth map using end user provided depth data (e.g., ordinal pairs, such as a pair of clicks on an image or screen taps).
[0023] For example, a client device may display an image, and a user may select a first point in the image (e.g., screen tap, click, or specify its image coordinates), and then select a second point in the image. The active depth detection system generates a vector from the first point to the second point to indicate a depth detection (e.g., indicating that the first point corresponds to a portion of the image that is closer to the viewer than the portion of the image corresponding to the second point, or vice versa). The vector may be input to a neural network system that has been trained to update a depth map using ordered pairs (e.g., a pair of clicks) as constraints.
[0024] In some example embodiments, the active depth detection system is trained using an end-to-end training technique (e.g., back propagation). After the model is trained, it can be downloaded for use by different users as part of a user application (e.g., the messaging client application 104 discussed below). When a user generates an image, the system can first generate an initial depth map using a basic network (such as a fully convolutional residual neural network (FCRN)). The active depth detection system can then refine the initial depth map using ordered constraints (e.g., click pairs) indicating the depth direction of the imaged area (e.g., the area in the original image, the area in the initial depth map). In some example embodiments, the active depth detection system implements a recurrent neural network configured as an Alternating Direction Method of Multipliers (ADMM) module using multiple layers. The recurrent neural network can perform multiple iterations to generate variables processed in different layers. The output of the recurrent neural network is a refined depth map that can be used for further processing (such as image operations). Although in the following examples, the refined depth map is used for image processing, other uses are also possible. For example, an active depth detection system may be implemented in an augmented reality system to more accurately generate a simulation that modifies the appearance of a user's surroundings. As another example, an active depth detection system may be implemented as part of an autonomous vehicle vision system to determine the relative depth of objects depicted in one or more images.
[0025] Figure 1 1 is a block diagram illustrating an example messaging system 100 for exchanging data (e.g., messages and associated content) over a network. The messaging system 100 includes a plurality of client devices 102, each of which hosts a plurality of applications including a messaging client application 104. Each messaging client application 104 is communicatively coupled to other instances of the messaging client application 104 and a messaging server system 108 via a network 106 (e.g., the Internet). In various embodiments, the messaging client applications 104 and / or the image processing system 116 may use virtual machine learning to analyze images sent within the messaging system 100 and use the analysis to provide features within the messaging system 100.
[0026] Thus, each messaging client application 104 is able to communicate and exchange data with another messaging client application 104 and with a messaging server system 108 via a network 106. Data exchanged between messaging client applications 104 and data exchanged between a messaging client application 104 and a messaging server system 108 includes functions (e.g., commands to call functions) and payload data (e.g., text, audio, video, or other multimedia data).
[0027] The messaging server system 108 provides server-side functionality to specific messaging client applications 104 via the network 106. Although certain functions of the messaging system 100 are described herein as being performed by either the messaging client application 104 or the messaging server system 108, it is understood that the location of certain functions within the messaging client application 104 or within the messaging server system 108 is a design choice. For example, it may be technically preferable to first deploy certain technologies and functions within the messaging server system 108, but then move the technologies and functions to the messaging client application 104 where the client device 102 has sufficient processing power.
[0028] The messaging server system 108 supports various services and operations provided to the messaging client applications 104. The operations include sending data to the messaging client applications 104, receiving data from the messaging client applications 104, and processing data generated by the messaging client applications 104. As examples, the data may include message content, client device information, geo-location information, media annotations and overlays, message content persistence conditions, image search data, social networking information, and live event information, some of which rely on information generated by analyzing images sent by the messaging system 100. The exchange of data within the messaging system 100 is invoked and controlled via functionality available through a user interface (UI) of the messaging client applications 104.
[0029] Turning now specifically to the messaging server system 108, an application programming interface (API) server 110 is coupled to and provides a programming interface to an application server 112. The application server 112 is communicatively coupled to a database server 118, which facilitates access to a database 120 in which data associated with messages processed by the application server 112 is stored. In some embodiments, the database 120 may also store the results of image processing or details of various trained and untrained support vector machines, which may be used by the messaging server system 108.
[0030] The API server 110 receives and sends message data (e.g., commands and message payloads) between the client device 102 and the application server 112. Specifically, the API server 110 provides a set of interfaces (e.g., routines and protocols) that can be called or queried by the messaging client application 104 to invoke functions of the application server 112. The API server 110 exposes various functions supported by the application server 112, including account registration, login functionality, sending messages from a particular messaging client application 104 to another messaging client application 104 via the application server 112, sending media files (e.g., images or videos) from the messaging client application 104 to the messaging server application 114 for access by another messaging client application 104, setting of media data collections (e.g., stories), retrieval of such collections, retrieval of a friend list of a user of the client device 102, retrieval of messages and content, adding friends to and removing friends from a social graph, locating friends in a social graph, and application events (e.g., events related to the messaging client application 104).
[0031] According to some example embodiments, the application server 112 hosts a number of applications and subsystems, including a messaging server application 114, an image processing system 116, a social networking system 122, and an activity depth system 150. The messaging server application 114 implements a variety of message processing techniques and functions, particularly techniques and functions related to the aggregation and other processing of content (e.g., text and multimedia content) contained in messages received from multiple instances of the messaging client application 104. As will be described in further detail, text and media content from multiple sources can be aggregated into content collections (e.g., called stories or galleries). These collections can then be made available to the messaging client applications 104 through the messaging server application 114. In view of the hardware requirements for this processing, the messaging server application 114 can also perform other processor and memory intensive data processing on the server side.
[0032] The application server 112 also includes an image processing system 116 that is dedicated to performing various image processing operations, typically related to images or videos received within the payload of messages from the messaging server application 114 .
[0033] The social networking system 122 supports various social networking functions and services and makes these functions and services available to the messaging server application 114. To this end, the social networking system 122 maintains and accesses an entity graph within the database 120 (e.g., Figure 3304 in the entity graph of the messaging system 100). Examples of functionality and services supported by the social networking system 122 include identification of other users in the messaging system 100 who have relationships with a particular user or who are "followed" by the particular user, as well as identification of interests and other entities of the particular user.
[0034] The application server 112 is communicatively coupled to a database server 118 , which facilitates access to a database 120 in which data associated with messages processed by the messaging server application 114 is stored.
[0035] Figure 2 1 is a block diagram showing further details about the messaging system 100 according to an example embodiment. Specifically, the messaging system 100 is shown to include a messaging client application 104 and an application server 112, which in turn embodies some subsystems, namely a short timer system 202, a collection management system 204, an annotation system 206, and an activity depth system 150.
[0036] The short-term timer system 202 is responsible for enforcing temporary access to content permitted by the messaging client application 104 and the messaging server application 114. To this end, the short-term timer system 202 incorporates a number of timers that selectively display and enable access to messages and related content via the messaging client application 104 based on duration and display parameters associated with a message or collection of messages (e.g., a story). Further details regarding the operation of the short-term timer system 202 are provided below.
[0037] The collection management system 204 is responsible for managing collections of media (e.g., collections of text, images, video, and audio data). In some examples, collections of content (e.g., messages including images, videos, text, and audio) may be organized into "event galleries" or "event stories." Such collections may be available for a specified time period, such as the duration of an event to which the content is related. For example, content related to a concert may be provided as a "story" for the duration of the concert. The collection management system 204 may also be responsible for publishing an icon to the user interface of the messaging client application 104 that provides notification of the existence of a particular collection.
[0038] The collection management system 204 further includes a curation interface 208 that allows a collection manager to manage and curate a particular collection of content. For example, the curation interface 208 enables an event organizer to curate a collection of content related to a particular event (e.g., to remove inappropriate content or redundant messages). Additionally, the collection management system 204 employs machine vision (or image recognition technology) and content rules to automatically curate a collection of content. In some embodiments, a user may be paid to include user-generated content in a collection. In this case, the curation interface 208 operates so as to automatically pay the user for use of the user's content.
[0039] The annotation system 206 provides various functions that enable users to annotate or otherwise modify or edit media content associated with a message. For example, the annotation system 206 provides functions related to the generation and publication of media overlays of messages processed by the messaging system 100. The annotation system 206 is operable to provide media overlays (e.g., geographic filters or filters) to the messaging client application 104 based on the geographic location of the client device 102. In another example, the annotation system 206 is operable to provide media overlays to the messaging client application 104 based on other information (e.g., social network information of the user of the client device 102). The media overlay can include audio and visual content and visual effects. Examples of audio and visual content include pictures, text, logos, animations, and sound effects. Examples of visual effects include color overlays. Audio and visual content or visual effects can be applied to media content items (e.g., photos) at the client device 102. For example, the media overlay includes text that can be superimposed on a photo generated by the client device 102. In another example, the media overlay includes a location identifier (e.g., Venice Beach), a live event name, or a business name (e.g., Beach Cafe). In another example, the annotation system 206 uses the geographic location of the client device 102 to identify a media overlay that includes the name of a business at the geographic location of the client device 102. The media overlay may include other tags associated with the business. The media overlay may be stored in the database 120 and may be accessed by the database server 118.
[0040] In one example embodiment, the annotation system 206 provides a user-based publishing platform that enables users to select a geographic location on a map and upload content associated with the selected geographic location. Users can also specify circumstances under which specific content should be provided to other users. The annotation system 206 generates a media overlay including the uploaded content and associates the uploaded content with the selected geographic location.
[0041] In another example embodiment, the annotation system 206 provides a merchant-based publishing platform that enables merchants to select specific media overlays associated with geographic locations through a bidding process. For example, the annotation system 206 associates the media overlays of the merchant with the highest bid with the corresponding geographic location within a predetermined amount of time.
[0042] Figure 3 is a schematic diagram illustrating data 300 that may be stored in database 120 of messaging server system 108 according to certain example embodiments. Although the contents of database 120 are illustrated as including a plurality of tables, it is understood that data may also be stored in other types of data structures (e.g., as an object-oriented database).
[0043] The database 120 includes message data stored in a message table 314. The entity table 302 stores entity data including an entity graph 304. The entity (the record of which is maintained in the entity table 302) may include a person, a corporate entity, an organization, an object, a place, an event, etc. Regardless of the type, any entity for which the messaging server system 108 stores data may be an identified entity. Each entity has a unique identifier and an entity type identifier (not shown).
[0044] The entity graph 304 also stores information about relationships and associations between two entities and among multiple entities. By way of example only, the relationship may be social, professional (e.g., working in a common company or organization), interest-based, or activity-based.
[0045] The database 120 also stores annotation data in the annotation table 312, in the form of an example of a filter. The filter (whose data is stored in the annotation table 312) is associated with a video (whose data is stored in the video table 310) and / or an image (whose data is stored in the image table 308) and is applied to the video and / or image. In one example, a filter is an overlay displayed as an overlay on an image or video during presentation to a recipient user. The filter can be of various types, including a user-selected filter in a filter gallery presented to a sending user by a messaging client application 104 when the sending user is writing a message. Other types of filters include geolocation filters (also referred to as geolocation filters), which can be presented to a sending user based on a geographic location. For example, a messaging client application 104 can present a geolocation filter specific to a neighborhood or a specific location in a user interface based on geographic location information determined by a global positioning system (GPS) unit of a client device 102. Another type of filter is a data filter, which can be selectively presented to the sending user by the messaging client application 104 based on other input or information collected during the message creation process by the client device 102. Examples of data filters include the current temperature at a particular location, the current speed the sending user is traveling, the battery life of the client device 102, or the current time.
[0046] Other annotation data that can be stored in the annotation table is so-called "shot" data. A "shot" can be real-time special effects and sounds that can be added to an image or video.
[0047] As mentioned above, the video table 310 stores video data, which in one embodiment is associated with messages (whose records are maintained within the message table 314). Similarly, the image table 308 stores image data associated with messages (whose message data is stored in the message table 314). The entity table 302 can associate various annotations from the annotation table 312 with various images stored in the image table 308 and various videos stored in the video table 310.
[0048] The story table 306 stores data about a collection of messages and related image, video, or audio data that is compiled into a collection (e.g., a story or gallery). The creation of a particular collection can be initiated by a particular user (e.g., any user whose record is maintained in the entity table 302). A user can create a "personal story" in the form of a collection of content that the user has created and sent / broadcasted. To this end, the user interface of the messaging client application 104 can include a user-selectable icon to enable the sending user to add specific content to his or her personal story.
[0049] A collection may also constitute a "live story," which is a collection of content from multiple users created manually, automatically, or using a combination of manual and automatic techniques. For example, a "live story" may constitute a curated stream of user-submitted content from various locations and events. For example, a user whose client device 102 has location services enabled and who is at a common location or event at a particular time may be presented with an option via the user interface of the messaging client application 104 to contribute content to a particular live story. Live stories may be identified by the messaging client application 104 for a user based on his / her location. The end result is a "live story" told from a communal perspective.
[0050] Another type of content collection is called a "location story," which enables users whose client devices 102 are located within a particular geographic location (e.g., on a college or university campus) to contribute to a particular collection. In some embodiments, contributions to location stories may require secondary authentication to verify that the end user belongs to a particular organization or other entity (e.g., is a student on a college campus).
[0051] Figure 4 is a schematic diagram illustrating the structure of a message 400 generated by a messaging client application 104 for communicating with another messaging client application 104 or a messaging server application 114 according to some embodiments. The content of a particular message 400 is used to populate a message table 314 stored in a database 120 accessible by a messaging server application 114. Similarly, the content of the message 400 is stored in memory as "in transit" or "in-flight" data for a client device 102 or an application server 112. The message 400 is shown to include the following components:
[0052] Message identifier 402 : a unique identifier that identifies the message 400 .
[0053] Message text payload 404 : text to be generated by a user via the user interface of the client device 102 and included in the message 400 .
[0054] Message image payload 406 : Image data captured by a camera component of the client device 102 or retrieved from a memory of the client device 102 and included in the message 400 .
[0055] Message video payload 408 : Video data captured by a camera component or retrieved from a memory component of the client device 102 and included in the message 400 .
[0056] Message audio payload 410 : audio data captured by a microphone or retrieved from a memory component of the client device 102 and included in the message 400 .
[0057] Message annotation 412: Annotation data (eg, filter, sticker, or other enhancement) representing an annotation to be applied to the message image payload 406, message video payload 408, or message audio payload 410 of the message 400.
[0058] Message duration parameter 414: A parameter value indicating the amount of time in seconds that the contents of message 400 (e.g., message image payload 406, message video payload 408, and message audio payload 410) will be presented to or accessible to a user via messaging client application 104.
[0059] Message geolocation parameters 416: Geolocation data (e.g., latitude and longitude coordinates) associated with the content payload of the message 400. Multiple message geolocation parameter 416 values may be included in the payload, with each of these parameter values being associated with a respective content item included in the content (e.g., a specific image in the message image payload 406 or a specific video in the message video payload 408).
[0060] Message story identifier 418: An identifier value used to identify one or more content collections (e.g., "stories") that are associated with a particular content item in the message image payload 406 of the message 400. For example, multiple images within the message image payload 406 may each be associated with multiple content collections using an identifier value.
[0061] Message tags 420: One or more tags, each of which indicates the subject of the content included in the message payload. For example, where a particular image included in the message image payload 406 depicts an animal (e.g., a lion), a tag value indicating the relevant animal may be included within the message tags 420. Tag values may be manually generated based on user input or may be automatically generated using, for example, image recognition.
[0062] Message sender identifier 422 : An identifier (eg, a messaging system identifier, an email address, or a device identifier) indicating the user of the client device 102 on which the message 400 was generated and from which the message 400 was sent.
[0063] Message recipient identifier 424: Indicates an identifier (eg, a messaging system identifier, an email address, or a device identifier) of the user of the client device 102 to which the message 400 is addressed.
[0064] The content (e.g., value) of the various components of message 400 may be pointers to locations in a table storing content data values. For example, the image value in message image payload 406 may be a pointer to a location (or its address) within image table 308. Similarly, the value in message video payload 408 may point to data stored within video table 310, the value stored in message annotation 412 may point to data stored in annotation table 312, the value stored in message story identifier 418 may point to data stored in story table 306, and the values stored in message sender identifier 422 and message receiver identifier 424 may point to user records stored in entity table 302.
[0065] Figure 5 is a schematic diagram illustrating an access restriction process 500, according to which access to content (e.g., a short message 502 and associated multimedia data payload) or a collection of content (e.g., a short message story 504) can be time-restricted (e.g., short-term).
[0066] The short message 502 is shown to be associated with a message duration parameter 506, the value of which determines the amount of time that the short message 502 is displayed by the messaging client application 104 to the recipient user of the short message 502. In one embodiment, where the messaging client application 104 is an application client, the recipient user can view the short message 502 for up to 10 seconds, depending on the amount of time specified by the sending user using the message duration parameter 506.
[0067] The message duration parameter 506 and the message recipient identifier 424 are shown as being input to a message timer 512, which is responsible for determining the amount of time that the short message 502 is displayed to the specific receiving user identified by the message recipient identifier 424. In particular, the short message 502 will only be displayed to the associated receiving user for a period of time determined by the value of the message duration parameter 506. The message timer 512 is shown as providing an output to a more general short timer system 202, which is responsible for the overall timing of displaying content (e.g., short message 502) to the receiving user.
[0068] exist Figure 51 shows a short message 502 to be included in a short message story 504 (e.g., a personal story or an event story). The short message story 504 has an associated story duration parameter 508, the value of which determines the duration for which the short message story 504 is presented and accessible to users of the messaging system 100. For example, the story duration parameter 508 may be the duration of a concert, wherein the short message story 504 is a collection of content related to the concert. Alternatively, when performing the setup and creation of the short message story 504, the user (owner user or curator user) can specify the value of the story duration parameter 508.
[0069] Additionally, each short message 502 within the short message story 504 has an associated story engagement parameter 510, the value of which determines the duration for which the short message 502 will be accessible within the context of the short message story 504. Thus, a particular short message 502 may "expire" and become inaccessible within the context of the short message story 504 before the short message story 504 itself expires according to the story duration parameter 508. Each of the story duration parameter 508, the story engagement parameter 510, and the message recipient identifier 424 provide input to the story timer 514, which operatively determines whether a particular short message 502 of the short message story 504 will be displayed to a particular receiving user, and if so, how long to display it. Note that, by virtue of having the message recipient identifier 424, the short message story 504 also knows the identity of the particular receiving user.
[0070] Thus, the story timer 514 operatively controls the overall lifespan of the associated short message story 504 and the individual short messages 502 contained in the short message story 504. In one embodiment, each and all short messages 502 in the short message story 504 remain visible and accessible for a period of time specified by the story duration parameter 508. In another embodiment, certain short messages 502 may expire within the context of the short message story 504 based on the story engagement parameter 510. Note that even within the context of the short message story 504, the message duration parameter 506 may still determine the duration for which a particular short message 502 is displayed to a receiving user. Thus, the message duration parameter 506 determines the duration for which a particular short message 502 is displayed to a receiving user, regardless of whether the receiving user is viewing the short message 502 within the context of the short message story 504 or outside of it.
[0071] The short timer system 202 may also be operable to remove a particular short message 502 from a short message story 504 based on a determination that an associated story engagement parameter 510 has been exceeded. For example, when a sending user has established a story engagement parameter 510 of 24 hours from posting, the short timer system 202 will remove the associated short message 502 from the short message story 504 after the designated 24 hours. The short timer system 202 also operates to remove a short message story 504 when the story engagement parameter 510 of each and all short messages 502 within the short message story 504 has expired, or when the short message story 504 itself has expired according to the story duration parameter 508.
[0072] In some use cases, the creator of a particular short message story 504 may specify an indefinite story duration parameter 508. In this case, the expiration of the story engagement parameter 510 for the last remaining short message 502 within the short message story 504 will determine when the short message story 504 itself expires. In this case, a new short message 502 with a new story engagement parameter 510 (which is added to the short message story 504) effectively extends the life of the short message story 504 to a value equal to the story engagement parameter 510.
[0073] In response to the short timer system 202 determining that the short message story 504 has expired (e.g., is no longer accessible), the short timer system 202 communicates with the messaging system 100 (e.g., specifically, the messaging client application 104) so that the indicia (e.g., icon) associated with the relevant short message story 504 is no longer displayed within the user interface of the messaging client application 104. Similarly, when the short timer system 202 determines that the message duration parameter 506 of a particular short message 502 has expired, the short timer system 202 causes the messaging client application 104 to no longer display the indicia (e.g., icon or text identification) associated with the short message 502.
[0074] Figure 6An example functional engine of the active depth system 150 is shown in accordance with some example embodiments. As shown, the active depth system 150 includes an interface engine 600, a training engine 605, a depth engine 610, and a content engine 615. The interface engine 600 manages communications with the messaging server application 114 to generate a user interface, receive input data (e.g., click pairs, selections of buttons), and generate content (e.g., images, videos). The training engine 605 is configured to train a model implemented in the depth engine 610. The depth engine 610 is configured to generate a depth map from a single image using the image and one or more ordered constraints (e.g., click pairs) input by a user. The content engine 615 is configured to perform one or more actions using the depth map generated by the depth engine 610. For example, the content engine 615 can be configured to apply image effects to an image using the depth information generated by the depth engine 610, and / or overlay one or more items on the image.
[0075] Figure 7 A flow chart of a method 700 for implementing an activity depth map according to some example embodiments is shown. At operation 705, the training engine 605 trains an activity depth system model, such as the following reference Fig. 9A The network 900 discussed. Because the network 900 is fully differentiable, the network 900 can be trained end-to-end using gradient descent. At operation 710, the interface engine 600 generates an image. For example, the interface engine 600 generates the image using an image sensor of the client device 102. At operation 715, the depth engine 610 receives user interaction data. For example, at operation 715, the depth engine 610 receives click pair data, such as a sequence of screen taps on an image depicted on a display device of the client device 102. At operation 720, the depth engine 610 generates a refined depth map using the trained network 900, as described below with reference to Fig. 9A and 9B In operation 730, the content engine 615 modifies the image using the refined depth map generated by the depth engine 610. For example, in operation 730, the content engine 615 uses the refined depth map generated in operation 720 to remove background areas in the generated image. In operation 735, the content engine 615 sends the modified image as a short message (e.g., short message 502) to a website (e.g., a social media website) for access by other website users.
[0076] Figure 8A flow chart of an example method 800 for utilizing a click pair dataset according to some example embodiments is shown. In some implementations, a user of a client device 102 inputs multiple pairs of clicks, each click pair set indicating a depth direction of a region in an image. The depth engine 610 may implement the method 800 as a subroutine of operation 720, wherein a refined depth map is generated.
[0077] At operation 805, the depth engine 610 identifies an ordered pair, such as a pair of clicks input by a user on an image displayed on a client device. At operation 810, the depth engine 610 generates a base depth map for refinement. For example, at operation 810, the depth engine 610 implements FCRN to extract the base depth map from an image (e.g., Figure 7 An initial depth map is generated based on the image generated in operation 710.
[0078] At operation 815, the depth engine 610 uses the received ordered pairs to further refine the base depth map. For example, at operation 815, the depth engine 610 runs one or more iterations of the ADMM module to refine the region of the initial depth map. At operation 820, the depth engine 610 determines whether there are additional sets of ordered pairs. If the user enters additional click pairs, then at operation 820, the method 800 proceeds to operation 805, and the depth engine 610 uses the additional ordered pair information in operations 810 and 815 to further refine the depth map. For example, the first ordered pair can improve the depth accuracy of a first region (e.g., the lower right corner) in the depth map, the second ordered pair can improve the depth accuracy of a different second region (e.g., the upper left corner) in the depth map, and so on. Alternatively, returning to operation 820, if the depth engine 610 determines that the user has not entered additional ordered pairs, the method 800 proceeds to operation 825, where the depth engine 610 stores the refined depth map.
[0079] Fig. 9A An example network 900 for a depth engine 610 is shown in accordance with some example embodiments. As shown, an initial image 905 is input to a base network 910 (e.g., a fully convolutional residual neural network (FCRN)), which generates a base depth map 915. Fig. 9B An example image 950 and a depth map 955 are shown. Depth map 955 uses data values such as brightness to indicate the depth of different areas in image 950. For example, in depth map 955, the pixels of the pool table are darker than the pixels of the wall, indicating that the pool table is closer to the viewer (e.g., user, camera lens) than the wall depicted behind the pool table. A depth map can be a separate file from its corresponding image, but can also be integrated into the image as additional channel data for each pixel.
[0080] Returning to 9A, the base depth map 915 is input to the ADMM module 925, which operates in a number of iterations (e.g., iteration 1, iteration 2, ... iteration n) to generate a refined depth map 930. Paired data 920 is also input to the ADMM module 925, and the paired data 920 includes a pair of points or a pair of clicks that specify the relative order between a pair of pixels in the depth direction, as discussed below. Fig.11 shown.
[0081] In some example embodiments, the ADMM module 925 is implemented as a recurrent neural network that implements update rules to generate a refined depth map 930. The paired data 920 includes user input guidance (e.g., clicks to indicate depth directions) that serve as ordered constraints on the inferred depth estimate. The depth estimate can be modeled as a quadratic programming scheme with linear constraints. In particular, let N be the total number of pixels in the image, and let x and y be vector representations of the input image and the refined depth to be solved. The refined depth value y is constrained to be within the range [0, D]. Given M pairs of ordered constraints (user click pairs) from user guidance, the objective function for optimizing y is:
[0082] y * =argmin y f u (y,x)+∑ α f p (y α ,x) [1]
[0083] st
[0084] Ay≤B
[0085] in I is the identity matrix, 0 and 1 are vectors of all 0s and 1s. In addition, fu(y,x) is a unary potential encoding the prediction from the base deep neural network, and f p (y α ,x) is a high-order potential that encodes the spatial relationship between neighboring pixels. Ay≤B encodes the hard constraints for the ordered relationship. The first two parts in A and B ensure that the refined depth output is in the valid range [0, D]. P is an M×N matrix encoding M different ordered constraints. If (j, j') is an ordered pair (where k≤M), then P is used kj =1 and P kj’ =-1.
[0086] Unary potential f u Using f u (y,x;w)=1 / 2||yh(x;w)|| 2, which measures the L2 distance between y and h(x; w). To estimate depth, h(x; w) denotes the output from a base depth prediction network (e.g., base network 910), which is parameterized by the network weights w. Minimizing the unary term is equivalent to minimizing the mean squared error between the refined depth and the base network output.
[0087] High-order potential f p Using f p (y α , x; w) = h α (x; w)g α (W α y) form. Here W α represents the transformation matrix used for the filtering operation, and h α (x; w) provides per-pixel guidance information that provides stronger local smoothness for pixels on low-frequency edges. α (x; w) is constant for all pixels to show the improvement over the ordered constraint.
[0088] To solve for the refined depth value y, the ADMM algorithm is implemented to handle non-differentiable objectives and hard constraints while maintaining fast convergence. Using auxiliary variables z = {z1, ..., z A}Reconfigure Equation 1. In particular:
[0089]
[0090] st
[0091] Ay≤B
[0092] W α y=z α , z α ∈z
[0093] Then, the enhanced Lagrangian of the original objective function is:
[0094]
[0095] where ρ α is a constant penalty hyperparameter, and λ,ξ are Lagrange multipliers, λ ≥ 0. The variables y, z, λ, ξ are solved by alternating between the following subproblems.
[0096] To solve for the refinement depth y: the update rule for y is the derivative of the Lagrangian with respect to y:
[0097]
[0098] This step uses item A Tλ is used to encode the ordering constraint and adjust the output from the base network. The depth is iteratively refined in a forward pass through the ADMM network module.
[0099] To solve for the auxiliary variable z: Let g α (·) = ‖·‖1 is the L1 smoothing prior on y, and S(a,b) is the soft threshold function. The z update rule is obtained by solving the Lasso problem:
[0100]
[0101] For each z α :
[0102]
[0103] To solve for the Lagrange multipliers λ and ξ, gradient ascent is used to obtain an update rule for λ:
[0104]
[0105] Similarly, for each ξ α , using the gradient ascent update rule:
[0106]
[0107] where η and τ α is a hyperparameter representing the gradient update step size.
[0108] In some example embodiments, the ADMM module 925 is iterative in nature, weights are not shared, and the number of iterations is fixed to allow the ADMM module 925 to use a convolutional neural network with a customized activation function.
[0109] According to some example embodiments, call-out 933 shows different layers of the ADMM module 925. According to some example embodiments, the ADMM module 925 is configured to run iterations of the above update rules. The transformation W is learned via back-propagation training. α The filter to be encoded. The data tensor z α ,ξ α and λ are initialized to zero.
[0110] In some example embodiments, the depth engine 610 uses five ADMM modules, which corresponds to running the ADMM module 925 for five iterations. Each ADMM instance contains 64 transformations. α(e.g., each convolution layer includes 64 filters, each deconvolution layer includes 64 layers, etc.) In some example embodiments, since all operations in ADMM module 925 are differentiable, gradient descent can be used to learn the entire network 900 (e.g., base network 910 and ADMM module 925) end-to-end. In some example embodiments, network 900 implements standard mean square error (MSE) as a loss function.
[0111] The first layer 935A in the ADMM module 925 is configured to solve for the refinement depth y. The calculation of the numerator corresponds to the calculation of α z α -ξ α A deconvolution 937 (e.g., transposed convolution) step is applied to the numerator and the sum of the results is combined. The calculation of the denominator is performed by converting the deconvolution kernel into an optical transfer function and summing. The calculation of the final output is performed by first applying a fast Fourier transform (FFT) to the numerator and then performing an inverse FFT on the differentiated result.
[0112] The second layer 935B in the ADMM module 925 solves for the auxiliary variable z. This can be done by using the same filter shared with the deconvolution layer on y with the help of a convolution layer 945. The output of the convolution layer passes through a nonlinear active layer 943 (as indicated by operator 940), which implements a standard soft threshold function S(a,b). In practice, we implement this soft threshold function using two rectified linear unit (ReLU) functions: S(a,b)=ReLU(ab)-ReLU(-ab). In some example embodiments, the convolution layer 945 does not share weights with the deconvolution layer to increase network capacity.
[0113] The third layer 935C and the fourth layer 935D in the ADMM module 925 correspond to the gradient ascent steps for solving the Lagrangian multipliers λ and ξ, respectively. These steps are implemented as tensor subtraction and summation operations. The updated result of λ after gradient ascent passes through an activation layer 939 (e.g., an additional ReLU layer) to satisfy the non-negative constraint on λ.
[0114] Figure 10-13 An example user interface for implementing the active depth system 150 is shown in accordance with some example embodiments. Fig.10 As shown, user 1000 holds client device 102, which displays user interface 1010. User 1000 generates image 1015 using capture image button 1005. To enter click pair data, user 1000 selects add point button 1020. Fig.11, user 1000 selected add point button 1020 and tapped the screen twice to create a set of click pairs. In particular, user 1000 clicked the screen at point 1100 and then clicked the screen at point 1105 to indicate that the pixel corresponding to point 1100 is closer than the pixel corresponding to point 1105. Although the first point is closer than the second point in the example, it is understood that the ordered pair data can also be configured in the opposite direction (e.g., the first point indicates that the point is farther than the subsequent second point). The active depth system 150 receives the screen click and generates an arrow connecting the two points 1100 and 1105 to indicate that the direction of the depth of the area of the image (e.g., the ceiling above the cashier depicted) is the direction of the arrow created by the two points. Although the ordered pairs in the examples discussed here are generated by a pair of clicks provided by the user, it is understood that the ordered pair data can also be generated by other means, such as by a sliding gesture or by entering the coordinates of the first point and the second point in a text input field.
[0115] In response to receiving the click pair (e.g., point 1100 and point 1105), depth engine 610 generates a base depth map of image 1015 and further uses the click pair to generate and store a refined depth map using the click pair, as described above. Fig.12 , the content engine 615 can be configured to generate a modified image 1200 from the image 1015 using the generated refined depth map. Specifically, the content engine 615 uses the refined depth map to identify the background area of the image 1015 and remove the background area to generate the modified image 1200. Fig.13 , the content engine 615 may be further configured to overlay additional content such as location content 1300 on the modified image 1200. The user 1000 may then select a publish button 1305 to publish the modified image 1200 with the overlay content (e.g., location content 1300) as a short message on the website.
[0116] Fig.14 is a block diagram illustrating an example software architecture 1406 that may be used in conjunction with the various hardware architectures described herein. Fig.14 is a non-limiting example of a software architecture, and it is understood that many other architectures may be implemented to facilitate the functionality described herein. Software architecture 1406 may be implemented in a system such as Fig.15 1500, which includes a processor 1510, a memory 1530, and an I / O component 1550. A representative hardware layer 1452 is shown and may represent, for example, Fig.15The representative hardware layer 1452 includes a processing unit 1454 having associated executable instructions 1404. The executable instructions 1404 represent executable instructions of the software architecture 1406, including implementations of the methods, components, etc. described herein. The hardware layer 1452 also includes a memory and / or storage module 1456, which also has executable instructions 1404. The hardware layer 1452 may also include other hardware 1458.
[0117] exist Fig.14 In the exemplary architecture of , software architecture 1406 can be conceptualized as a stack of layers, wherein each layer provides specific functionality. For example, software architecture 1406 can include layers such as operating system 1402, library 1420, framework / middleware 1410, application 1416, and presentation layer 1414. In operation, application 1416 and / or other components within a layer can call API call 1408 through the software stack and receive a response from message 1412. The layers shown are representative in nature, and not all software architectures have all layers. For example, some mobile or dedicated operating systems may not provide framework / middleware 1410, while other operating systems may provide such layers. Other software architectures may include additional layers or different layers.
[0118] The operating system 1402 can manage hardware resources and provide public services. The operating system 1402 may include, for example, a kernel 1422, services 1424, and drivers 1426. The kernel 1422 may serve as an abstraction layer between the hardware and other software layers. For example, the kernel 1422 may be responsible for memory management, processor management (e.g., scheduling), component management, networking, security settings, etc. Services 1424 may provide other public services to other software layers. Drivers 1426 are responsible for controlling or interfacing with the underlying hardware. For example, drivers 1426 include display drivers, camera drivers, drivers, flash drivers, serial communication drivers (e.g., Universal Serial Bus (USB) drivers), Wi-Fi drivers, audio drivers, power management drivers, etc., depending on the hardware configuration.
[0119] The library 1420 provides a common infrastructure used by the application 1416 and / or other components and / or layers. The library 1420 provides functions that allow other software components to perform tasks in an easier manner than directly interfacing with the underlying operating system 1402 functions (e.g., kernel 1422, service 1424, and / or driver 1426). The library 1420 may include a system library 1444 (e.g., a C standard library), which may provide functions such as memory allocation functions, string manipulation functions, mathematical functions, etc. In addition, the library 1420 may include an API library 1446, such as a media library (e.g., a library for supporting the rendering and manipulation of various media formats (such as MPREG4, H.264, MP3, AAC, AMR, JPG, or PNG)), a graphics library (e.g., an OpenGL framework that can be used to render 2D and 3D in graphical content on a display), a database library (e.g., SQLite that can provide various relational database functions), a web library (e.g., WebKit that can provide web browsing functions), etc. The library 1420 may also include various other libraries 1448 to provide many other APIs to the applications 1416 and other software components / modules.
[0120] The framework / middleware 1410 provides a higher level common infrastructure that can be used by applications 1416 and / or other software components / modules. For example, the framework / middleware 1410 can provide various graphical user interface (GUI) functions, advanced resource management, advanced location services, etc. The framework / middleware 1410 can provide a wide range of other APIs that can be used by applications 1416 and / or other software components / modules, some of which can be targeted to a specific operating system 1402 or platform.
[0121] Applications 1416 include built-in applications 1438 and / or third-party applications 1440. Examples of representative built-in applications 1438 may include, but are not limited to, contact applications, browser applications, book reader applications, location applications, media applications, messaging applications, and / or game applications. Third-party applications 1440 may include applications that are hosted by entities other than the vendor of a particular platform using ANDROID TM or IOS TM Software Development Kit (SDK) for developing applications and can be used on platforms such as IOS TM ANDROID TM , Mobile software running on the mobile operating system of the Phone or other mobile operating systems. The third-party application 1440 can call the API call 1408 provided by the mobile operating system (such as the operating system 1402) to implement the functions described herein.
[0122] Applications 1416 may use built-in operating system functionality (e.g., kernel 1422, services 1424, and / or drivers 1426), libraries 1420, and framework / middleware 1410 to create user interfaces to interact with users of the system. Alternatively or additionally, in some systems, interaction with the user may occur through a presentation layer, such as presentation layer 1414. In these systems, the application / component "logic" may be separated from aspects of the application / component that interact with the user.
[0123] Fig.15 1 is a block diagram illustrating components of a machine 1500 capable of reading instructions from a machine-readable medium (e.g., a machine-readable storage medium) and performing any one or more of the methods discussed herein, according to some example embodiments. Specifically, Fig.15 A graphical representation of a machine 1500 in the example form of a computer system is shown, within which instructions 1516 (e.g., software, programs, applications, applet, application software or other executable code) for causing the machine 1500 to perform any one or more of the methods discussed herein may be executed. Thus, the instructions 1516 may be used to implement the modules or components described herein. The instructions 1516 transform a general non-programmed machine 1500 into a specific machine 1500 that is programmed to perform the functions described and illustrated in the described manner. In alternative embodiments, the machine 1500 operates as a standalone device or may be coupled (e.g., networked) to other machines. In a networked deployment, the machine 1500 may operate in the capacity of a server machine or a client machine in a server-client network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine 1500 may include, but is not limited to, a server computer, a client computer, a personal computer (PC), a tablet computer, a laptop computer, a netbook, a set-top box (STB), a personal digital assistant (PDA), an entertainment media system, a cellular phone, a smart phone, a mobile device, a wearable device (e.g., a smart watch), a smart home device (e.g., a smart appliance), other smart devices, a network device, a network router, a network switch, a network bridge, or any machine capable of executing instructions 1516, either sequentially or otherwise, that specify actions to be taken by the machine 1500. In addition, while only a single machine 1500 is shown, the term "machine" may also be taken to include a collection of machines that individually or jointly execute instructions 1516 to perform any one or more of the methodologies discussed herein.
[0124] The machine 1500 may include a processor 1510 (having individual processors 1512 and 1514 (e.g., cores)), a memory / storage device 1530, and an I / O component 1550, which may be configured to communicate with each other, for example, via a bus 1502. The memory / storage device 1530 may include a memory 1536 (such as a main memory or other memory storage device) and a storage unit 1536, both of which are accessible by the processor 1510, such as via the bus 1502. The storage unit 1536 and the memory 1532 store instructions 1516 that embody any one or more of the methods or functions described herein. During execution of the machine 1500, the instructions 1516 may also reside, in whole or in part, within the memory 1532, within the storage unit 1536, within at least one of the processors 1510 (e.g., within a cache of the processor), or any suitable combination thereof. Thus, the memory 1532, the storage unit 1536, and the memory of the processor 1510 are examples of machine-readable media.
[0125] I / O components 1550 may include various components to receive input, provide output, generate output, send information, exchange information, collect measurements, etc. The specific I / O components 1550 included in a particular machine 1500 will depend on the type of machine. For example, a portable machine such as a mobile phone may include a touch input device or other such input mechanism, while a headless server machine may not include such a touch input device. It will be appreciated that I / O components 1550 may include Fig.15 Many other components are not shown in the figure. The I / O components 1550 are grouped according to function only to simplify the following discussion, and the grouping is by no means limiting. In various example embodiments, the I / O components 1550 may include output components 1552 and input components 1554. The output components 1552 may include visual components (e.g., displays such as plasma display panels (PDPs), light emitting diode (LED) displays, liquid crystal displays (LCDs), projectors, or cathode ray tubes (CRTs)), acoustic components (e.g., speakers), tactile components (e.g., vibration motors, resistor mechanisms), other signal generators, and the like. The input components 1554 may include alphanumeric input components (e.g., keyboards, touch screens configured to receive alphanumeric input, optical keyboards, or other alphanumeric input components), point-based input components (e.g., mice, touch pads, trackballs, joysticks, motion sensors, or other pointing instruments), tactile input components (e.g., physical buttons, touch screens that provide the location and / or force of touch or touch gestures, or other tactile input components), audio input components (e.g., microphones), and the like.
[0126] In further example embodiments, the I / O component 1550 may include a biometric component 1556, a motion component 1558, an environmental component 1560, or a positioning component 1562, as well as a variety of other components. For example, the biometric component 1556 may include a component for detecting expressions (e.g., hand expressions, facial expressions, voice expressions, body postures, or eye tracking), measuring biosignals (e.g., blood pressure, heart rate, body temperature, sweat, or brain waves), identifying people (e.g., voice recognition, retinal recognition, facial recognition, fingerprint recognition, or EEG-based recognition), etc. The motion component 1558 may include an acceleration sensor component (e.g., an accelerometer), a gravity sensor component, a rotation sensor component (e.g., a gyroscope), etc. Environmental component 1560 may include, for example, an illumination sensor component (e.g., a photometer), a temperature sensor component (e.g., one or more thermometers that detect ambient temperature), a humidity sensor component, a pressure sensor component (e.g., a barometer), an acoustic sensor component (e.g., one or more microphones that detect background noise), a proximity sensor component (e.g., an infrared sensor that detects nearby objects), a gas sensor (e.g., a gas sensor that detects hazardous gas concentrations for safety or measures pollutants in the atmosphere), or other components that may provide indications, measurements, or signals corresponding to the surrounding physical environment. Positioning component 1562 may include a positioning sensor component (e.g., a GPS receiver component), an altitude sensor component (e.g., an altimeter or a barometer that detects air pressure, from which altitude can be derived), an orientation sensor component (e.g., a magnetometer), etc.
[0127] Communication can be achieved using a variety of technologies. I / O components 1550 may include a communication component 1564 that is operable to couple machine 1500 to network 1580 or device 1570 via coupler 1582 and coupler 1572, respectively. For example, communication component 1564 may include a network interface component or another suitable device that interfaces with network 1580. In other examples, communication component 1564 includes a wired communication component, a wireless communication component, a cellular communication component, a near field communication (NFC) component, Components (e.g., low power ), Components and other communication components that provide communication via other modes. Device 1570 can be another machine or any of a variety of peripheral devices (e.g., a peripheral device coupled via USB).
[0128] In addition, the communication component 1564 can detect an identifier or include a component operable to detect an identifier. For example, the communication component 1564 can include a radio frequency identification (RFID) tag reader component, an NFC smart tag detection component, an optical reader component (e.g., an optical sensor for detecting a one-dimensional barcode such as a universal product code (UPC) barcode, a multi-dimensional barcode such as a Quick Response (QR) code, an Aztec code, a data matrix, a digital graphic, a Max code, a PDF415, a Supercode, a UCC RSS-2D barcode, and other optical codes), or an acoustic detection component (e.g., a microphone for identifying an audio signal of a tag). In addition, various information can be derived via the communication component 1564 that can indicate a particular location, such as a location via an Internet Protocol (IP) geographic location, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location via a GPS, a location Location via signal triangulation, location via detection of NFC beacon signals, etc.
[0129] Glossary
[0130] "Carrier signal" in this context refers to any intangible medium capable of storing, encoding or carrying instructions for execution by a machine, and includes digital or analog communications signals or other intangible media to facilitate communication of such instructions. Instructions may be sent or received over a network using a transmission medium via a network interface device and using any of a number of well-known transmission protocols.
[0131] A "client device" in this context refers to any machine that interfaces with a communication network to obtain resources from one or more server systems or other client devices. A client device may be, but is not limited to, a mobile phone, a desktop computer, a laptop computer, a PDA, a smart phone, a tablet computer, an ultrabook, a netbook, a multiprocessor system, a microprocessor-based or programmable consumer electronics system, a game console, a set-top box, or any other communication device with which a user can access a network.
[0132] A "communication network" in this context refers to one or more parts of a network, which may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), the Internet, a part of the Internet, a part of the public switched telephone network (PSTN), a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, A network, another type of network, or a combination of two or more such networks. For example, the network or a portion of the network may include a wireless or cellular network, and the coupling may be a code division multiple access (CDMA) connection, a global system for mobile communications (GSM) connection, or another type of cellular or wireless coupling. In this example, the coupling may implement any of various types of data transmission technologies, such as single carrier radio transmission technology (1xRTT), evolution data optimized (EVDO) technology, general packet radio service (GPRS) technology, enhanced data rates for GSM evolution (EDGE) technology, the third generation partnership project (3GPP) including 3G, fourth generation wireless (4G) networks, universal mobile telecommunications system (UMTS), high speed packet access (HSPA), world wide interoperability for microwave access (WiMAX), long term evolution (LTE) standards, other standards defined by various standards development organizations, other remote protocols, or other data transmission technologies.
[0133] A "short message" in this context refers to a message that can be accessed during a time-limited duration. A short message 502 can be text, an image, a video, etc. The access time of a short message 502 can be set by the message sender. Alternatively, the access time can be a default setting or a setting specified by the recipient. Regardless of the setting technique, the message is transient.
[0134] "Machine-readable medium" in this context refers to a component, device, or other tangible medium capable of temporarily or permanently storing instructions and data, and may include, but is not limited to, random access memory (RAM), read-only memory (ROM), buffer memory, flash memory, optical media, magnetic media, cache memory, other types of memory (e.g., erasable programmable read-only memory (EEPROM)), and / or any suitable combination thereof. The term "machine-readable medium" should be deemed to include a single medium or multiple media (e.g., a centralized or distributed database, or associated caches and servers) capable of storing instructions. The term "machine-readable medium" may also be deemed to include any medium or combination of multiple media capable of storing instructions (e.g., code) executed by a machine, such that the instructions, when executed by one or more processors of the machine, cause the machine to perform any one or more of the methods described herein. Thus, "machine-readable medium" refers to a single storage device or device, as well as a "cloud-based" storage system or storage network comprising multiple storage devices or devices. The term "machine-readable medium" excludes the signal itself.
[0135] A "component" in this context refers to a device, physical entity, or logic having boundaries defined by function or subroutine calls, branch points, APIs, or other techniques of partitioning or modularization that provide specific processing or control functions. Components can be combined with other components via their interfaces to perform machine processes. A component can be a packaged functional hardware unit designed for use with other components, and a part of a program that generally performs specific functions of related functions. A component can constitute a software component (e.g., code embodied on a machine-readable medium) or a hardware component. A "hardware component" is a tangible unit that is capable of performing certain operations and can be configured or arranged in some physical manner.
[0136] In various example embodiments, one or more computer systems (e.g., stand-alone computer systems, client computer systems, or server computer systems) or one or more hardware components of a computer system (e.g., a processor or a group of processors) may be configured by software (e.g., an application or application portion) to be hardware components that operate to perform certain operations as described herein. The hardware components may also be implemented mechanically, electronically, or any suitable combination thereof. For example, a hardware component may include a dedicated circuit or logic that is permanently configured to perform certain operations. The hardware component may be a dedicated processor, such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). The hardware component may also include programmable logic or circuits that are temporarily configured by software to perform certain operations. For example, a hardware component may include software executed by a general-purpose processor or other programmable processor. After being configured by the software, the hardware component becomes a specific machine (or a specific component of a machine) that is uniquely customized to perform the configured functions and is no longer a general-purpose processor.
[0137] It will be appreciated that the decision to implement a hardware component mechanically, in a dedicated and permanently configured circuit, or in a temporarily configured circuit (e.g., configured by software), may be driven by cost and time considerations. Thus, the phrase "hardware component" (or "hardware-implemented component") should be understood to include a tangible entity, i.e., an entity that is physically constructed, permanently configured (e.g., hardwired), or temporarily configured (e.g., programmed), that operates in a certain manner or performs certain operations described herein. Considering embodiments in which hardware components are temporarily configured (e.g., programmed), it is not necessary to configure or instantiate each hardware component in the hardware component at any one time. For example, where the hardware component includes a general-purpose processor that is configured by software to become a special-purpose processor, the general-purpose processor may be configured as a corresponding different special-purpose processor (e.g., including different hardware components) at different times. The software configures a specific processor or processors accordingly, e.g., to constitute a specific hardware component at one time, and to constitute different hardware components at different times.
[0138] Hardware components can provide information to other hardware components and receive information from them. Therefore, the described hardware components can be considered as being communicatively coupled. In the case of multiple hardware components being present simultaneously, communication can be achieved by signal transmission (e.g., by appropriate circuits and buses) between two hardware components or among more hardware components. In embodiments where multiple hardware components are configured or instantiated at different times, communication between two hardware components or among more hardware components can be achieved, for example, by storing and obtaining information in memory structures accessible to multiple hardware components. For example, a hardware component can perform an operation and store the output of the operation in a memory device communicatively coupled thereto. Then, another hardware component can access the memory device later to obtain and process the stored output.
[0139] The hardware component may also initiate communication with an input or output device and may operate on a resource (e.g., a collection of information). The various operations of the example methods described herein may be performed at least in part by one or more processors that are temporarily configured (e.g., by software) or permanently configured to perform the relevant operations. Whether temporarily or permanently configured, the processor may constitute a processor-implemented component that is used to perform one or more operations or functions described herein. As used herein, a "processor-implemented component" refers to a hardware component implemented using one or more processors. Similarly, the methods described herein may be implemented at least in part by a processor, wherein a particular processor or processors are examples of hardware. For example, at least some of the operations of the method may be performed by one or more processors or processor-implemented components.
[0140] In addition, one or more processors may also operate to support the performance of related operations in a "cloud computing" environment or as "software as a service" (SaaS). For example, at least some of the operations may be performed by a group of computers (as an example of a machine including a processor), which may be accessed via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., APIs). The performance of certain operations in the operations may be distributed among the processors, not only residing in a single machine, but also deployed on multiple machines. In some example embodiments, the processor or the component implemented by the processor may be located in a single geographic location (e.g., in a home environment, an office environment, or a server farm). In other example embodiments, the processor or the component implemented by the processor may be distributed in multiple geographic locations.
[0141] A "processor" in this context refers to any circuit or virtual circuit (a physical circuit simulated by logic executed on an actual processor) that manipulates data values according to control signals (e.g., "commands," "opcodes," "machine code," etc.) and produces corresponding output signals applied to operate a machine. For example, a processor may be a central processing unit (CPU), a reduced instruction set computing (RISC) processor, a complex instruction set computing (CISC) processor, a graphics processing unit (GPU), a digital signal processor (DSP), an ASIC, a radio frequency integrated circuit (RFIC), or any combination thereof. A processor may further be a multi-core processor having two or more independent processors (sometimes referred to as "cores") that can execute instructions simultaneously.
[0142] In this context, a "timestamp" refers to a sequence of characters or encoded information that identifies when a particular event occurred, such as giving a date and time of day, sometimes with accuracy to fractions of a second.
Claims
1. A method for predicting depth of a moving image, comprising: storing a trained neural network on a user device, the neural network comprising a convolutional neural network that outputs to a recurrent neural network; identifying, on the user device, an image depicting an environment; receiving, by the user device, an ordered pair indicating a direction of depth in the environment depicted in the image; generating an initial depth map from the image using the convolutional neural network on the user device, the initial depth map being output to the recurrent neural network; By inputting the received ordered pairs into the recurrent neural network, the recurrent neural network is trained to update the output of the convolutional neural network to generate an updated depth map on the user device; as well as The updated depth map is stored.
2. The method according to claim 1, further comprising: A modified image is generated by modifying the image using the updated depth map.
3. The method according to claim 1, wherein: The recurrent neural network is trained to implement the alternating direction method of multipliers ADMM mechanism.
4. The method according to claim 3, wherein: The ADMM mechanism is configured to receive the ordered pairs as constraints after training the trained neural network.
5. The method according to claim 1, further comprising: A plurality of point pairs is received by the user device, each point pair of the plurality of point pairs indicating an additional direction of depth in the environment depicted in the image.
6. The method according to claim 5, wherein: The trained neural network is configured to receive the plurality of point pairs as input to generate the depth map.
7. The method according to claim 1, further comprising: The image is generated on the user device using an image sensor of the user device.
8. The method according to claim 7, further comprising: The generated image is displayed on a display device of the user device.
9. The method according to claim 8, wherein: Receiving the ordered pair includes receiving a first point on the image and a second point on the image when the display device displays the image.
10. The method according to claim 2, further comprising: A background region of the image is identified using the updated depth map.
11. The method according to claim 10, wherein: The modified image is generated by applying an image effect to the background region of the image.
12. The method according to claim 2, further comprising: The modified image is published as a short message on the website.
13. A system for predicting depth of a moving image, comprising: one or more processors of the machine; as well as a memory storing instructions that, when executed by at least one of the one or more processors, cause the machine to perform operations comprising: storing in the memory a trained neural network, which includes a convolutional neural network, the convolutional neural network outputting to a recurrent neural network; Recognize images depicting the environment; receiving an ordered pair of directions indicating depth in the environment depicted in the image; generating an initial depth map from the image using the convolutional neural network, the initial depth map being output to the recurrent neural network; generating an updated depth map by inputting the received ordered pairs into the recurrent neural network, the recurrent neural network being trained to update the output of the convolutional neural network; and The updated depth map is stored.
14. The system according to claim 13, wherein: The operations also include: A modified image is generated by modifying the image using the updated depth map.
15. The system of claim 13, wherein: The recurrent neural network is trained to implement the alternating direction method of multipliers ADMM mechanism.
16. The system of claim 15, wherein: The ADMM mechanism is configured to receive the ordered pairs as constraints after training the trained neural network.
17. The system of claim 13, wherein: The system includes a display device, and wherein receiving the ordered pair includes receiving a first point and a second point via the display device.
18. A machine-readable storage device embodying instructions that, when executed by a device, cause the device to perform operations comprising: storing on the device a trained neural network, comprising a convolutional neural network, the convolutional neural network outputting to a recurrent neural network; identifying, on the device, an image depicting an environment; receiving, by the device, an ordered pair of directions indicating depth in the environment depicted in the image; generating an initial depth map from the image using the convolutional neural network, the initial depth map being output to the recurrent neural network; generating an updated depth map on the device by inputting the received ordered pairs into the recurrent neural network, the recurrent neural network being trained to update the output of the convolutional neural network; as well as The updated depth map is stored.
