Automatic clipping of lateral video
The automatic crop window module tracks object movement to generate vertical video, which solves the problem of low horizontal video conversion efficiency and improves the user experience and flexibility of video editing.
Patent Information
- Application Number
- CN202380036268.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-12-06
- Filing Date
- 2023-03-29
- Publication Date
- 2024-12-06
AI Technical Summary
Existing video editing programs have time-consuming and cumbersome problems when converting landscape videos to landscape videos, and it is difficult to effectively include multiple parts of landscape videos, affecting the user's editing experience.
Track the movement of the initial object through the crop window module, automatically crop and adjust the video frames to generate portrait video, provide the user interface for interactive editing, and restore to landscape video when necessary to apply video effects.
It improves the conversion efficiency of horizontal video to vertical video, reduces user operation time, enhances the flexibility and user experience of video editing, and ensures the application of video effects.
Smart Images

Figure CN119096298A_ABST
Abstract
Description
[0001] Priority declaration
[0002] This application claims the benefit of priority to U.S. Provisional Application Serial No. 63 / 335,386 filed on April 27, 2022 and U.S. Patent Application Serial No. 18 / 062,456 filed on December 6, 2022, each of which is incorporated herein by reference in its entirety. Technical Field
[0003] Examples of the present disclosure generally relate to automatically generating a portrait video from a landscape video. More specifically, but not limited to, the present disclosure relates to systems and methods for generating a portrait video from a landscape video by tracking one or more objects in the landscape video and moving a cropping window based on the movement of the one or more objects. Background Art
[0004] Users often wish to edit and modify videos to enhance the presentation of the video. However, editing programs are often limited in the options provided, and users are often limited in the amount of time they have to edit the video. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. To easily identify the discussion of any particular element or action, the most significant digit or digits in a reference numeral refer to the figure number in which the element is first introduced. Some non-limiting examples are shown in the figures of the accompanying drawings, in which:
[0006] Figure 1 is a diagrammatic representation of a networking environment in which the present disclosure may be deployed, according to some examples.
[0007] Figure 2 is a diagrammatic representation of a messaging system having both client-side and server-side functionality according to some examples.
[0008] Figure 3 is a diagrammatic representation of data structures as maintained in a database according to some examples.
[0009] Figure 4 is a graphical representation of messages according to some examples.
[0010] Figure 5 is a flow chart of an access restriction process according to some examples.
[0011] Figure 6 is a schematic block diagram illustrating a system for automatically cropping a landscape video according to some examples.
[0012] Figure 7 A drone is shown flying and capturing video according to some examples.
[0013] Figure 8 A system for automatically cropping a landscape video according to some examples is shown.
[0014] Fig. 9 Shown is a portrait video generated from a landscape video according to some examples.
[0015] Fig.10 Automatically reverting to landscape video when video effects are incompatible is shown according to some examples.
[0016] Fig.11 Selecting a face center according to some examples is shown.
[0017] Fig.12 Selecting an initial object based on a selection from a user according to some examples is shown.
[0018] Fig.13 The use of an object hierarchy according to some examples is shown.
[0019] Fig.14 Using a flight plan to determine an initial object is shown according to some examples.
[0020] Fig.15 The location of the cropping window according to some examples is shown.
[0021] Fig.16 Methods of automatically cropping landscape videos according to some examples are shown.
[0022] Fig.17 is a diagrammatic representation of a machine in the form of a computer system according to some examples within which a set of instructions may be executed for causing the machine to perform any one or more of the methodologies discussed herein.
[0023] Fig.18 is a block diagram illustrating a software architecture in which examples may be implemented.
[0024] Fig.19 is a diagrammatic representation of a processing environment according to some examples. DETAILED DESCRIPTION
[0025] The following description includes systems, methods, techniques, instruction sequences and computing machine program products that embody the illustrative examples of the present disclosure. In the following description, for the purpose of illustration, many specific details are set forth to provide an understanding of the various examples of the subject matter of the present invention. However, it will be apparent to those skilled in the art that the examples of the subject matter of the present invention can be put into practice without these specific details. Typically, known instruction instances, protocols, structures and techniques are not necessarily shown in detail.
[0026] Example systems, computer-readable media, and methods include receiving a landscape video 822, and generating a portrait video 826 from the landscape video. Because portrait videos are easier to watch on a smartphone 608, users often prefer portrait videos 826. However, generating a portrait video 826 from a landscape video 822 may cut out or exclude portions of the landscape video 822 that the user wants to include in the portrait video 826. Furthermore, manually converting the landscape video 822 to a portrait video 826 is time-consuming and tedious for the user.
[0027] Reference Figure 8 , how to select which parts of the horizontal video 822 to include in the vertical video 826 is a challenge. In some examples, the challenge is solved by the cropping window module 812 using the cropping window 817 to select parts of the frames in the horizontal video 822 to include in the vertical video 826. For example, the cropping window module 812 includes the moving cropping window 817 of the second part of the horizontal video 822 in the corresponding second part of the vertical video 826. Similarly, the cropping window module 812 includes the moving cropping window 817 of the third part of the horizontal video 822 in the corresponding third part of the vertical video 826. Similarly, the cropping window module 812 includes the moving cropping window 817 of the fourth part of the horizontal video 822 in the corresponding fourth part of the vertical video 826.
[0028] The cropping window module 812 finds the initial object 830 and moves the cropping window 817 based on the movement of the initial object 830, and the cropping window module 812 tracks the movement of the initial object throughout the horizontal video 822. In some examples, the initial object 830 is selected based on the face center 1102. In some examples, the cropping window module 812 selects the initial object 830 based on the user's selection. In some examples, the cropping window module 812 selects the initial object 830 based on the object hierarchy 818. The object hierarchy 818 is a hierarchy 818 of the object 831. For example, one hierarchy 818 includes a face, an upper body, a full body, an arm, etc. to identify the object 831 as a person, and the person is located at the top of this hierarchy 818. In some examples, the cropping window module 812 determines the flight plan 616 of the initial object 830 in the horizontal video 822. In some examples, the cropping window module 812 positions the cropping window 817 to reduce or minimize the amount by which the initial object 830 is cut or excluded from the vertical video 826 .
[0029] The following content will add to solve this challenge. The video editor module 808 provides a user interface 806 that enables the user to convert the horizontal video 822 to a vertical video 826 with little or no interaction from the user. In addition, the video editor module 808 using the user interface 806 enables the user to add other video effects 819 to the vertical video 826. If the user wants to apply the video effect 819, and the video effect 819 cannot be applied to the vertical video 826, the video editor module 808 provides the user with the option of reverting back to the horizontal video 822 so that the video effect 819 can be applied. In some examples, the horizontal video 822 is captured by the drone 610, which captures the video 614 using the flight plan 616.
[0030] Networked computing environment
[0031] 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 multiple instances of client devices 102, each of which hosts multiple applications including a messaging client 104 and other applications 106. Each messaging client 104 is communicatively coupled to other instances of the messaging client 104 (e.g., hosted on respective other client devices 102), a messaging server system 108, and a third-party server 110 via a network 112 (e.g., the Internet). The messaging client 104 may also communicate with the local host application 106 using an application program interface (API).
[0032] The messaging clients 104 are able to communicate and exchange data with other messaging clients 104 and messaging server systems 108 via the network 112. The data exchanged between the messaging clients 104 and between the messaging clients 104 and messaging server systems 108 include functions (e.g., commands for activating functions) and payload data (e.g., text, audio, video, or other multimedia data).
[0033] The messaging server system 108 provides server-side functionality to certain messaging clients 104 via the network 112. Although certain functionality of the messaging system 100 is described herein as being performed by the messaging client 104 or by the messaging server system 108, it may be a design choice whether certain functionality is located within the messaging client 104 or within the messaging server system 108. For example, it may be technically preferred to initially deploy certain technologies and functionality within the messaging server system 108, but later migrate the technologies and functionality to the messaging client 104 where the client device 102 has sufficient processing power.
[0034] The messaging server system 108 supports various services and operations provided to the messaging clients 104. Such operations include transmitting data to the messaging clients 104, receiving data from the messaging clients 104, and processing data generated by the messaging clients 104. As examples, the data may include message content, client device information, geographic location information, media enhancements and overlays, message content persistence conditions, social network information, and live event information. The data exchange within the messaging system 100 is stimulated and controlled by functions available via the user interface (UI) of the messaging client 104.
[0035] Turning now specifically to the messaging server system 108, an application program interface (API) server 116 is coupled to the application server 114 and provides a programming interface to the application server 114. The application server 114 is communicatively coupled to a database server 120, which facilitates access to a database 126 that stores data associated with messages processed by the application server 114. Similarly, a web server 128 is coupled to the application server 114 and provides a web-based interface to the application server 114. To this end, the web server 128 handles incoming network requests via the Hypertext Transfer Protocol (HTTP) and several other related protocols.
[0036] The application program interface (API) server 116 receives and transmits message data (e.g., commands and message payloads) between the client device 102 and the application server 114. Specifically, the application program interface (API) server 116 provides a set of interfaces (e.g., routines and protocols) that can be called or queried by the messaging client 104 to facilitate activating the functions of the application server 114. An application program interface (API) server 116 exposes various functions supported by the application server 114, including: account registration; login functionality; sending messages from a particular messaging client 104 to another messaging client 104 via the application server 114; sending media files (e.g., images or videos) from a messaging client 104 to a messaging server 118 and for possible access by another messaging client 104; setting up of a collection of media data (e.g., a story); retrieving a friend list of a user of a client device 102; retrieving such a collection; retrieving messages and content; adding and removing entities (e.g., friends) from an entity graph (e.g., a social graph); locating friends within a social graph; and opening application events (e.g., related to a messaging client 104).
[0037] The application server 114 hosts several server applications and subsystems, including, for example, a messaging server 118, an image processing server 122, and a social network server 124. The messaging server 118 implements several message processing technologies and functions, particularly those related to the aggregation and other processing of content (e.g., text and multimedia content) included in messages received from multiple instances of the messaging client 104. As will be described in more detail, text and media content from multiple sources can be aggregated into collections of content (e.g., referred to as stories or galleries). These collections are then made available to the messaging client 104. Given the hardware requirements for other processor- and memory-intensive data processing, such processing can also be performed on the server side by the messaging server 118.
[0038] The application server 114 also includes an image processing server 122 that is dedicated to performing various image processing operations, typically on images or videos within the payload of messages sent from or received at the messaging server 118 .
[0039] The social network server 124 supports various social networking functions and services and makes them available to the messaging server 118. To this end, the social network server 124 maintains and accesses an entity graph 308 (e.g., Figure 3). Examples of functions and services supported by the social networking server 124 include identifying other users of the messaging system 100 that have a relationship with a particular user or that the particular user is "following," and also include identifying interests and other entities of a particular user.
[0040] Returning to the messaging client 104, the features and functions of the external resource (e.g., application 106 or applet) are available to the user via the interface of the messaging client 104. In this context, "external" refers to the fact that the application 106 or applet is outside the messaging client 104. External resources are usually provided by a third party, but can also be provided by the creator or provider of the messaging client 104. The messaging client 104 receives a user selection of an option for launching or accessing the features of such an external source. The external resource can be an application 106 (e.g., a "local app") installed on the client device 102, or a small-scale version of the application (e.g., a "applet") hosted on the client device 102 or away from the client device 102 (e.g., on a third-party server 110). The small-scale version of the application includes a subset of the features and functions of the application (e.g., a full-scale, local version of the application) and is implemented using a markup language document. In one example, the small-scale version of the application (e.g., a "applet") is a web-based markup language version of the application and is embedded in the messaging client 104. In addition to using markup language documents (eg, .*ml files), applets may also include scripting languages (eg, .*js files or .json files) and style sheets (eg, .*ss files).
[0041] In response to receiving a user selection of an option to launch or access a feature of an external resource, the messaging client 104 determines whether the selected external resource is a web-based external resource or a locally installed application 106. In some cases, the application 106 locally installed on the client device 102 can be independent of the messaging client 104 and launched separately from the messaging client 104, such as by selecting an icon corresponding to the application 106 on a home screen of the client device 102. A small-scale version of such an application can be launched or accessed via the messaging client 104, and in some examples, none of the portions of the small-scale application can be accessed outside of the messaging client 104 or limited portions of the small-scale application can be accessed outside of the messaging client 104. The small-scale application can be launched by the messaging client 104 receiving a markup language document associated with the small-scale application, such as from a third-party server 110, and processing such a document.
[0042] In response to determining that the external resource is a locally installed application 106, the messaging client 104 instructs the client device 102 to launch the external resource by executing locally stored code corresponding to the external resource. In response to determining that the external resource is a web-based resource, the messaging client 104 communicates with the third-party server 110 (for example) to obtain a markup language document corresponding to the selected external resource. The messaging client 104 then processes the obtained markup language document to present the web-based external resource within the user interface of the messaging client 104.
[0043] The messaging client 104 may notify the user of the client device 102 or other users (e.g., "friends") associated with such a user of activities occurring in one or more external resources. For example, the messaging client 104 may provide a participant in a conversation (e.g., a chat session) in the messaging client 104 with a notification related to the current or recent use of an external resource by one or more members of a user group. One or more users may be invited to join an active external resource or to start an external resource (in the friend group) that was recently used but is currently inactive. The external resource may provide the participants of the conversation, each using a corresponding messaging client 104, with the ability to share items, conditions, states, or locations in the external resource with one or more members of the user group entering the chat session. The shared item may be an interactive chat card that members of the chat may interact with, for example, to start a corresponding external resource, view specific information within an external resource, or bring members of the chat to a specific location or state within an external resource. Within a given external resource, a response message may be sent to the user on the messaging client 104. The external resource may selectively include different media items in the response based on the current context of the external resource.
[0044] The messaging client 104 may present a list of available external resources (e.g., applications 106 or applets) to the user to launch or access a given external resource. The list may be presented in the form of a context-sensitive menu. For example, icons representing different applications (or applets) of the application 106 (or applets) may vary based on how the user launches the menu (e.g., from a conversational interface or from a non-conversational interface).
[0045] System Architecture
[0046] Figure 21 is a block diagram showing additional details about the messaging system 100 according to some examples. Specifically, the messaging system 100 is shown to include a messaging client 104 and an application server 114. The messaging system 100 contains several subsystems that are supported on the client side by the messaging client 104 and on the server side by the application server 114. These subsystems include, for example, a transient timer system 202, a collection management system 204, an enhancement system 208, a map system 210, a game system 212, an external resource system 214, and a video editing management system 216.
[0047] The transient timer system 202 is responsible for implementing temporary or time-limited access to content by the messaging client 104 and the messaging server 118. The transient timer system 202 includes a plurality of timers that selectively enable access (e.g., for presentation and display) of messages and associated content via the messaging client 104 based on duration and display parameters associated with a message or a collection of messages (e.g., a story). Further details regarding the operation of the transient timer system 202 are provided below.
[0048] The collection management system 204 is responsible for managing collections or collections of media (e.g., collections of text, image video, and audio data). Collections of content (e.g., messages, including images, videos, text, and audio) can be organized into "event galleries" or "event stories." Such collections can be made available for a specified time period, such as the duration of an event related to the content. For example, content related to a concert can be available as a "story" for the duration of the concert. The collection management system 204 can also be responsible for publishing an icon that provides notification of the existence of a particular collection to the user interface of the messaging client 104.
[0049] In addition, the collection management system 204 includes a curation interface 206 that allows a collection manager to manage and curate a particular collection of content. For example, the curation interface 206 enables an event organizer to curate a collection of content related to a particular event (e.g., to delete inappropriate content or redundant messages). In addition, the collection management system 204 uses machine vision (or image recognition technology) and content rules to automatically curate content collections. In some examples, compensation may be paid to users for including user-generated content in a collection. In such cases, the collection management system 204 operates to automatically pay such users for use of their content.
[0050] The enhancement system 208 provides various functions that enable users to enhance (e.g., annotate or otherwise modify or edit) media content associated with a message. For example, the enhancement system 208 provides functions related to generating and publishing media overlays (media overlays) for messages processed by the messaging system 100. The enhancement system 208 is operable to provide media overlays or enhancements (e.g., image filters) to the messaging client 104 based on the geographic location of the client device 102. In another example, the enhancement system 208 is operable to provide media overlays to the messaging client 104 based on other information such as social network information of the user of the client device 102. Media overlays 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, digital objects) at the client device 102. For example, media overlays can include text or images that can be superimposed on the top of photos taken by the client device 102. In another example, the media overlay includes a location identifier (e.g., Venice Beach) overlay, the name of a live event, or a business name (e.g., Beach Cafe) overlay. In another example, the augmentation system 208 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 logos associated with the business. The media overlay may be stored in the database 126 and accessed through the database server 120.
[0051] In some examples, the enhancement system 208 provides a user-based publishing platform that enables a user to select a geographic location on a map and upload content associated with the selected geographic location. The user can also specify situations in which a particular media overlay should be provided to other users. The enhancement system 208 generates a media overlay that includes the uploaded content and associates the uploaded content with the selected geographic location.
[0052] In other examples, the enhancement system 208 provides a merchant-based publishing platform that enables merchants to select specific media overlays associated with geographic locations via a bidding process. For example, the enhancement system 208 associates the highest bidding merchant's media overlay with the corresponding geographic location for a predefined amount of time.
[0053] The mapping system 210 provides various geo-location functions and supports the presentation of map-based media content and messages by the messaging client 104. For example, the mapping system 210 enables the display of a user icon or avatar (e.g., stored in the profile data 316) on a map to indicate the current or past locations of the user's "friends" within the context of the map, as well as media content (e.g., a collection of messages including photos and videos) generated by such friends. For example, a message posted by a user to the messaging system 100 from a particular geographic location can be displayed to a particular user's "friends" on the mapping interface of the messaging client 104 within the context of that particular location on the map. The user can also share his or her location and status information with other users of the messaging system 100 (e.g., using an appropriate status avatar) via the messaging client 104, where the location and status information is similarly displayed to the selected user within the context of the mapping interface of the messaging client 104.
[0054] The gaming system 212 provides various gaming functions within the context of the messaging client 104. The messaging client 104 provides a gaming interface that provides a list of available games that can be launched by a user within the context of the messaging client 104 and played with other users of the messaging system 100. The messaging system 100 also enables a particular user to invite other users to participate in playing a particular game by sending an invitation to such other users from the messaging client 104. The messaging client 104 also supports both voice messaging and text messaging within the context of gaming (e.g., chatting), provides leaderboards for gaming, and also supports providing in-game rewards (e.g., coins and items).
[0055] The external resource system 214 provides an interface for the messaging client 104 to communicate with a remote server (e.g., a third-party server 110) to launch or access external resources (i.e., applications or applets). Each third-party server 110 hosts, for example, an application or a small-scale version of an application based on a markup language (e.g., HTML5) (e.g., a game application, a utility application, a payment application, or a ride-sharing application). The messaging client 104 can launch a web-based resource (e.g., an application) by accessing an HTML5 file from a third-party server 110 associated with a web-based resource. In some examples, the application hosted by the third-party server 110 is programmed with JavaScript using a software development kit (SDK) provided by the messaging server 118. The SDK includes an application programming interface (API) having functions that can be called or activated by a web-based application. In some examples, the messaging server 118 includes a JavaScript library that provides a given external resource access to certain user data of the messaging client 104. HTML5 is used as an example technology for programming games, but applications and resources programmed based on other technologies can be used.
[0056] To integrate the functionality of the SDK into a web-based resource, the SDK is downloaded by the third-party server 110 from the messaging server 118, or received by the third-party server 110 in other ways. Once downloaded or received, the SDK is included as part of the application code of the web-based external resource. The code of the web-based resource can then call or activate certain functions of the SDK to integrate the features of the messaging client 104 into the web-based resource.
[0057] The SDK stored on the messaging server 118 effectively provides a bridge between external resources (e.g., applications 106 or applet) and the messaging client 104. This provides users with a seamless experience of communicating with other users on the messaging client 104 while also preserving the look and feel of the messaging client 104. In order to bridge the communication between the external resources and the messaging client 104, in some examples, the SDK facilitates communication between the third-party server 110 and the messaging client 104. In some examples, the web view JavaScript bridge running on the client device 102 establishes two one-way communication channels between the external resources and the messaging client 104. Messages are sent asynchronously between the external resources and the messaging client 104 via these communication channels. Each SDK function activation is sent as a message and a callback. Each SDK function is implemented by constructing a unique callback identifier and sending a message with the callback identifier.
[0058] By using the SDK, not all information from the messaging client 104 is shared with the third-party server 110. The SDK limits which information is shared based on the needs of the external resource. In some examples, each third-party server 110 provides an HTML5 file corresponding to a web-based external resource to the messaging server 118. The messaging server 118 can add a visual representation (e.g., box art or other graphics) of the web-based external resource in the messaging client 104. Once the user instructs the messaging client 104 through the GUI of the messaging client 104 or selects a visual representation to access the features of the web-based external resource, the messaging client 104 obtains the HTML5 file and instantiates the resources required to access the features of the web-based external resource.
[0059] The messaging client 104 presents a graphical user interface (e.g., a login page or title screen) for the external resource. During, before, or after presenting the login page or title screen, the messaging client 104 determines whether the launched external resource has been previously authorized to access the user data of the messaging client 104. In response to determining that the launched external resource has been previously authorized to access the user data of the messaging client 104, the messaging client 104 presents another graphical user interface of the external resource including the functions and features of the external resource. In response to determining that the launched external resource has not been previously authorized to access the user data of the messaging client 104, after displaying the login page or title screen of the external resource for a threshold time period (e.g., 3 seconds), the messaging client 104 slides a menu for authorizing the external resource to access the user data (e.g., animating the menu to emerge from the bottom of the screen to the middle or other portion of the screen). The menu identifies the type of user data that the external resource will be authorized to use. In response to receiving the user selection of the accept option, the messaging client 104 adds the external resource to the list of authorized external resources and enables the external resource to access the user data from the messaging client 104. In some examples, the external resource is authorized to access the user data by the messaging client 104 according to the OAuth 2 framework.
[0060] The messaging client 104 controls the type of user data shared with the external resource based on the type of external resource that is authorized. For example, an external resource including a full-scale application (e.g., application 106) is provided with access to a first type of user data (e.g., only a two-dimensional avatar of a user with or without different avatar characteristics). As another example, an external resource including a small-scale version of an application (e.g., a web-based version of the application) is provided with access to a second type of user data (e.g., payment information, a two-dimensional avatar of a user, a three-dimensional avatar of a user, and an avatar with various avatar characteristics). Avatar characteristics include different ways to customize the look and feel of an avatar (e.g., different poses, facial features, clothing, etc.).
[0061] Reference Figure 6 and Figure 8 According to some examples, the video editing management system 216 supports the off-site client device 604, the server 606, the smart phone 608, the drone 610, and the video editor module 808. The video editing management system 216 receives requests from the off-site client device 604, the server 606, the smart phone 608, the drone 610, and the video editor module 808, and responds to the requests. The request includes a request to process the video 614 to identify the initial object 830, or a request to send information between the off-site client device 604, the server 606, the smart phone 608, the drone 610, and the video editor module 808. The off-site client device 604, the server 606, the smart phone 608, the drone 610, and the video editor module 808 can request other services from the video editing management system 216.
[0062] Data Architecture
[0063] Figure 3 is a schematic diagram illustrating a data structure 300 that may be stored in a database 126 of a messaging server system 108 according to some examples. Although the contents of the database 126 are illustrated as including several tables, it will be appreciated that data may be stored in other types of data structures (e.g., as an object-oriented database).
[0064] Database 126 includes message data stored in message table 302. For any particular message, the message data includes at least message sender data, message recipient (or receiver) data, and payload. Figure 4 Additional details regarding information that may be included in a message and included within the message data stored in message table 302 are described.
[0065] The entity table 306 stores entity data and is linked (e.g., referenced) to the entity graph 308 and profile data 316. The entities whose records are maintained within the entity table 306 may include individuals, corporate entities, organizations, objects, places, events, etc. Regardless of the entity type, any entity about which the messaging server system 108 stores data may be an identified entity. Each entity is provided with a unique identifier as well as an entity type identifier (not shown).
[0066] The entity graph 308 stores information about relationships and associations between entities. Such relationships may be social, professional (e.g., working in a common company or organization), interest-based, or activity-based, by way of example only.
[0067] The profile data 316 stores multiple types of profile data about a particular entity. Based on the privacy settings specified by the particular entity, the profile data 316 can be selectively used and presented to other users of the messaging system 100. In the case where the entity is a person, the profile data 316 includes, for example, a user name, phone number, address, settings (e.g., notification and privacy settings), and an avatar representation (or a collection of such avatar representations) selected by the user. The particular user can then selectively include one or more of these avatar representations within the content of messages transmitted via the messaging system 100 and on a map interface displayed to other users by the messaging client 104. The collection of avatar representations can include a "status avatar" that presents a graphical representation of a status or activity that a user can select to communicate at a particular time.
[0068] Where the entity is a group, the profile data 316 for the group may similarly include one or more avatar representations associated with the group, in addition to the group name, members, and various settings related to the group (eg, notifications).
[0069] Database 126 also stores enhancement data, such as overlays or filters, in enhancement table 310. Enhancement data is associated with and applied to videos (data for videos is stored in video table 304) and images (data for images is stored in image table 312).
[0070] 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 from a set of filters presented to the sending user by the messaging client 104 when the sending user is composing a message. Other types of filters include geolocation filters (also referred to as geofilters), which can be presented to the sending user based on a geographic location. For example, a geolocation filter specific to a nearby or special location can be presented by the messaging client 104 within a user interface based on geographic location information determined by a global positioning system (GPS) unit of the client device 102.
[0071] Another type of filter is a data filter that can be selectively presented to the sending user by the messaging client 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.
[0072] Other augmented data that may be stored in the image table 312 include augmented reality content items (eg, corresponding to application lenses or augmented reality experiences). Augmented reality content items may be real-time special effects and sounds that may be added to an image or video.
[0073] As described above, augmented data includes augmented reality content items, overlays, image transformations, AR images, and similar items involving modifications that can be applied to image data (e.g., videos or images). This includes real-time modifications that modify images when they are captured using a device sensor (e.g., one or more cameras) of the client device 102 and then display the modified images on the screen of the client device 102. This also includes modifications to stored content such as video clips that can be modified in a gallery. For example, in a client device 102 that can access multiple augmented reality content items, a user can use a single video clip with multiple augmented reality content items to see how different augmented reality content items will modify the stored clips. For example, by selecting different augmented reality content items for the content, multiple augmented reality content items that apply different pseudo-random movement models can be applied to the same content. Similarly, real-time video capture can be used with the modifications shown to show how the video image currently being captured by the sensor of the client device 102 will modify the captured data. Such data may be displayed only on the screen and not stored in memory, or the content captured by the device sensors may be recorded and stored in memory with or without modification (or both). In some systems, a preview function may show how different augmented reality content items will look in different windows in the display at the same time. This may, for example, enable viewing of multiple windows with different pseudo-random animations on the display at the same time.
[0074] Thus, data and various systems using augmented reality content items or other such transformation systems using the data to modify content may involve: detection of objects (e.g., faces, hands, bodies, cats, dogs, surfaces, objects, etc.) in video frames; tracking of such objects as they leave, enter, and move around the field of view; and modification or transformation of such objects as they are tracked. In various examples, different methods for implementing such transformations may be used. Some examples may involve: generating a three-dimensional mesh model of one or more objects; and using transformations of the models and animated textures within a video to implement the transformations. In other examples, tracking of points on an object may be used to place an image or texture (which may be two-dimensional or three-dimensional) at the tracked location. In yet another example, neural network analysis of a video frame may be used to place an image, model, or texture in content (e.g., an image or video frame). Thus, augmented reality content items refer both to images, models, and textures used to create transformations in content, and to additional modeling and analysis information required to implement such transformations using object detection, tracking, and placement.
[0075] Real-time video processing can be performed with any kind of video data (e.g., video streams, video files, etc.) stored in the memory of any kind of computerized system. For example, a user can load video files and store them in the memory of the device, or a sensor of the device can be used to generate a video stream. In addition, any object, such as a human face and parts of a human body, an animal, or a non-living thing (e.g., a chair, a car, or other objects) can be processed using computer animation models.
[0076] In some examples, when a specific modification is selected together with the content to be transformed, the elements to be transformed are identified by a computing device, and then if the elements are present in the frame of the video, they are detected and tracked. The elements of the object are modified according to the request for modification, so the frame of the video stream is transformed. For different types of transformations, the transformation of the frame of the video stream can be performed by different methods. For example, for the transformation of the frame that mainly refers to the form of the elements of the object to be changed, the characteristic points of each element of the object are calculated (for example, using an active shape model (ASM) or other known methods). Then, a grid based on the characteristic points is generated for each element of at least one element of the object. The grid is used for the subsequent stage of tracking the elements of the object in the video stream. During the tracking process, the grid mentioned for each element is aligned with the positioning of each element. Then, additional points are generated on the grid. A first set of first points is generated for each element based on the modification request, and a set of second points is generated for each element based on the set of first points and the modification request. Then, the frame of the video stream can be transformed by modifying the elements of the object based on the set of first points and the set of second points and the grid. In such a method, the background of the modified object may also be changed or deformed by tracking and modifying the background of the modified object.
[0077] In some examples, a transformation that changes some areas of an object using elements of an object can be performed by calculating characteristic points of each element of the object and generating a grid based on the calculated characteristic points. Points are generated on the grid, and then various areas based on these points are generated. Then, the elements of the object are tracked by aligning the area of each element with the position of each element of at least one element, and the properties of the area can be modified based on the modification request, thereby transforming the frame of the video stream. Depending on the specific modification request, the properties of the mentioned area can be transformed in different ways. Such modifications may involve: changing the color of the area; removing at least some parts of the area from the frame of the video stream; including one or more new objects in the area based on the modification request; and modifying or deforming the elements of the area or object. In various examples, any combination of such modifications or other similar modifications may be used. For certain models to be animated, some characteristic points may be selected as control points for determining the entire state space of options for model animation.
[0078] In some examples of computer animation models that use face detection to transform image data, faces are detected on an image using a specific face detection algorithm (e.g., Viola-Jones). An active shape model (ASM) algorithm is then applied to the face region of the image to detect facial feature reference points.
[0079] Other methods and algorithms suitable for face detection can be used. For example, in some examples, landmarks are used to locate features, which represent distinguishable points that exist in most of the images considered. For example, for facial landmarks, the location of the left pupil can be used. If the initial landmarks are not recognizable (for example, if the person wears an eye patch), secondary landmarks can be used. Such a landmark recognition process can be used for any such object. In some examples, the set of landmarks forms a shape. The shape can be represented as a vector using the coordinates of the points in the shape. One shape is aligned with another shape using a similarity transformation (allowing translation, scaling, and rotation) that minimizes the average Euclidean distance between the shape points. The mean shape is the average of the aligned training shapes.
[0080] In some examples, the landmark search begins with a mean shape that is aligned with the position and size of the face determined by a global face detector. Such a search then repeats the steps of proposing tentative shapes by adjusting the positions of shape points by template matching of the image texture around each point, and then conforming the tentative shapes to a global shape model until convergence occurs. In some systems, individual template matches are unreliable, and the shape model pools the results of weak template matches to form a stronger overall classifier. The entire search is repeated at each level of the image pyramid from coarse to fine resolution.
[0081] The transformation system can capture an image or video stream on a client device (e.g., client device 102) and perform complex image manipulations locally on the client device 102 while maintaining an appropriate user experience, computational time, and power consumption. Complex image manipulations can include size and shape changes, emotional transitions (e.g., changing a face from a frown to a smile), state transitions (e.g., aging a subject, reducing apparent age, changing gender), style transitions, application of graphical elements, and any other suitable image or video manipulations that can be implemented by a convolutional neural network that has been configured to execute efficiently on the client device 102.
[0082] In some examples, a computer animation model for transforming image data can be used by a system in which a user can capture an image or video stream of the user (e.g., a selfie) using a client device 102 having a neural network that operates as part of a messaging client 104 operating on the client device 102. A transformation system operating within the messaging client 104 determines the presence of a face within the image or video stream and provides a modification icon associated with the computer animation model to transform the data image, or the computer animation model can be presented as associated with an interface described herein. The modification icon includes the following changes, which can be the basis for modifying the face of the user within the image or video stream as part of the modification operation. Once the modification icon is selected, the transformation system initiates a process of transforming the image of the user to reflect the selected modification icon (e.g., generating a smiley face on the user). Once the image or video stream is captured and the specified modification is selected, the modified image or video stream can be presented in a graphical user interface displayed on the client device 102. The transformation system can implement a complex convolutional neural network for a portion of the image or video stream to generate and apply the selected modification. That is, a user can capture an image or video stream, and once a modification icon is selected, the modified result can be presented to the user in real time or near real time. In addition, the modification can be persistent while the video stream is being captured and the selected modification icon remains toggled. Machine-taught neural networks can be used to implement such modifications.
[0083] The graphical user interface presenting the modifications performed by the transformation system can provide additional interactive options to the user. Such options can be based on an interface for initiating the selection of a specific computer animation model and content capture (e.g., initiated from a content creator user interface). In various examples, after the initial selection of the modification icon, the modification can be persistent. The user can switch to turn on or off the modification by tapping or otherwise selecting the face being modified by the transformation system, and store it for later viewing or browsing other areas of the imaging application. In the case where the transformation system modifies multiple faces, the user can globally switch to turn on or off the modification by tapping or selecting a single face modified and displayed in the graphical user interface. In some examples, individual faces among a group of multiple faces can be modified individually, or such modifications can be switched individually by tapping or selecting an individual face or a series of individual faces displayed in the graphical user interface.
[0084] The story table 314 stores data related to a collection of messages and associated images, videos, or audio data that are 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., each user whose record is maintained in the entity table 306). A user can create a "personal story" in the form of a collection of content that has been created and sent / broadcasted by the user. To this end, the user interface of the messaging client 104 can include an icon that is user-selectable to enable the sending user to add specific content to his or her personal story.
[0085] A collection may also constitute a "Live Story," which is a collection of content from multiple users that is 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. Users whose client devices have location services enabled and who are at a common location event at a particular time may be presented with an option, for example, via a user interface of the messaging client 104, to contribute content to a particular Live Story. Live Stories may be identified to a user by the messaging client 104 based on his or her location. The end result is a "Live Story" told from a community perspective.
[0086] Another type of content collection is called a "location story" that enables users whose client devices 102 are located in 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 university campus).
[0087] As mentioned above, the video table 304 stores video data, which in one example is associated with a message whose record is maintained within the message table 302. Similarly, the image table 312 stores image data associated with a message for which message data is stored in the entity table 306. The entity table 306 may associate various enhancements from the enhancement table 310 with the various images and videos stored in the image table 312 and the video table 304.
[0088] Data communication architecture
[0089] Figure 4is a schematic diagram illustrating the structure of a message 400 generated by a messaging client 104 for transmission to another messaging client 104 or a messaging server 118 according to some examples. The content of a particular message 400 is used to populate a message table 302 stored in a database 126 accessible by a messaging server 118. Similarly, the content of the message 400 is stored in memory as "in-transit" or "in-flight" data of a client device 102 or application server 114. The message 400 is illustrated to include the following example components:
[0090] Message identifier 402 : a unique identifier that identifies the message 400 .
[0091] 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 .
[0092] Message image payload 406 : Image data captured by a camera component of the client device 102 or retrieved from a memory component of the client device 102 and included in the message 400 .
[0093] Image data for a sent or received message 400 may be stored in the image table 312 .
[0094] Message video payload 408 : Video data captured by the camera component or retrieved from the memory component of the client device 102 and included in the message 400 . The video data for a message 400 that has been sent or received may be stored in the video table 304 .
[0095] 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 .
[0096] Message enhancement data 412 : Enhancement data (eg, filters, stickers, or other annotations or enhancements) representing enhancements to be applied to the message image payload 406 , message video payload 408 , or message audio payload 410 of the message 400 . The enhancement data for a sent or received message 400 may be stored in the enhancement table 310 .
[0097] Message duration parameter 414: A parameter value indicating the amount of time in seconds that the content of a message (eg, message image payload 406, message video payload 408, message audio payload 410) is to be presented to or made accessible to a user via messaging client 104.
[0098] Message geolocation parameters 416: Geolocation data (e.g., latitude and longitude coordinates) associated with the content payload of the message. Multiple message geolocation parameter 416 values may be included in the payload, each of which is associated with a content item included in the content (e.g., a specific image within a message image payload 406 or a specific video in a message video payload 408).
[0099] Message story identifier 418: An identifier value that identifies one or more content collections (e.g., a "story" identified in story table 314) associated with a particular content item in message image payload 406 of message 400. For example, multiple images within message image payload 406 may each be associated with multiple content collections using an identifier value.
[0100] Message tags 420: Each message 400 may be tagged with a plurality of 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 may be included within the message tags 420 indicating the relevant animal. The tag values may be manually generated based on user input, or may be automatically generated using, for example, image recognition.
[0101] • Message sender identifier 422: An identifier (eg, a messaging system identifier, an email address, or a device identifier) that indicates the user of the client device 102 on which the message 400 was generated and from which the message 400 was sent.
[0102] • Message recipient identifier 424: An identifier (eg, a messaging system identifier, an email address, or a device identifier) that indicates the user of the client device 102 to which the message 400 is addressed.
[0103] The content (e.g., value) of each component of message 400 may be a pointer to a location in a table in which the content data value is stored. For example, the image value in message image payload 406 may be a pointer (or address) to a location in image table 312. Similarly, the value in message video payload 408 may point to data stored in video table 304, the value stored in message enhancement 412 may point to data stored in enhancement table 310, the value stored in message story identifier 418 may point to data stored in story table 314, and the values stored in message sender identifier 422 and message recipient identifier 424 may point to user records stored in entity table 306.
[0104] Time-based access restriction architecture
[0105] Figure 5is a schematic diagram illustrating an access restriction process 500 according to which access to content (e.g., ephemeral message 502 and associated multimedia data payload) or a collection of content (e.g., ephemeral message group 504) can be time-restricted (e.g., made ephemeral).
[0106] The ephemeral message 502 is shown to be associated with a message duration parameter 506, the value of which determines the amount of time that the ephemeral message 502 will be displayed by the messaging client 104 to the receiving user of the ephemeral message 502. In one example, the receiving user can view the ephemeral message 502 for up to 10 seconds, depending on the amount of time specified by the sending user using the message duration parameter 506.
[0107] The message duration parameter 506 and the message recipient identifier 424 are shown as inputs to a message timer 510, which is responsible for determining the amount of time that the transient message 502 is shown to a particular receiving user identified by the message recipient identifier 424. In particular, the transient message 502 will only be shown to the relevant receiving user for a period of time determined by the value of the message duration parameter 506. The message timer 510 is shown as providing an output to a more general transient timer system 202, which is responsible for the overall timing of displaying content (e.g., transient messages 502) to receiving users.
[0108] exist Figure 5 1. Ephemeral message 502 is shown as being included within ephemeral message group 504 (e.g., a collection of messages in a personal story or event story). Ephemeral message group 504 has an associated group duration parameter 508, the value of which determines the duration for which ephemeral message group 504 is presented and accessible to users of messaging system 100. For example, group duration parameter 508 may be the duration of a concert, wherein ephemeral message group 504 is a collection of content about the concert. Alternatively, a user (an owning user or a curator user) may specify the value of group duration parameter 508 when performing setup and creation of ephemeral message group 504.
[0109] In addition, each ephemeral message 502 within the ephemeral message group 504 has an associated group participation parameter 512, the value of which determines the duration for which the ephemeral message 502 will be accessible within the context of the ephemeral message group 504. Thus, a particular ephemeral message group 504 may "expire" and become inaccessible within the context of the ephemeral message group 504 before the ephemeral message group 504 itself expires according to the group duration parameter 508. The group duration parameter 508, the group participation parameter 512, and the message recipient identifier 424 each provide inputs to a group timer 514, which is operable to first determine whether a particular ephemeral message 502 of the ephemeral message group 504 will be displayed to a particular receiving user, and if so, how long to display it. Note that the identity of the particular receiving user is also known to the ephemeral message group 504 due to the message recipient identifier 424.
[0110] Thus, the group timer 514 operatively controls the overall lifespan of the associated ephemeral message group 504 and the individual ephemeral messages 502 included in the ephemeral message group 504. In one example, each ephemeral message 502 within the ephemeral message group 504 remains viewable and accessible for a period of time specified by the group duration parameter 508. In another example, within the context of the ephemeral message group 504, a particular ephemeral message 502 may expire based on the group participation parameter 512. Note that even within the context of the ephemeral message group 504, the message duration parameter 506 may still determine the duration for which a particular ephemeral message 502 is displayed to a receiving user. Thus, the message duration parameter 506 determines the duration for which a particular ephemeral message 502 is displayed to a receiving user, regardless of whether the receiving user is viewing the ephemeral message 502 within or outside the context of the ephemeral message group 504.
[0111] The transient timer system 202 may also be operable to remove a particular transient message 502 from a transient message group 504 based on a determination that an associated group participation parameter 512 has been exceeded. For example, where a sending user has established a group participation parameter 512 of 24 hours from posting, the transient timer system 202 will remove the associated transient message 502 from the transient message group 504 after the designated 24 hours. The transient timer system 202 is also operable to remove a transient message group 504 when the group participation parameter 512 for each transient message 502 within the transient message group 504 has expired, or when the transient message group 504 itself has expired according to the group duration parameter 508.
[0112] In some use cases, the creator of a particular ephemeral message group 504 may specify an indefinite group duration parameter 508. In this case, the expiration of the group participation parameter 512 for the last remaining ephemeral message 502 within the ephemeral message group 504 will determine when the ephemeral message group 504 itself expires. In this case, a new ephemeral message 502 with a new group participation parameter 512 added to the ephemeral message group 504 effectively extends the life of the ephemeral message group 504 to a value equal to the group participation parameter 512.
[0113] In response to the transient timer system 202 determining that the transient message group 504 has expired (e.g., is no longer accessible), the transient timer system 202 communicates with the messaging system 100 (and, for example, in particular, the messaging client 104) to cause the indicia (e.g., icon) associated with the relevant transient message group 504 to no longer be displayed within the user interface of the messaging client 104. Similarly, when the transient timer system 202 determines that the message duration parameter 506 of a particular transient message 502 has expired, the transient timer system 202 causes the messaging client 104 to no longer display the indicia (e.g., icon or text identification) associated with the transient message 502.
[0114] Automatic cropping of horizontal videos
[0115] Figure 6 6 is a schematic diagram illustrating a system 600 for automatically cropping a landscape video according to some examples. In some examples, drone 610 is referred to as an autonomous drone, a semi-autonomous drone, a personal autonomous drone, or other terms. Drone 610 communicates by sending communications 612, 613 to a host device such as an off-site client device 604, a server 606, a mobile phone or smartphone 608, or other device. Wireless network 602 is a cellular telephone network, such as an LTE network, an IEEE 802.11 network, In some examples, drone 610 communicates directly with a host device via communication 613, where communication 613 is sent using a communication protocol such as the communication protocol discussed for wireless network 602.
[0116] In the example, the autonomous drone 610 sends communications 612, 613 including data such as video 614 and / or commands or requests to another device such as a smart phone 608. In some instances, communications between a host device such as a smart phone 608 and the autonomous drone 610 can be conducted via a wireless network 602. The wireless network 602 can include access to the Internet, and / or the autonomous drone 610 can access the Internet via another connected device such as a smart phone 608.
[0117] In some examples, server 606 provides a social networking service to enable direct posting to social media sites such as Facebook from autonomous drone 610 (which may be in flight). The server 606 is a messaging server system 108 and the drone 610 is a message server system 108. Figure 7 The video 614 captured by the camera 706 in the image processing apparatus can be broadcasted or otherwise transmitted to a host device such as a smart phone 608, to a server 606, a client device 604, or other device via the wireless network 602 in near real time. The autonomous drone 610 can communicate directly or via another device with the Figure 2 Contact the video editing management system 216 in.
[0118] One or more of the host devices, such as a smart phone 608, can assist in processing the data by wirelessly receiving the data, processing the video 614, and wirelessly sending the information back to the drone 610. For example, the smart phone 608 can receive an image from the drone 610 and determine that the image is a landmark, such as a museum, a restaurant, a park, a national monument, etc. The smart phone 608 sends back a message that is used by the drone 610 to assist in developing a flight plan 616 associated with the landmark. The smart phone 608 contacts the video editing management system 216 to perform functions for the drone 610. The drone 610 contacts the video editing management system 216 by sending a command to the video editing management system 216, such as to store data for a user, request the identity of the purchaser or user of the drone 610, etc.
[0119] In some examples, a host device such as a smartphone 608 includes an associated application that can be used by a user or device to control the drone 610 or send instructions to the drone 610, such as return to the user, fly a particular set, move left, move right, move up or down, tilt, take a set of pictures, shut down, etc. The associated application can receive real-time or near real-time images of the video 614 that the drone 610 is capturing.
[0120] In some examples, the host device acts as a router or passes information or data packets directly or indirectly to other devices connected to the wireless network 602. For example, the smart phone 608 receives images from the drone 610 via communication 613. The smart phone 608 obtains the image and sends it to the server 606 to be posted on the social media website, which can be near real-time. The server 606 can host the video editing management system 216. According to some examples, the host device such as the smart phone 608 controls the state of the autonomous drone 610 by sending instructions to the drone 610 via communication 613, communication 612. One or more of the remote control devices / host devices such as the smart phone 608 receives the video 614 by receiving the video 614 wirelessly or via a cable or via other means, and processes the video 614 by, for example, providing the video editor module 808 described herein.
[0121] Example pre-programmed flight plans 616 include paths to follow, for example, to orbit a user or object, to follow a predetermined route around or near a user or object, where the path may be designed to capture video or photos, to hover in front of the user, to a destination and return, to a destination and orbit the destination to capture video, to follow the user, etc. The pre-programmed flight plan 616 may include a target distance from a person associated with a face and a target altitude above the ground for the drone 610.
[0122] Figure 7 Drone 610 is shown flying and capturing video according to some examples. Drone 610 takes off from hand 710 and flies on actual flight path 704 in accordance with flight plan 702 while capturing video 614 using camera 706. Actual flight path 704 may differ from flight plan 702 because the drone's navigation system may not be able to accurately maintain drone 610 on flight plan 702 for various reasons including wind, control problems, movement of person 708, etc. Video 614 is associated with flight plan 616, which in this example is flight plan 702.
[0123] Example flight plans 616 include paths that follow, for example, around or around one or more users, follow a predetermined route around or near a user or object, where the path can be designed to capture video or photos, fly 360 degrees around above a user, hover in front of a user, hover in front of a user and hop, hover in front of a user and move forward and backward, reach a destination and return, reach a destination and circle around the destination to capture video, follow a user, etc. Person 708 is an example of a user. Although the term "user" is used, those skilled in the art will recognize that drone 610 can identify a group of people and execute flight plan 702 based on the location of a group of people or even objects. Preprogrammed flight plan 702 can include a target distance from person 708 associated with face 711 and a target altitude of the autonomous drone above the ground of person 708.
[0124] Figure 8 A system 800 for automatically cropping a landscape video is shown according to some examples. A video editor module 808 processes a landscape video 822 to generate a portrait video 826. According to some examples, the landscape video 822 has an aspect ratio of 4 to 3, and the portrait video 826 has an aspect ratio of 9 to 16. The landscape video 822 and the portrait video 826 can have different aspect ratios, as will be appreciated by those skilled in the art.
[0125] In some examples, landscape video 822 is received from drone 610 or another device, where video 614 was captured according to flight plan 616. Video 614 is landscape video 822. In some examples, video 614 includes the actual path that drone 610 was flying when video 614 was captured. For example, as described in conjunction with Figure 7 As discussed, actual flight path 704 may differ from flight plan 702. Drone 610 may record information about actual flight path 704, such as a GPS location or distance to face 711 of person 708. For example, drone 610 may record distance to face 711 every 1 / 10 second to 1 second or another time period and include these distances with flight plan 616. Landscape video 822 includes frames 840, such as 10 to 60 frames 840 per second of landscape video 822. Portrait video 826 includes corresponding frames 842.
[0126] Screen 804 is an electronic device for displaying information on smart phone 608. User interface 806 is information presented by video editor module 808 to provide user interface item 821. Video editor module 808 is used to process horizontal video 822 into vertical video 826. In order to activate the function of video editor module 808, user interface item 821 includes items displayed for user selection. Fig. 9, examples include send 904, revert to landscape 908 buttons, video effects 1014, etc. The object recognizer module 810 identifies one or more objects to be tracked or included in the crop window 817. The object recognizer module 810 identifies an initial object 830 to begin the conversion process from landscape video 822 to portrait video 826.
[0127] The cropping window module 812 determines where to place the cropping window 817 within the horizontal video 822 based on the initial object 830, and moves the cropping window 817 in response to the movement of the initial object 830. In some examples, the movement of the cropping window 817 is one of moving to the left 814 or moving to the right 816. In some examples, the cropping window module 812 moves through the horizontal video 822 one frame at a time, and determines whether to move the cropping window 817 based on the movement of the initial object 830. The cropping window module 812 calls the object identifier module 810 to locate the initial object 830 in subsequent frames. In some examples, the vertical video 826 is enhanced by upsampling or using image enhancement methods.
[0128] The object identifier module 810 identifies the initial object 830 by searching for an object, such as a person, face, or animal, that is approximately in the middle of the horizontal video 822. The object identifier module 810 determines the size of the initial object 830, for example, in pixels. In some examples, such as in combination with Fig.11 As discussed, object identifier module 810 determines that there are many faces in landscape video 822, and determines that initial object 830 is face center 1102. In some examples, object identifier module 810 determines initial object 830 based on a user of video editor module 808 touching or selecting an object displayed on screen 804. For example, as described in conjunction with Fig.12 As discussed, the user touches the face 1204. According to some examples, the object identifier module 810 uses two-dimensional body tracking and segmentation masks to identify the initial object 830. In some examples, the object identifier 810 uses a trained neural network to recognize a fixed number of objects, such as people, animals, cars, etc.
[0129] If the object identifier 810 is unable to determine the initial object 830 in a subsequent frame of the horizontal video 822, then the object identifier 810 can use the object hierarchy 818. In some examples, the object identifier 810 uses the object hierarchy 818 of the object to locate the object within the frame of the horizontal video 822. The object hierarchy 818 of the example person is the head, the upper body, and then the whole body. If the head in the image is smaller than the upper body or body, it may be more difficult to identify. The upper body is larger than the head, so it is easier to identify. In addition, the body is larger than the head and upper body, so it may be easier to identify the entire body. The object identifier 810 uses the object hierarchy 818 to identify the initial object 830, and then identifies the initial object 830 in the subsequent frame of the horizontal video 822. If the object identifier 810 cannot find the object in the frame of the horizontal video 822, it uses the object hierarchy 818. Fig.13 An example of an object hierarchy 818 is provided.
[0130] The object identifier module 810 uses the flight plan 616 to determine the initial object 830 and finds the initial object 830 in the frame of the landscape video 822. For example, if the flight plan 616 starts away from the person and advances to (zooms in on) the person, the object identifier module 810 determines the characteristics of the landscape video 822 based on the predetermined flight plan 820. The object identifier module 810 can then determine that there should be an object that will be zoomed in at the far corner of the initial frame of the landscape video 822. Alternatively, the object identifier module 810 can skip to the end and work backwards because the object identifier module 810 determines from the predetermined flight plan 820 that the object that should be included in the portrait video 826 will be zoomed in at the end of the landscape video 822. Fig.14 An example is provided of the object identifier module 810 using the flight plan 616 to determine the initial object 830 .
[0131] The cropping window module 812, which gives the position and size of the initial object 830 in the frame 840 of the horizontal video 822, determines where to put the cropping window 817. In some examples, the cropping window module 812 centers the initial object 830. In some examples, the cropping window module 812 adjusts the cropping window 817 to try and reduce the portion that the initial object 830 is cut off. In addition, the cropping window module 812 can determine that some parts of the people must be excluded from the cropping window 817. In response, the cropping window module 812 selects the parts of the people not to be included to reduce the deformation of the people. For example, if the people are stretching out their arms, the cropping window module 812 can determine not to include the parts of the arms up to the elbows, rather than not including both hands. According to some examples, the cropping window module 812 uses the hierarchy 818 to determine which parts of the people are not to be included. Fig.15An example of the cropping window module 812 placing the cropping window 817 is provided.
[0132] The privacy module 823 is configured to request consent before editing or posting the video 614 or the landscape video 822 to a social media account. According to some examples, the privacy module 823 customizes edits and can be used to restrict some edits to children under 15 years old or another age. According to some examples, the privacy module 823 can be called by the video editor module 808 before editing, storing and / or sending the video 614, landscape video 822, and portrait video 826.
[0133] The video editor module 808 allows the user to select the user interface item 821 to save the vertical video 826 and send the vertical video 826 as a transient message via the messaging system 100. The video editor module 808 allows the user to edit and enhance the vertical video 826. The video editor module 808 allows the user to add enhancements to the vertical video 826. The video editor module 808 allows the user to perform lighting effects on the vertical video 826. The video editor module 808 allows other editing options to be provided to the user to edit the vertical video 826 or the horizontal video 822.
[0134] In other examples, the server 606 performs the combined Figure 8 In some examples, the video editor module 808 can be operated on a different device, such as an off-site client device 604 (such as a laptop or desktop computer), a server 606, or another device. In some examples, the video editor module 808 processes the video 614 to determine the flight plan 616 according to a plurality of predetermined flight plans 820 used to capture the video 614.
[0135] Fig. 9 A vertical video 826 is shown generated from a horizontal video 822 according to some examples. The horizontal video 822 is converted to a vertical video 826 by the video editor module 808. As discussed herein, the user can send 904 the horizontal video 822 or the vertical video 826. The object identifier module 810 identifies the initial object 830 as the object 902, which is a person. After the vertical video 826 is generated, the user has the option of reverting to the horizontal video 908, in which case the vertical video 826 will be discarded and the horizontal video 822 will be returned as the current video.
[0136] Fig.10Automatically reverting to landscape video when video effects are incompatible is shown according to some examples. Portrait video 1002 is generated from landscape video. The user selects to add video effect 1010, and video editor module 808 responds by displaying video effect 1014, which is an example of video effect 819, as a user interface item 821 that the user can select with portrait video 1004.
[0137] The user selects a "ping pong" video effect 1012, which is an effect that selects different segments of a video and puts them together in a new video. The video editor module 808 presents a dialog box 1016, notifying the user that the "ping pong" video effect 1012 cannot be applied to the vertical video 1006, but can be applied to the horizontal video from which the vertical video 1006 was generated.
[0138] The user selects an option to revert back to the landscape video used to generate the portrait video 1006. The video editor module 808 reverts back to the landscape video 826 and applies the "ping pong" video effect 1012 to generate the landscape video 1008 with the "ping pong". The video editor module 808 maintains metadata associated with the portrait video 1006 for converting the portrait video 1006 back to the landscape video 826.
[0139] Fig.11 The selection of a face center according to some examples is shown. The object recognizer module 810 examines a starting frame 840 or multiple starting frames 840 of the horizontal video 822 and determines that there are multiple faces or groups of faces, including face A 1104, face B 1106, and face C 1108. The object recognizer module 810 decides to select the initial object 830 as the face center 1102 or central person. The cropping window module 812 centers the cropping window 817 on the face center 1102. This process can continue through the horizontal video 822 frame by frame 840.
[0140] Fig.12 12 shows selecting an initial object based on a selection from a user according to some examples. The user touches 1202 a face 1204 in a first frame 840 or in frame 840 of the landscape video 822. The object recognizer module 810 recognizes the face 1204 as the initial object 830 based on the location of the touch. In some examples, the object recognizer module 810 confirms the selection of the initial object 830 with the user. In some examples, the object recognizer module 810 recognizes a gesture, such as surrounding a person or a voice command, such as selecting a woman wearing glasses. The cropping window module 812 determines where to place the cropping window 817 based on the initial object 830.
[0141] Fig.13The use of an object hierarchy 818 according to some examples is shown. The object recognizer module 810 determines that the initial object 830 is the face of a person in the landscape video 822. The person has an object hierarchy 818 with a face, an upper body, and a body. The cropping window module 812 places a cropping window 817 based on the initial object 830 being the face 1302. One or more frames 840 of the landscape video 822 are processed by the object recognizer module 810. If the object recognizer module 810 cannot recognize the initial object 830 using the face 1302, the object recognizer module 810 uses the upper body 1304 and recognizes the initial object 830 through the upper body 1304. For example, the face may be too small to recognize the face. The cropping window module 812 determines where to place the cropping window 817 based on the initial object 830, i.e., the upper body 1304. The object recognizer module 810 or the cropping window module 812 can use the object hierarchy 818 to determine the boundaries of the initial object 830.
[0142] When the object identifier module 810 processes one or more frames 840 of the horizontal video 822, it cannot use the upper body 1304 to identify the initial object 830. For example, the upper body 1304 has become too small. Therefore, the object identifier module 810 uses the whole body 1306 and identifies the initial object 830 through the whole body 1306. The cropping window module 812 determines where to place the cropping window 817 based on the initial object 830, i.e., the whole body 1306.
[0143] Fig.14 The use of a flight plan according to some examples to determine an initial object is shown. The object identifier module 810 has difficulty determining the initial object 830 at the beginning of the flight plan 1404 because the person 1402 is too small and not in the central portion of the horizontal video 822. The object identifier module 810 examines the flight plan 616 used to capture the horizontal video 822 and determines that the flight plan 616 is a zoom-in on the person. Therefore, the object identifier module 810 examines the frame 840 in the horizontal video 822 relative to the path taken by the drone 610 and determines that the starting point of the zoom-in is the person 1402, so the person 1402 becomes the initial object 830. In some examples, the object identifier module 810 determines to process the horizontal video 822 backwards and find the initial object 830 within one of the last frames of the horizontal video 822, and rewinds to the first frame of the horizontal video 822 to process the horizontal video 822. The object identifier module 810 determines that the face 1408 is the initial object 830 based on the zoom-in flight plan 616. The cropping window module 812 uses the people hierarchy 818 to determine where to place the cropping window 817 based on the face 1408 at the end of the flight plan 1406 and the person 1402 at the beginning of the flight plan 1404 .
[0144] Fig.15The location of the crop window according to some examples is shown. The object recognizer module 810 determines that the initial object 830 is the face 1502, and uses the hierarchy of people 818 to report the initial object 830 as having the boundary of the body 1504. The crop window module 812 determines to place the crop window 817 so as to exclude only one of the hands of the body 1504, because centering the crop window 817 on the body 1504 will not include both hands. The hierarchy of people 818 includes information or rules to help the object recognizer module 810 select which part of the person to exclude from the crop window 817. The cutout 1506 is a hand, where the crop window module 812 attempts to minimize or crop the cutout 1506 portion of the initial object 830 when selecting where to place the crop window 817.
[0145] Fig.16 A method 1600 for automatically cropping a landscape video according to some examples is shown. The method 1600 begins at operation 1602, such that a selection is received by a processor to generate a portrait video from a landscape video. For example, Fig. 9 , the user selects the option to change the horizontal video 822 to the vertical video 826.
[0146] Method 1600 continues at operation 1604 of identifying one or more objects in the landscape video for inclusion in the portrait video. For example, object identifier module 810 that selects initial object 830 will combine Fig. 9 and Figures 11 to 15 and discussed in this article.
[0147] Method 1600 continues at operation 1606 by selecting a crop window of the first portion of the horizontal video based on one or more objects to include in the first portion of the vertical video. Figures 11 to 15 As discussed herein, the object identifier module 810 selects a cropping window 817. When the cropping window 817 is moved by the cropping window module 812 by moving left 814 or moving right 816, the cropping window may be referred to as a moved cropped window or a moved cropping window.
[0148] Method 1600 continues at operation 1608 of moving the cropping window to the left or to the right in response to movement of one or more objects in the first portion of the landscape video to keep the one or more objects in the cropping window. Fig.13 The cropping window module 81 is shown moving the cropping window 817 according to the movement of the initial object 830 .
[0149] Method 1600 may be performed by one or more devices or devices discussed herein, alone or in combination with each other. For example, messaging system 100, smart phone 608, another device or device may perform method 1600 alone or in combination with each other. One or more of the operations of method 1600 may be optional. Method 1600 may include one or more additional operations. One or more operations of method 1600 may be performed in a different order.
[0150] Machine Architecture
[0151] Fig.17 It is a diagrammatic representation of a machine 1700 within which instructions 1710 (e.g., software, programs, applications, applet, app, or other executable code) may be executed for causing the machine 1700 to perform any one or more of the methods discussed herein. For example, the instructions 1710 may cause the machine 1700 to perform any one or more of the methods described herein. The instructions 1710 convert a general purpose, unprogrammed machine 1700 into a specific machine 1700 that is programmed to perform the functions described and shown in the manner described. The machine 1700 may operate as a standalone device or may be coupled (e.g., networked) to other machines. In a networked deployment, the machine 1700 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 1700 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 web appliance, a network router, a network switch, a network bridge, or any machine capable of sequentially or otherwise executing instructions 1710 specifying actions to be taken by the machine 1700. In addition, although only a single machine 1700 is shown, the term "machine" should also be considered to include a collection of machines that individually or jointly execute instructions 1710 to perform any one or more of the methods discussed herein. For example, the machine 1700 may include any of the client device 102 or a plurality of server devices that form part of the messaging server system 108. In some examples, the machine 1700 may also include both a client system and a server system, wherein certain operations of a particular method or algorithm are performed on the server side, and certain operations of the particular method or algorithm are performed on the client side.
[0152] The machine 1700 may include a processor 1704, a memory 1706, and an input / output I / O component 1702, which may be configured to communicate with each other via a bus 1740. In an example, the processor 1704 (e.g., 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 application specific integrated circuit (ASIC), a radio frequency integrated circuit (RFIC), another processor, or any suitable combination thereof) may include, for example, a processor 1708 that executes instructions 1710 and a processor 1712. The term "processor" is intended to include multi-core processors, which may include two or more independent processors (sometimes referred to as "cores") that can execute instructions simultaneously. Although Fig.17 Multiple processors 1704 are shown, but the machine 1700 may include a single processor with a single core, a single processor with multiple cores (e.g., a multi-core processor), multiple processors with a single core, multiple processors with multiple cores, or any combination thereof.
[0153] The memory 1706 includes a main memory 1714, a static memory 1716, and a storage unit 1718, which are all accessible by the processor 1704 via a bus 1740. The main memory 1706, the static memory 1716, and the storage unit 1718 store instructions 1710 that embody any one or more of the methods or functions described herein. The instructions 1710 may also reside, completely or partially, within the main memory 1714, within the static memory 1716, within the machine-readable medium 1720 within the storage unit 1718, within at least one of the processors 1704 (e.g., within a cache memory of a processor), or within any suitable combination thereof during execution thereof by the machine 1700.
[0154] I / O components 1702 may include various components for receiving input, providing output, generating output, transmitting information, exchanging information, capturing measurements, etc. The specific I / O components 1702 included in a particular machine 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 will be less likely to include such a touch input device. It will be appreciated that I / O components 1702 may include Fig.171702. In various examples, the I / O components 1702 may include a user output component 1726 and a user input component 1728. The user output component 1726 may include a visual component (e.g., a display such as a plasma display panel (PDP), a light emitting diode (LED) display, a liquid crystal display (LCD), a projector, or a cathode ray tube (CRT)), an acoustic component (e.g., a speaker), a tactile component (e.g., a vibration motor, a resistance mechanism), other signal generators, etc. The user input component 1728 may include an alphanumeric input component (e.g., a keyboard, a touch screen configured to receive alphanumeric input, an optical keyboard, or other alphanumeric input component), a point-based input component (e.g., a mouse, a touch pad, a trackball, a joystick, a motion sensor, or other pointing instrument), a tactile input component (e.g., a physical button, a touch screen that provides the location and force of a touch or touch gesture, or other tactile input component), an audio input component (e.g., a microphone), etc.
[0155] In another example, the I / O component 1702 may include a biometric component 1730, a motion component 1732, an environment component 1734, or a position component 1736, as well as various other components. For example, the biometric component 1730 includes components 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, perspiration, or brain waves), identifying people (e.g., voice recognition, retinal recognition, facial recognition, fingerprint recognition, or EEG-based recognition), etc. The motion component 1732 includes an acceleration sensor component (e.g., an accelerometer), a gravity sensor component, and a rotation sensor component (e.g., a gyroscope).
[0156] Environmental components 1734 include, for example, one or more cameras (with still image / photo and video capabilities), 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 detection sensor that detects concentrations of hazardous gases for safety or measures pollutants in the atmosphere), or other components that can provide indications, measurements, or signals corresponding to the surrounding physical environment.
[0157] With respect to cameras, client device 102 can have a camera system including, for example, a front-facing camera on a front surface of client device 102 and a rear-facing camera on a rear surface of client device 102. The front-facing camera can, for example, be used to capture still images and videos (e.g., “selfies”) of a user of client device 102, which can then be enhanced using the enhancement data (e.g., filters) described above. The rear-facing camera can, for example, be used to capture still images and videos in a more traditional camera mode, where the images are similarly enhanced using the enhancement data. In addition to the front-facing camera and the rear-facing camera, client device 102 can also include a 360° camera for capturing 360° photos and videos.
[0158] Additionally, the camera system of the client device 102 may include dual rear cameras (e.g., a main camera and a depth sensing camera), or even a triple, quad, or penta rear camera configuration on the front and back sides of the client device 102. For example, these multiple camera systems may include a wide-angle camera, an ultra-wide-angle camera, a telephoto camera, a macro camera, and a depth sensor.
[0159] The location component 1736 includes a positioning sensor component (e.g., a GPS receiver component), an altitude sensor component (e.g., an altimeter or barometer that detects air pressure, from which the altitude can be obtained), an orientation sensor component (e.g., a magnetometer), etc.
[0160] A variety of technologies may be used to achieve communication. I / O components 1702 also include communication components 1738 that are operable to couple machine 1700 to network 1722 or device 1724 via corresponding couplings or connections. For example, communication components 1738 may include a network interface component or another suitable device that interfaces with network 1722. In other examples, communication components 1738 may include wired communication components, wireless communication components, cellular communication components, near field communication (NFC) components, Parts (e.g. Low energy consumption), Device 1724 may be another machine or any of a variety of peripherals (eg, a peripheral coupled via USB).
[0161] In addition, the communication component 1738 can detect the identifier, or include a component that can be operated to detect the identifier. For example, the communication component 1738 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 data symbol (Dataglyph), a maximum code (MaxiCode), PDF417, Ultra Code, 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 obtained via the communication component 1738, such as positioning via Internet Protocol (IP) geographic location, obtaining a location via Positioning is obtained through signal triangulation, positioning is obtained via detection of NFC beacon signals that can indicate a specific position, etc.
[0162] Various memories (e.g., main memory 1714, static memory 1716, and memory of processor 1704) and storage unit 1718 may store one or more sets of instructions and data structures (e.g., software) implemented or used by any one or more of the methods or functions described herein. These instructions (e.g., instructions 1710) when executed by processor 1704 cause various operations to implement the disclosed examples.
[0163] The instructions 1710 may be transmitted or received via a network interface device (e.g., a network interface component included in the communication component 1738) using a transmission medium and using any of several well-known transmission protocols (e.g., Hypertext Transfer Protocol (HTTP)) over the network 1722. Similarly, the instructions 1710 may be transmitted or received via a coupling (e.g., a peer-to-peer coupling) with the device 1724 using a transmission medium.
[0164] Software Architecture
[0165] Fig.181800 is a block diagram illustrating a software architecture 1804 that may be installed on any one or more of the devices described herein. The software architecture 1804 is supported by hardware, such as a machine 1802 including a processor 1820, a memory 1826, and an I / O component 1838. In this example, the software architecture 1804 may be conceptualized as a stack of layers, each of which provides specific functionality. The software architecture 1804 includes layers such as an operating system 1812, a library 1810, a framework 1808, and an application 1806. In operation, the application 1806 invokes an API call 1850 through the software stack and receives a message 1852 in response to the API call 1850.
[0166] The operating system 1812 manages hardware resources and provides public services. The operating system 1812 includes, for example, a kernel 1814, services 1816, and drivers 1822. The kernel 1814 acts as an abstraction layer between the hardware and other software layers. For example, the kernel 1814 provides memory management, processor management (e.g., scheduling), component management, networking and security settings, and other functions. Services 1816 can provide other public services to other software layers. Drivers 1822 are responsible for controlling or interfacing with the underlying hardware. For example, drivers 1822 may include display drivers, camera drivers, or Low-power drivers, Flash drivers, Serial communication drivers (e.g., USB drivers), Drivers, audio drivers, power management drivers, etc.
[0167] The libraries 1810 provide a common low-level infrastructure used by the applications 1806. The libraries 1810 may include a system library 1818 (e.g., a C standard library) that provides functions such as memory allocation functions, string manipulation functions, mathematical functions, etc. In addition, the libraries 1810 may include an API library 1824, such as a media library (e.g., a library for supporting presentation and manipulation of various media formats, such as Moving Picture Experts Group-4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group Layer-3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Experts Group (JPEG or JPG), or Portable Network Graphics (PNG)), a graphics library (e.g., an OpenGL framework for presentation in two dimensions (2D) and three dimensions (3D) in graphics content on a display), a database library (e.g., SQLite providing various relational database functions), a web library (e.g., WebKit providing web browsing functions), etc. The library 1810 may also include various other libraries 1828 to provide many other APIs to the application 1806 .
[0168] The framework 1808 provides a common high-level infrastructure used by the applications 1806. For example, the framework 1808 provides various graphical user interface (GUI) functions, high-level resource management, and high-level positioning services. The framework 1808 can provide a wide range of other APIs that can be used by the applications 1806, some of which can be specific to a specific operating system or platform.
[0169] In an example, applications 1806 may include a home application 1836, a contacts application 1830, a browser application 1832, a book reader application 1834, a positioning application 1842, a media application 1844, a messaging application 1846, a game application 1848, and a variety of other applications such as third-party applications 1840. Video editing management 1841 system management as in conjunction with the video editing management system 216 and the video editing functions disclosed herein. Application 1806 is a program that executes the functions defined in the program. Various programming languages can be used to create one or more of the applications 1806 constructed in various ways, such as an object-oriented programming language (e.g., Objective-C, Java, or C++) or a procedural programming language (e.g., C language or assembly language). In a specific example, third-party applications 1840 (e.g., provided by an entity other than the vendor of a particular platform using ANDROID TM or IOS TM Software Development Kit (SDK) can be used to develop applications on platforms such as IOS TM ANDROID TM , Mobile software running on the mobile operating system of the phone or another mobile operating system. In this example, third-party applications 1840 can activate API calls 1850 provided by the operating system 1812 to facilitate the functions described in this article.
[0170] Processing components
[0171] Now go to Fig.19 , which shows a diagrammatic representation of a processing environment 1900 that includes processor 1902, processor 1906, and processor 1908 (eg, a GPU, a CPU, or a combination thereof).
[0172] The processor 1902 is shown coupled to a power source 1904 and includes modules (permanently configured or temporarily instantiated), namely, a video processing component 1910, a user interface component 1912, and a communication component 1914. The video processing component 1910 controls the processing of the landscape video 822 to generate the portrait video 826. The user interface component 1912 manages interaction with the user, such as presenting user interface items 821 and responding to selections of user interface items 821 by the user. The communication component 1914 manages communications, such as communications 612, 613 from the smartphone 608 to other devices.
[0173] Glossary
[0174] "Carrier signal" refers to any intangible medium that can store, encode or carry instructions for execution by a machine and includes digital or analog communication signals or other intangible media that facilitates the communication of such instructions. Instructions may be sent or received over a network via a network interface device using a transmission medium.
[0175] "Client Device" refers to any machine that interfaces with a communications 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 portable digital assistant (PDA), a smart phone, a tablet computer, an ultrabook, a netbook, a laptop computer, a multiprocessor system, a microprocessor-based or programmable consumer electronics product, a game console, a set-top box, or any other communications device that a user may use to access a network.
[0176] "Communications network" means 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, The coupling may be 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 network or a cellular network, and the coupling may be a code division multiple access (CDMA) connection, a global mobile communication system (GSM) connection, or other 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 rate for GSM evolution (EDGE) technology, the third generation partnership project (3GPP) including 3G, fourth generation wireless (4G) network, universal mobile telecommunications system (UMTS), high speed packet access (HSPA), world wide interoperability for microwave access (WiMAX), long term evolution (LTE) standards, other data transmission technologies defined by various standard setting organizations, other long distance protocols, or other data transmission technologies.
[0177] "Component" refers to a logic, device or physical entity with boundaries defined by function or subroutine calls, branch points, APIs or other technical definitions that provide partitioning or modularization for specific processing or control functions. Components can be combined with other components via their interfaces to perform machine processing. Components can be packaged functional hardware units designed for use with other components, and part of a program that generally performs specific functions in related functions. Components can constitute software components (e.g., codes implemented on machine-readable media) or hardware components. "Hardware components" are tangible units that can perform certain operations and can be configured or arranged in a certain physical manner. In various examples, one or more computer systems (e.g., independent computer systems, client computer systems, or server computer systems) or one or more hardware components (e.g., processors or processor groups) of a computer system can be configured by software (e.g., applications or application parts) to operate to perform certain operations described herein. Hardware components can also be implemented mechanically, electronically, or in any suitable combination thereof. For example, a hardware component may include a dedicated circuit system 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 a programmable logic or circuit system that is temporarily configured to perform certain operations by software. For example, the hardware component may include software executed by a general-purpose processor or other programmable processor. Once configured by such software, the hardware component becomes a specific machine (or a specific component of a machine) that is uniquely customized to perform the configured function and is no longer a general-purpose processor. It will be recognized that it can be determined for cost and time considerations whether to mechanically implement the hardware component in a dedicated and permanently configured circuit system or in a temporarily configured (e.g., configured by software) circuit system to implement the hardware component. Therefore, the phrase "hardware component" (or "hardware-implemented component") should be understood to include a tangible entity, that is, an entity that is physically constructed, permanently configured (e.g., hardwired) or temporarily configured (e.g., programmed) to operate in some way or perform certain operations described herein. Considering an example where a hardware component is temporarily configured (e.g., programmed), each of the hardware components does not need to be configured or instantiated at any time. For example, in the case where a hardware component includes a general-purpose processor that is configured by software to become a special-purpose processor, the general-purpose processor can be configured as different special-purpose processors (e.g., including different hardware components) at different times. Software accordingly configures one or more specific processors to, for example, constitute a specific hardware component at one time and constitute different hardware components at different times. Hardware components can provide information to other hardware components and receive information from other hardware components. Therefore, the described hardware components can be considered to be communicatively coupled.In the case of multiple hardware components being present at the same time, communication can be achieved by signal transmission (e.g., by appropriate circuits and buses) between or among two or more hardware components in the hardware components. In examples where multiple hardware components are configured or instantiated at different times, communication between such hardware components can be achieved, for example, by storing information in a memory structure to which multiple hardware components have access rights and retrieving information in the memory structure. For example, a hardware component can perform an operation and store the output of the operation in a memory device coupled to it in communication. Then, other hardware components can access the memory device at a subsequent time to retrieve and process the stored output. The hardware component can also initiate communication with an input device or an output device, and can operate on resources (e.g., a collection of information). The various operations of the example methods described herein can be performed at least in part by a temporary configuration (e.g., by software) or one or more processors that are permanently configured to perform related operations. Whether it is temporarily configured or permanently configured, such a processor can constitute a processor-implemented component that operates to perform one or more operations or functions described herein. As used herein, "processor-implemented components" refer to hardware components implemented using one or more processors. Similarly, the method described herein can be implemented at least in part by a processor, wherein one or more specific processors are examples of hardware. For example, at least some of the operation of the method can be performed by one or more processors or the components implemented by the processor. In addition, one or more processors can also operate to support the execution of related operations in a "cloud computing" environment or as a "software as a service" (SaaS) operation. For example, at least some of the operations in the operation can be performed by a computer group (as an example of a machine including a processor), wherein these operations can be accessed via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., API). The execution of some operations in the operation can be distributed between processors, not only resident in a single machine, but deployed across multiple machines. In some examples, a processor or a component implemented by a processor can be located in a single geographical location (e.g., in a home environment, an office environment, or a server cluster). In other examples, a processor or a component implemented by a processor can be distributed across multiple geographical locations.
[0178] "Computer-readable storage media" refers to both machine storage media and transmission media. Therefore, these terms include storage devices / media and carrier / modulated data signals. The terms "machine-readable medium", "computer-readable medium" and "device-readable medium" mean the same thing and may be used interchangeably in this disclosure.
[0179] "Ephemeral messages" are messages that are accessible for a limited duration of time. Ephemeral messages can be text, images, videos, etc. The access time for ephemeral messages can be set by the sender of the message. 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.
[0180] "Machine storage media" refers to a single or multiple storage devices and media (e.g., centralized or distributed databases, and associated caches and servers) that store executable instructions, routines, and data. Thus, the term should be considered to include, but is not limited to, solid-state memory and optical and magnetic media, including memory internal or external to the processor. Specific examples of machine storage media, computer storage media, and device storage media include: non-volatile memory, including, for example, semiconductor memory devices such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), FPGA, and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The terms "machine storage media," "device storage media," and "computer storage media" mean the same thing and may be used interchangeably in this disclosure. The terms "machine storage media," "computer storage media," and "device storage media" expressly exclude carrier waves, modulated data signals, and other such media, at least some of which are encompassed by the term "signal media."
[0181] “Non-transitory computer-readable storage medium” refers to a tangible medium capable of storing, encoding, or carrying instructions for execution by a machine.
[0182] "Signal medium" refers to any intangible medium that can store, encode or carry instructions executed by a machine and includes digital or analog communication signals or other intangible media that facilitates the communication of software or data. The term "signal medium" should be deemed to include any form of modulated data signals, carrier waves, etc. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a way as to encode information in the signal. The terms "transmission medium" and "signal medium" mean the same thing and may be used interchangeably in this disclosure.
Claims
1. A system comprising: processor; as well as a memory storing instructions that, when executed by the processor, configure the processor to perform operations comprising: receiving, by a processor, a selection to generate a portrait video from a landscape video; identifying one or more objects in the landscape video for inclusion in the landscape video; Based on the one or more objects, selecting a crop window of the first portion of the landscape video to include in the first portion of the portrait video; and In response to movement of the one or more objects in the first portion of the landscape video, the cropping window is moved leftward or rightward to keep the one or more objects in the cropping window.
2. The system according to claim 1, wherein: The operations also include: The moved cropping window of the second portion of the horizontal video is included in a corresponding second portion of the vertical video.
3. The system according to claim 2, wherein: The one or more objects are persons, and wherein the identifying further comprises: The face of the person is recognized.
4. The system according to claim 3, wherein: The operations also include: In response to not being able to recognize the face of the person, identifying an upper torso of the person associated with the face of the person; In response to movement of the upper body of the person in the second portion of the horizontal video, moving the cropping window to the left or to the right to keep the upper body in the cropping window; and The moved cropping window of the third portion of the horizontal video is included in a corresponding third portion of the vertical video.
5. The system according to claim 4, wherein: The operations also include: In response to not being able to identify the upper torso of the person, identifying a full body of the person associated with the upper body of the person; In response to movement of the whole body of the person in the third portion of the horizontal video, moving the cropping window to the left or to the right to keep the whole body in the cropping window; and The moved cropping window of the fourth portion of the horizontal video is included in a corresponding fourth portion of the vertical video.
6. A system according to any one of claims 1 to 5, wherein: The identification also includes: identifying a plurality of persons in the horizontal video; and A central person of the plurality of persons is selected as the one or more objects.
7. A system according to any one of claims 1 to 5, wherein: The identification also includes: identifying a body of a person in a central portion of the horizontal video; and The body of the person is selected as the one or more objects.
8. A system according to any one of claims 1 to 5, wherein: The one or more objects are persons, and wherein the identifying further comprises: identifying a body of the person, and wherein the selecting further comprises: The cropping window of the first portion of the landscape video is selected based on centering the body of the person to be included in the first portion of the portrait video.
9. A system according to any one of claims 1 to 5, wherein: The one or more objects include a group of faces of people, and wherein the identifying further comprises: identifying a center of the face group, and wherein the selecting further comprises: Based on centering the group of faces, the cropping window of the first portion of the landscape video is selected to be included in the first portion of the portrait video.
10. The system according to any one of claims 1 to 5, wherein: The first portion is one or more frames of the landscape video.
11. A system according to any one of claims 1 to 5, wherein: The recognition is performed using a neural network trained to recognize humans and animals, or wherein the recognition is based on two-dimensional body tracking and segmentation masks.
12. A system according to any one of claims 1 to 5, wherein: The one or more objects are animals or objects, and wherein the identifying further comprises: identifying the body of the animal or subject, and wherein the selecting further comprises: The cropping window of the first portion of the landscape video is selected based on centering the body of the animal or object to be included in the first portion of the portrait video.
13. A system according to any one of claims 1 to 5, wherein: The vertical video has an aspect ratio of 9:16, and the horizontal video has an aspect ratio of 4:
3.
14. A system according to any one of claims 1 to 5, wherein: The identification also includes: The one or more objects in the landscape video are identified based on a selection received from a user of a region for identifying the one or more objects within the landscape video.
15. The system according to any one of claims 1 to 5, wherein: The identification also includes: The one or more objects in the lateral video are identified based on a flight plan associated with capturing the lateral video, wherein the flight plan indicates locations of the one or more objects.
16. A system according to any one of claims 1 to 5, wherein: The operations also include: After the selecting, the first portion of the portrait video is processed to include the crop window of the first portion of the landscape video.
17. A method comprising: receiving, by a processor, a selection to generate a portrait video from a landscape video; identifying one or more objects in the landscape video for inclusion in the landscape video; selecting a cropping window of a first portion of the horizontal video to include in a first portion of the vertical video based on the one or more objects; as well as In response to movement of the one or more objects in the first portion of the landscape video, the cropping window is moved leftward or rightward to keep the one or more objects in the cropping window.
18. The method according to claim 17, further comprising: The moved cropping window of the second portion of the horizontal video is included in a corresponding second portion of the vertical video.
19. A non-transitory computer-readable storage medium comprising instructions that, when executed by at least one processor of a device of a system, cause the at least one processor to perform operations comprising: receiving, by a processor, a selection to generate a portrait video from a landscape video; identifying one or more objects in the landscape video for inclusion in the landscape video; selecting a cropping window of a first portion of the horizontal video to include in a first portion of the vertical video based on the one or more objects; as well as In response to movement of the one or more objects in the first portion of the landscape video, the cropping window is moved leftward or rightward to keep the one or more objects in the cropping window.
20. The non-transitory computer readable storage medium of claim 19, wherein: The operations also include: The moved cropping window of the second portion of the horizontal video is included in a corresponding second portion of the vertical video.
Citation Information
Cited By
Automatically cropping of landscape videos
US12367606B2
